/* Ryden Lawn Care & Landscaping — compiled stylesheet.
   Generated from the design system tokens; edit the tokens, not this file. */

/* ===== tokens/fonts.css ===== */
/* Ryden webfonts — served from Google Fonts.
   Bitter (slab serif) for display/headings; Manrope for UI + body; IBM Plex Mono for data.
   NOTE: no licensed brand font was supplied. See readme.md > Typography. */
@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* ===== tokens/colors.css ===== */
:root {
  /* ---- Brand primitives (sampled from Ryden Logo Draft I.png) ---- */
  --ryden-emerald: #0b7a48;        /* the RYDEN wordmark face */
  --ryden-emerald-shadow: #064a2e;  /* the wordmark's carved shadow */
  --ryden-forest: #0a2e1e;          /* darkest foliage in the mark */
  --ryden-forest-deep: #05190f;
  --ryden-sand: #e4c084;            /* the illustrated sky */
  --ryden-sand-pale: #f0d8a8;
  --ryden-bark: #30180c;            /* the arch frame / linework */
  --ryden-clay: #b33a22;            /* the flowering shrubs */

  /* ---- Emerald ramp (primary) ---- */
  --emerald-100: #e3f2ea;
  --emerald-200: #c0e3d1;
  --emerald-300: #8fccaf;
  --emerald-400: #4fa97d;
  --emerald-500: #0b7a48;
  --emerald-600: #09663c;
  --emerald-700: #075230;
  --emerald-800: #053d24;
  --emerald-900: #042a19;

  /* ---- Sand ramp (secondary / warm) ---- */
  --sand-100: #fbf4e7;
  --sand-200: #f5e6c9;
  --sand-300: #eed6a8;
  --sand-400: #e4c084;
  --sand-500: #d2a55f;
  --sand-600: #b5873f;
  --sand-700: #8f6930;
  --sand-800: #6b4e24;
  --sand-900: #48351a;

  /* ---- Clay ramp (alert / rare emphasis) ---- */
  --clay-100: #fbeae5;
  --clay-200: #f4cdc2;
  --clay-300: #e6a08d;
  --clay-400: #cf6749;
  --clay-500: #b33a22;
  --clay-600: #95301c;
  --clay-700: #762616;
  --clay-800: #571c10;
  --clay-900: #3a130b;

  /* ---- Neutral ramp (sage stone — green-leaning, never warm beige, never blue-gray) ---- */
  --neutral-000: #fbfdfa;
  --neutral-100: #eef4ee;
  --neutral-200: #dde7dd;
  --neutral-300: #c4d3c5;
  --neutral-400: #8fa392;
  /* 500 and 600 carry --text-faint and --text-muted. Solved against every ground a page
     actually puts them on — #eef4ee ground, #d5e9da alt band, #ffffff card, #e3f2ea
     alt-box tint — and held to 4.67 and 7.05 at worst. Re-solve these whenever a ground
     changes; darkening --bg-alt alone once dropped 500 to 4.47. */
  --neutral-500: #546957;
  --neutral-600: #3e4d40;
  --neutral-700: #303c32;
  --neutral-800: #1f2720;
  --neutral-900: #141b16;

  /* ---- Semantic: light ground (the default) ---- */
  --bg: var(--neutral-100);
  --bg-alt: #e2f3e5;            /* pastel green alternating band */
  --surface-card: #ffffff;
  --surface-sunken: var(--neutral-200);
  --surface-tint: var(--emerald-100);
  --surface-forest: var(--ryden-forest);
  --surface-forest-deep: var(--ryden-forest-deep);
  --surface-sand: var(--sand-200);

  --text-body: var(--neutral-800);
  --text-strong: var(--neutral-900);
  --text-muted: var(--neutral-600);
  --text-faint: var(--neutral-500);
  --text-accent: var(--emerald-700);
  --text-on-dark: #f4f1e9;
  --text-on-dark-muted: rgba(244, 241, 233, 0.72);
  --text-on-accent: #ffffff;

  --border-hairline: #d3e2d6;
  --border-default: #bcd0bf;
  --border-strong: #9bb39f;
  --border-on-dark: rgba(228, 192, 132, 0.28);

  --accent: var(--emerald-500);
  --accent-hover: var(--emerald-600);
  --accent-press: var(--emerald-700);
  --accent-soft: var(--emerald-100);
  --accent-bright: #12a05e;         /* on dark grounds only */

  --focus-ring: var(--sand-500);
  --danger: var(--clay-600);
  --success: var(--emerald-600);

  /* ---- Overlays for photography and parallax ---- */
  --scrim-forest: linear-gradient(180deg, rgba(5,25,15,0.58) 0%, rgba(5,25,15,0.86) 100%);
  --scrim-bottom: linear-gradient(180deg, rgba(5,25,15,0) 40%, rgba(5,25,15,0.85) 100%);
  --scrim-flat: rgba(10, 46, 30, 0.62);
}

/* ===== tokens/typography.css ===== */
:root {
  --font-display: "Bitter", "Bitter Fallback", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Display — Bitter, tight, never letterspaced loose */
  --type-hero: 700 clamp(2.75rem, 6vw, 5rem)/1.02 var(--font-display);
  --type-h1: 700 clamp(2.25rem, 4vw, 3.5rem)/1.06 var(--font-display);
  --type-h2: 700 clamp(1.75rem, 2.6vw, 2.5rem)/1.12 var(--font-display);
  --type-h3: 600 1.375rem/1.2 var(--font-display);
  --type-h4: 600 1.0625rem/1.3 var(--font-display);

  /* Body — Manrope */
  --type-lead: 400 1.1875rem/1.6 var(--font-body);
  --type-body: 400 1rem/1.65 var(--font-body);
  --type-body-sm: 400 0.9375rem/1.6 var(--font-body);
  --type-caption: 500 0.8125rem/1.45 var(--font-body);
  --type-button: 700 0.9375rem/1 var(--font-body);

  /* Eyebrow / kicker — the one place we letterspace */
  --type-eyebrow: 700 0.75rem/1.2 var(--font-body);
  --tracking-eyebrow: 0.14em;
  --tracking-tight: -0.02em;
  --tracking-display: -0.025em;

  --measure-prose: 62ch;
  --measure-lead: 46ch;
}

/* ===== tokens/spacing.css ===== */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-section: clamp(22px, 3vw, 44px);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 10px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 5vw, 56px);
  --rule: 1px;
  --rule-strong: 2px;
}

/* ===== tokens/elevation.css ===== */
:root {
  /* Shadows are forest-tinted (never neutral black) so they sit on the green ground */
  --shadow-xs: 0 1px 2px rgba(10, 46, 30, 0.07);
  --shadow-sm: 0 2px 6px rgba(10, 46, 30, 0.08), 0 1px 2px rgba(10, 46, 30, 0.06);
  --shadow-md: 0 8px 22px rgba(10, 46, 30, 0.12), 0 2px 6px rgba(10, 46, 30, 0.06);
  --shadow-lg: 0 20px 48px rgba(10, 46, 30, 0.16), 0 4px 12px rgba(10, 46, 30, 0.07);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --shadow-on-dark: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-focus: 0 0 0 3px rgba(210, 165, 95, 0.45);
}

/* ===== tokens/motion.css ===== */
:root {
  --ease-out: cubic-bezier(0.16, 0.84, 0.32, 1);
  --ease-in-out: cubic-bezier(0.62, 0.02, 0.28, 1);
  --ease-settle: cubic-bezier(0.22, 1.12, 0.36, 1);

  --dur-instant: 90ms;
  --dur-fast: 180ms;
  --dur-base: 280ms;
  --dur-slow: 520ms;
  --dur-reveal: 760ms;

  --reveal-rise: 26px;
  --stagger: 70ms;
  --parallax-slow: 0.18;
  --parallax-base: 0.32;
}

@keyframes ryden-rise {
  from { opacity: 0; transform: translate3d(0, var(--reveal-rise), 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes ryden-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ryden-wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ===== tokens/base.css ===== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font: var(--type-body);
  text-align: center;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0 auto var(--space-4); color: var(--text-strong); }
h1 { font: var(--type-h1); letter-spacing: var(--tracking-display); }
h2 { font: var(--type-h2); letter-spacing: var(--tracking-display); }
h3 { font: var(--type-h3); letter-spacing: var(--tracking-tight); }
h4 { font: var(--type-h4); }
p  { margin: 0 auto var(--space-4); max-width: var(--measure-prose); }

a { color: var(--text-accent); text-decoration-color: var(--emerald-300); text-underline-offset: 3px; }
a:hover { color: var(--accent-press); text-decoration-color: currentColor; }

::selection { background: var(--sand-300); color: var(--neutral-900); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

img { display: block; max-width: 100%; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.stack > * + * { margin-top: var(--space-4); }
.hr { border: 0; border-top: var(--rule) solid var(--border-hairline); margin: 0; }
.hr-strong { border: 0; border-top: var(--rule-strong) solid var(--accent); width: 56px; margin-inline: auto; }

/* ---- Text roles ---- */
/* Block-level (flex, not inline-flex) so it owns its line and its auto margins resolve.
   Inline-level would let the following value flow beside it and collapse the pair. */
.eyebrow {
  font: var(--type-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: var(--space-2);
  margin: 0 auto var(--space-3);
}
.eyebrow::before,
.eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }
.lead { font: var(--type-lead); color: var(--text-muted); max-width: var(--measure-lead); margin-inline: auto; }
.caption { font: var(--type-caption); color: var(--text-faint); }

/* ---- Dark ground ---- */
.on-dark { background: var(--surface-forest); color: var(--text-on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-on-dark); }
/* Full-opacity ink: --text-on-dark-muted is an alpha, so on a photographic band the
   photograph shows through the glyphs themselves. Reserve that token for flat chrome. */
.on-dark .lead { color: var(--text-on-dark); }
.on-dark .eyebrow { color: var(--sand-400); }
.on-dark .eyebrow::before, .on-dark .eyebrow::after { background: var(--sand-400); }
/* Buttons are excluded: they carry their own label colour, and .on-dark a would
   otherwise repaint .btn-sand's ink to one ramp step off its own fill. */
.on-dark a:not(.btn) { color: var(--sand-300); }

/* ---- Imagery ---- */
.figure { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-sunken); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure-warm img { filter: saturate(1.04) contrast(1.03); }
.figure-scrim::after { content: ""; position: absolute; inset: 0; background: var(--scrim-bottom); pointer-events: none; }

/* ---- Motion utilities ---- */
.reveal { animation: ryden-rise var(--dur-reveal) var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .parallax-layer { transform: none !important; }
}

/* ===== tokens/components.css ===== */
/* ============================================================
   Ryden component layer — classes consumed by the .jsx primitives
   and by every card / UI-kit page. Values come from the tokens.
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: var(--type-button); letter-spacing: 0.01em;
  padding: 14px 24px; border: var(--rule-strong) solid transparent;
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.btn-primary { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--accent-press); box-shadow: var(--shadow-xs); }

.btn-secondary { background: transparent; color: var(--emerald-700); border-color: var(--emerald-500); }
.btn-secondary:hover { background: var(--emerald-100); }
.btn-secondary:active { background: var(--emerald-200); color: var(--emerald-800); }

a.btn-sand, .btn-sand { background: var(--emerald-500); color: #ffffff; }
.btn-sand:hover { background: var(--emerald-400); }
.btn-sand:active { background: var(--emerald-600); }

.btn-ghost { background: transparent; color: var(--emerald-700); }
.btn-ghost:hover { background: var(--emerald-100); }
.btn-ghost:active { background: var(--emerald-200); }

.on-dark .btn-secondary, .btn-on-dark {
  background: transparent; color: var(--emerald-200); border-color: rgba(143,204,175,0.45);
}
.on-dark .btn-secondary:hover, .btn-on-dark:hover { background: rgba(143,204,175,0.16); color: #ffffff; }

.btn-lg { padding: 18px 32px; font-size: 1.0625rem; }
.btn-sm { padding: 9px 16px; font-size: 0.8125rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 12px; width: 44px; height: 44px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: var(--type-caption); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-xs); border: var(--rule) solid transparent;
}
.tag-accent { background: var(--emerald-100); color: var(--emerald-800); }
.tag-sand { background: var(--sand-200); color: var(--sand-900); }
.tag-clay { background: var(--clay-100); color: var(--clay-700); }
.tag-neutral { background: var(--neutral-200); color: var(--neutral-800); }
.tag-outline { background: transparent; border-color: var(--border-default); color: var(--text-muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card); border: var(--rule) solid var(--border-hairline);
  border-top: var(--rule-strong) solid var(--emerald-300);
  border-radius: var(--radius-md); padding: var(--space-6);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--emerald-300); }
.card-kicker { font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: var(--space-2); }
.card-title { font: var(--type-h3); letter-spacing: var(--tracking-tight); color: var(--emerald-800); margin: 0 auto var(--space-3); }
.card-body { font: var(--type-body-sm); color: var(--text-muted); margin: 0; max-width: none; }
.card-meta { font: var(--type-caption); color: var(--text-faint); margin-top: var(--space-4); padding-top: var(--space-4); border-top: var(--rule) solid var(--border-hairline); }
.card-flush { padding: 0; overflow: hidden; }
/* Alternating fills so adjacent boxes in a row read as a set. The tinted card and the
   icon plate would otherwise both resolve to --emerald-100 and the plate would vanish,
   so the plate steps one further down the ramp on tinted cards. */
.alt-boxes > :nth-child(even) { background: var(--surface-tint); }
.alt-boxes > :nth-child(even) .service-icon { background: var(--emerald-200); }
/* In a row containing a featured plan the alternation inverts: the featured card keeps
   its white fill (that contrast plus the 2px emerald border IS the feature treatment)
   and every other plan takes the tint, so the row still alternates. */
.alt-boxes:has(> .plan-featured) > .plan { background: var(--surface-tint); }
.alt-boxes:has(> .plan-featured) > .plan-featured { background: var(--surface-card); }
.elev-sm { box-shadow: var(--shadow-sm); } .elev-md { box-shadow: var(--shadow-md); } .elev-lg { box-shadow: var(--shadow-lg); }

/* service card: icon plate + rule under the title */
.service-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.service-icon {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none; margin-inline: auto;
  background: var(--emerald-100); color: var(--emerald-700); border-radius: var(--radius-sm);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.card-hover:hover .service-icon { background: var(--accent); color: #fff; }

/* ---------- Nav ---------- */
.nav {
  text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-4) var(--gutter); background: var(--bg-alt);
  border-bottom: var(--rule) solid var(--border-hairline);
  flex-wrap: nowrap;
}
.nav-brand { display: flex; align-items: center; gap: var(--space-3); font: var(--type-h4); font-family: var(--font-display); color: var(--text-strong); text-decoration: none; letter-spacing: var(--tracking-tight); white-space: nowrap; }
.nav-brand img { height: 92px; width: auto; flex: none; transition: height var(--dur-base) var(--ease-out); }
/* Shrink-on-scroll: the header starts tall on entry, then compacts and stays sticky. */
.sticky-head { transition: padding var(--dur-base) var(--ease-out); }
.sticky-head.is-compact { padding-block: var(--space-2); }
.sticky-head.is-compact .nav-brand img { height: 44px; }
.nav-links { display: flex; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav-link { font: var(--type-caption); font-size: 0.875rem; color: var(--text-body); text-decoration: none; padding: 6px 0; border-bottom: var(--rule-strong) solid transparent; white-space: nowrap; }
.nav-link:hover { color: var(--accent-press); border-bottom-color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--accent-press); border-bottom-color: var(--accent); }
.nav-transparent { background: transparent; border-bottom-color: rgba(228,192,132,0.2); }
.nav-transparent .nav-brand, .nav-transparent .nav-link { color: var(--text-on-dark); }

/* Toggle is desktop-hidden and only revealed by the breakpoint below. */
.nav-toggle { display: none; }

/* Below 1000px the inline link list becomes a drawer under the header bar, so the
   brand, phone and CTA keep one row. Declared AFTER .nav-links so it wins at equal
   specificity; .nav .nav-links raises it regardless of any later authored rule. */
@media (max-width: 1000px) {
  .nav { flex-wrap: wrap; row-gap: 0; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav .nav-links {
    display: none; order: 4; flex-basis: 100%; flex-direction: column;
    align-items: stretch; gap: 0; margin-top: var(--space-4);
    border-top: var(--rule) solid var(--border-hairline);
  }
  .nav[data-menu="open"] .nav-links { display: flex; }
  .nav .nav-links .nav-link {
    display: block; padding: 14px 0; border-bottom: var(--rule) solid var(--border-hairline);
  }
}

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: var(--space-4); }
.field > label { display: block; font: var(--type-caption); color: var(--text-strong); margin-bottom: 6px; text-align: center; }
.field-hint { font: var(--type-caption); color: var(--text-faint); margin-top: 6px; }
.field-error { font: var(--type-caption); color: var(--danger); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; text-align: center; font: var(--type-body-sm); color: var(--text-strong);
  background: var(--surface-card); border: var(--rule) solid var(--border-default);
  border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 128px; resize: vertical; }
.select { appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b645b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

.choice { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: 12px 14px;
  border: var(--rule) solid var(--border-default); border-radius: var(--radius-sm);
  cursor: pointer; font: var(--type-body-sm); color: var(--text-body);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.choice:hover { border-color: var(--emerald-400); background: var(--emerald-100); }
.choice input { accent-color: var(--accent); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--emerald-100); }

.seg { display: inline-flex; border: var(--rule) solid var(--border-default); border-radius: var(--radius-sm); overflow: hidden; }
.seg-opt { font: var(--type-button); font-size: 0.8125rem; padding: 10px 18px; background: var(--surface-card);
  color: var(--text-muted); border: 0; border-right: var(--rule) solid var(--border-default); cursor: pointer; }
.seg-opt:last-child { border-right: 0; }
.seg-opt:hover { background: var(--emerald-100); color: var(--emerald-800); }
.seg-opt[aria-pressed="true"], .seg-opt.is-active { background: var(--accent); color: #fff; }

/* ---------- Table / pricing ---------- */
.table { width: 100%; border-collapse: collapse; font: var(--type-body-sm); }
.table caption { text-align: center; font: var(--type-caption); color: var(--text-faint); padding-bottom: var(--space-3); }
.table th { text-align: center; font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--emerald-800); padding: 12px 16px; background: var(--emerald-100); border-bottom: var(--rule-strong) solid var(--emerald-400); }
.table td { padding: 14px 16px; border-bottom: var(--rule) solid var(--border-hairline); color: var(--text-body); text-align: center; }
.table tbody tr:hover td { background: var(--emerald-100); }
.table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.price { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1;
  letter-spacing: var(--tracking-display); color: var(--emerald-700); }
.price-unit { font: var(--type-caption); color: var(--text-faint); }
/* Column flex so the equal-height surplus collects above the CTA, not below it. */
.plan { position: relative; display: flex; flex-direction: column; }
[data-plan] { flex: 0 1 clamp(250px, calc(33.333% - 11px), 360px); }
.plan-cta { margin-top: auto; padding-top: var(--space-6); }
.plan-featured { border-color: var(--accent); border-width: var(--rule-strong); box-shadow: var(--shadow-md); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: #fff;
  font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius-xs); }
.plan-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); font: var(--type-body-sm); color: var(--text-muted); }
.plan-list li { display: block; text-align: center; }
.plan-list li::before { content: ""; display: inline-block; vertical-align: -2px; margin-right: var(--space-2); width: 16px; height: 16px;
  background: var(--accent); border-radius: var(--radius-pill);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Dialog ---------- */
.dialog-backdrop { position: fixed; inset: 0; background: rgba(5,25,15,0.6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: var(--gutter); }
.dialog { background: var(--surface-card); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  width: min(520px, 100%); padding: var(--space-6); border-top: 4px solid var(--accent); }
.dialog-title { font: var(--type-h3); letter-spacing: var(--tracking-tight); color: var(--text-strong); margin: 0 0 var(--space-3); }
.dialog-body { font: var(--type-body-sm); color: var(--text-muted); }
.dialog-actions { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-6); }

/* ---------- Accordion ---------- */
.accordion { border-top: var(--rule) solid var(--border-hairline); }
.accordion-item { border-bottom: var(--rule) solid var(--border-hairline); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  background: none; border: 0; cursor: pointer; padding: var(--space-5) 0; text-align: center;
  font: var(--type-h4); font-family: var(--font-display); color: var(--text-strong); }
.accordion-trigger:hover { color: var(--accent-press); }
.accordion-trigger svg { flex: none; transition: transform var(--dur-base) var(--ease-out); color: var(--accent); }
.accordion-item[data-open="true"] .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel { padding: 0 0 var(--space-5); font: var(--type-body-sm); color: var(--text-muted); max-width: var(--measure-prose); margin-inline: auto; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-5); }
.stat { border-top: var(--rule-strong) solid var(--accent); padding-top: var(--space-4); }
.on-dark .stat { border-top-color: var(--sand-400); }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1;
  letter-spacing: var(--tracking-display); color: var(--emerald-600); display: block; }
.on-dark .stat-value { color: var(--sand-300); }
.stat-label { font: var(--type-caption); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); margin-top: var(--space-2); display: block; }
.on-dark .stat-label { color: var(--text-on-dark-muted); }

/* ---------- Testimonial ---------- */
.quote { font: var(--type-h3); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.35;
  letter-spacing: var(--tracking-tight); color: var(--text-strong); margin: 0; }
.quote-mark { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 0.6; color: var(--emerald-400); display: block; margin-bottom: var(--space-3); }
.quote-attr { font: var(--type-caption); color: var(--text-faint); margin-top: var(--space-5); }

/* ---------- Parallax ---------- */
.parallax { position: relative; overflow: hidden; isolation: isolate; }
.parallax-layer { position: absolute; inset: -12% 0; will-change: transform; z-index: 0; }
.parallax-layer img { width: 100%; height: 100%; object-fit: cover; }
.parallax-scrim { position: absolute; inset: 0; z-index: 1; background: var(--scrim-forest); }
.parallax-content { position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.footer { background: var(--surface-forest-deep); color: var(--text-on-dark); padding-block: var(--space-6) var(--space-4); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); }
.footer-grid > * { flex: 0 1 clamp(170px, calc(25% - 24px), 240px); }
.area-grid > * { flex: 1 1 clamp(200px, calc(25% - 9px), 280px); max-width: 280px; }
.footer h5 { font: var(--type-eyebrow); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--sand-400); margin: 0 0 var(--space-3); }
.footer a { color: var(--text-on-dark-muted); text-decoration: none; font: var(--type-body-sm); }
.footer a:hover { color: var(--sand-300); }
.footer-legal { margin-top: var(--space-5); padding-top: var(--space-4); border-top: var(--rule) solid var(--border-on-dark);
  font: var(--type-caption); color: var(--text-on-dark-muted); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; text-align: center; }

/* ===== page layout ===== */
.sticky-head { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(8px); background: rgba(238,244,238,.94); }

/* Mobile: force every descriptive text block to actually centre. Measure-capped
   blocks need auto margins, and inline-flex/flex rows need their own centring —
   width caps alone leave them hugging the left edge on narrow screens. */
/* Mobile rules for this file live in the single block at the end. */
.grid-services, .grid-why, .grid-gallery {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4);
}
.grid-services > * { flex: 0 1 clamp(260px, calc(33.333% - 11px), 380px); }
.grid-why > * { flex: 0 1 clamp(220px, calc(33.333% - 11px), 300px); }
.grid-gallery > * { flex: 0 1 clamp(260px, calc(50% - 8px), 400px); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-8); align-items: start; }
.plan-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-bottom: var(--space-5); }

/* Visible by default — never gate content on JS. .is-armed is added by the script only
   after the observer exists, so the hidden state cannot outlive its own undoing. */
.reveal-on-scroll { opacity: 1; }
.is-armed .reveal-on-scroll { opacity: 0; transform: translate3d(0, var(--reveal-rise), 0); }
.is-armed .reveal-on-scroll.is-in { animation: ryden-rise var(--dur-reveal) var(--ease-out) forwards; }
@media (prefers-reduced-motion: reduce) {
  .is-armed .reveal-on-scroll { opacity: 1; transform: none; animation: none; }
}

/* The estimate form reads as a document, not a centred marketing block. */
#estimate form.card,
#estimate form.card .field > label,
#estimate form.card legend,
#estimate form.card .field-hint,
#estimate form.card .field-error { text-align: left; }
#estimate form.card .input,
#estimate form.card .select,
#estimate form.card .textarea { text-align: left; }
#estimate form.card .choice { justify-content: flex-start; }
/* .seg is inline-level, so the form's left-align would pull it to the edge. */
#estimate form.card .seg { display: flex; width: fit-content; margin-inline: auto; }
/* Mobile overrides live at the END of this file on purpose: earlier they sat above
   the .split / layout rules and lost on source order. Do not move them up. */
@media (max-width: 720px) {
  /* Kill the 320px minimum track that forced the Residential/Commercial copy
     wider than the padded container. */
  .split {
    display: block !important;
    text-align: center !important;
  }
  .split > * + * { margin-top: var(--space-7); }

  /* Any measure cap (46ch, 52ch, 22ch...) is wider than a phone. Drop them all
     and centre the block itself, not just the text inside it. */
  .container h1, .container h2, .container h3, .container h4, .container p, .container span,
  .container-narrow h1, .container-narrow h2, .container-narrow h3, .container-narrow h4, .container-narrow p,
  .parallax-content h1, .parallax-content h2, .parallax-content h3, .parallax-content p,
  .lead, .caption, .card-body, .card-title, figcaption {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .eyebrow { margin-left: auto !important; margin-right: auto !important; }
  .stat, .stat-value, .stat-label { text-align: center !important; }
  .parallax-content { text-align: center !important; }

  /* Long words and the wide hero panel must never push the page sideways. */
  body { overflow-x: hidden; }
  .parallax-content > div { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }

  /* The estimate form stays left-aligned, overriding everything above. */
  #estimate form.card,
  #estimate form.card .field > label,
  #estimate form.card legend,
  #estimate form.card .field-hint,
  #estimate form.card .field-error,
  #estimate form.card .input,
  #estimate form.card .select,
  #estimate form.card .textarea { text-align: left !important; }
  #estimate form.card .choice { justify-content: flex-start !important; }
  #estimate form.card .seg { margin-inline: auto !important; }
}

/* Form messages */
.form-note { padding: 14px 16px; border-radius: var(--radius-sm); font: var(--type-body-sm); margin-bottom: var(--space-4); }
.form-note-ok { background: var(--emerald-100); color: var(--emerald-800); border: 2px solid var(--emerald-400); }
.form-note-bad { background: var(--clay-100); color: var(--clay-700); border: 2px solid var(--clay-400); }
