
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  /* DWC Custom Colors */
  --dwc-blue: #9FBAE1;
  --dwc-green: #7EA16B;
  --dwc-gray: #49535B;
  --dwc-light: #F8F9FA;
  
  /* Base Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
  --card-padding: 1.5rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 1.75rem;
  
  /* Shadows */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--dwc-gray);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dwc-gray);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

a {
  color: var(--dwc-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--dwc-green);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 2rem; }
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.m-4 { margin: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Colors */
.text-white { color: var(--white); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-dwc-gray { color: var(--dwc-gray); }
.text-dwc-blue { color: var(--dwc-blue); }
.text-dwc-green { color: var(--dwc-green); }

.bg-white { background-color: var(--white); }
.bg-dwc-light { background-color: var(--dwc-light); }
.bg-dwc-blue { background-color: var(--dwc-blue); }
.bg-dwc-green { background-color: var(--dwc-green); }
.bg-dwc-gray { background-color: var(--dwc-gray); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }

/* Border Radius */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* DWC Custom Classes */
.dwc-gradient {
  background: linear-gradient(135deg, var(--dwc-blue) 0%, var(--dwc-green) 100%);
}

.dwc-text-gradient {
  background: linear-gradient(135deg, var(--dwc-blue) 0%, var(--dwc-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.dwc-shadow {
  box-shadow: 0 10px 25px -5px rgba(159, 186, 225, 0.1), 0 10px 10px -5px rgba(159, 186, 225, 0.04);
}

.dwc-shadow-lg {
  box-shadow: 0 25px 50px -12px rgba(159, 186, 225, 0.25);
}

.dwc-hover-lift {
  transition: var(--transition);
}

.dwc-hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(159, 186, 225, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--dwc-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dwc-green);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--dwc-blue);
  border: 2px solid var(--dwc-blue);
}

.btn-secondary:hover {
  background-color: var(--dwc-blue);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--dwc-gray);
  border: 2px solid var(--gray-300);
}

.btn-outline:hover {
  background-color: var(--dwc-blue);
  color: var(--white);
  border-color: var(--dwc-blue);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-xl);
}

.card-header {
  padding: var(--card-padding);
  border-bottom: 1px solid var(--gray-200);
}

.card-content {
  padding: var(--card-padding);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  height: 5rem;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Fix vertical centering for PC menu links */
.nav-link {
  color: var(--dwc-gray);
  font-weight: 500;
  transition: var(--transition-fast);
  white-space: nowrap;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  height: 5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.logo-text {
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

.logo-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dwc-gray);
  letter-spacing: -0.025em;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--dwc-blue);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: 1.2rem;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav-link:hover {
  color: var(--dwc-blue);
}

.nav-link.active {
  color: var(--dwc-blue);
}

/* CTA Button spacing and text wrapping fix */
.header .btn {
  margin-left: 1.5rem;
  white-space: nowrap;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--dwc-gray);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  color: var(--dwc-blue);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background-color: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
}



.mobile-menu-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--dwc-gray);
  transition: var(--transition-fast);
}

.mobile-menu-link:hover {
  color: var(--dwc-blue);
  background-color: var(--dwc-light);
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dwc-light) 0%, var(--white) 50%, var(--dwc-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 5rem;
  left: 5rem;
  width: 18rem;
  height: 18rem;
  background-color: var(--dwc-blue);
  border-radius: 50%;
  filter: blur(3rem);
  opacity: 0.05;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 5rem;
  right: 5rem;
  width: 24rem;
  height: 24rem;
  background-color: var(--dwc-green);
  border-radius: 50%;
  filter: blur(3rem);
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Footer */
.footer {
  background-color: var(--dwc-gray);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--gray-300);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--dwc-blue);
}

.footer-bottom {
  border-top: 1px solid var(--gray-600);
  margin-top: 3rem;
  padding-top: 2rem;
}

.construction-notice {
  margin-bottom: 1.5rem;
  text-align: center;
}

.construction-notice p {
  color: var(--gray-400);
  font-size: 0.75rem;
  line-height: 1.625;
  max-width: 64rem;
  margin: 0 auto;
}

.construction-notice .dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--dwc-blue);
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--dwc-blue);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--dwc-green);
  color: var(--white);
}

/* Stars for testimonials */
.text-yellow-400.fill-current {
  color: #fbbf24;
  fill: #fbbf24;
}

/* Footer logo size fix */
.footer .logo img,
.footer img[alt="DWC Logo"] {
  width: 2rem !important;
  height: 2rem !important;
}

/* Footer text alignment fix */
.footer .space-y-6 .flex.items-center.space-x-3 div h3 {
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.footer .space-y-6 .flex.items-center.space-x-3 div p {
  margin-bottom: 0;
  line-height: 1.3;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 767px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding: 0 1rem;
  }
  
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .grid {
    gap: 1.5rem;
  }
}

@media (max-width: 639px) {
  .flex-col-sm {
    flex-direction: column;
  }
  
  .text-center-sm {
    text-align: center;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--dwc-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dwc-green);
}

/* Utility Classes */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.opacity-90 { opacity: 0.9; }
.opacity-95 { opacity: 0.95; }

.transition { transition: var(--transition); }
.transition-fast { transition: var(--transition-fast); }

.cursor-pointer { cursor: pointer; }

.overflow-hidden { overflow: hidden; }

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-4-3 { aspect-ratio: 4 / 3; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.border { border: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Additional utility classes */
.w-0\.5 { width: 0.125rem; }
.h-0\.5 { height: 0.125rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.top-8 { top: 2rem; }
.left-full { left: 100%; }

/* Width and height utilities */
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }

/* Form styles */
input, select, textarea {
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px var(--dwc-blue);
}

.focus\:border-transparent:focus {
  border-color: transparent;
}

.transition-colors {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.border-gray-300 {
  border-color: var(--gray-300);
}

/* Additional positioning utilities */
.-bottom-4 { bottom: -1rem; }
.-bottom-6 { bottom: -1.5rem; }
.-left-4 { left: -1rem; }
.-left-6 { left: -1.5rem; }
.-right-4 { right: -1rem; }
.-top-4 { top: -1rem; }

/* Additional width utilities */
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }

/* Additional height utilities */
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:text-left { text-align: left; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:text-left { text-align: left; }
  .lg\:justify-start { justify-content: flex-start; }
}

/* Mobile header title - shown only on mobile in fixed header */
.mobile-header-title {
  display: none;
  text-align: center;
  flex: 1;
  margin: 0 1rem;
}

.mobile-header-title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dwc-gray);
  margin: 0;
  line-height: 1.2;
}

.mobile-header-title p {
  font-size: 0.75rem;
  color: var(--dwc-blue);
  margin: 0;
  line-height: 1.1;
}

/* Mobile-specific fixes */
@media (max-width: 1023px) {
  /* Fix page starting too close to top on mobile */
  main {
    padding-top: 6rem !important;
  }
  
  /* Show mobile header title in fixed header */
  .mobile-header-title {
    display: block;
  }
  
  /* Adjust header content layout for mobile title */
  .header-content {
    align-items: center;
    min-height: 5rem;
    display: flex;
    justify-content: space-between;
  }
  
  .logo {
    align-items: center;
    flex-shrink: 0;
  }
  
  .logo img {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  /* Hide logo text on mobile since we show it in center */
  .logo-text {
    display: none !important;
  }
  
  /* Make burger menu lines thicker */
  .mobile-menu-btn {
    flex-shrink: 0;
  }
  
  .mobile-menu-btn svg {
    stroke-width: 3;
  }
  
  /* Fix mobile CTA button centering and prevent overflow */
  .mobile-menu .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .mobile-menu .btn {
    width: 100%;
    max-width: calc(100% - 2rem);
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
    display: block;
  }
  
  /* Ensure mobile menu container doesn't cause overflow */
  .mobile-menu {
    padding: 0.5rem 0;
  }
  
  /* Add spacing between service sections on mobile */
  .services-page .mb-20 {
    margin-bottom: 3rem !important;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
  }
  
  .services-page .mb-20:last-child {
    border-bottom: none;
  }
}
