:root {
  /* Brand palette — Brand Assets, Direction E2 (locked) §04.
     These hues are constant across light/dark; the theme blocks below map them
     onto semantic tokens (--bg, --surface, --text…) that flip per theme. */
  --electric: #21C45D;   /* Results Green */
  --dark-green: #138043;  /* Deep Green */
  --ink: #14171C;
  --pampas: #F7F6F2;      /* Paper */
  --mist: #A9ECC5;        /* Mist · tint */

  /* Typeface — Archivo carries the whole system; JetBrains Mono for mono accents (§05) */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1120px;
}

/* ===========================================================================
   BOOTSTRAP THEME LAYER
   Override Bootstrap's CSS variables so its components (navbar, grid, cards,
   buttons) inherit the brand's Archivo/green look instead of the defaults.

   Semantic tokens used throughout the stylesheet:
     --bg / --bg-rgb   page background (rgb triple for translucent overlays)
     --surface         card & panel background
     --surface-2       secondary surface (gradient ends)
     --text / --text-rgb   primary text (rgb triple for opacity-based muting)
     --line            hairline borders
     --muted           muted text
   =========================================================================== */
[data-bs-theme="dark"] {
  --bg: var(--ink);
  --bg-rgb: 20, 23, 28;
  --surface: #1b1f26;
  --surface-2: #232932;
  --text: var(--pampas);
  --text-rgb: 247, 246, 242;
  --line: rgba(var(--text-rgb), 0.10);
  --muted: rgba(var(--text-rgb), 0.55);

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font-body);
  --bs-emphasis-color: var(--text);
  --bs-emphasis-color-rgb: var(--text-rgb);
  --bs-border-color: var(--line);
  --bs-border-radius: 12px;

  --bs-primary: var(--electric);
  --bs-primary-rgb: 33, 196, 93;
  --bs-link-color: var(--electric);
  --bs-link-color-rgb: 33, 196, 93;
  --bs-link-hover-color: #28d869;
}

[data-bs-theme="light"] {
  --bg: var(--pampas);
  --bg-rgb: 247, 246, 242;
  --surface: #ffffff;
  --surface-2: #efede7;
  --text: var(--ink);
  --text-rgb: 20, 23, 28;
  --line: rgba(var(--text-rgb), 0.12);
  --muted: rgba(var(--text-rgb), 0.55);

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-body-font-family: var(--font-body);
  --bs-emphasis-color: var(--text);
  --bs-emphasis-color-rgb: var(--text-rgb);
  --bs-border-color: var(--line);
  --bs-border-radius: 12px;

  --bs-primary: var(--electric);
  --bs-primary-rgb: 33, 196, 93;
  --bs-link-color: var(--dark-green);
  --bs-link-color-rgb: 19, 128, 67;
  --bs-link-hover-color: var(--electric);
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* Constrain Bootstrap's container to the brand max width */
.container { max-width: var(--maxw); }

/* Subtle grain / vignette for depth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(33, 196, 93, 0.12), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(19, 128, 67, 0.10), transparent 55%);
}
main, .navbar, .footer { position: relative; z-index: 1; }

/* Brand logo wrapper. Named .brand-mark, not .mark, to avoid colliding with
   Bootstrap's .mark text-highlight utility (which paints a highlight bg). */
.brand-mark { display: inline-flex; }

/* ---------- BUTTONS (themed Bootstrap .btn) ---------- */
.btn {
  font-weight: 600;
  --bs-btn-border-radius: 12px;
  --bs-btn-padding-y: 15px;
  --bs-btn-padding-x: 30px;
  --bs-btn-font-size: 1rem;
}
.btn-lg {
  --bs-btn-padding-y: 18px;
  --bs-btn-padding-x: 40px;
  --bs-btn-font-size: 1.1rem;
  --bs-btn-border-radius: 12px;
}
.btn-primary {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--electric);
  --bs-btn-border-color: var(--electric);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: #28d869;
  --bs-btn-hover-border-color: #28d869;
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: #1ba34d;
  --bs-btn-active-border-color: #1ba34d;
  box-shadow: 0 8px 30px rgba(33, 196, 93, 0.3);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary:hover { box-shadow: 0 10px 38px rgba(33, 196, 93, 0.45); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline-light {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-color: var(--electric);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: var(--electric);
  --bs-btn-active-color: var(--electric);
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: var(--electric);
}

/* ---------- NAV ---------- */
.navbar {
  padding-top: 18px;
  padding-bottom: 18px;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navbar .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(var(--text-rgb), 0.7);
  transition: color .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active { color: var(--electric); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(33, 196, 93, 0.25); }
.brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand.brand { padding: 0; margin: 0; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* The "Co" always sits in a Results-Green chip (Brand Assets §02) */
.co {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--electric);
  border-radius: 5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  font-size: 0.62em;
  padding: 4px 6px;
}
.nav-cta {
  font-weight: 600;
  font-size: 0.9rem;
  --bs-btn-padding-y: 10px;
  --bs-btn-padding-x: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.nav-cta:hover { border-color: var(--electric); color: var(--electric); }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover,
.theme-toggle:focus-visible { border-color: var(--electric); color: var(--electric); }
.theme-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(33, 196, 93, 0.25); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show the icon for the theme you can switch TO: sun while dark, moon while light. */
[data-bs-theme="dark"] .theme-toggle .icon-moon,
[data-bs-theme="light"] .theme-toggle .icon-sun { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  isolation: isolate;
}
/* Area photo background that melts into the site's dark bg top & bottom.
   The layered gradient darkens the image for text contrast and fades it
   fully to --ink at the edges so there's no hard box. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(var(--bg-rgb), 0.78) 18%,
      rgba(var(--bg-rgb), 0.62) 45%,
      rgba(var(--bg-rgb), 0.80) 72%,
      var(--bg) 100%
    ),
    url("../img/hero.2d8ddaec7027.jpg") center / cover no-repeat;
  /* soften the left/right edges into the page too */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric);
  padding: 7px 16px;
  border: 1px solid rgba(33, 196, 93, 0.35);
  border-radius: 999px;
  margin-bottom: 28px;
}
/* In light mode the hero eyebrow sits over the photo, where outlined green text
   loses contrast. Make it a solid green chip with paper-colored text (matching
   the brand "Co" chip). Scoped to the hero so section-head eyebrows are unchanged. */
[data-bs-theme="light"] .hero .eyebrow {
  background: var(--electric);
  border-color: var(--electric);
  color: var(--pampas);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.accent { color: var(--electric); }
.lede {
  max-width: 620px;
  margin-bottom: 38px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(var(--text-rgb), 0.8);
}
.lede em { color: var(--text); font-style: italic; }
.hero-actions { margin-bottom: 40px; }
.hero-meta { color: var(--muted); font-size: 0.95rem; }
.hero-meta b { color: var(--text); }
.dot { color: var(--dark-green); }

/* ---------- SECTION SHARED ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- SERVICES ---------- */
.services { padding: 24px 0 60px; }
.service.card {
  --bs-card-bg: var(--surface);
  --bs-card-border-color: var(--line);
  --bs-card-border-radius: 18px;
  --bs-card-spacer-y: 30px;
  --bs-card-spacer-x: 30px;
  transition: border-color .25s, transform .25s;
}
.service.card:hover { border-color: rgba(33, 196, 93, 0.4); transform: translateY(-4px); }
.service-ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(33, 196, 93, 0.12);
  color: var(--electric);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.service p { color: rgba(var(--text-rgb), 0.7); font-size: 0.96rem; }
.service em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- OFFER ---------- */
.offer { padding: 40px 0 90px; }
.offer-panel {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 52px 48px;
}
.offer-panel--photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.offer-panel--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/club-house-roof-cropped.3c3611d86c17.png");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: -1;
}
.offer-panel--photo > * { position: relative; }
.offer-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 18px 0 10px;
}
.offer-price span { color: var(--electric); font-size: 2.4rem; }
.offer-sub { color: var(--muted); }
.deliverables li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.deliverables li:last-child { border-bottom: none; }
.deliverables li::before {
  content: "";
  position: absolute;
  left: 0; top: 19px;
  width: 14px; height: 14px;
  border-left: 2.5px solid var(--electric);
  border-bottom: 2.5px solid var(--electric);
  transform: rotate(-45deg);
}

/* ---------- CTA ---------- */
.cta { padding: 60px 0 100px; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta p { color: rgba(var(--text-rgb), 0.75); font-size: 1.15rem; margin-bottom: 32px; }
.cta strong { color: var(--electric); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  text-align: center;
}
.footer .brand { justify-content: center; }
.footer .brand-mark { color: var(--electric); display: inline-flex; }
.footer-tagline { color: var(--muted); font-size: 0.95rem; margin: 14px 0 0; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin: 26px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-nav a { color: rgba(var(--text-rgb), 0.7); font-size: 0.9rem; font-weight: 600; transition: color .2s; }
.footer-nav a:hover { color: var(--electric); }
.footer-meta { font-size: 0.9rem; color: rgba(var(--text-rgb), 0.7); margin-bottom: 6px; }
.footer-meta a { color: var(--electric); }
.footer .muted { color: var(--muted); font-size: 0.82rem; }

/* ===========================================================================
   PAGE / SECTION SCAFFOLDING (interior pages + homepage sections)
   =========================================================================== */
.section { padding: 70px 0; }
.section.pt-0 { padding-top: 0; }
.section-head { max-width: 760px; margin: 0 auto 48px; }
.section-lede { color: rgba(var(--text-rgb), 0.75); font-size: 1.05rem; margin-top: 14px; margin-bottom: 0; }

.page-hero { padding: 64px 0 40px; }
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

/* Prose blocks (Problem / Solution) */
.prose { max-width: 720px; }
.prose p { color: rgba(var(--text-rgb), 0.8); font-size: 1.08rem; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose-accent {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text) !important;
  font-size: 1.25rem !important;
}

/* Hero trust line */
.hero-trust { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Eyebrow used as a centered section label */
.section-head .eyebrow { margin-bottom: 18px; }
.eyebrow-muted { color: var(--muted); border-color: var(--line); }

/* Homepage step cards */
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--electric);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

/* Problem / Solution pillars (homepage, side by side) */
.pillar.card {
  --bs-card-bg: var(--surface);
  --bs-card-border-color: var(--line);
  --bs-card-border-radius: 18px;
  --bs-card-spacer-y: 38px;
  --bs-card-spacer-x: 36px;
}
.pillar.pillar-solution { --bs-card-border-color: rgba(33, 196, 93, 0.35); }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 4px 0 16px;
}
.pillar p { color: rgba(var(--text-rgb), 0.78); }

/* Stats / proof bar */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 52px 0;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--electric);
  line-height: 1;
}
.stat .lbl { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

/* Component cards (How It Works) */
.tag-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric);
  display: inline-block;
  margin-bottom: 10px;
}
.does { color: var(--muted); font-style: italic; font-size: 0.92rem; margin: 14px 0 0; }
.does span { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- FAQ (accordion) ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 26px;
  margin-bottom: 14px;
  transition: border-color .25s;
}
.faq-item[open] { border-color: rgba(33, 196, 93, 0.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--electric); }
.faq-item summary:focus-visible { outline: 2px solid var(--electric); outline-offset: 4px; border-radius: 6px; }
/* Plus icon that becomes a minus when the item is open */
.faq-icon {
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--electric);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after  { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-a {
  padding: 0 0 24px;
  color: rgba(var(--text-rgb), 0.7);
  font-size: 0.98rem;
  max-width: 66ch;
}

/* Deliverables in two columns */
.deliverables-cols { column-gap: 48px; }
@media (min-width: 768px) { .deliverables-cols { columns: 2; } }
.deliverables-cols li { break-inside: avoid; }

/* Timeline (How It Starts) */
.timeline-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-week {
  flex: none;
  width: 110px;
  font-family: var(--font-mono);
  color: var(--electric);
  font-weight: 500;
}
.timeline-item p { margin: 0; color: rgba(var(--text-rgb), 0.8); }

/* Fit cards + checklists (Who It's For) */
.fit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 30px;
  height: 100%;
}
.fit-card.good { border-color: rgba(33, 196, 93, 0.35); }
.checklist li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist.good li::before {
  content: "";
  position: absolute;
  left: 3px; top: 17px;
  width: 13px; height: 8px;
  border-left: 2.5px solid var(--electric);
  border-bottom: 2.5px solid var(--electric);
  transform: rotate(-45deg);
}
.checklist.bad li { color: var(--muted); }
.checklist.bad li::before {
  content: "×";
  position: absolute;
  left: 6px; top: 9px;
  color: rgba(var(--text-rgb), 0.4);
  font-size: 1.3rem;
  line-height: 1;
}

/* Trades grid */
.trade-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.trade {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--surface);
}

/* About story */
.story p { font-size: 1.1rem; color: rgba(var(--text-rgb), 0.85); margin-bottom: 18px; }
.signature {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--electric);
  margin-top: 8px;
}

/* Contact — what to expect */
.expect { counter-reset: step; }
.expect li {
  position: relative;
  padding: 14px 0 14px 50px;
  border-bottom: 1px solid var(--line);
  color: rgba(var(--text-rgb), 0.85);
}
.expect li:last-child { border-bottom: none; }
.expect li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(33, 196, 93, 0.12);
  color: var(--electric);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Calendly card */
.calendly-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

/* CTA micro-copy */
.cta-micro { color: var(--muted); font-size: 0.9rem; margin: 22px 0 0; }
