/* ==========================================================================
   Attention to Detail Lawn Care — Design System
   --------------------------------------------------------------------------
   One file, loaded on every page. Organized as:
     1. Design tokens
     2. Reset + base
     3. Typography
     4. Layout primitives
     5. Buttons + links
     6. Header / navigation / announcement bar
     7. Hero + page headers
     8. Cards (service, plan, area, review, gallery)
     9. Sections (steps, split, CTA, trust)
    10. Before/after slider
    11. Forms + multi-step estimate flow
    12. Footer + sticky mobile CTA
    13. Portal / admin shells
    14. Utilities, motion, print
   To restyle the site, change the tokens in section 1.
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand color system — premium monochrome, matched to the black & white
     company logo (per the Yelp profile). Variable names are historical;
     the values define the palette. */
  --green-950: #0a0a0b;   /* deepest black — announcement, footer */
  --green-900: #131415;   /* dark primary — hero, dark sections */
  --green-800: #1c1d1f;   /* primary hover */
  --green-700: #242628;   /* primary brand — buttons, links */
  --green-600: #3c3f42;   /* focus rings, hover borders */
  --green-100: #ebebe9;   /* light tint — icon chips, nav hover */
  --leaf:      #b9bdbf;   /* light accent on dark surfaces */
  --brass:     #a8a8a2;   /* silver accent — stars, small flourishes */
  --brass-ink: #5f5f5b;   /* accent dark enough for text on light bg */

  --bg:        #f6f6f4;   /* soft warm-neutral white (never stark) */
  --surface:   #ffffff;   /* elevated card background */
  --surface-2: #eeeeec;   /* subtle inset background */
  --ink:       #151617;   /* primary text */
  --ink-2:     #494b4d;   /* secondary text */
  --ink-3:     #6e7072;   /* tertiary / captions */
  --border:    #e4e4e1;
  --border-2:  #cbcbc7;
  /* Meets WCAG 1.4.11 (3:1) against white/bg — used only where a border is
     load-bearing for perceiving a UI control (inputs, choice cards,
     outline buttons). Decorative card borders keep --border-2. */
  --border-interactive: #8a8a85;

  --success:   #2f7d43;
  --success-bg:#e7f2e9;
  --warning:   #8f6410;
  --warning-bg:#f7efdd;
  --error:     #a83a32;
  --error-bg:  #f9e9e7;

  --cream:     #f5f5f4;   /* headings/text on black */
  --cream-2:   #c7c9c9;   /* secondary text on black */

  /* Typography — big, tight, modern sans throughout (product-company feel).
     To move to self-hosted webfonts later: add @font-face rules at the top
     of this file and change only the two families below. */
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui,
                  -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui,
               -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-xs:  0.8125rem;
  --text-sm:  0.9375rem;
  --text-md:  1.0625rem;
  --text-lg:  clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-xl:  clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  --text-2xl: clamp(1.8rem, 1.4rem + 1.8vw, 2.75rem);
  --text-3xl: clamp(2.4rem, 1.7rem + 3.2vw, 4.25rem);

  /* Spacing + shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 16, 16, 0.06);
  --shadow:    0 10px 30px -10px rgba(15, 16, 16, 0.18);
  --shadow-lg: 0 24px 60px -18px rgba(15, 16, 16, 0.3);

  --container: 72rem;
  --header-h: 4.5rem;
  --header-h-compact: 3.5rem;

  /* Subtle topographic texture used on dark sections (inline SVG) */
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23f5f5f4' stroke-opacity='0.05' stroke-width='1.4'%3E%3Cpath d='M0 60c70-24 130 22 210 6s140-44 210-18'/%3E%3Cpath d='M0 140c80-30 150 26 230 8s120-40 190-16'/%3E%3Cpath d='M0 226c60-20 140 30 220 12s130-46 200-20'/%3E%3Cpath d='M0 312c76-28 146 24 226 6s124-38 194-14'/%3E%3Cpath d='M0 398c66-22 136 26 216 10s134-44 204-20'/%3E%3C/g%3E%3C/svg%3E");
}

/* 2. RESET + BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
iframe { border: 0; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--cream); }

::selection { background: var(--green-100); color: var(--green-900); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--green-900);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

/* 3. TYPOGRAPHY ---------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); line-height: 1.3; }
.h3 { font-size: var(--text-xl) !important; }
.h4 { font-size: var(--text-lg) !important; }

p  { max-width: 68ch; }
.lead { font-size: var(--text-lg); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: var(--text-sm); }
.fine  { font-size: var(--text-xs); color: var(--ink-3); }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: var(--space-3);
}
.on-dark .eyebrow { color: var(--leaf); }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
/* :not(.btn) keeps this from overriding button label colors — without it,
   light buttons on dark sections render white-on-white text */
.on-dark a:not(.btn) { color: var(--cream); }

.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.4rem; max-width: 66ch; }
.prose li + li { margin-top: 0.45rem; }

/* 4. LAYOUT PRIMITIVES --------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
@media (max-width: 480px) {
  .container { width: min(100% - 2rem, var(--container)); }
}

.section { padding-block: clamp(3.75rem, 5vw + 2rem, 7rem); }
.section--tight { padding-block: clamp(2.25rem, 3vw + 1rem, 3.5rem); }
.section--alt { background: var(--surface-2); }
.section--dark {
  background: var(--green-900) var(--topo);
  color: var(--cream-2);
}
.section--dark :is(h1, h2, h3, h4) { color: var(--cream); }

.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head p { margin-top: var(--space-3); }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.stack > * + * { margin-top: var(--space-4); }

/* 5. BUTTONS + LINKS ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 650;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--primary { background: var(--green-700); color: #fdfcf7; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-800); color: #fdfcf7; box-shadow: var(--shadow); }

.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #000; color: var(--cream); }

.btn--outline { border-color: var(--border-interactive); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--green-700); color: var(--green-800); background: var(--surface); }

.on-dark .btn--outline { border-color: rgba(243, 239, 226, 0.4); color: var(--cream); }
.on-dark .btn--outline:hover { border-color: var(--cream); background: rgba(243, 239, 226, 0.08); color: var(--cream); }

.btn--cream { background: var(--cream); color: var(--green-900); }
.btn--cream:hover { background: #fff; color: var(--green-900); }

.btn--lg { padding: 1rem 2rem; font-size: var(--text-md); }
.btn--sm { padding: 0.5rem 1.05rem; min-height: 40px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

.text-link {
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.text-link::after { content: "\2192"; transition: transform 0.15s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* 6. HEADER / NAV / ANNOUNCEMENT ---------------------------------------- */
.announcement {
  background: var(--green-950);
  color: var(--cream-2);
  font-size: var(--text-sm);
  text-align: center;
  padding: 0.55rem 1rem;
}
.announcement a { color: var(--cream); font-weight: 600; }
.announcement[hidden] { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 238, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
/* Reserve height before JS renders the header, to avoid layout shift */
.site-header { min-height: calc(var(--header-h) + 1px); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
  transition: min-height 0.2s ease;
}
.site-header.is-stuck .site-header__inner { min-height: var(--header-h-compact); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand__logo {
  width: 44px;
  height: 44px;
  flex: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px;
}
.site-header.is-stuck .brand__logo { width: 38px; height: 38px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
}

.primary-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}
.primary-nav a {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.primary-nav a:hover { color: var(--green-800); background: var(--green-100); }
.primary-nav a[aria-current="page"] { color: var(--green-800); background: var(--green-100); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1023px) {
  .primary-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 90;
    display: none;
    background: var(--bg);
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0.15rem; }
  .primary-nav a {
    display: block;
    font-size: 1.2rem;
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
  }
  .primary-nav .nav-cta { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn--header-quote { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1024px) {
  .primary-nav .nav-cta { display: none; }
  .header-actions .btn--header-call { display: none; }
}

/* 7. HERO + PAGE HEADERS ------------------------------------------------- */
.hero {
  position: relative;
  background: var(--green-900) var(--topo);
  color: var(--cream-2);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img, .hero__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 9, 9, 0.93) 25%, rgba(8, 9, 9, 0.6) 65%, rgba(8, 9, 9, 0.25));
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 11vw, 9.5rem);
  max-width: 46rem;
}
.hero h1 { color: var(--cream); }
.hero .lead { color: var(--cream-2); margin-top: var(--space-4); }
.hero__ctas { margin-top: var(--space-6); }
.hero__trust {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--cream-2);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust svg { width: 1rem; height: 1rem; color: var(--leaf); flex: none; }

.page-hero {
  background: var(--green-900) var(--topo);
  color: var(--cream-2);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}
.page-hero h1 { color: var(--cream); max-width: 30ch; }
.page-hero .lead { color: var(--cream-2); margin-top: var(--space-3); }
.breadcrumbs {
  font-size: var(--text-xs);
  margin-bottom: var(--space-4);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--cream-2); opacity: 0.6; }
.breadcrumbs a { color: var(--cream-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cream); }
.breadcrumbs [aria-current="page"] { color: var(--cream); font-weight: 600; }

/* 8. CARDS --------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-2); }
.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-800);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--text-lg); }
.service-card p { font-size: var(--text-sm); color: var(--ink-2); flex-grow: 1; }
.service-card .text-link { font-size: var(--text-sm); }

.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6) var(--space-5);
  position: relative;
}
.plan-card--featured {
  background: var(--green-900) var(--topo);
  border-color: var(--green-900);
  box-shadow: var(--shadow-lg);
  color: var(--cream-2);
  transform: scale(1.02);
}
.plan-card--featured .plan-card__name,
.plan-card--featured .plan-card__amount { color: var(--cream); }
.plan-card--featured .plan-card__tagline,
.plan-card--featured .plan-card__per,
.plan-card--featured li { color: var(--cream-2); }
.plan-card--featured .plan-card__from { color: var(--brass); }
.plan-card--featured li svg { color: var(--leaf); }
@media (max-width: 900px) { .plan-card--featured { transform: none; } }
.plan-card__flag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-700);
  color: #fdfcf7;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-card__name { font-size: var(--text-xl); }
.plan-card__tagline { color: var(--ink-2); font-size: var(--text-sm); margin-top: 0.2rem; }
.plan-card__price { margin-block: var(--space-4); display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.plan-card__amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.plan-card__per { color: var(--ink-3); font-size: var(--text-sm); }
.plan-card__from { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brass-ink); width: 100%; }
.plan-card ul { list-style: none; padding: 0; margin-block: var(--space-2) var(--space-5); flex-grow: 1; }
.plan-card li { display: flex; gap: 0.6rem; padding-block: 0.42rem; font-size: var(--text-sm); }
.plan-card li svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: 0.22rem; color: var(--green-700); }
.plan-card li.is-soft { color: var(--ink-3); }
.plan-card li.is-soft svg { color: var(--border-2); }

.area-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.area-card h3 { font-size: var(--text-lg); }
.area-card p { font-size: var(--text-sm); color: var(--ink-2); flex-grow: 1; }

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.review-card blockquote { font-size: var(--text-md); color: var(--ink); }
.review-card blockquote::before { content: "\201C"; font-family: var(--font-display); font-size: 2.2rem; line-height: 0; color: var(--brass); display: block; margin-bottom: 0.6rem; }
.review-card footer { font-size: var(--text-sm); color: var(--ink-2); margin-top: auto; }
.review-card footer strong { color: var(--ink); }
.review-stars { color: var(--brass-ink); letter-spacing: 0.1em; font-size: var(--text-sm); }

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.gallery-card figure { margin: 0; }
.gallery-card img, .gallery-card svg { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-card img { transition: transform 0.6s ease; }
.gallery-card:hover img { transform: scale(1.045); }
.gallery-card figcaption, .gallery-card__body { padding: var(--space-4) var(--space-5); }
.gallery-card h3 { font-size: var(--text-md); }
.gallery-card .meta { font-size: var(--text-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }
.gallery-card p { font-size: var(--text-sm); color: var(--ink-2); margin-top: 0.5rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--green-100);
  color: var(--green-800);
}
.badge--brass { background: #e8e8e5; color: var(--brass-ink); }
.badge--neutral { background: var(--surface-2); color: var(--ink-2); }

/* 9. SECTIONS ------------------------------------------------------------ */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 4rem;
  min-height: 3.2rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.steps h3 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 700; }
.steps p { font-size: var(--text-sm); color: var(--ink-2); margin-top: 0.2rem; }
.on-dark .steps li::before { background: rgba(243, 239, 226, 0.12); color: var(--cream); }
.on-dark .steps h3 { color: var(--cream); }
.on-dark .steps p { color: var(--cream-2); }

.steps--cols { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-6); }
.steps--3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--space-6); }
@media (max-width: 720px) { .steps--cols, .steps--3 { grid-template-columns: 1fr; } }

.zip-form { display: flex; flex-wrap: wrap; gap: var(--space-3); max-width: 34rem; }
.zip-form input {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-interactive);
  border-radius: 999px;
  background: var(--surface);
}
.zip-form input:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(38, 89, 55, 0.18); }
.zip-form [data-zip-result] { flex-basis: 100%; }

.feature-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.feature-row__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
}
.feature-row__icon svg { width: 24px; height: 24px; }
.feature-row h3 { font-size: var(--text-md); font-family: var(--font-body); font-weight: 700; }
.feature-row p { font-size: var(--text-sm); color: var(--ink-2); margin-top: 0.25rem; }

.split { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__panel {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.split__panel--light { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.split__panel--dark { background: var(--green-900) var(--topo); color: var(--cream-2); }
.split__panel--dark h3 { color: var(--cream); }
.split__panel ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: var(--text-sm); }
.split__panel ul li { display: flex; gap: 0.55rem; align-items: flex-start; }
.split__panel ul svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.28rem; color: var(--green-700); }
.split__panel--dark ul svg { color: var(--leaf); }
.split__panel .btn { align-self: flex-start; margin-top: auto; }

/* Full-bleed photo band with overlaid content (testimonial, stats) */
.image-band {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
}
.image-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.image-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 9, 0.55), rgba(8, 9, 9, 0.8));
}
.image-band__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}
.image-band__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  line-height: 1.35;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.image-band__attrib { margin-top: var(--space-4); color: var(--cream-2); font-size: var(--text-sm); }

.cta-banner {
  background: var(--green-900) var(--topo);
  color: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  text-align: center;
}
.cta-banner h2 { color: var(--cream); max-width: 24ch; margin-inline: auto; }
.cta-banner p { margin: var(--space-3) auto 0; max-width: 52ch; }
.cta-banner .cluster { justify-content: center; margin-top: var(--space-5); }

.notice {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.notice--info { border-color: #cfd9c5; background: var(--green-100); color: var(--green-900); }
.notice--warning { border-color: #e4cf9d; background: var(--warning-bg); color: var(--warning); }
.notice--error { border-color: #e0b0aa; background: var(--error-bg); color: var(--error); }
.notice--success { border-color: #b9d6bf; background: var(--success-bg); color: var(--success); }

/* FAQ accordion — native <details> for built-in a11y */
.faq-list { display: grid; gap: var(--space-3); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-weight: 650;
  cursor: pointer;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 0.2rem;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item .faq-body { padding: 0 var(--space-5) var(--space-5); color: var(--ink-2); font-size: var(--text-sm); }
.faq-item .faq-body > * + * { margin-top: 0.6rem; }

/* Comparison table (plans page) */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
table.compare { border-collapse: collapse; width: 100%; min-width: 620px; font-size: var(--text-sm); }
table.compare th, table.compare td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--surface-2); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; }
table.compare tbody tr:last-child :is(td, th) { border-bottom: 0; }
table.compare td.yes { color: var(--success); font-weight: 700; }
table.compare td.no { color: var(--ink-3); }

/* 10. BEFORE / AFTER SLIDER ---------------------------------------------- */
.ba-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  touch-action: none;
}
.ba-slider img, .ba-slider svg.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider__after { clip-path: inset(0 0 0 50%); }
.ba-slider__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--cream);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--green-900);
  pointer-events: none;
  box-shadow: var(--shadow);
}
.ba-slider__handle svg { width: 22px; height: 22px; }
.ba-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-slider__tag {
  position: absolute;
  bottom: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 36, 23, 0.82);
  color: var(--cream);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-slider__tag--before { left: 0.8rem; }
.ba-slider__tag--after { right: 0.8rem; }

/* 11. FORMS -------------------------------------------------------------- */
.field { display: grid; gap: 0.4rem; margin-bottom: var(--space-4); }
.field > label { font-weight: 650; font-size: var(--text-sm); }
.field .hint { font-size: var(--text-xs); color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  border: 1.5px solid var(--border-interactive);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(38, 89, 55, 0.18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--text-xs); font-weight: 600; display: none; }
.field.has-error .field-error { display: block; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--space-3); }
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-interactive);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  font-size: var(--text-sm);
}
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__mark {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border: 2px solid var(--border-interactive);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.15s ease;
}
.choice--radio .choice__mark { border-radius: 50%; }
.choice__mark svg { width: 0.8rem; height: 0.8rem; }
.choice:hover { border-color: var(--green-600); }
/* .is-checked class is kept in sync by JS as a fallback for browsers without :has() */
.choice:has(input:checked), .choice.is-checked { border-color: var(--green-700); background: var(--green-100); }
.choice:has(input:checked) .choice__mark, .choice.is-checked .choice__mark { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--green-600); outline-offset: 2px; }
.choice strong { display: block; }
.choice small { color: var(--ink-2); }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-2); }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; accent-color: var(--green-700); }

/* Multi-step form chrome */
.form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 46rem;
  margin-inline: auto;
}
.form-progress { margin-bottom: var(--space-5); }
.form-progress__label { display: flex; justify-content: space-between; font-size: var(--text-xs); font-weight: 700; color: var(--ink-2); margin-bottom: 0.5rem; }
.form-progress__track { height: 0.5rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.form-progress__bar { height: 100%; width: 0; background: var(--green-700); border-radius: 999px; transition: width 0.3s ease; }

.form-step[hidden] { display: none; }
.form-step legend, .form-step .step-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-bottom: 0.4rem; padding: 0; }
.form-step .step-intro { color: var(--ink-2); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.form-step fieldset { border: 0; padding: 0; margin: 0; }

.form-nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); flex-wrap: wrap; }
.form-nav .btn { flex: 1 1 10rem; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Photo uploader */
.uploader {
  border: 2px dashed var(--border-interactive);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
  background: var(--surface-2);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.uploader.is-drag { border-color: var(--green-700); background: var(--green-100); }
.uploader input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.upload-list { list-style: none; padding: 0; margin-top: var(--space-4); display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.upload-list li { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.upload-list img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.upload-list .file-meta { font-size: var(--text-xs); padding: 0.35rem 0.5rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-list .remove-photo {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 30, 20, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

/* Review summary */
.review-summary { display: grid; gap: var(--space-4); }
.review-summary section { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); background: var(--surface-2); }
.review-summary h3 { font-size: var(--text-sm); font-family: var(--font-body); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.review-summary dl { margin: 0.6rem 0 0; display: grid; gap: 0.35rem; font-size: var(--text-sm); }
.review-summary dt { color: var(--ink-3); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.review-summary dd { margin: 0 0 0.4rem; }
.edit-step-btn { background: none; border: 0; color: var(--green-700); font-weight: 650; font-size: var(--text-xs); text-decoration: underline; }

/* Honeypot — visually removed, still in DOM for bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 12. FOOTER + STICKY CTA ------------------------------------------------ */
.site-footer {
  background: var(--green-950) var(--topo);
  color: var(--cream-2);
  margin-top: var(--space-7);
  padding-block: var(--space-7) var(--space-5);
  font-size: var(--text-sm);
}
.site-footer a { color: var(--cream-2); text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.site-footer h2 { color: var(--cream); font-size: var(--text-md); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.footer-brand p { margin-top: var(--space-3); max-width: 34ch; }
.footer-legal {
  border-top: 1px solid rgba(243, 239, 226, 0.15);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--cream-2);
}
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 0; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  gap: 1px;
  background: var(--border-2);
  border-top: 1px solid var(--border-2);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 54px;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  background: var(--surface);
  color: var(--ink);
}
.sticky-cta a svg { width: 1.1rem; height: 1.1rem; }
.sticky-cta a.is-primary { background: var(--green-700); color: #fdfcf7; }
@media (max-width: 767px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0)); }
}

/* 13. PORTAL / ADMIN SHELLS ---------------------------------------------- */
.app-shell { display: grid; grid-template-columns: 15rem 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 860px) { .app-shell { grid-template-columns: 1fr; } }
.app-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); position: sticky; top: calc(var(--header-h) + 1rem); }
.app-nav ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.app-nav a { display: block; padding: 0.6rem 0.8rem; border-radius: 8px; font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.app-nav a:hover, .app-nav a.is-active { background: var(--green-100); color: var(--green-800); }
.app-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); }
.app-panel + .app-panel { margin-top: var(--space-4); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--space-3); }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: var(--space-4); }
.stat b { font-family: var(--font-display); font-size: 1.6rem; display: block; }
.stat span { font-size: var(--text-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.07em; }

.empty-state { text-align: center; padding: var(--space-7) var(--space-4); color: var(--ink-2); }
.empty-state svg { width: 54px; height: 54px; margin: 0 auto var(--space-4); color: var(--border-2); }

.pill { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; }
.pill--new { background: #e3ecf7; color: #2c5282; }
.pill--active { background: var(--success-bg); color: var(--success); }
.pill--pending { background: var(--warning-bg); color: var(--warning); }
.pill--closed { background: var(--surface-2); color: var(--ink-3); }

/* 14. UTILITIES, MOTION, PRINT ------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.max-w-prose { max-width: 68ch; }

.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.img-frame img, .img-frame svg { width: 100%; height: 100%; object-fit: cover; }

/* Scroll-reveal — opt-in via [data-reveal]; no-JS and reduced-motion safe */
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .sticky-cta, .announcement, .site-footer .footer-grid { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Quote completion: retain the established theme and make short forms usable on phones. */
.quick-quote { max-width: 52rem; margin-inline: auto; }
.quick-quote input,.quick-quote select,.quick-quote textarea { font-size: 1rem; }
.quick-quote small { display:block; font-size:.875rem; margin-top:.35rem; color:var(--muted,#575c59); }
.quick-quote .field { margin-top:1rem; }
.quote-honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.quote-details { margin-block:1.5rem; padding:1rem; border:1px solid #787d74; border-radius:.5rem; }
.quote-details summary { cursor:pointer; font-weight:700; min-height:2.75rem; padding:.6rem 0; }
.quote-details summary span { font-weight:400; }
.quote-privacy,.quote-fallback { font-size:.9375rem; line-height:1.6; margin-block:1.25rem; }
[data-quote-status]:not(:empty) { margin-top:1.25rem; padding:1rem; border-left:4px solid var(--forest,#224837); background:#edf3eb; }
[data-quote-status][data-error="true"] { border-color:#9d3022; background:#fff2ed; }
[hidden] { display:none !important; }
@media(max-width:767px) { body { padding-bottom:calc(5rem + env(safe-area-inset-bottom,0px)); } .quick-quote { padding:1.25rem; } .quote-details { padding:.75rem; } }

.quick-quote :is(input,select,textarea,summary,button,[role="status"]) { scroll-margin-top: 6rem; }
