/* ==========================================================================
   Components
   ========================================================================== */



/* ---- Nav ---------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: var(--sp-3) 0;
  transition: all var(--dur-base) var(--ease-out);
}
.site-nav.is-scrolled {
  padding: var(--sp-2) 0;
  box-shadow: var(--shadow-md);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  border-radius: var(--radius-lg);
}
.site-nav .nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--route);
  color: var(--white);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark .icon { width: 19px; height: 19px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  font-family: var(--font-support);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--ink);
  transition: color var(--dur-fast) ease;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--route);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--route); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ---- Premium Mega Menu ---------------------------------------------------- */
.nav-dropdown { position: relative; }
.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--dur-fast);
}
.chevron-icon {
  width: 14px; height: 14px;
  stroke-width: 2.5;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-dropdown:hover .chevron-icon, .nav-dropdown:focus-within .chevron-icon {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px) scale(0.98);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.03);
  min-width: 480px;
  width: max-content;
  max-width: 90vw;
  opacity: 0;
  visibility: hidden;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: var(--z-dropdown);
}
.nav-dropdown:hover .mega-menu, .nav-dropdown:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px) scale(1);
  pointer-events: auto;
}

/* Internal Layout */
.mega-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
}
.mega-column {
  display: flex;
  flex-direction: column;
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  /* Critical height constraint */
  max-height: 280px; 
  overflow-y: auto;
  padding-right: 0.5rem; /* space for scrollbar */
}
/* Custom Scrollbar for mega-list */
.mega-list::-webkit-scrollbar { width: 4px; }
.mega-list::-webkit-scrollbar-track { background: var(--sand); border-radius: 4px; }
.mega-list::-webkit-scrollbar-thumb { background: var(--slate-soft); border-radius: 4px; }

.mega-list a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast);
  white-space: nowrap;
  position: relative;
}
.mega-list a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--route);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transform: scaleY(0.4);
  transition: all var(--dur-fast);
}
.mega-list a:hover, .mega-list a:focus {
  background: var(--sand);
  color: var(--route);
  padding-left: 1rem;
}
.mega-list a:hover::before, .mega-list a:focus::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-actions { display: flex; align-items: center; gap: var(--sp-5); }
.nav-call {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-support); font-weight: 600; font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap; /* Prevent phone wrap */
  transition: color var(--dur-fast);
}
.nav-call:hover { color: var(--route); }
.nav-call .icon { width: 16px; height: 16px; color: var(--route); }

/* Premium Header CTA */
.btn-signature {
  background: linear-gradient(135deg, var(--route), var(--route-dark));
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(61,90,128,0.25);
  transition: all var(--dur-fast) ease;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.btn-signature:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(61,90,128,0.35);
  background: linear-gradient(135deg, var(--route-dark), var(--route));
}


.nav-toggle {
  display: none;
  background: none; border: none; padding: 0.4rem;
  color: var(--ink);
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-call span { display: none; }
}
@media (max-width: 400px) {
  .brand { font-size: 1rem; white-space: nowrap; }
}

.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 300ms;
}
.mobile-menu-overlay.is-open {
  opacity: 1; pointer-events: auto; visibility: visible;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 85vw; max-width: 400px;
  background: var(--ink);
  z-index: var(--z-overlay);
  display: flex; flex-direction: column;
  padding: var(--sp-5) var(--container-pad);
  padding-bottom: env(safe-area-inset-bottom, var(--sp-5));
  transform: translateX(100%);
  opacity: 0; pointer-events: none; visibility: hidden;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 300ms;
  overflow-y: auto;
}
.mobile-menu.is-open { 
  transform: translateX(0); 
  opacity: 1; pointer-events: auto; visibility: visible;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}
.mobile-menu .close-row { display: flex; justify-content: flex-end; margin-bottom: var(--sp-6); flex-shrink: 0; }
.mobile-menu .close-row button { background: none; border: none; color: var(--canvas); min-height: 44px; min-width: 44px; display: grid; place-items: center; }
.mobile-menu .close-row .icon { width: 26px; height: 26px; }

.mobile-menu-links { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.mobile-menu-links > li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu-links a, .mobile-submenu-toggle {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--canvas); font-weight: 600;
  padding: 0.75rem 0;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; background: none; border: none;
  min-height: 44px;
}
.mobile-submenu-toggle .icon { width: 20px; height: 20px; transition: transform var(--dur-fast); }
.mobile-submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--route); }

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-in-out);
  padding-left: var(--sp-4);
  display: flex; flex-direction: column;
}
.mobile-submenu li a {
  font-size: 1.15rem;
  font-family: var(--font-support);
  font-weight: 400;
  color: var(--slate-soft);
  padding: 0.5rem 0;
  border: none;
}
.mobile-submenu li a:hover, .mobile-submenu li a:focus { color: var(--route); }
.mobile-menu-cta { margin-top: auto; padding-top: var(--sp-6); flex-shrink: 0; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-support);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  transform: translateZ(0); /* Hardware acceleration */
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 90, 128, 0.15);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn:focus-visible {
  outline: 3px solid var(--route);
  outline-offset: 4px;
}
.btn-block { width: 100%; display: flex; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--accent-red); color: var(--white); box-shadow: 0 10px 24px rgba(215,38,30,0.28); }
.btn-primary:hover { background: #B21F18; } /* darker red */
.btn-secondary { background: transparent; color: var(--route); border-color: var(--route); }
.btn-secondary:hover { background: var(--route); color: var(--white); }
/* Ghost: for use on dark backgrounds (cta-band, section--dark, section--route) */
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); }
/* White: solid white pill, for use on route/dark backgrounds needing a strong contrast CTA */
.btn-white { background: var(--white); color: var(--accent-red); }
.btn-white:hover { background: var(--sand); }
.btn-xl { padding: 1.15rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; height: auto; padding-block: 1rem; } }
.btn-secondary:hover.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}
.glass::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.glass--dark {
  background: var(--glass-bg-dark);
  border-color: rgba(255,255,255,0.12);
}
.glass--dark::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
}

/* Signature CTA: a dashed "route" is drawn inside the button; a small
   truck icon rides it on hover/focus — the brand signature motion. */
.btn-signature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-signature::before {
  content: '';
  position: absolute; left: 14%; right: 14%; top: 50%;
  height: 0;
  border-top: 2px dashed rgba(255,255,255,0.55);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}
.btn-signature:hover::before, .btn-signature:focus-visible::before { opacity: 1; }
.btn-signature .truck-ride {
  position: absolute; left: 10%; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: 0;
  transition: opacity var(--dur-fast) ease;
}
.btn-signature:hover .truck-ride,
.btn-signature:focus-visible .truck-ride { opacity: 1; animation: truckDrive 900ms var(--ease-in-out) infinite; }

/* ---- Chips / badges --------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-support); font-weight: 600; font-size: 0.82rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--sand-deep);
  color: var(--ink);
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.chip:hover { border-color: var(--route); transform: translateY(-2px); }
.chip-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-support); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: var(--radius-pill);
  background: var(--sky-glass); color: var(--route-dark);
}

/* ---- Cards -------------------------------------------------------------- */

.service-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) ease;
  height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--sand-deep); border-color: var(--sky-glass); }
.service-card .icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--sand); color: var(--route);
  display: grid; place-items: center;
}
.service-card .icon-wrap .icon { width: 26px; height: 26px; }
.service-card ul { display: flex; flex-direction: column; gap: 0.45rem; margin: var(--sp-2) 0; }
.service-card li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--slate); }
.service-card li .icon { width: 15px; height: 15px; color: var(--route); flex-shrink: 0; }
.service-card .card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-support); font-weight: 700; color: var(--route); font-size: 0.9rem;
}
.service-card .card-link .icon { width: 15px; height: 15px; transition: transform var(--dur-fast) ease; }
.service-card:hover .card-link .icon { transform: translateX(4px); }

.stat-card {
  text-align: center;
  padding: var(--sp-4);
}
.stat-card .stat-num {
  font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem);
  color: var(--route); font-weight: 600; line-height: 1;
}
.stat-card .stat-label {
  font-family: var(--font-support); font-size: 0.85rem; color: var(--slate);
  margin-top: 0.4rem;
}

.feature-row { display: flex; gap: var(--sp-3); align-items: flex-start; }
.feature-row .icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--route); color: var(--white);
  display: grid; place-items: center; flex-shrink: 0;
}
.feature-row .icon-wrap .icon { width: 22px; height: 22px; }
.feature-row h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.feature-row p { font-size: 0.92rem; margin-bottom: 0; }

/* ---- Testimonial ---------------------------------------------------------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card .quote-mark { color: var(--sky-glass); width: 30px; height: 30px; margin-bottom: var(--sp-2); }
.testimonial-card .stars { display: flex; gap: 0.2rem; color: var(--route); margin-top: var(--sp-3); }
.testimonial-card .stars .icon { width: 15px; height: 15px; fill: var(--route); }
.testimonial-card .name { font-family: var(--font-support); font-weight: 700; margin-top: var(--sp-2); }
.testimonial-card .role { font-size: 0.82rem; color: var(--slate-soft); }
.testimonial-card .placeholder-tag {
  display: inline-block; margin-top: var(--sp-2);
  font-size: 0.72rem; font-family: var(--font-support); font-weight: 700;
  color: var(--error); letter-spacing: 0.04em; text-transform: uppercase;
}

/* ---- Timeline ------------------------------------------------------------- */
.timeline { position: relative; padding-left: var(--sp-6); }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px;
  width: 2px; background: repeating-linear-gradient(to bottom, var(--route) 0 8px, transparent 8px 16px);
}
.timeline-item { position: relative; padding-bottom: var(--sp-6); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--route); box-shadow: 0 0 0 4px var(--canvas);
}
.timeline-item .year { font-family: var(--font-support); font-weight: 700; color: var(--route); font-size: 0.85rem; }

/* ---- Process steps ---------------------------------------------------------- */
.process-step {
  position: relative;
  padding: var(--sp-5);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.process-step .step-num {
  font-family: var(--font-display); font-size: 2.4rem; color: var(--sky-glass);
  line-height: 1; margin-bottom: var(--sp-2);
}

/* ==========================================================================
   Cinematic Hero — shared by index.php, services.php, service-areas.php
   (previously duplicated inline only in index.php, leaving other pages
   using the same markup completely unstyled)
   ========================================================================== */
.hero-cinematic {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink); /* Fallback */
}
.hero-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.4) 0%, rgba(16, 24, 40, 0.85) 100%);
  z-index: var(--z-base);
}
.hero-content-wrapper {
  position: relative;
  z-index: var(--z-above);
  width: 100%;
  padding-top: var(--sp-7); /* Offset for header */
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;
}
.premium-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
.premium-headline .line { overflow: hidden; } /* For GSAP reveal */
.premium-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 50ch;
  margin-bottom: var(--sp-6);
}
.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.hero-actions .btn-secondary.glass {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.hero-actions .btn-secondary.glass:hover { background: rgba(255, 255, 255, 0.2); }
.hero-guarantees {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--font-support);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.hero-guarantees span { display: flex; align-items: center; gap: 0.4rem; }
.hero-guarantees .sep { width: 4px; height: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 50%; }
.hero-guarantees .icon { width: 16px; height: 16px; color: var(--sand); }
@media (max-width: 768px) {
  .hero-cinematic { min-height: 600px; }
  .hero-actions { flex-direction: column; width: 100%; gap: var(--sp-3); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-guarantees .sep { display: none; }
  .hero-guarantees { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* ---- FAQ accordion -------------------------------------------------------- */
.accordion-item {
  border-bottom: 1px solid var(--sand-deep);
}
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  background: none; border: none; text-align: left;
  padding: var(--sp-4) 0.2rem;
  font-family: var(--font-support); font-weight: 600; font-size: 1.02rem;
  color: var(--ink);
}
.accordion-trigger .icon { width: 20px; height: 20px; color: var(--route); flex-shrink: 0; transition: transform var(--dur-base) var(--ease-out); }
.accordion-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
}
.accordion-panel-inner { padding: 0 0.2rem var(--sp-4); color: var(--slate); }

/* ---- Forms (Phase 2.6 Corrections) ------------------------------------------------------------------ */
.form-field { position: relative; margin-bottom: var(--sp-2); }
.form-field label {
  position: absolute; left: 1rem; top: 1.15rem; pointer-events: none;
  font-family: var(--font-support); font-weight: 600;
  font-size: 0.85rem; color: var(--slate-soft);
  transform-origin: left top;
  transition: transform var(--dur-fast) ease, color var(--dur-fast) ease;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 1.55rem 1rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand-deep);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--ink);
  font-family: var(--font-support); font-size: 0.95rem; font-weight: 500;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}
/* Custom Selects and Dates */
.form-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233D5A80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; transition: opacity var(--dur-fast) ease; }
.form-field input[type="date"]:focus::-webkit-calendar-picker-indicator { opacity: 1; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  background: var(--white);
  border-color: var(--route);
  box-shadow: 0 0 0 4px rgba(61,90,128,0.1);
  outline: none;
}
.form-field input:focus ~ label, 
.form-field select:focus ~ label, 
.form-field textarea:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:not(:placeholder-shown) ~ label,
.form-field input[type="date"] ~ label,
.form-field.is-filled label {
  transform: translateY(-0.8rem) scale(0.75);
  color: var(--route);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: var(--error); font-size: 0.8rem; margin-top: 0.3rem; display: none; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--error); background-color: #fff0f0; }
.form-field.is-valid input, .form-field.is-valid select, .form-field.is-valid textarea { border-color: #28a745; }
.form-field.has-error .form-error { display: block; }
.form-status {
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  font-family: var(--font-support); font-weight: 600; font-size: 0.9rem;
  margin-bottom: var(--sp-4); display: none;
}
.form-status.is-success { display: block; background: rgba(63,122,92,0.12); color: var(--success); }
.form-status.is-error { display: block; background: rgba(178,76,76,0.12); color: var(--error); }

/* ---- Legal pages (Privacy Policy, Terms) --------------------------------------- */
.legal-content h2 { font-size: var(--fs-h3); margin-top: var(--sp-6); margin-bottom: var(--sp-2); }
.legal-content h2:first-of-type { margin-top: var(--sp-3); }
.legal-content p, .legal-content li { color: var(--slate); line-height: 1.7; }
.legal-content ul { padding-left: 1.2rem; margin-bottom: var(--sp-3); }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--route); font-weight: 600; }

/* ---- Gallery ------------------------------------------------------------------ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.gallery-filter {
  font-family: var(--font-support); font-weight: 600; font-size: 0.85rem;
  padding: 0.55rem 1.1rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand-deep); background: var(--white); color: var(--ink);
  transition: all var(--dur-fast) ease;
}
.gallery-filter.is-active, .gallery-filter:hover { background: var(--route); border-color: var(--route); color: var(--white); }

.masonry {
  columns: 3 240px;
  column-gap: var(--sp-4);
}
.masonry-item {
  break-inside: avoid; margin-bottom: var(--sp-4);
  border-radius: var(--radius-md); overflow: hidden;
  position: relative; cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out);
}
.masonry-item:hover { transform: translateY(-4px); }
.masonry-item img { width: 100%; transition: transform var(--dur-slow) var(--ease-out); }
.masonry-item:hover img { transform: scale(1.06); }
.masonry-item .cap {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: var(--sp-3);
  background: linear-gradient(to top, rgba(27,34,43,0.75), transparent);
  color: var(--white); font-family: var(--font-support); font-size: 0.82rem; font-weight: 600;
  opacity: 0; transition: opacity var(--dur-fast) ease;
}
.masonry-item:hover .cap { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(27,34,43,0.92);
  display: none; align-items: center; justify-content: center;
  padding: var(--sp-5);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 85vh; border-radius: var(--radius-md); }
.lightbox-close {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  background: rgba(255,255,255,0.12); border: none; color: var(--white);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
}

@media (max-width: 900px) { .masonry { columns: 2 180px; } }
@media (max-width: 560px) { .masonry { columns: 1; } }

/* ---- Breadcrumb -------------------------------------------------------------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  font-family: var(--font-support); font-size: 0.82rem; color: var(--slate-soft);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--route); }
.breadcrumb .sep { opacity: 0.5; }

/* ---- CTA band ------------------------------------------------------------------ */
.cta-band {
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-6);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { color: var(--canvas); }
.cta-band p { color: var(--slate-soft); }
.cta-band .cta-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-4); }
.cta-band .route-line { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; pointer-events: none; }
.cta-band--light { background: var(--white); box-shadow: var(--shadow-md); }
.cta-band--light h2 { color: var(--ink); }
.cta-band--light p { color: var(--slate); }

/* ---- Footer ------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--ink) 0%, #111822 100%);
  color: var(--slate-soft);
  padding-block: var(--sp-8) var(--sp-5);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--route), transparent);
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--canvas);
  font-family: var(--font-display);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--slate-soft);
  text-decoration: none;
  transition: all var(--dur-fast);
  width: fit-content;
}
.footer-links a:hover {
  color: var(--route);
  transform: translateX(3px);
}

/* Footer Social Icons */
.social-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--canvas);
  transition: all var(--dur-fast);
}
.social-icon:hover {
  background: var(--route);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(61, 90, 128, 0.35);
}
.social-icon .icon { width: 18px; height: 18px; }

/* Mobile Accordion Styles */
@media (max-width: 640px) {
  .footer-col:not(.brand-col) .footer-heading {
    position: relative;
    padding: 1rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-col:not(.brand-col) .footer-heading::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform var(--dur-fast);
  }
  .footer-col:not(.brand-col).is-open .footer-heading::after {
    transform: rotate(45deg);
  }
  .footer-col:not(.brand-col) .footer-links {
    display: none;
    padding: 1rem 0;
  }
  .footer-col:not(.brand-col).is-open .footer-links {
    display: flex;
  }
}


/* ---- Cards ----------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61,90,128,0.1);
}
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.glass:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
}

/* ---- Floating quick-action (Phase 2.6 Corrections) --------------------------------------------- */
.floating-cta {
  position: fixed; right: 32px; bottom: 32px; z-index: var(--z-toast);
  display: flex; align-items: center; gap: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.4) inset;
  border-radius: var(--radius-pill);
  padding: 0.5rem;
  color: var(--route);
  overflow: hidden;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), max-width var(--dur-base) var(--ease-out);
  max-width: 52px;
  opacity: 0; pointer-events: none;
  text-decoration: none;
}
.floating-cta.is-visible { opacity: 1; pointer-events: auto; }
.floating-cta:hover, .floating-cta.is-expanded { max-width: 220px; background: var(--white); transform: translateY(-2px); }
.floating-cta .icon-wrap { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--route); color: var(--white); }
.floating-cta .icon { width: 18px; height: 18px; }
.floating-cta .text {
  font-family: var(--font-support); font-weight: 700; font-size: 0.95rem;
  white-space: nowrap; padding: 0 1.2rem 0 0.6rem; opacity: 0; transition: opacity var(--dur-fast) ease;
}
.floating-cta:hover .text, .floating-cta.is-expanded .text { opacity: 1; transition-delay: 100ms; }
@keyframes pulseRingSoft { 0% { box-shadow: 0 0 0 0 rgba(61,90,128,0.4); } 70% { box-shadow: 0 0 0 15px rgba(61,90,128,0); } 100% { box-shadow: 0 0 0 0 rgba(61,90,128,0); } }
.floating-cta .icon-wrap { animation: pulseRingSoft 12s infinite; }
@media (max-width: 640px) { .floating-cta { right: env(safe-area-inset-right, var(--sp-4)); bottom: env(safe-area-inset-bottom, var(--sp-4)); } }

/* ---- Quote Section & Popup (Phase 2.5) ---------------------------------------- */
.quote-section {
  background: linear-gradient(180deg, var(--canvas) 0%, var(--sand) 100%);
  padding: var(--sp-8) 0;
  border-top: 1px solid var(--sand-deep);
  scroll-margin-top: 120px;
}
.quote-section .grid { align-items: stretch; gap: var(--sp-7); }
.quote-section-info { display: flex; flex-direction: column; justify-content: center; }
.quote-section-info ul { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.quote-section-info li { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-support); font-weight: 600; color: var(--slate); }
.quote-section-info li .icon { color: var(--route); width: 18px; height: 18px; }

.quote-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-overlay {
  position: fixed; inset: 0; z-index: var(--z-popup);
  background: rgba(27, 34, 43, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.popup-overlay.is-open { opacity: 1; pointer-events: auto; }
.popup-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  max-height: 95vh; overflow-y: auto;
  padding: var(--sp-5);
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.4) inset;
  transform: translateY(40px) scale(0.95) rotateX(10deg);
  transform-origin: center bottom;
  opacity: 0;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 400ms ease;
}
.popup-overlay.is-open .popup-content { transform: translateY(0) scale(1) rotateX(0deg); opacity: 1; }
.popup-overlay.is-closing .popup-content { transform: translateY(-20px) scale(0.98); opacity: 0; transition: transform 400ms var(--ease-out), opacity 300ms ease; }
.popup-close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  background: var(--sand); border: none; width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.popup-close:hover { background: var(--sand-deep); transform: scale(1.05); }

.quote-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-3); margin-top: var(--sp-2);
}
.quote-form-grid .full-w { grid-column: 1 / -1; }
@media (max-width: 640px) { .quote-form-grid { grid-template-columns: 1fr; } }

.form-success-state {
  display: none; text-align: center; padding: var(--sp-5) 0;
}
.form-success-state.is-active { display: block; animation: scaleIn var(--dur-base) var(--ease-out); }
.form-success-state .icon-wrap {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(63,122,92,0.1); color: var(--success);
  display: grid; place-items: center; margin: 0 auto var(--sp-4);
  position: relative;
}
.form-success-state .icon-wrap svg circle {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: drawCircle 600ms var(--ease-out) forwards 200ms;
}
.form-success-state .icon-wrap svg path {
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: drawCircle 400ms var(--ease-out) forwards 500ms;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
.form-success-state .icon { width: 32px; height: 32px; }


/* ==========================================================================
   Page Hero & Breadcrumb Bar (Phase 4 Redesign)
   ========================================================================== */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding-block: var(--sp-8);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.6) 0%, rgba(16, 24, 40, 0.8) 100%);
  z-index: var(--z-base);
}
.page-hero-content {
  position: relative;
  z-index: var(--z-above);
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.page-hero-content .eyebrow {
  justify-content: center;
  color: var(--sand);
  border-color: rgba(255,255,255,0.2);
}
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}
.page-hero-content .lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 65ch;
  margin: 0;
}
.page-hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-2);
}
.page-hero-actions .btn {
  /* Ensure buttons are legible on dark overlays */
}
.page-hero-actions .chip {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.breadcrumb-bar {
  display: none !important;
}
.breadcrumb-bar .breadcrumb {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .page-hero { min-height: 320px; padding-block: var(--sp-6); }
}
/* ==========================================================================
   Phase 2.8 Premium Refinements
   ========================================================================== */

/* ==========================================================================
   Phase 2.8 Premium Refinements
   ========================================================================== */

/* ---- Process Section (How It Works) ---- */
.process-container {
  position: relative;
  width: 100%;
}
.process-connector {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 150px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.route-path-bg {
  fill: none;
  stroke: rgba(0,0,0,0.04);
  stroke-width: 4px;
  stroke-dasharray: 8 8;
}
.route-path-animated {
  fill: none;
  stroke: var(--route);
  stroke-width: 4px;
  stroke-linecap: round;
  /* GSAP will animate stroke-dashoffset */
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.process-grid {
  position: relative;
  z-index: var(--z-above);
  gap: var(--sp-4);
}
.process-step.glass-premium {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255,255,255,0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}
.process-step.glass-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(61, 90, 128, 0.12), inset 0 1px 0 rgba(255,255,255,1);
  border-color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.85);
}
.process-step .step-watermark {
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: rgba(61, 90, 128, 0.04);
  line-height: 1;
  pointer-events: none;
  transition: all 500ms ease;
  z-index: 0;
}
.process-step.glass-premium:hover .step-watermark {
  color: rgba(61, 90, 128, 0.08);
  transform: scale(1.05) rotate(-5deg);
}
.process-content {
  position: relative;
  z-index: var(--z-base);
}
.process-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: var(--sp-2);
  color: var(--ink);
}
.process-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Responsive Process Grid */
@media (max-width: 1024px) {
  .process-connector { display: none; }
  .grid-4.process-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}
@media (max-width: 767px) {
  .grid-4.process-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .process-step.glass-premium { padding: var(--sp-5) var(--sp-4); }
}

/* ---- Service Areas Section ---- */
/* ---- Redesigned Service Areas Interactive Map Section ---- */
.service-areas-section {
  position: relative;
  background: radial-gradient(circle at 100% 100%, #151e2e 0%, var(--ink) 100%);
  overflow: visible; /* To allow tooltips to float nicely */
  padding-block: var(--sp-8);
}

.section-divider-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: var(--z-base);
  pointer-events: none;
}
.section-divider-top svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
}

/* Highway routes styling */
.highway-route {
  fill: none;
  stroke: var(--route-light);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.25;
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

.highway-route.active {
  opacity: 0.5;
  stroke-width: 2px;
}

/* Base contour shape representing valley limits */
.map-contour {
  fill: url(#valley-grad);
  opacity: 0.05;
  filter: blur(10px);
}

/* Node groups */
.map-node {
  cursor: pointer;
  outline: none;
}

.node-dot {
  fill: var(--route-light);
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5px;
  transition: fill 0.3s var(--ease-out), transform 0.3s var(--ease-out), stroke 0.3s var(--ease-out);
  transform-origin: center;
}

.map-node:hover .node-dot,
.map-node.is-active .node-dot {
  fill: var(--sand);
  stroke: var(--white);
  transform: scale(1.3);
}

.node-pulse {
  fill: none;
  stroke: var(--route-light);
  stroke-width: 1px;
  opacity: 0;
  transform-origin: center;
  animation: mapPulse 3s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.map-node:hover .node-pulse,
.map-node.is-active .node-pulse {
  stroke: var(--sand);
}

@keyframes mapPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* City Labels in SVG */
.node-label {
  font-family: var(--font-support);
  font-size: 10.5px;
  font-weight: 600;
  fill: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: fill 0.3s ease, opacity 0.3s ease, font-size 0.3s ease;
  user-select: none;
}

.map-node:hover .node-label,
.map-node.is-active .node-label {
  fill: var(--white);
  opacity: 1;
  font-size: 11px;
}

/* Highlight Phoenix core specifically */
.map-node[data-city="Phoenix"] .node-dot {
  fill: var(--route);
  stroke: var(--white);
  stroke-width: 2px;
}
.map-node[data-city="Phoenix"]:hover .node-dot,
.map-node[data-city="Phoenix"].is-active .node-dot {
  fill: var(--sand);
}

/* Tooltip */
.map-tooltip {
  position: absolute;
  z-index: var(--z-dropdown);
  background: rgba(27, 34, 43, 0.85);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -100%) translateY(-15px) scale(0.95);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 250ms;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(61, 90, 128, 0.2);
  width: 240px;
}

.map-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -100%) translateY(-15px) scale(1);
}

.map-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(27, 34, 43, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tooltip-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.2;
}

.tooltip-desc {
  font-family: var(--font-support);
  font-size: 0.82rem;
  color: var(--slate-soft);
  line-height: 1.45;
  margin: 0;
}

/* Left side details */
.service-areas-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-areas-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--white);
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}

.service-areas-content p {
  color: var(--slate-soft);
  font-size: var(--fs-lead);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: var(--sp-5);
}

/* Trust Indicators */
.map-trust-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--slate-soft);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-support);
}

.map-trust-badge .icon {
  width: 20px;
  height: 20px;
  color: var(--sand);
  flex-shrink: 0;
}

.map-trust-badge span {
  line-height: 1.4;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .service-areas-section {
    padding-block: var(--sp-7);
  }
  .service-areas-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .service-areas-content {
    align-items: center;
    text-align: center;
  }
  .service-areas-content p {
    margin-inline: auto;
  }
  .map-wrapper {
    max-width: 500px;
  }
  .map-trust-badge {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .map-wrapper {
    max-width: 100%;
  }
  .node-label {
    display: none; /* Hide labels on mobile to avoid clutter, using tooltip only */
  }
  .map-node[data-city="Phoenix"] .node-label,
  .map-node[data-city="Tempe"] .node-label,
  .map-node[data-city="Mesa"] .node-label,
  .map-node[data-city="Scottsdale"] .node-label {
    display: block; /* Show only major cities labels on mobile */
  }
}


/* ---- Phase 3 Services & Service Areas CSS ---- */
.service-card-premium {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  text-align: left;
}
.service-card-premium h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
  color: var(--ink);
}
.service-card-premium .service-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}
.service-card-premium .service-highlights {
  list-style: none;
  padding: 0;
  margin: var(--sp-2) 0 var(--sp-4) 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.service-card-premium .service-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card-premium .service-highlights .icon {
  color: var(--route);
  width: 16px;
  height: 16px;
}
.service-card-premium .service-footer {
  margin-top: auto;
}
.service-icon-wrapper {
  background: var(--sand);
  color: var(--route);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-2);
}

.city-card {
  display: flex;
  flex-direction: column;
}
.city-card h3 {
  color: var(--ink);
}
.city-card-small {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.city-card-small h4 {
  margin: 0;
}



/* ---- Mobile Optimization Sprint & Hero Optimization ---- */
@media (max-width: 991px) {
  /* Navigation & Header Balance */
  .site-nav { padding: var(--sp-2) 0 !important; }
  .site-nav .nav-inner { padding: 0.5rem 1rem !important; }
  .nav-actions { gap: var(--sp-3) !important; }
  .brand { font-size: 1rem !important; gap: 0.4rem !important; }
  .brand-mark { width: 28px !important; height: 28px !important; }
  .brand-mark .icon { width: 16px !important; height: 16px !important; }
  .btn-signature { padding: 0.6rem 1.2rem !important; font-size: 0.85rem !important; min-height: 44px !important; }

  /* Global Grids */
  .hero-inner, .contact-grid, .footer-grid, .services-grid, .team-grid, .process-grid, .about-grid {
    grid-template-columns: 1fr !important;
    gap: var(--sp-5) !important;
  }
  
  /* Hero Cinematic Overrides */
  .hero-cinematic {
    height: auto !important; 
    min-height: auto !important; /* Remove fixed 100vh constraint */
    padding-top: 130px !important; /* Generous breathing room under fixed header */
    padding-bottom: var(--sp-7) !important;
  }
  
  /* Force the hero grid to stack on mobile/tablet */
  .hero-cinematic .grid-2 {
    grid-template-columns: 1fr !important;
    gap: var(--sp-6) !important;
  }
  
  /* Typography Scaling */
  .hero-content h1 {
    font-size: clamp(2.1rem, 8vw, 3rem) !important; /* Slightly dialed back max size for cleaner wrapping */
    line-height: 1.15 !important;
    margin-bottom: var(--sp-3) !important;
  }
  .hero-content .premium-lead {
    font-size: 1.1rem !important;
    margin-bottom: var(--sp-4) !important;
  }
  
  /* Trust Badges layout */
  .hero-guarantees {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--sp-4) !important; /* More vertical separation */
    margin-top: var(--sp-5) !important; /* Increased distance from the paragraph */
  }
  .hero-guarantees .sep {
    display: none !important; 
  }
  .hero-guarantees span {
    font-size: 1.05rem !important; /* Highly legible on phones */
  }
  .hero-guarantees .icon {
    width: 20px !important;
    height: 20px !important;
  }
  
  /* Lead Form adjustments */
  .hero-form-wrapper {
    margin-top: var(--sp-6) !important; /* Strong visual break from the text content above */
    padding: var(--sp-6) var(--sp-5) !important; /* Balanced internal breathing room */
  }

  /* Form Elements */
  .form-field input, .form-field select, .form-field textarea {
    width: 100% !important;
    font-size: 16px !important; 
    padding: 0.9rem 1rem !important;
  }
  .form-field { margin-bottom: var(--sp-4); }
  
  /* Button Touch Targets */
  .btn {
    min-height: 48px !important; 
    display: inline-flex;
    justify-content: center;
  }
  
  /* Global Sections */
  .section {
    padding-block: var(--sp-6) !important;
  }
}
