/* ==========================================================================
   Upstate LeafFilter — Design System
   Forest-green home-services brand. Mobile-first, no build step.
   ========================================================================== */

/* ---- Fonts (Google Fonts, loaded in <head> via preconnect) ------------- */

:root {
  /* Brand palette */
  --forest:        #0B5D2E;
  --forest-deep:   #073B1E;
  --forest-light:  #12813F;
  --forest-mist:   #E7F1E9;
  --gold:          #E6A532;
  --gold-deep:     #C6892042;
  --gold-solid:    #C68920;
  --steel:         #2C5F73;
  --steel-light:   #E4EDF0;

  /* Neutrals (tinted, never pure black/white) */
  --cream:         #FAF8F2;
  --cream-2:       #F3EFE4;
  --paper:         #FFFFFF;
  --ink:           #16241C;
  --ink-soft:      #3C4A41;
  --ink-faint:     #6B7770;
  --line:          #E4E0D4;

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(7, 59, 30, .06), 0 2px 8px rgba(7, 59, 30, .05);
  --shadow-md: 0 6px 20px rgba(7, 59, 30, .10), 0 2px 6px rgba(7, 59, 30, .06);
  --shadow-lg: 0 24px 60px rgba(7, 59, 30, .16), 0 8px 24px rgba(7, 59, 30, .08);
  --shadow-gold: 0 10px 26px rgba(198, 137, 32, .35);

  --header-h: 76px;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
p  { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--forest);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px;
}
.eyebrow.on-dark { color: #BFE6CC; }
.eyebrow.center { justify-content: center; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.text-gold { color: var(--gold-solid); }
.text-forest { color: var(--forest); }

/* ---- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 1.5rem; }
.eq-cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .95rem 1.6rem; border-radius: 999px; letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--gold); color: #3A2708; box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: #F0B54A; transform: translateY(-2px); }
.btn-forest { background: var(--forest); color: #fff; box-shadow: var(--shadow-md); }
.btn-forest:hover { background: var(--forest-light); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.20); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---- Pills / chips ------------------------------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--paper); border: 1px solid var(--line);
  padding: .5rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.chip svg { width: 1.1em; height: 1.1em; color: var(--forest); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.top-strip {
  background: var(--forest-deep); color: #DCEFE1;
  font-size: .85rem; font-weight: 600;
}
.top-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.top-strip a { color: #fff; }
.top-strip .strip-note { display: inline-flex; align-items: center; gap: .5rem; }
.top-strip .strip-note svg { width: 1em; height: 1em; color: var(--gold); }
.top-strip .strip-right { display: flex; gap: 1.4rem; align-items: center; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.brand-name b { display: block; font-size: 1.12rem; color: var(--forest); }
.brand-name span { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: .35rem; }
.main-nav a.nav-link, .main-nav > ul > li > .nav-link {
  display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
  padding: .6rem .85rem; border-radius: 10px; font-weight: 600; font-size: .97rem; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.main-nav a.nav-link:hover, .has-drop:hover > .nav-link { background: var(--forest-mist); color: var(--forest); }
.main-nav a.nav-link[aria-current="page"] { color: var(--forest); }
.main-nav a.nav-link[aria-current="page"]::after {
  content:""; margin-left:.15rem; width:5px; height:5px; border-radius:50%; background:var(--gold);
}

.has-drop { position: relative; }
.has-drop > .nav-link svg { width: .9em; height: .9em; transition: transform .2s ease; }
.has-drop:hover > .nav-link svg, .has-drop:focus-within > .nav-link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .6rem;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease;
}
/* Invisible bridge spanning the gap between the trigger and the menu so the
   pointer stays within :hover while moving down into the dropdown. */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 10px;
}
.dropdown a:hover { background: var(--forest-mist); }
.dropdown .di { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--forest-mist);
  display: grid; place-items: center; color: var(--forest); }
.dropdown .di svg { width: 20px; height: 20px; }
.dropdown b { font-family: var(--font-display); font-size: .97rem; color: var(--ink); display: block; }
.dropdown small { color: var(--ink-faint); font-size: .82rem; line-height: 1.4; }

.header-cta { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 800; color: var(--forest); font-size: 1.02rem; }
.header-phone svg { width: 1.15em; height: 1.15em; }
.header-phone small { display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--forest); color: #fff; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--forest-deep); color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(18,129,63,.55), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(44,95,115,.45), transparent 60%),
    linear-gradient(160deg, #0A4A25 0%, #073B1E 60%, #06301A 100%);
}
.hero::after {
  content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--gold); }
.hero p.lead { color: #D6E7DB; max-width: 46ch; margin-top: 1.2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 700;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); padding: .45rem .85rem; border-radius: 999px; color: #EAF3EC; }
.hero-badge svg { width: 1.05em; height: 1.05em; color: var(--gold); }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-proof { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; color: #C8DDCE; font-size: .9rem; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }

/* Hero visual card */
.hero-media { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5; position: relative; border: 6px solid rgba(255,255,255,.12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute; background: var(--paper); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .85rem 1.05rem; display: flex; align-items: center; gap: .7rem;
}
.hero-tag .ti { width: 40px; height: 40px; border-radius: 10px; background: var(--forest-mist); color: var(--forest); display: grid; place-items: center; flex-shrink:0; }
.hero-tag .ti svg { width: 22px; height: 22px; }
.hero-tag b { font-family: var(--font-display); display: block; font-size: 1.05rem; line-height: 1; }
.hero-tag small { color: var(--ink-faint); font-size: .78rem; }
.hero-tag.tl { top: 18px; left: -22px; }
.hero-tag.br { bottom: 22px; right: -18px; }

/* LeafFilter Certified Sales Agent badge (replaces warranty tag, attention-getting) */
.cert-tag {
  gap: .6rem; overflow: hidden; isolation: isolate;
  border: 1.5px solid var(--forest-mist);
  animation: cert-glow 2.6s ease-in-out infinite;
}
/* Sweeping shine that periodically crosses the badge */
.cert-tag::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 48%, rgba(230,165,50,.35) 52%, transparent 70%);
  transform: translateX(-120%);
  animation: cert-shine 4.4s ease-in-out infinite;
}
.cert-seal {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 32% 28%, var(--forest-light), var(--forest) 70%);
  box-shadow: 0 2px 6px rgba(11,93,46,.35), inset 0 0 0 2px rgba(255,255,255,.35);
  animation: cert-pop 2.6s ease-in-out infinite;
}
.cert-seal svg { width: 24px; height: 24px; }
.cert-body { display: flex; flex-direction: column; gap: .18rem; }
.cert-logo { display: block; width: 92px; height: auto; }
.cert-body small {
  color: var(--ink-faint); font-size: .72rem; letter-spacing: .04em;
  text-transform: uppercase; font-weight: 700; line-height: 1;
}
.cert-body small b { color: var(--forest); font-weight: 800; }

@keyframes cert-glow {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(230,165,50,.45); }
  50%      { box-shadow: var(--shadow-lg), 0 0 0 8px rgba(230,165,50,0); }
}
@keyframes cert-shine {
  0%, 55%  { transform: translateX(-120%); }
  80%, 100%{ transform: translateX(120%); }
}
@keyframes cert-pop {
  0%, 70%, 100% { transform: scale(1); }
  82%           { transform: scale(1.12) rotate(-6deg); }
}

/* Trust bar under hero */
.trust-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding-block: 1.3rem; }
.trust-item { display: flex; align-items: center; gap: .7rem; }
.trust-item .tn { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--forest); line-height: 1; }
.trust-item small { color: var(--ink-faint); font-size: .82rem; font-weight: 600; }
.trust-item svg { width: 30px; height: 30px; color: var(--gold-solid); }

/* ==========================================================================
   CARDS / FEATURE GRIDS
   ========================================================================== */
.cards { display: grid; gap: 1.4rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CFE3D5; }
.card .ci {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(150deg, var(--forest-light), var(--forest)); color: #fff; box-shadow: var(--shadow-md);
}
.card .ci svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; }
.card.gold .ci { background: linear-gradient(150deg, #F0B54A, var(--gold-solid)); color: #3A2708; }
.card.steel .ci { background: linear-gradient(150deg, #3E7C93, var(--steel)); }

/* Feature list with checks */
.check-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; color: var(--ink-soft); }
.check-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--forest); margin-top: 2px; }
.check-list.on-dark li { color: #D6E7DB; }
.check-list.on-dark li svg { color: var(--gold); }

/* Split section (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }

.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--cream-2), var(--forest-mist));
  aspect-ratio: 5/4; display: grid; place-items: center; color: var(--forest); position: relative;
}
.media-frame .imgnote {
  position: absolute; bottom: 10px; left: 10px; right: 10px; font-size: .72rem; color: var(--ink-faint);
  background: rgba(255,255,255,.8); border-radius: 8px; padding: .35rem .6rem; text-align: center;
}

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.8rem;
}
.gallery figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 3/4; margin: 0; min-width: 0;
  transition: transform .5s cubic-bezier(.2,.6,.2,1), box-shadow .5s cubic-bezier(.2,.6,.2,1);
}
.gallery figure:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg, 0 22px 48px rgba(6,48,26,.28)); }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.2,.6,.2,1);
}
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .9rem;
  font-size: .9rem; font-weight: 600; color: #fff; letter-spacing: .01em;
  background: linear-gradient(to top, rgba(6,48,26,.9), rgba(6,48,26,.35) 55%, transparent);
  transform: translateY(0); transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
/* keep the three side by side on tablet, just tighter */
@media (max-width: 860px) { .gallery { gap: .9rem; } }
/* Larger heading + scale-in reveal for the installs gallery */
.gallery-head h2 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); line-height: 1.05; }
.gallery-head .lead { font-size: 1.12rem; }
.g-rise.reveal { transform: translateY(40px) scale(.94); }
.g-rise.reveal.in { transform: none; }

/* on small phones, swipe them side by side instead of stacking */
@media (max-width: 560px) {
  .gallery {
    display: flex; gap: 1rem; margin-inline: calc(-1 * var(--gutter, 1.2rem));
    padding-inline: var(--gutter, 1.2rem); overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .gallery figure { flex: 0 0 78%; scroll-snap-align: center; aspect-ratio: 3/4; }
}

/* ==========================================================================
   3-PIECE TECH SHOWCASE
   ========================================================================== */
.tech { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.tech::before { content:""; position:absolute; inset:0;
  background: radial-gradient(80% 60% at 90% 10%, rgba(18,129,63,.35), transparent 60%); }
.tech h2, .tech h3 { color: #fff; }
.tech .container { position: relative; z-index: 1; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
.tech-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.6rem; }
.tech-card .num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--gold);
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); margin-bottom: 1rem; }
.tech-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.tech-card p { color: #C8DDCE; font-size: .95rem; }

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.compare th, .compare td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--forest); color: #fff; font-family: var(--font-display); font-size: .95rem; }
.compare thead th.us { background: var(--forest-deep); }
.compare tbody td:first-child { font-weight: 600; color: var(--ink); }
.compare td.yes { color: var(--forest); font-weight: 700; }
.compare td.no { color: #B4472F; font-weight: 600; }
.compare td svg { width: 20px; height: 20px; vertical-align: -4px; }
.compare tr:last-child td { border-bottom: none; }
.compare .us { background: rgba(11,93,46,.04); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testi {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem;
}
.testi .stars { font-size: 1rem; }
.testi p { color: var(--ink); font-size: 1rem; line-height: 1.6; }
.testi .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testi .av { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.05rem; }
.testi .who b { font-family: var(--font-display); display: block; font-size: .98rem; }
.testi .who small { color: var(--ink-faint); font-size: .82rem; }
.testi .verified { display:inline-flex; align-items:center; gap:.3rem; font-size:.75rem; font-weight:700; color:var(--forest); }
.testi .verified svg { width: 1em; height: 1em; }

/* ==========================================================================
   SERVICE AREA / MAP
   ========================================================================== */
.map-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
#area-map, .map-box { width: 100%; height: 440px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 0; }
.leaflet-container { font-family: var(--font-body); }
.county-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.5rem; }
.county-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.county-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.county-card b { font-family: var(--font-display); display: flex; align-items: center; gap: .5rem; color: var(--forest); }
.county-card b svg { width: 1.1em; height: 1.1em; color: var(--gold-solid); }
.county-card small { color: var(--ink-faint); font-size: .85rem; }

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq-q .pm { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--forest-mist); color: var(--forest); display: grid; place-items: center; transition: transform .25s ease, background .2s ease; }
.faq-q .pm svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--forest); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 1.3rem 1.25rem; color: var(--ink-soft); }

/* ==========================================================================
   QUIZ (identical on every page)
   ========================================================================== */
.quiz-section { background: linear-gradient(165deg, #0C2317 0%, #05130C 100%); color: #fff; position: relative; overflow: hidden; border-top: 4px solid var(--gold); }
.quiz-section::before { content:""; position:absolute; inset:0; background: radial-gradient(90% 70% at 12% 15%, rgba(230,165,50,.20), transparent 55%), radial-gradient(70% 80% at 100% 100%, rgba(44,95,115,.35), transparent 60%); }
.quiz-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.quiz-intro h2 { color: #fff; }
.quiz-intro p { color: #D6E7DB; margin-top: 1rem; }
.quiz-perks { margin-top: 1.6rem; }
.quiz-perks li { display: flex; gap: .7rem; align-items: center; padding: .4rem 0; color: #EAF3EC; font-weight: 600; }
.quiz-perks li svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

.quiz-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 3vw, 2.3rem); position: relative;
}
.quiz-progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.quiz-step-label { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.quiz-step-count { font-family: var(--font-display); font-weight: 800; color: var(--forest); font-size: .9rem; }
.quiz-progress { height: 9px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-bottom: 1.6rem; }
.quiz-progress .bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-solid)); border-radius: 999px; transition: width .4s cubic-bezier(.4,0,.2,1); }

.quiz-step { display: none; animation: quizIn .35s ease; }
.quiz-step.active { display: block; }
@keyframes quizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-q { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; margin-bottom: .35rem; letter-spacing: -.02em; }
.quiz-sub { color: var(--ink-faint); font-size: .92rem; margin-bottom: 1.3rem; }

.quiz-options { display: grid; gap: .7rem; }
.quiz-options.two { grid-template-columns: 1fr 1fr; }
.quiz-opt {
  display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem;
  font-weight: 600; color: var(--ink); transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.quiz-opt:hover { border-color: var(--forest-light); background: var(--forest-mist); transform: translateY(-1px); }
.quiz-opt.selected { border-color: var(--forest); background: var(--forest-mist); box-shadow: inset 0 0 0 1px var(--forest); }
.quiz-opt .oi { width: 40px; height: 40px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--forest); flex-shrink: 0; }
.quiz-opt .oi svg { width: 21px; height: 21px; }
.quiz-opt .ck { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; color: #fff; transition: background .15s, border-color .15s; }
.quiz-opt.selected .ck { background: var(--forest); border-color: var(--forest); }
.quiz-opt .ck svg { width: 14px; height: 14px; opacity: 0; }
.quiz-opt.selected .ck svg { opacity: 1; }

.quiz-field { display: grid; gap: .8rem; }
.quiz-field input { width: 100%; padding: .95rem 1.05rem; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--cream); color: var(--ink); }
.quiz-field input:focus { outline: none; border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px var(--forest-mist); }
.quiz-field label { font-weight: 600; font-size: .88rem; color: var(--ink-soft); }
.quiz-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.6rem; gap: 1rem; }
.quiz-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-faint); font-weight: 700; font-family: var(--font-display); font-size: .95rem; padding: .5rem .2rem; }
.quiz-back:hover { color: var(--forest); }
.quiz-back svg { width: 1.1em; height: 1.1em; }
.quiz-back[hidden] { visibility: hidden; }
.quiz-hint { font-size: .78rem; color: var(--ink-faint); text-align: center; margin-top: .9rem; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.quiz-hint svg { width: 1em; height: 1em; color: var(--forest); }

.quiz-done { text-align: center; padding: 1rem 0; }
.quiz-done .tick { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.2rem; background: var(--forest-mist); color: var(--forest); display: grid; place-items: center; animation: pop .4s ease; }
.quiz-done .tick svg { width: 40px; height: 40px; }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.quiz-done h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.quiz-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--forest-mist); border-top-color: var(--forest); animation: spin 1s linear infinite; margin: 1.2rem auto 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.quiz-calendly { width: 100%; min-width: 320px; height: 700px; margin-top: 1.2rem; border-radius: 14px; overflow: hidden; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #C4D2C9; padding-top: 4rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.8rem; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand .brand-name b { color: #fff; }
.footer-brand .brand-name span { color: #8FA598; }
.footer-brand p { color: #9FB2A6; margin-top: 1rem; font-size: .95rem; max-width: 34ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #C4D2C9; transition: background .18s, color .18s; }
.footer-social a:hover { background: var(--forest-light); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: -.01em; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col a { color: #A9BBAF; font-size: .95rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .9rem; font-size: .95rem; color: #A9BBAF; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-contact .text-only { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
/* Footer CTA button: force dark, bold text so it reads clearly on gold
   (overrides the faint .footer-col a link color that otherwise wins on specificity). */
.site-footer .btn-primary { color: #241804; font-weight: 800; font-size: 1.02rem; padding: 1rem 1.7rem; }
.site-footer .btn-primary:hover { color: #241804; background: #F4BE58; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.6rem 0; font-size: .84rem; color: #859589; }
.footer-bottom .fb-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer { font-size: .78rem; color: #6E7E72; padding: 1.4rem 0 2.4rem; line-height: 1.6; border-top: 1px solid rgba(255,255,255,.07); }

/* ==========================================================================
   CERTIFIED SALES AGENT BADGE (footer)
   Reuses the animated homepage-hero `.cert-tag` badge, but flowed into the
   footer layout instead of floated over the hero photo.
   ========================================================================== */
.cert-tag-footer {
  position: static; display: inline-flex; align-items: center; margin-top: 1.3rem;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .85rem 1.05rem;
}
/* On the dark footer, keep the light chip but add a subtle lift + halo */
.cert-tag-footer.on-dark {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.35), 0 0 0 0 rgba(230,165,50,.45);
}

/* ==========================================================================
   STICKY MOBILE CTA + FLOATING
   ========================================================================== */
.mobile-cta { display: none; }

/* Page hero (interior pages) */
.page-hero { background: var(--forest-deep); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(100% 90% at 90% 0%, rgba(18,129,63,.5), transparent 55%), linear-gradient(160deg, #0A4A25, #06301A); }
.page-hero .container { position: relative; z-index: 1; padding: clamp(2.6rem,6vw,4.5rem) 0; max-width: 900px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #D6E7DB; margin-top: 1rem; font-size: 1.15rem; max-width: 60ch; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #A9C7B2; margin-bottom: 1.2rem; font-weight: 600; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .7; }

/* Prose */
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .7rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul.check-list { margin: 1rem 0; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ==========================================================================
   MARQUEE — scrolling trust strip between quiz and footer
   ========================================================================== */
.marquee {
  background: var(--forest-deep);
  border-top: 3px solid var(--gold);
  overflow: hidden;
  padding: .85rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0 2.2rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  color: var(--cream);
  text-transform: uppercase;
}
.marquee-item svg { width: 1.15em; height: 1.15em; color: var(--gold); flex: none; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee .marquee-group:nth-child(2) { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; gap: .4rem 0; }
  .cert-tag, .cert-seal { animation: none; }
  .cert-tag::after { display: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { max-width: 460px; margin-inline: auto; width: 100%; }
  .split, .map-teaser, .quiz-wrap { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .tech-grid { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .top-strip .strip-right { display: none; }
  /* backdrop-filter turns the header into the containing block for its
     position:fixed descendants, which traps the off-canvas nav panel inside
     the ~76px header box (it collapses to an empty sliver). Drop the filter at
     mobile widths so the panel anchors to the viewport and fills the height. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.96); }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px); background: var(--paper);
    transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg);
    padding: calc(var(--header-h) + 20px) 20px 20px; overflow-y: auto; z-index: 120; }
  body.nav-open .main-nav { transform: translateX(0); }
  /* The header is a sticky stacking context (z-index:100), so the nav panel's
     z-index is scoped inside it. Lift the whole header above the backdrop while
     open, otherwise the overlay covers the nav links. */
  body.nav-open .site-header { z-index: 120; }
  body.nav-open::after { content:""; position: fixed; inset: 0; background: rgba(7,59,30,.5); z-index: 110; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .main-nav a.nav-link, .main-nav > ul > li > .nav-link { padding: .85rem .8rem; font-size: 1.05rem; justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--forest-mist); border-radius: 0; min-width: 0; margin: .2rem 0 .4rem .8rem; padding: 0; }
  .dropdown a { padding: .6rem .6rem; }
  .dropdown .di { display: none; }
  .has-drop > .nav-link svg { display: none; }
  .nav-toggle { display: grid; }
  .header-cta .header-phone { display: none; }
  .header-cta .btn.header-quote { display: none; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    box-shadow: 0 -6px 24px rgba(7,59,30,.16); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem; font-family: var(--font-display); font-weight: 700; }
  .mobile-cta .m-call { background: var(--forest); color: #fff; }
  .mobile-cta .m-quote { background: var(--gold); color: #3A2708; }
  .mobile-cta svg { width: 1.15em; height: 1.15em; }
  body { padding-bottom: 58px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cols-3, .cols-4, .testi-grid, .cards.cols-2, .county-grid, .quiz-options.two { grid-template-columns: 1fr; }
  .quiz-row2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-tag.tl { left: 8px; top: 8px; }
  .hero-tag.br { right: 8px; }
  .trust-bar .container { justify-content: flex-start; gap: 1.2rem 1.8rem; }
  .brand-name span { display: none; }
}
