/* ==========================================================================
   Sonshines Sovereign Solutions LLC
   Global stylesheet / design system
   Brand: one brand blue (#102037, from the logo) + Golden Yellow, professional industrial scale
   ========================================================================== */

/* ---- Self-hosted fonts (latin subset). Inter is one variable file for every weight. ---- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/inter-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- Design tokens ---- */
:root {
  /* One brand blue, taken from the logo. The accent tokens below point at it too, so change it here only. */
  --navy: #102037;
  --navy-2: #193357; /* same blue, one step lighter: hover states only */
  --charcoal: #16181c;
  --charcoal-2: #1f2328;
  --royal: var(--navy);
  --royal-light: var(--navy-2);
  --gold: #f6a417;
  --gold-bright: #fbbf24;
  --green: #16a34a;
  --ink: #0f1e33;
  --muted: #56657a;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-soft-2: #eef3f9;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(16, 32, 55, 0.06), 0 2px 8px rgba(16, 32, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 32, 55, 0.10);
  --shadow-lg: 0 20px 50px rgba(16, 32, 55, 0.16);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --container: 1180px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Header height before scrolling; it shrinks once the page moves. */
  --header-h: 100px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--royal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--navy-2); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1rem; }
ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #dbe6f5; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* Five cards: three across, then two wider ones, so the last row has no empty slot. */
.grid-5 { grid-template-columns: repeat(6, 1fr); }
.grid-5 > * { grid-column: span 2; }
.grid-5 > :nth-child(n+4) { grid-column: span 3; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--gold-bright); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: #b9cbe4; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(246, 164, 23, 0.35); }
.btn-gold:hover { background: var(--gold-bright); color: var(--navy); }
.btn-royal { background: var(--royal); color: #fff; box-shadow: 0 8px 20px rgba(16, 32, 55, 0.3); }
.btn-royal:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--royal); color: var(--royal); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
/* Fixed (not sticky) so it can shrink on scroll without shifting the page; body padding reserves its space. */
body { padding-top: var(--header-h); }
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header.is-scrolled .nav { height: 72px; }
.brand { display: flex; flex: none; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-logo { width: auto; display: block; object-fit: contain; }
.site-header .brand-logo { height: 80px; max-height: 80px; transition: height 0.3s var(--ease), max-height 0.3s var(--ease); }
.site-header.is-scrolled .brand-logo { height: 54px; max-height: 54px; }
/* The logo's navy lettering needs a light backdrop on the navy footer. */
.footer-brand .brand-logo { height: 92px; max-height: 92px; padding: 10px 16px; background: #fff; border-radius: var(--radius-sm); margin-bottom: 16px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(246,164,23,0.4);
  position: relative;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text span { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--royal); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--royal); background: var(--bg-soft); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px auto; transition: 0.25s var(--ease); border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  color: #eaf1fb;
  overflow: hidden;
}
/* Background slideshow sits under a soft black tint so the text keeps its contrast. */
.hero-slides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, center);
  opacity: 0; transition: opacity 1.4s var(--ease);
}
/* A slow push-in while a photo is on screen. The leaving photo keeps the same animation so it doesn't jump mid-fade. */
.hero-slide.is-active, .hero-slide.is-leaving { animation: heroZoom 8s linear both; }
.hero-slide.is-active { opacity: 1; }
.hero-slides.is-paused .hero-slide { animation-play-state: paused; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-pause {
  position: absolute; right: 20px; bottom: 20px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(22,24,28,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.35);
  opacity: 0.75; transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-pause:hover, .hero-pause:focus-visible { opacity: 1; background: rgba(22,24,28,0.85); }
.hero-pause:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.hero-pause[hidden] { display: none; }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause .ic-play, .hero-pause.is-paused .ic-pause { display: none; }
.hero-pause.is-paused .ic-play { display: block; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(16,32,55,0.55) 0%, transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(246,164,23,0.12) 0%, transparent 55%),
    linear-gradient(100deg, rgba(22,24,28,0.88) 0%, rgba(22,24,28,0.78) 50%, rgba(22,24,28,0.68) 100%);
  pointer-events: none;
}
/* Side-by-side layout: the card has its own navy glass, so the photos can show more on the right. */
@media (min-width: 961px) {
  .hero::before {
    background:
      radial-gradient(900px 500px at 85% -10%, rgba(16,32,55,0.5) 0%, transparent 60%),
      radial-gradient(700px 500px at 5% 110%, rgba(246,164,23,0.12) 0%, transparent 55%),
      linear-gradient(100deg, rgba(22,24,28,0.88) 0%, rgba(22,24,28,0.78) 48%, rgba(22,24,28,0.45) 100%);
  }
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 70% at 70% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0 100px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold-bright); }
.hero p { color: #dde2e8; font-size: 1.2rem; max-width: 54ch; margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9rem; color: #d2d8e0; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 17px; height: 17px; color: var(--gold-bright); flex: none; }

.hero-card {
  background: rgba(22,24,28,0.5); /* dark glass keeps the small print readable over bright slides */
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.hero-card p { font-size: 0.95rem; color: #d2d8e0; margin-bottom: 20px; }
.hero-card .quick-list { list-style: none; margin: 0; padding: 0; }
.hero-card .quick-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.12); color: #dbe7f6; font-size: 0.96rem;
}
.hero-card .quick-list li:first-child { border-top: 0; }
.hero-card .quick-list .ic { width: 34px; height: 34px; flex: none; border-radius: 9px; background: rgba(246,164,23,0.18); display: grid; place-items: center; }
.hero-card .quick-list svg { width: 18px; height: 18px; color: var(--gold-bright); }

/* ---- Trust / stats bar ---- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 20px; box-shadow: var(--shadow-md);
  margin-top: -54px; position: relative; z-index: 5;
}
.stat { text-align: center; padding: 6px 10px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--royal); line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdd9e8; }
.card .ic {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(16,32,55,0.12), rgba(16,32,55,0.04));
}
.card .ic svg { width: 27px; height: 27px; color: var(--royal); }
.card--gold .ic { background: linear-gradient(135deg, rgba(246,164,23,0.2), rgba(246,164,23,0.06)); }
.card--gold .ic svg { color: var(--gold); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }
.card .link-more { padding: 10px 0; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.card .link-more svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.card:hover .link-more svg { transform: translateX(4px); }

/* Feature list w/ checkmarks */
.check-list { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 1px; }
.section--navy .check-list svg { color: var(--gold-bright); }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr 0.9fr; }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-soft-2));
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  position: relative;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .placeholder { text-align: center; color: var(--muted); padding: 24px; }
.media-frame .placeholder svg { width: 48px; height: 48px; color: #b6c4d6; margin: 0 auto 10px; }
.media-frame .placeholder b { display: block; font-family: var(--font-head); color: var(--navy); }
.media-frame .placeholder small { font-size: 0.8rem; }

/* ---- CTA band ---- */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(246,164,23,0.22) 0%, transparent 60%),
    var(--navy);
  color: #fff; border-radius: var(--radius-lg);
  padding: 54px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e3f5; max-width: 58ch; margin-left: auto; margin-right: auto; }

/* ---- Specialty panel (home: EV charging), above the service cards with the same gap as the card grid ---- */
.ev-feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; margin-bottom: 26px;
  background:
    radial-gradient(600px 320px at 100% 0%, rgba(246,164,23,0.18) 0%, transparent 60%),
    var(--navy);
  color: #dbe6f5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
/* The side-by-side crop is narrower than the photo; 72% keeps both the charger and the electrician in frame. */
.ev-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.ev-feature-body { padding: 52px 50px; align-self: center; }
.ev-feature .eyebrow { color: var(--gold-bright); }
/* An h3 under What We Do, sized like a section heading because it is the specialty. */
.ev-feature h3 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.ev-feature .lead { color: #b9cbe4; }
.ev-feature .check-list svg { color: var(--gold-bright); }
.ev-feature .btn-row { margin-top: 8px; }

/* ---- Testimonials ---- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); height: 100%; position: relative;
}
.quote .mark { font-family: var(--font-head); font-size: 3rem; color: var(--gold); line-height: 0.6; margin-bottom: 6px; display: block; }
.quote p { font-size: 1.02rem; color: var(--ink); font-style: italic; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--royal), var(--royal-light)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; flex: none; }
.quote .who b { font-family: var(--font-head); color: var(--navy); font-size: 0.95rem; display: block; }
.quote .who span { font-size: 0.82rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.95rem; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  color: #eaf1fb; padding: 66px 0 72px; position: relative; overflow: hidden;
}
/* One photo per page, under a soft black tint that is darkest behind the text. */
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); z-index: 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(16,32,55,0.55) 0%, transparent 60%),
    linear-gradient(100deg, rgba(22,24,28,0.86) 0%, rgba(22,24,28,0.74) 55%, rgba(22,24,28,0.5) 100%);
}
/* Stacked phone layout: text runs the full width, so tint evenly. */
@media (max-width: 960px) {
  .page-hero::before {
    background:
      radial-gradient(500px 300px at 90% -20%, rgba(16,32,55,0.5) 0%, transparent 60%),
      linear-gradient(180deg, rgba(22,24,28,0.8) 0%, rgba(22,24,28,0.76) 100%);
  }
}
.page-hero::after {
  content:""; position:absolute; inset:0; z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 80% at 80% 0%, #000, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: #dde2e8; font-size: 1.15rem; max-width: 62ch; margin-bottom: 0; }
.crumbs { font-size: 0.85rem; color: #d2d8e0; margin-bottom: 18px; }
.crumbs a { color: #d2d8e0; display: inline-block; padding: 12px 6px; margin: -12px -6px; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--gold-bright); }

/* ---- Section headings ---- */
.section-head { max-width: 66ch; margin-bottom: 46px; }
.center.section-head { margin-left: auto; margin-right: auto; }

/* ---- Service detail rows ---- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row.reverse .svc-text { order: 2; }
.svc-tag { display:inline-block; font-family: var(--font-head); font-weight:600; font-size:0.75rem; letter-spacing:0.12em; text-transform:uppercase; color: #8a5800; background: rgba(246,164,23,0.12); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }

/* ---- Forms ---- */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--navy); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--royal); background: #fff; box-shadow: 0 0 0 4px rgba(16,32,55,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--muted); }
.field label.checkbox-row { font-family: var(--font-body); font-weight: 400; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.checkbox-row input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--royal); }
.checkbox-row a { text-decoration: underline; }

/* ---- Contact info blocks ---- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.info-list .ic svg { width: 22px; height: 22px; color: var(--royal); }
.info-list b { font-family: var(--font-head); color: var(--navy); display: block; font-size: 0.95rem; }
.info-list a, .info-list span { color: var(--muted); }
.info-list a:hover { color: var(--royal); }

/* ---- Founder sign-off (About): name, title, phone and tagline as on Brandon's card ---- */
.founder-card { margin-top: 26px; padding: 20px 24px; background: var(--bg-soft); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.founder-card b { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); line-height: 1.25; }
.founder-card span { display: block; color: var(--muted); font-size: 0.95rem; }
.founder-card a { display: inline-block; padding: 6px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.founder-card p { margin: 4px 0 0; font-family: var(--font-head); font-weight: 600; font-style: italic; color: var(--navy); }

/* ---- FAQ / accordion ---- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--font-head); font-weight: 600;
  color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--royal); transition: transform 0.2s var(--ease); flex: none; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }

/* ---- Badges / pills row ---- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; box-shadow: var(--shadow-sm); }
.pill svg { width: 16px; height: 16px; color: var(--gold); }
.section--navy .pill { background: rgba(255,255,255,0.08); color: #eaf1fb; border-color: rgba(255,255,255,0.18); }
.section--navy .pill svg { color: var(--gold-bright); }

/* ---- Coming soon ---- */
.coming-hero { text-align: center; max-width: 640px; margin: 0 auto; }
.coming-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(246,164,23,0.15); color: #8a5800; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 18px; border-radius: 999px; margin-bottom: 22px; }
.coming-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #a9c0de; padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 0.95rem; line-height: 1.3; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #a9c0de; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text span { color: var(--gold-bright); }
.footer-brand p { font-size: 0.95rem; color: #92abcd; max-width: 34ch; }
.footer-brand .footer-tag { color: var(--gold-bright); font-family: var(--font-head); font-weight: 600; font-style: italic; margin-top: 4px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0; font-size: 0.95rem; }
.footer-links a { display: inline-block; padding: 10px 0; line-height: 1.5; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; font-size: 0.95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-bright); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.socials a:hover { background: var(--gold); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 46px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #7c96ba; }
.footer-bottom a { color: #7c96ba; }

.footer-bottom { align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-legal a, .footer-legal button { color: #9fb2cc; font: inherit; background: none; border: 0; padding: 12px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--gold-bright); }

/* ---- Cookie consent banner (only appears once tracking IDs are set) ---- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; flex: 1 1 320px; font-size: 0.95rem; }
.consent-banner a { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }

/* ---- Legal and policy pages ---- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1rem; }
.legal li { margin-bottom: 0.55rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Utilities / reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 66px 0 80px; }
  .hero-card { order: 2; }
  .split, .split--wide-left { grid-template-columns: 1fr; gap: 34px; }
  .svc-row, .svc-row.reverse { grid-template-columns: 1fr; gap: 26px; }
  .svc-row.reverse .svc-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > *, .grid-5 > :nth-child(n+4) { grid-column: span 3; }
  .grid-5 > :last-child { grid-column: 1 / -1; }
  .ev-feature { grid-template-columns: 1fr; }
  .ev-feature-media img { height: auto; aspect-ratio: 4 / 3; }
  .ev-feature-body { padding: 36px 30px 40px; }
}
/* Full nav plus the large logo needs about 1020px; below that, collapse to the menu button. */
@media (max-width: 1060px) {
  :root { --header-h: 84px; }
  .site-header .brand-logo { height: 64px; max-height: 64px; }
  .site-header.is-scrolled .nav { height: 66px; }
  .site-header.is-scrolled .brand-logo { height: 48px; max-height: 48px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform 0.3s var(--ease); z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px 4px; margin-top: 24px; }
  .cta-band { padding: 38px 26px; }
  .form-wrap { padding: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .grid-5 > *, .grid-5 > :nth-child(n+4), .grid-5 > :last-child { grid-column: auto; }
  .ev-feature-body { padding: 30px 22px 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero .btn-row .btn, .cta-band .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Motion layer
   Kept deliberately restrained: short fades, small movements, no looping
   effects. The site reads fine without it, and it all switches off for
   visitors who ask for reduced motion.
   ========================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Anchor targets land below the sticky header */
[id] { scroll-margin-top: 110px; }

/* ---- Hero: one calm entrance ---- */
.hero-inner > div:first-child { animation: fadeUp 0.7s var(--ease) both; }
.hero-card { animation: fadeUp 0.7s var(--ease) 0.15s both; }
.page-hero .container { animation: fadeUp 0.7s var(--ease) both; }

/* ---- Stats: count up (see main.js) ---- */
.stat b { font-variant-numeric: tabular-nums; }
@media (min-width: 781px) { .stat + .stat { border-left: 1px solid var(--line); } }

/* ---- Reveal variations ---- */
.reveal-left { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }

/* Section headings: eyebrow, title, then lead */
.reveal.reveal-group { opacity: 1; transform: none; }
.reveal-group > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.reveal-group.in > * { opacity: 1; transform: none; }

/* Check lists and pills follow their block in */
.reveal .check-list li, .reveal.pill-row .pill, .reveal .pill-row .pill {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(0.15s + var(--i, 0) * 0.06s);
}
.reveal.in .check-list li, .reveal.in.pill-row .pill, .reveal.in .pill-row .pill { opacity: 1; transform: none; }

/* Once revealed, hover interactions get their normal timing back */
.reveal.revealed { --d: 0s; }
.reveal.revealed .pill, .reveal.revealed .check-list li, .reveal-group.revealed > * { transition-delay: 0s; }
.card.reveal.revealed, .quote.reveal.revealed { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }

/* ---- Cards: accent line and icon fill on hover ---- */
.card { position: relative; overflow: hidden; }
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none;
  background: var(--royal);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease);
}
.card--gold::after { background: var(--gold); }
.card:hover::after { transform: scaleX(1); }
.card .ic, .card .ic svg { transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.card:hover .ic { background: var(--royal); }
.card:hover .ic svg { color: #fff; }
.card--gold:hover .ic { background: var(--gold); }
.card--gold:hover .ic svg { color: var(--navy); }
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cdd9e8; }

/* ---- Media frames settle in ---- */
.reveal .media-frame { transform: scale(0.97); transition: transform 0.9s var(--ease) 0.1s; }
.reveal.in .media-frame { transform: none; }

/* ---- Forms ---- */
.field label { transition: color 0.2s var(--ease); }
.field:focus-within label { color: var(--royal); }
.form-success { animation: fadeIn 0.4s var(--ease) both; }

/* ---- FAQ ---- */
.faq summary { transition: background 0.2s var(--ease); }
.faq summary:hover { background: var(--bg-soft); }
.faq details[open] .faq-body { animation: faqIn 0.3s var(--ease) both; }

/* ---- Back to top ---- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--navy);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy); color: #fff; }

/* ---- Responsive tuning ---- */
@media (max-width: 960px) {
  .reveal-left, .reveal-right { transform: translateY(22px); }
}
@media (max-width: 780px) {
  .to-top { right: 16px; bottom: 16px; }
}

/* ---- Reduced motion: everything settles instantly ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .reveal-group > *, .reveal .check-list li, .reveal .pill { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 12px 18px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .section--navy :focus-visible, .ev-feature :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible { outline-color: var(--gold-bright); }
/* Links inside running text are underlined so they don't rely on color alone. */
p a:not(.btn), .faq-body a, .form-note a { text-decoration: underline; text-underline-offset: 3px; }
/* Without JavaScript the scroll animations never start, so show everything. */
html:not(.js) .reveal, html:not(.js) .reveal-group > *, html:not(.js) .reveal .check-list li,
html:not(.js) .reveal.pill-row .pill, html:not(.js) .reveal .pill-row .pill { opacity: 1 !important; transform: none !important; }
