/* ==========================================================================
   North Canyon Roofing — Design System
   Built by ASD Digital
   Fonts: Fraunces (display) + Inter (body)
   Palette: Desert-informed premium (navy + gold + terracotta + sand)
   ========================================================================== */

/* -------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------- */
:root {
  /* Brand color — desert-informed, not default navy/gray */
  --c-navy:        #0A1A2F;   /* primary — trust, depth, night sky */
  --c-navy-800:    #0F2238;
  --c-navy-700:    #15304c;
  --c-navy-600:    #1d3f62;

  --c-gold:        #C9A24C;   /* accent 1 — prestige, AZ sun (matches Aditya's ASD brand) */
  --c-gold-light:  #E0BF72;
  --c-gold-dark:   #A8862F;

  --c-terracotta:  #B5563C;   /* accent 2 — desert, AZ tile roofs */
  --c-terracotta-light: #D27759;
  --c-terracotta-dark: #8D3F2B;

  --c-sand:        #F3ECE0;   /* warm neutral bg */
  --c-sand-deep:   #E8DDC8;
  --c-stone:       #E6E2DA;   /* cool neutral */
  --c-stone-deep:  #C8C2B5;

  --c-white:       #FFFFFF;
  --c-off-white:   #FAF7F2;

  --c-charcoal:    #1B1F24;   /* body text */
  --c-ink:         #2A3038;
  --c-slate:       #5A6271;   /* secondary text */
  --c-muted:       #8A909C;   /* tertiary text */

  --c-success:     #2E7D57;
  --c-warning:     #E09A3F;
  --c-danger:      #B3382A;

  --c-border:      rgba(10, 26, 47, 0.12);
  --c-border-strong: rgba(10, 26, 47, 0.22);

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-xs:   0.75rem;    /* 12 */
  --fs-sm:   0.875rem;   /* 14 */
  --fs-base: 1rem;       /* 16 */
  --fs-md:   1.125rem;   /* 18 */
  --fs-lg:   1.25rem;    /* 20 */
  --fs-xl:   1.5rem;     /* 24 */
  --fs-2xl:  1.875rem;   /* 30 */
  --fs-3xl:  2.25rem;    /* 36 */
  --fs-4xl:  3rem;       /* 48 */
  --fs-5xl:  3.75rem;    /* 60 */
  --fs-6xl:  4.5rem;     /* 72 */
  --fs-7xl:  5.75rem;    /* 92 */

  --lh-tight: 1.08;
  --lh-snug:  1.2;
  --lh-base:  1.55;
  --lh-loose: 1.75;

  --ls-tight:  -0.03em;
  --ls-normal:  0;
  --ls-wide:    0.02em;
  --ls-widest:  0.18em;

  /* Spacing — 8pt grid */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-14: 3.5rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-28: 7rem;
  --s-32: 8rem;

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-pill: 9999px;

  /* Shadows */
  --sh-sm:  0 1px 2px rgba(10, 26, 47, 0.06), 0 1px 4px rgba(10, 26, 47, 0.04);
  --sh-md:  0 4px 10px -2px rgba(10, 26, 47, 0.08), 0 8px 24px -6px rgba(10, 26, 47, 0.08);
  --sh-lg:  0 12px 32px -8px rgba(10, 26, 47, 0.14), 0 20px 48px -12px rgba(10, 26, 47, 0.1);
  --sh-xl:  0 24px 56px -12px rgba(10, 26, 47, 0.22);
  --sh-gold: 0 10px 30px -10px rgba(201, 162, 76, 0.55);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:  150ms;
  --dur-base:  280ms;
  --dur-slow:  520ms;
  --dur-xslow: 900ms;

  /* Layout */
  --container-narrow: 68rem;     /* 1088px */
  --container:        78rem;     /* 1248px */
  --container-wide:   88rem;     /* 1408px */
  --gutter:           clamp(1rem, 4vw, 2rem);

  /* Z-index */
  --z-base:     1;
  --z-sticky:   50;
  --z-header:   90;
  --z-overlay:  100;
  --z-modal:    200;
  --z-toast:    300;

  /* Header height */
  --header-h: 96px;
}

/* -------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-charcoal);
  background: var(--c-off-white);
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
}

img, video, svg, picture { display: block; max-width: 100%; height: auto; }
img, video { object-fit: cover; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-expo);
}
a:hover { color: var(--c-terracotta); }

button { font: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }

ul, ol { list-style: none; padding: 0; }

::selection { background: var(--c-gold); color: var(--c-navy); }

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------
   3. Typography
   ------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--c-navy);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

h1, .h1 {
  font-size: clamp(2.4rem, 6vw, var(--fs-6xl));
  line-height: var(--lh-tight);
  font-weight: 500;
}
h2, .h2 { font-size: clamp(2rem, 4.5vw, var(--fs-4xl)); }
h3, .h3 { font-size: clamp(1.5rem, 3vw, var(--fs-2xl)); }
h4, .h4 { font-size: var(--fs-xl); }
h5, .h5 { font-size: var(--fs-lg); }
h6, .h6 { font-size: var(--fs-md); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--c-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--c-terracotta);
}
.eyebrow--gold { color: var(--c-gold); }
.eyebrow--gold::before { background: var(--c-gold); }
.eyebrow--light { color: var(--c-gold-light); }
.eyebrow--light::before { background: var(--c-gold-light); }

.lead {
  font-size: clamp(var(--fs-md), 1.9vw, var(--fs-lg));
  line-height: var(--lh-base);
  color: var(--c-ink);
  max-width: 58ch;
}

.text-accent { color: var(--c-gold); }
.text-terracotta { color: var(--c-terracotta); }
.text-muted { color: var(--c-slate); }
.text-navy { color: var(--c-navy); }
.text-white { color: var(--c-white); }

.script-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--c-gold);
}

/* -------------------------------------------------------
   4. Layout primitives
   ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section {
  padding-block: clamp(4rem, 10vw, var(--s-32));
  position: relative;
}
.section--sm { padding-block: clamp(3rem, 7vw, var(--s-20)); }
.section--tight { padding-block: var(--s-12); }

.section--navy {
  background: var(--c-navy);
  color: var(--c-sand);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--c-white); }
.section--navy a { color: var(--c-gold-light); }

.section--sand { background: var(--c-sand); }
.section--stone { background: var(--c-stone); }

.section-header {
  max-width: 42rem;
  margin-bottom: var(--s-14);
}
.section-header--center {
  text-align: center;
  margin-inline: auto;
}
.section-header--center .eyebrow {
  justify-content: center;
}
.section-header p {
  margin-top: var(--s-5);
  color: var(--c-slate);
  font-size: var(--fs-md);
  line-height: var(--lh-base);
}
.section--navy .section-header p { color: rgba(243, 236, 224, 0.75); }

.grid { display: grid; gap: var(--s-8); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s-2); }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }
.gap-8 { gap: var(--s-8); }

/* -------------------------------------------------------
   5. Buttons
   ------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-gold);
  --btn-color: var(--c-navy);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-color);
  border: 1.5px solid var(--btn-border);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo),
              background var(--dur-fast) var(--ease-out-expo),
              color var(--dur-fast) var(--ease-out-expo),
              border-color var(--dur-fast) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-gold);
  color: var(--c-navy);
}
.btn:active { transform: translateY(0); }
.btn svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.btn:hover svg { transform: translateX(3px); }

.btn--lg {
  padding: 1.15rem 2.1rem;
  font-size: var(--fs-base);
}
.btn--sm { padding: 0.65rem 1.1rem; font-size: var(--fs-xs); }

.btn--primary { --btn-bg: var(--c-gold); --btn-color: var(--c-navy); }

.btn--dark {
  --btn-bg: var(--c-navy);
  --btn-color: var(--c-white);
  --btn-border: var(--c-navy);
}
.btn--dark:hover { color: var(--c-gold); box-shadow: var(--sh-lg); }

.btn--terracotta {
  --btn-bg: var(--c-terracotta);
  --btn-color: var(--c-white);
}
.btn--terracotta:hover {
  background: var(--c-terracotta-dark);
  color: var(--c-white);
  box-shadow: 0 10px 30px -10px rgba(181, 86, 60, 0.5);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--c-navy);
  --btn-border: var(--c-navy);
}
.btn--outline:hover {
  background: var(--c-navy);
  color: var(--c-gold);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-color: var(--c-sand);
  --btn-border: rgba(243, 236, 224, 0.45);
}
.btn--outline-light:hover {
  background: var(--c-sand);
  color: var(--c-navy);
  border-color: var(--c-sand);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--c-navy);
  padding-inline: 0;
}
.btn--ghost:hover { color: var(--c-terracotta); transform: translateX(4px); box-shadow: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* -------------------------------------------------------
   6. Trust strip / badges
   ------------------------------------------------------- */
.trust-strip {
  background: var(--c-navy);
  color: var(--c-sand);
  padding: var(--s-6) 0;
  border-top: 1px solid rgba(201, 162, 76, 0.2);
  border-bottom: 1px solid rgba(201, 162, 76, 0.2);
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-4) var(--s-10);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: rgba(243, 236, 224, 0.85);
  font-weight: 500;
}
.trust-item strong { color: var(--c-gold); font-weight: 700; }
.trust-item svg { width: 22px; height: 22px; color: var(--c-gold); flex-shrink: 0; }
.trust-item__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--c-gold);
}
.trust-item__divider {
  width: 1px; height: 24px;
  background: rgba(243, 236, 224, 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(201, 162, 76, 0.12);
  color: var(--c-gold-dark);
  border: 1px solid rgba(201, 162, 76, 0.28);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.badge--navy {
  background: rgba(10, 26, 47, 0.06);
  color: var(--c-navy);
  border-color: rgba(10, 26, 47, 0.2);
}
.badge--terracotta {
  background: rgba(181, 86, 60, 0.1);
  color: var(--c-terracotta-dark);
  border-color: rgba(181, 86, 60, 0.25);
}
.badge--light {
  background: rgba(243, 236, 224, 0.1);
  color: var(--c-sand);
  border-color: rgba(243, 236, 224, 0.22);
}
.badge svg { width: 14px; height: 14px; }

/* -------------------------------------------------------
   7. Header (transparent at top, solid when scrolled past hero)
   ------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  /* Always-on subtle frosted blur so content scrolling behind gets diffused */
  background: linear-gradient(180deg, rgba(10, 26, 47, 0.35) 0%, rgba(10, 26, 47, 0.08) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(243, 236, 224, 0.08);
  transition: background var(--dur-base) var(--ease-out-expo),
              backdrop-filter var(--dur-base) var(--ease-out-expo),
              -webkit-backdrop-filter var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo);
}
/* Transparent state: light text/icons over dark hero */
.header .header__logo { color: var(--c-sand); text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.header .header__logo-mark { box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.header .header__link { color: rgba(243, 236, 224, 0.92); text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.header .header__phone { color: var(--c-sand); text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.header .header__phone svg { color: var(--c-gold); }
.header .header__menu-btn span { background: var(--c-sand); box-shadow: 0 1px 4px rgba(0,0,0,0.4); }

/* Scrolled state: solid cream with dark text */
.header--scrolled {
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom-color: var(--c-border);
  box-shadow: 0 4px 20px -10px rgba(10, 26, 47, 0.12);
}
.header--scrolled .header__logo { color: var(--c-navy); text-shadow: none; }
.header--scrolled .header__logo-mark { box-shadow: none; }
.header--scrolled .header__link { color: var(--c-ink); text-shadow: none; }
.header--scrolled .header__phone { color: var(--c-navy); text-shadow: none; }
.header--scrolled .header__phone svg { color: var(--c-terracotta); }
.header--scrolled .header__menu-btn span { background: var(--c-navy); box-shadow: none; }
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(var(--s-3), 1.5vw, var(--s-6));
  height: var(--header-h);
  min-width: 0;
}
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-navy);
  letter-spacing: var(--ls-tight);
}
.header__logo-mark {
  width: 150px;
  height: 85px;
  background: transparent !important;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: visible;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
  position: relative;
}
/* Two layered images: dark version (default-hidden) + light version (default-shown over dark hero) */
.header__logo-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  border-radius: 0 !important;
  transition: opacity var(--dur-base) var(--ease-out-expo);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
/* By default (header transparent over dark hero), show the LIGHT (white) logo */
.header:not(.header--scrolled) .header__logo-mark img[data-logo="dark"] { opacity: 0 !important; }
.header:not(.header--scrolled) .header__logo-mark img[data-logo="light"] { opacity: 1 !important; }
/* When scrolled (cream background), show the DARK (black) logo */
.header--scrolled .header__logo-mark img[data-logo="dark"] { opacity: 1 !important; filter: drop-shadow(0 1px 2px rgba(10, 26, 47, 0.15)); }
.header--scrolled .header__logo-mark img[data-logo="light"] { opacity: 0 !important; }
/* Hide the redundant wordmark text — the logo already says "North Canyon Roofing & Coating" */
.header__logo > span:not(.header__logo-mark) { display: none; }
.footer__logo > span:not(.footer__logo-mark) { display: none; }
.header__logo-mark svg { width: 22px; height: 22px; }
.header__logo:hover { color: var(--c-terracotta); }

.header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(var(--s-4), 2vw, var(--s-8));
  flex-wrap: nowrap;
}
.header__link {
  font-size: var(--fs-sm);
  white-space: nowrap;
  font-weight: 500;
  color: var(--c-ink);
  position: relative;
  padding-block: 0.3rem;
  letter-spacing: 0.01em;
}
.header__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.header__link:hover::after,
.header__link--active::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.header__link--active { color: var(--c-navy); }

/* Services mega-dropdown */
.header__has-dropdown { position: relative; }
.header__has-dropdown > .header__link::after { display: none; }
.header__has-dropdown > .header__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.header__dropdown-arrow {
  width: 10px; height: 10px;
  transition: transform var(--dur-fast) var(--ease-out-expo);
}
.header__has-dropdown:hover .header__dropdown-arrow,
.header__has-dropdown:focus-within .header__dropdown-arrow { transform: rotate(180deg); }

.header__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 580px;
  background: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 56px -12px rgba(10, 26, 47, 0.22);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo),
              visibility var(--dur-base);
  z-index: var(--z-overlay);
}
.header__dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0; right: 0;
  height: 12px;
}
.header__has-dropdown:hover .header__dropdown,
.header__has-dropdown:focus-within .header__dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.header__dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  color: var(--c-navy) !important;
  text-shadow: none !important;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out-expo);
}
.header__dropdown-item:hover {
  background: rgba(201, 162, 76, 0.1);
  color: var(--c-navy) !important;
}
.header__dropdown-item-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--c-navy);
  color: var(--c-gold);
  display: grid; place-items: center;
}
.header__dropdown-item-icon svg { width: 16px; height: 16px; }
.header__dropdown-item-title {
  display: block;
  font-weight: 600;
  color: var(--c-navy);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
  line-height: 1.2;
}
.header__dropdown-item-desc {
  display: block;
  font-size: var(--fs-xs);
  color: var(--c-slate);
  line-height: 1.4;
}
.header__dropdown-footer {
  grid-column: 1 / -1;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: var(--s-4);
}
.header__dropdown-footer a {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--c-terracotta);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: clamp(var(--s-2), 1vw, var(--s-3));
  flex-wrap: nowrap;
}
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease-out-expo);
  white-space: nowrap;
}
.header__cta .btn--sm { white-space: nowrap; padding-inline: 1rem; }
.header__phone:hover { background: rgba(201, 162, 76, 0.12); color: var(--c-navy); }
.header__phone svg { width: 16px; height: 16px; color: var(--c-terracotta); }

.header__menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.header__menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out-expo),
              opacity var(--dur-fast) var(--ease-out-expo);
}
.header__menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__menu-btn.is-open span:nth-child(2) { opacity: 0; }
.header__menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--c-navy);
  color: var(--c-sand);
  padding: calc(var(--header-h) + var(--s-8)) var(--gutter) var(--s-12);
  display: flex;
  flex-direction: column;
  gap: var(--s-10);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out-expo);
  visibility: hidden;
  overflow-y: auto;
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.mobile-nav__links a {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  color: var(--c-sand);
  padding-block: 0.35rem;
  border-bottom: 1px solid rgba(243, 236, 224, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav__links a:hover { color: var(--c-gold); }
.mobile-nav__links a::after {
  content: "→";
  color: var(--c-gold);
  font-size: var(--fs-xl);
}
.mobile-nav__footer {
  margin-top: auto;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(243, 236, 224, 0.12);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.mobile-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-gold);
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* -------------------------------------------------------
   8. Hero
   ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 880px);
  display: flex;
  align-items: center;
  color: var(--c-sand);
  overflow: hidden;
  padding-top: var(--header-h);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(10, 26, 47, 0.76) 0%, rgba(10, 26, 47, 0.45) 52%, rgba(10, 26, 47, 0.85) 100%),
    linear-gradient(180deg, transparent 55%, rgba(10, 26, 47, 0.85) 100%),
    radial-gradient(circle at 30% 30%, #1d3f62 0%, #0a1a2f 55%, #050e1c 100%);
  z-index: -2;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 28%, rgba(201, 162, 76, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 18% 82%, rgba(181, 86, 60, 0.2) 0%, transparent 48%);
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.5;
  z-index: -1;
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  padding-block: var(--s-16);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.1rem;
  background: rgba(10, 26, 47, 0.55);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(201, 162, 76, 0.5);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-sand);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  margin-bottom: var(--s-6);
}
.hero__eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 76, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201, 162, 76, 0.25); }
  50% { box-shadow: 0 0 0 7px rgba(201, 162, 76, 0.05); }
}

.hero__title {
  font-size: clamp(2.5rem, 6.5vw, var(--fs-7xl));
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--c-white);
  margin-bottom: var(--s-6);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.hero__title em {
  font-style: italic;
  color: var(--c-gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-weight: 300;
}
.hero__subtitle {
  font-size: clamp(var(--fs-md), 1.8vw, var(--fs-lg));
  line-height: 1.55;
  color: rgba(243, 236, 224, 0.88);
  max-width: 42rem;
  margin-bottom: var(--s-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-12);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(243, 236, 224, 0.12);
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: rgba(243, 236, 224, 0.8);
}
.hero__meta-item strong { color: var(--c-gold); font-weight: 600; }
.hero__meta-item svg { width: 16px; height: 16px; color: var(--c-gold); }

.hero__scroll {
  position: absolute;
  bottom: var(--s-6);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(243, 236, 224, 0.65);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--c-gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Hero variants for inner pages */
.hero--inner { min-height: clamp(380px, 52vh, 520px); }
.hero--inner .hero__bg { opacity: 0.95; }

/* -------------------------------------------------------
   9. Service cards
   ------------------------------------------------------- */
.service-card {
  position: relative;
  padding: var(--s-8);
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  isolation: isolate;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 76, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-expo);
  z-index: -1;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(201, 162, 76, 0.35);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-700));
  color: var(--c-gold);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.service-card:hover .service-card__icon { transform: rotate(-4deg) scale(1.05); }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--c-navy);
  letter-spacing: var(--ls-tight);
}
.service-card__desc { color: var(--c-slate); font-size: var(--fs-sm); line-height: 1.6; }
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--c-ink);
}
.service-card__list svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--c-terracotta);
  margin-top: 3px;
}
.service-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.service-card__cta::after {
  content: "→";
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.service-card:hover .service-card__cta::after { transform: translateX(6px); }
.service-card:hover .service-card__cta { color: var(--c-terracotta); }

/* Featured service card */
.service-card--featured {
  background: var(--c-navy);
  color: var(--c-sand);
  border-color: transparent;
}
.service-card--featured .service-card__title { color: var(--c-white); }
.service-card--featured .service-card__desc,
.service-card--featured .service-card__list li { color: rgba(243, 236, 224, 0.82); }
.service-card--featured .service-card__cta { color: var(--c-gold); }
.service-card--featured .service-card__icon {
  background: var(--c-gold);
  color: var(--c-navy);
}

/* -------------------------------------------------------
   10. Process / Timeline
   ------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-8);
  counter-reset: step;
  position: relative;
}
.process-step {
  position: relative;
  padding: var(--s-6) 0;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 300;
  color: var(--c-gold);
  line-height: 1;
  font-variation-settings: 'opsz' 144;
  margin-bottom: var(--s-4);
}
.process-step__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--c-navy);
  margin-bottom: var(--s-2);
  letter-spacing: var(--ls-tight);
}
.process-step__desc {
  color: var(--c-slate);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* -------------------------------------------------------
   11. Stats
   ------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-8);
  padding-block: var(--s-10);
  border-block: 1px solid var(--c-border);
}
.section--navy .stats { border-block-color: rgba(243, 236, 224, 0.1); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, var(--fs-5xl));
  font-weight: 400;
  line-height: 1;
  color: var(--c-navy);
  letter-spacing: -0.035em;
  margin-bottom: var(--s-2);
  font-variation-settings: 'opsz' 144, 'SOFT' 20;
}
.section--navy .stat__num { color: var(--c-gold); }
.stat__num sup { font-size: 0.5em; color: var(--c-terracotta); vertical-align: super; font-weight: 400; margin-left: 4px; }
.section--navy .stat__num sup { color: var(--c-gold); }
.stat__label {
  font-size: var(--fs-sm);
  color: var(--c-slate);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  font-weight: 600;
}
.section--navy .stat__label { color: rgba(243, 236, 224, 0.7); }

/* -------------------------------------------------------
   12. Split content (image + text)
   ------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-8), 6vw, var(--s-20));
  align-items: center;
}
.split--reverse .split__media { grid-column: 2; grid-row: 1; }
.split--reverse .split__content { grid-column: 1; grid-row: 1; }

.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-stone);
  box-shadow: var(--sh-lg);
}
.split__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1200ms var(--ease-out-expo);
}
.split__media:hover img { transform: scale(1.04); }

.split__media-caption {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-5);
  right: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: rgba(10, 26, 47, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  color: var(--c-sand);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.split__media-caption svg { width: 22px; height: 22px; color: var(--c-gold); flex-shrink: 0; }

.split__content { max-width: 30rem; }
.split__content h2 { margin-bottom: var(--s-4); }
.split__content p { margin-top: var(--s-4); color: var(--c-slate); line-height: 1.65; }
.split__content .btn-group { margin-top: var(--s-6); }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.feature-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.feature-list__icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(181, 86, 60, 0.12);
  color: var(--c-terracotta);
  display: grid; place-items: center;
}
.feature-list__icon svg { width: 16px; height: 16px; }
.feature-list strong {
  display: block;
  color: var(--c-navy);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: var(--ls-tight);
  margin-bottom: 0.15rem;
}
.feature-list p { margin: 0; color: var(--c-slate); font-size: var(--fs-sm); line-height: 1.55; }

/* -------------------------------------------------------
   13. Testimonials
   ------------------------------------------------------- */
.testimonial {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.testimonial__quote-mark {
  position: absolute;
  top: var(--s-4); right: var(--s-5);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.7;
  color: var(--c-gold);
  opacity: 0.22;
  font-weight: 300;
}
.testimonial__stars {
  display: inline-flex;
  gap: 2px;
  color: var(--c-gold);
}
.testimonial__stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial__body {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--c-ink);
  font-weight: 400;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-terracotta), var(--c-gold));
  color: var(--c-white);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 500;
  flex-shrink: 0;
}
.testimonial__name {
  display: block;
  font-weight: 600;
  color: var(--c-navy);
  font-size: var(--fs-sm);
}
.testimonial__meta {
  display: block;
  color: var(--c-muted);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
}
.testimonial__source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-left: auto;
  font-weight: 500;
}
.testimonial__source svg { width: 14px; height: 14px; }

/* -------------------------------------------------------
   14. Logos wall (affiliations)
   ------------------------------------------------------- */
.logos-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-6);
  align-items: center;
  padding-block: var(--s-8);
}
.logo-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  text-align: center;
  transition: all var(--dur-base) var(--ease-out-expo);
  min-height: 110px;
  color: var(--c-navy);
}
.logo-badge:hover {
  border-color: var(--c-gold);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.logo-badge__mark {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--c-navy);
  line-height: 1;
}
.logo-badge__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--c-slate);
  font-weight: 600;
}
.section--navy .logo-badge {
  background: rgba(243, 236, 224, 0.04);
  border-color: rgba(243, 236, 224, 0.1);
  color: var(--c-sand);
}
.section--navy .logo-badge__mark { color: var(--c-sand); }
.section--navy .logo-badge__label { color: rgba(243, 236, 224, 0.6); }
.section--navy .logo-badge:hover { border-color: var(--c-gold); background: rgba(201, 162, 76, 0.08); }

/* -------------------------------------------------------
   15. Gallery / before-after
   ------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-5);
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-stone);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out-expo); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 26, 47, 0.9) 0%, transparent 55%);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--c-sand);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-expo);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  margin-bottom: 0.25rem;
  color: var(--c-white);
}
.gallery-item__meta { font-size: var(--fs-sm); color: rgba(243, 236, 224, 0.8); }

.before-after {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  user-select: none;
  background: var(--c-stone);
}
.before-after__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.before-after__after {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
}
.before-after__after img { width: 200%; max-width: none; height: 100%; object-fit: cover; }
.before-after__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--c-gold);
  box-shadow: 0 0 0 2px rgba(10, 26, 47, 0.4);
  cursor: ew-resize;
}
.before-after__handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-navy);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(10, 26, 47, 0.35);
}
.before-after__label {
  position: absolute;
  top: var(--s-4);
  padding: 0.35rem 0.75rem;
  background: rgba(10, 26, 47, 0.85);
  color: var(--c-sand);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  font-weight: 600;
  border-radius: var(--r-sm);
}
.before-after__label--before { left: var(--s-4); }
.before-after__label--after { right: var(--s-4); background: var(--c-gold); color: var(--c-navy); }

/* -------------------------------------------------------
   16. FAQ accordion
   ------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 52rem;
  margin-inline: auto;
}
.faq {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-white);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-base) var(--ease-out-expo);
}
.faq[open] {
  border-color: rgba(201, 162, 76, 0.4);
  box-shadow: var(--sh-md);
}
.faq summary {
  padding: var(--s-5) var(--s-6);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--c-navy);
  letter-spacing: var(--ls-tight);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  transition: background var(--dur-fast) var(--ease-out-expo);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(201, 162, 76, 0.06); }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-gold);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-spring);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body {
  padding: 0 var(--s-6) var(--s-6);
  color: var(--c-slate);
  line-height: 1.65;
  font-size: var(--fs-sm);
}
.faq__body p + p { margin-top: 0.75rem; }

/* -------------------------------------------------------
   17. Forms
   ------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-4);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--c-navy);
}
.section--navy .form-label { color: var(--c-sand); }
.form-label .required { color: var(--c-terracotta); margin-left: 0.2rem; }
.form-input,
.form-select,
.form-textarea {
  appearance: none;
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-charcoal);
  font-size: var(--fs-base);
  font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast) var(--ease-out-expo);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 76, 0.15);
}
.form-help {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-2);
}
.form-check {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--c-slate);
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--c-gold);
}

/* -------------------------------------------------------
   18. Quote Quiz
   ------------------------------------------------------- */
.quiz {
  max-width: 44rem;
  margin-inline: auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.quiz__progress {
  height: 4px;
  background: var(--c-stone);
  position: relative;
}
.quiz__progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--c-gold), var(--c-terracotta));
  transition: width var(--dur-base) var(--ease-out-expo);
  width: 0;
}
.quiz__step {
  padding: clamp(var(--s-6), 4vw, var(--s-12));
  display: none;
}
.quiz__step.is-active { display: block; animation: fadeUp 400ms var(--ease-out-expo); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.quiz__step-count {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--c-terracotta);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.quiz__question {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, var(--fs-2xl));
  color: var(--c-navy);
  margin-bottom: var(--s-2);
  letter-spacing: var(--ls-tight);
  font-weight: 500;
}
.quiz__hint {
  color: var(--c-slate);
  margin-bottom: var(--s-6);
  font-size: var(--fs-sm);
}
.quiz__options {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.quiz__option {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--s-5);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-white);
  text-align: left;
  transition: all var(--dur-fast) var(--ease-out-expo);
  cursor: pointer;
  font-family: inherit;
  position: relative;
}
.quiz__option:hover {
  border-color: var(--c-gold);
  background: rgba(201, 162, 76, 0.04);
  transform: translateY(-2px);
}
.quiz__option.is-selected {
  border-color: var(--c-terracotta);
  background: rgba(181, 86, 60, 0.06);
}
.quiz__option.is-selected::after {
  content: "✓";
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--c-terracotta);
  color: var(--c-white);
  display: grid; place-items: center;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.quiz__option-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.quiz__option-title {
  font-weight: 600;
  color: var(--c-navy);
  font-size: var(--fs-sm);
}
.quiz__option-desc {
  color: var(--c-slate);
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.quiz__actions {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-border);
}
.quiz__actions .btn--ghost { padding: 0.5rem 0; }

.quiz__result {
  text-align: center;
  padding: var(--s-8);
}
.quiz__result-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: var(--c-white);
  display: grid; place-items: center;
  margin: 0 auto var(--s-5);
}
.quiz__result-icon svg { width: 32px; height: 32px; }
.quiz__result-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--c-navy);
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.quiz__result-body {
  color: var(--c-slate);
  max-width: 36rem;
  margin: 0 auto var(--s-6);
  font-size: var(--fs-md);
  line-height: 1.6;
}

/* -------------------------------------------------------
   19. Large CTA band
   ------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(var(--s-16), 10vw, var(--s-24)) 0;
  background: var(--c-navy);
  color: var(--c-sand);
  overflow: hidden;
  isolation: isolate;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 162, 76, 0.18), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(181, 86, 60, 0.18), transparent 55%);
}
.cta-band__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}
.cta-band__content {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}
.cta-band__content h2 {
  color: var(--c-white);
  font-size: clamp(2rem, 5vw, var(--fs-5xl));
  margin-bottom: var(--s-4);
  line-height: 1.05;
}
.cta-band__content p {
  color: rgba(243, 236, 224, 0.8);
  margin-bottom: var(--s-8);
  font-size: var(--fs-md);
  line-height: 1.6;
  max-width: 38rem;
  margin-inline: auto;
}

/* -------------------------------------------------------
   20. Footer
   ------------------------------------------------------- */
.footer {
  background: #050e1c;
  color: rgba(243, 236, 224, 0.75);
  padding: var(--s-20) 0 var(--s-8);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-gold), transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s-10);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid rgba(243, 236, 224, 0.1);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: 22rem;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--c-white);
  font-weight: 500;
}
.footer__logo-mark {
  width: 150px; height: 84px;
  background: transparent;
  display: block;
  overflow: visible;
  padding: 0;
}
.footer__logo-mark svg { width: 22px; height: 22px; }
.footer__logo-mark img {
  width: 100%; height: 100%;
  object-fit: contain !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.footer__tagline { color: rgba(243, 236, 224, 0.65); font-size: var(--fs-sm); line-height: 1.6; }

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--c-white);
  font-weight: 500;
  margin-bottom: var(--s-4);
  letter-spacing: var(--ls-tight);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.footer__list a {
  color: rgba(243, 236, 224, 0.7);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer__list a:hover { color: var(--c-gold); }
.footer__list a svg { width: 14px; height: 14px; }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  color: rgba(243, 236, 224, 0.75);
  line-height: 1.5;
}
.footer__contact-item svg {
  width: 16px; height: 16px;
  color: var(--c-gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer__contact-item a:hover { color: var(--c-gold); }

.footer__bottom {
  padding-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(243, 236, 224, 0.55);
}
.footer__legal-links {
  display: inline-flex;
  gap: var(--s-4);
}
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.footer__credit a { color: var(--c-gold); font-weight: 500; }

/* -------------------------------------------------------
   Back to top button (long pages)
   ------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-gold);
  border: 1px solid rgba(201, 162, 76, 0.4);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo),
              visibility var(--dur-base);
  z-index: var(--z-sticky);
  box-shadow: 0 4px 14px rgba(10, 26, 47, 0.3);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--c-gold);
  color: var(--c-navy);
}
.back-to-top svg { width: 18px; height: 18px; }
@media (min-width: 641px) {
  .back-to-top { bottom: 1.5rem; right: 1.5rem; }
}

/* -------------------------------------------------------
   21. Sticky mobile CTA bar
   ------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  display: none;
  padding: var(--s-3) var(--gutter);
  background: rgba(10, 26, 47, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 162, 76, 0.3);
  gap: var(--s-3);
}
.mobile-cta .btn { flex: 1; padding: 0.75rem 1rem; font-size: var(--fs-xs); }

/* -------------------------------------------------------
   22. Breadcrumbs
   ------------------------------------------------------- */
.breadcrumbs {
  padding: var(--s-6) 0 0;
  font-size: var(--fs-sm);
  color: var(--c-slate);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--c-muted); }
.breadcrumbs a { color: var(--c-slate); }
.breadcrumbs a:hover { color: var(--c-terracotta); }
.breadcrumbs [aria-current="page"] { color: var(--c-navy); font-weight: 500; }

/* -------------------------------------------------------
   Emergency phone link (always-on, in header)
   ------------------------------------------------------- */
.header__emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(181, 86, 60, 0.95);
  color: var(--c-white) !important;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-shadow: none !important;
  transition: background var(--dur-fast) var(--ease-out-expo), transform var(--dur-fast) var(--ease-out-expo);
  white-space: nowrap;
}
.header__emergency:hover {
  background: var(--c-terracotta-dark);
  color: var(--c-white) !important;
  transform: translateY(-1px);
}
.header__emergency svg { width: 14px; height: 14px; }
/* Hide "Active Leak" pill on narrower screens — sticky mobile bar handles emergencies */
@media (max-width: 1280px) { .header__emergency { display: none; } }
/* Hide phone-text on very narrow desktop to prevent header overflow — phone icon remains via header bottom bar on mobile */
@media (max-width: 1100px) { .header__phone { display: none; } }
/* Hide Free Inspection button on tight desktops — quote CTA still exists on every page */
@media (max-width: 1024px) and (min-width: 961px) { .header__cta .btn--sm.hide-mobile { display: none; } }

/* -------------------------------------------------------
   23. Alert / monsoon banner
   ------------------------------------------------------- */
.alert-banner {
  background: var(--c-terracotta);
  color: var(--c-white);
  padding: var(--s-3) 0;
  font-size: var(--fs-sm);
  position: relative;
  overflow: hidden;
}
.alert-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 8px,
    rgba(255, 255, 255, 0.04) 8px,
    rgba(255, 255, 255, 0.04) 16px
  );
  pointer-events: none;
}
.alert-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  text-align: center;
  position: relative;
}
.alert-banner svg { width: 18px; height: 18px; }
.alert-banner a {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.alert-banner a:hover { color: var(--c-gold-light); }

/* -------------------------------------------------------
   24. Inner page hero / page title block
   ------------------------------------------------------- */
.page-hero {
  background: var(--c-navy);
  background-image: url('/images/az-rooftops-sunset.jpg');
  background-size: cover;
  background-position: center 35%;
  color: var(--c-sand);
  padding: calc(var(--header-h) + var(--s-16)) 0 var(--s-16);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 380px;
}
/* Dark gradient overlay for text legibility */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 26, 47, 0.55) 0%, rgba(10, 26, 47, 0.78) 100%),
    radial-gradient(circle at 20% 30%, rgba(201, 162, 76, 0.18), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(181, 86, 60, 0.16), transparent 50%);
}
.page-hero .breadcrumbs,
.page-hero .breadcrumbs a { color: rgba(243, 236, 224, 0.85) !important; }
.page-hero .breadcrumbs a:hover { color: var(--c-gold-light) !important; }
.page-hero .breadcrumbs [aria-current="page"] { color: var(--c-white) !important; font-weight: 600; }
.page-hero .eyebrow { color: var(--c-gold-light); }
.page-hero .eyebrow::before { background: var(--c-gold-light); }
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, var(--fs-5xl));
  color: var(--c-white);
  line-height: 1.02;
  max-width: 32ch;
  margin-bottom: var(--s-4);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.page-hero .lead { color: rgba(255, 255, 255, 0.95); max-width: 56ch; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.page-hero__actions { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* -------------------------------------------------------
   25. Service area list
   ------------------------------------------------------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-3);
}
.area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: all var(--dur-fast) var(--ease-out-expo);
  color: var(--c-navy);
  font-weight: 500;
}
.area-card:hover {
  border-color: var(--c-gold);
  background: rgba(201, 162, 76, 0.04);
  transform: translateX(4px);
  color: var(--c-navy);
}
.area-card__name { font-family: var(--font-display); font-size: var(--fs-md); letter-spacing: var(--ls-tight); }
.area-card__meta { font-size: var(--fs-xs); color: var(--c-muted); }
.area-card svg {
  width: 18px; height: 18px; color: var(--c-gold);
  transition: transform var(--dur-fast) var(--ease-out-expo);
}
.area-card:hover svg { transform: translateX(4px); }

.section--navy .area-card {
  background: rgba(243, 236, 224, 0.04);
  border-color: rgba(243, 236, 224, 0.12);
  color: var(--c-sand);
}
.section--navy .area-card__meta { color: rgba(243, 236, 224, 0.5); }
.section--navy .area-card:hover {
  background: rgba(201, 162, 76, 0.1);
  border-color: var(--c-gold);
  color: var(--c-white);
}

/* -------------------------------------------------------
   26. Blog / learn cards
   ------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out-expo);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: rgba(201, 162, 76, 0.4);
}
.post-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--c-navy), var(--c-terracotta));
  position: relative;
  overflow: hidden;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out-expo); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__tag {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  padding: 0.25rem 0.65rem;
  background: var(--c-gold);
  color: var(--c-navy);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  border-radius: var(--r-sm);
}
.post-card__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.post-card__meta {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  font-weight: 600;
}
.post-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--c-navy);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: var(--ls-tight);
}
.post-card__excerpt { color: var(--c-slate); font-size: var(--fs-sm); line-height: 1.55; }
.post-card__cta {
  margin-top: auto;
  padding-top: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-terracotta);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}
.post-card__cta::after { content: "→"; transition: transform var(--dur-base) var(--ease-out-expo); }
.post-card:hover .post-card__cta::after { transform: translateX(4px); }

/* Prose (blog post body) */
.prose {
  max-width: 44rem;
  margin-inline: auto;
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--c-ink);
}
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  font-size: var(--fs-2xl);
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--c-navy);
}
.prose h3 { font-size: var(--fs-xl); margin-top: 1.8em; color: var(--c-navy); }
.prose p { color: var(--c-ink); }
.prose a { color: var(--c-terracotta); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol {
  padding-left: 1.4rem;
  list-style: disc outside;
}
.prose ol { list-style: decimal outside; }
.prose li { margin-top: 0.4rem; }
.prose blockquote {
  border-left: 4px solid var(--c-gold);
  padding: 0.2em 1.4em;
  margin: 1.6em 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--c-navy);
}
.prose strong { color: var(--c-navy); font-weight: 600; }

/* -------------------------------------------------------
   27. Reveal animations
   ------------------------------------------------------- */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out-expo), transform 800ms var(--ease-out-expo);
}
.reveal.is-visible,
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* -------------------------------------------------------
   28. Utilities
   ------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hide-mobile { display: inherit; }
.only-mobile { display: none; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.text-center { text-align: center; }

/* -------------------------------------------------------
   29. Responsive breakpoints
   ------------------------------------------------------- */
@media (max-width: 960px) {
  .header__nav { display: none; }
  .header__phone { display: none; }
  .header__menu-btn { display: inline-flex; }
  .split { grid-template-columns: 1fr; gap: var(--s-10); }
  .split--reverse .split__media,
  .split--reverse .split__content { grid-column: 1; grid-row: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .header__logo-mark { width: 110px; height: 60px; }
  .hero { min-height: 580px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.02; }
  .hero__meta { gap: var(--s-3); }
  .section { padding-block: var(--s-16); }
  .section-header { margin-bottom: var(--s-8); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer { padding-top: var(--s-12); }
  .process-grid { gap: var(--s-5); }
  .hide-mobile { display: none; }
  .only-mobile { display: inherit; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 70px; } /* make room for mobile CTA bar */
  .footer { padding-bottom: calc(var(--s-8) + 70px); }
}

@media (max-width: 440px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .btn { padding: 0.85rem 1.4rem; }
}

/* Print styles — save paper, keep brand */
@media print {
  .header, .footer, .mobile-cta, .alert-banner, .hero__scroll { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   30. Cinematic Scroll Hero (Spire-style 3-stage scroll-driven hero)
   ========================================================================== */
.cine {
  position: relative;
  height: 320vh;          /* 3 stages × ~100vh + scroll buffer */
  background: var(--c-navy);
}
.cine__rail {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.cine__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1100ms var(--ease-out-expo);
  will-change: opacity;
  pointer-events: none;
}
.cine__frame.is-active {
  opacity: 1;
  pointer-events: auto;
}
.cine__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.cine__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,26,47,0.25) 0%, rgba(10,26,47,0.55) 60%, rgba(10,26,47,0.85) 100%);
  z-index: 1;
}
.cine__bg video,
.cine__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 7s var(--ease-out-expo);
}
.cine__frame.is-active .cine__bg video,
.cine__frame.is-active .cine__bg img { transform: scale(1.12); }

/* Stage backgrounds (gradient placeholders for stages w/o video) */
.cine__bg--placeholder-2 {
  background:
    linear-gradient(180deg, rgba(10,26,47,0.05) 0%, rgba(10,26,47,0.5) 100%),
    repeating-linear-gradient(82deg, #4a3826 0px, #6b5034 22px, #3a2a1e 44px),
    radial-gradient(circle at 70% 30%, #8b6f47, transparent 50%);
  background-size: cover;
}
.cine__bg--placeholder-3 {
  background:
    linear-gradient(180deg, rgba(10,26,47,0.1) 0%, rgba(10,26,47,0.55) 100%),
    repeating-linear-gradient(0deg, #1a1a14 0px, #2a2520 5px, #1a1a14 10px),
    radial-gradient(circle at 50% 50%, #3a3025, transparent 60%);
  background-size: cover;
}

.cine__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}

.cine__ui {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--gutter);
  text-align: center;
  color: var(--c-white);
}

/* Stage 1 — intro with full headline + CTAs */
.cine__frame--intro .cine__ui { text-align: left; max-width: 56rem; }
.cine__frame--intro .hero__eyebrow,
.cine__frame--intro .hero__title,
.cine__frame--intro .hero__subtitle,
.cine__frame--intro .hero__actions,
.cine__frame--intro .hero__meta { text-align: left; }

/* Stages 2 & 3 — punch text */
.cine__big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 9.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  text-shadow: 0 6px 50px rgba(0, 0, 0, 0.5);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  max-width: 18ch;
  margin: 0 auto;
}
.cine__big em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.cine__sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-gold);
  margin-top: var(--s-6);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Stage progress indicator */
.cine__progress {
  position: absolute;
  bottom: var(--s-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.cine__progress-dot {
  width: 32px;
  height: 2px;
  background: rgba(243, 236, 224, 0.25);
  border-radius: 1px;
  transition: background 600ms var(--ease-out-expo);
}
.cine__progress-dot.is-active { background: var(--c-gold); }
.cine__progress-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(243, 236, 224, 0.6);
  font-weight: 600;
  margin-left: var(--s-2);
}

/* Hint that scrolling reveals more */
.cine__hint { display: none !important; }
.cine__hint svg {
  width: 14px; height: 14px;
  animation: cineHintBounce 1.8s ease-in-out infinite;
}
@keyframes cineHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Mobile adjustments — disable 3-stage cinematic, just show Stage 1 with all content */
@media (max-width: 760px) {
  .cine {
    height: auto;
    min-height: 100vh;
  }
  .cine__rail {
    position: relative;
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  .cine__frame {
    position: absolute;
    inset: 0;
  }
  .cine__frame--intro {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + var(--s-8)) 0 var(--s-12);
  }
  .cine__frame:not(.cine__frame--intro) {
    display: none;
  }
  .cine__bg video,
  .cine__bg img {
    transform: none !important;
    transition: none;
  }
  .cine__hint { display: none; }
  .cine__progress { display: none; }
  .cine__frame--intro .cine__ui {
    text-align: left;
    padding-top: 0;
    max-width: 100%;
  }
  /* Mobile-friendly hero text sizing */
  .cine__frame--intro .hero__title {
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.04;
    margin-bottom: var(--s-4);
  }
  .cine__frame--intro .hero__subtitle {
    font-size: var(--fs-base);
    line-height: 1.5;
    margin-bottom: var(--s-6);
  }
  .cine__frame--intro .hero__eyebrow {
    font-size: 0.65rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: var(--s-4);
  }
  .cine__frame--intro .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
  }
  .cine__frame--intro .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cine__big { font-size: clamp(2.5rem, 13vw, 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .cine { height: auto; }
  .cine__rail { position: relative; height: auto; }
  .cine__frame { position: relative; opacity: 1; min-height: 60vh; }
  .cine__bg video,
  .cine__bg img { transition: none; transform: none; }
  .cine__progress { display: none; }
}
