/* ===================================
   Optixcom - Modern B2B Telecom Website
   CSS Variables, Reset & Base Styles
   =================================== */

:root {
  /* Colors - Cobalt/Royal Blue Primary */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #3b82f6;
  --color-accent: #06b6d4;
  --color-accent-dark: #0891b2;

  /* Neutrals */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;
  --color-shadow: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 var(--color-shadow);
  --shadow-md: 0 4px 6px -1px var(--color-shadow);
  --shadow-lg: 0 10px 15px -3px var(--color-shadow);
  --shadow-xl: 0 20px 25px -5px var(--color-shadow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Navigation */
  --nav-height: 72px;
}

/* ===================================
   CSS Reset & Base
   =================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ===================================
   Utilities
   =================================== */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: var(--space-3xl) 0;
}

.section:nth-child(even) {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.subsection-title {
  font-size: 1.5rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

.btn-block {
  width: 100%;
}

/* ===================================
   Navigation
   =================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: 60px; /* Mobile first: 60px */
  transition: box-shadow var(--transition-base);
  /* Prevent layout shift */
  will-change: box-shadow;
}

.nav.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-left: 16px; /* Mobile: 16px */
  padding-right: 16px;
  gap: 1rem; /* Reduce gap to prevent wrapping */
}

/* Logo Link - Clickable with minimum tap target */
.nav-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 2px;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  flex-shrink: 0; /* Prevent logo from shrinking */
}

.nav-logo-link:hover {
  opacity: 0.85;
}

.nav-logo-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Responsive Logo Sizes - Optimized for PNG with retina */
.logo-image {
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain; /* Prevent distortion */
  image-rendering: -webkit-optimize-contrast; /* Crisp rendering */
  image-rendering: crisp-edges;
  transform: translateZ(0); /* Force GPU acceleration for crisp rendering */
  backface-visibility: hidden; /* Prevent blurriness */
}

/* Legacy support - keeping for backward compatibility */
.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.logo-text {
  color: var(--color-text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem; /* Reduced from 2rem to prevent wrapping */
  flex-shrink: 1; /* Allow menu to shrink slightly if needed */
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  position: relative;
  min-height: calc(100vh - 60px); /* Account for mobile nav height */
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  z-index: 0; /* Ensure hero background stays behind content */
  pointer-events: none; /* Allow clicks to pass through */
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin-bottom: var(--space-md);
  color: var(--color-text);
  animation: fadeInUp 0.6s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.trust-badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.badge-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* ===================================
   Services Section
   =================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.service-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.service-description {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.support-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  text-align: center;
  color: white;
}

.support-text {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.support-block .btn-primary {
  background: white;
  color: var(--color-primary);
}

.support-block .btn-primary:hover {
  background: var(--color-bg-alt);
}

/* ===================================
   Projects Section
   =================================== */

.pill-list {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-primary-light);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.project-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.project-content p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.project-content .btn {
  margin-top: var(--space-lg);
}

/* ===================================
   Locations Section (Where We Operate)
   =================================== */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.location-item {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.location-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.location-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.location-marker {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.location-city {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.location-desc {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.9375rem;
}

/* Coverage Map */
.coverage-map-container {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
}

.map-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.coverage-map {
  width: 100%;
  height: 520px;
  max-height: 72vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: pointer;
  transition: all var(--transition-base);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
}

.map-placeholder:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #f1f5f9 100%);
}

.map-icon {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.map-placeholder p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Leaflet map loaded state */
.coverage-map.map-loaded .map-placeholder {
  display: none;
}

/* Custom marker popup styling */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg);
}

.leaflet-popup-content {
  margin: 12px 16px;
  font-family: var(--font-family);
}

.popup-city {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.popup-desc {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

.locations-badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-lg);
}

.locations-cta {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.cta-text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.cta-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.cta-link:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary-dark);
}

/* ===================================
   About Section
   =================================== */

.about-grid {
  max-width: 900px;
  margin: 0 auto;
}

.about-intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.principles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--space-xl);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

.principle-divider {
  color: var(--color-text-light);
}

.structure-section {
  margin-top: var(--space-3xl);
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.structure-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.structure-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.structure-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  color: white;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.structure-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.structure-description {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ===================================
   Contact Section
   =================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}

.location-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.location-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.location-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.location-icon svg {
  width: 100%;
  height: 100%;
}

.location-name {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.location-address {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.location-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  color: var(--color-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ===================================
   Contact Form
   =================================== */

.contact-form-wrapper {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.form-title {
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  color: #15803d;
  margin-top: var(--space-md);
}

.form-success.show {
  display: flex;
}

.form-success svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.form-success p {
  margin: 0;
  font-weight: 500;
}

/* ===================================
   Footer
   =================================== */

.footer {
  background: var(--color-text);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
  color: white;
}

/* Footer logo - smaller version (20-24px) */
.footer-logo .logo-image-footer {
  height: 24px; /* Footer: 20-24px target */
  width: auto;
  max-width: 120px;
  display: block;
  object-fit: contain;
  /* Optional: Add filter if logo needs to be white in footer */
  /* filter: brightness(0) invert(1); */
}

/* Legacy support */
.footer-logo .logo-image {
  height: 24px;
  width: auto;
  max-width: 120px;
}

.footer-logo .logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
}

.footer-tagline {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.footer-heading {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-menu a {
  color: var(--color-text-light);
  transition: color var(--transition-fast);
  font-size: 0.9375rem;
}

.footer-menu a:hover {
  color: white;
}

.footer-contact p {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.footer-contact a {
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===================================
   Responsive Design
   =================================== */

/* Tablet/Desktop: 641px and up - Larger logo and header */
@media (min-width: 641px) {
  .nav {
    height: 72px; /* Tablet/Desktop: 72px */
  }

  .nav-container {
    padding-left: 24px; /* Desktop: 24px */
    padding-right: 24px;
    gap: 1.5rem; /* More space on larger screens */
  }



  .nav-menu {
    gap: 1.75rem; /* More space between menu items on tablet */
  }

  /* Adjust hero for taller nav */
  .hero {
    min-height: calc(100vh - 72px);
  }
}

  .nav-menu {
    gap: 2rem; /* Full spacing on desktop */
  }


/* Small mobile optimization: ≤640px */
@media (max-width: 640px) {
  .nav-container {
    gap: 0.75rem; /* Tighter spacing on small mobile */
  }

  .nav-menu {
    gap: 1rem;
  }

  /* Reduce button padding on very small screens */
  .nav-menu .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --container-padding: 1rem;
    --space-3xl: 4rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }

  .nav-menu .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .trust-badges {
    flex-direction: column;
    gap: 1rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .structure-grid {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .locations-badges {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pill-list {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .nav,
  .nav-toggle,
  .hero-cta,
  .btn,
  .contact-form,
  .footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* ===================================
   Accessibility
   =================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000;
    --color-shadow: rgba(0, 0, 0, 0.3);
  }

  .btn {
    border-width: 2px;
  }
}
