/* ---------------------------------------------------------------------------
   EVERGREEN — clean-room landscaping donor stylesheet.

   THIS FILE IS A .css FILE ON PURPOSE, and that is the single most important
   thing about it. The engine's brand passes run over `.css` and `.js` ONLY
   (lib/mirror-engine/engine.js: `if (!isCss && !isJs) continue;`). The previous
   revision of this donor kept its entire theme in an inline <style> block in
   index.html, so applyBrandToCss / applySurfaceToCss / applyLiteralHues /
   applyFontsToCss reached NONE of it: every mirror reported
   brand.accent = "measured" and then painted the donor's green anyway.

   Consequences for anyone editing this file:

     · A colour must be declared as a CUSTOM PROPERTY and used through var().
       applySurfaceToCss only rewrites `--name: oklch(L% C H)` declarations, so
       a raw oklch() inside a rule is a colour no client will ever change.
     · The accent is an HSL TRIPLET (`--accent: 89 48% 45%;
  --accent-glow: 89 48% 41%;

  /* Surfaces — applySurfaceToCss re-hues every one of these to the client's
     second colour while holding the lightness the design was tuned at. */
  --paper: oklch(99% 0.031 131.0);
  --bone: oklch(96% 0.032 131.0);
  --line: oklch(89% 0.037 131.0);
  --ink: oklch(20% 0.078 131.0);
  --ink-soft: oklch(43% 0.064 131.0);
  --leaf: oklch(27% 0.074 131.0);
  --leaf-deep: oklch(18% 0.079 131.0);
  --on-leaf: oklch(96% 0.032 131.0);
  --on-leaf-soft: oklch(85% 0.039 131.0);
  --field: oklch(99% 0.031 131.0);

  /* Translucent members of the same families, so scrims and hairlines move
     with the palette instead of staying donor-green. */
  --paper-veil: oklch(99% 0.031 131.0 / 0.9);
  --leaf-veil: oklch(27% 0.074 131.0 / 0.86);
  --leaf-veil-soft: oklch(27% 0.074 131.0 / 0.55);
  --on-leaf-hair: oklch(96% 0.032 131.0 / 0.22);
  --on-leaf-ghost: oklch(96% 0.032 131.0 / 0.1);

  --font-display: "Roboto", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Arvo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Arvo", var(--font-sans);

  --wrap: 1160px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: hsl(var(--accent)); color: var(--on-leaf);
  padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid hsl(var(--accent-glow));
  outline-offset: 2px;
  border-radius: 4px;
}

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: hsl(var(--accent)); font-weight: 700; margin: 0 0 0.7rem;
}

/* ---- header ------------------------------------------------------------ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-veil);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; }
.brand img { height: 38px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; }
nav.top { margin-left: auto; display: none; gap: 1.5rem; font-size: 0.92rem; }
nav.top a { text-decoration: none; opacity: 0.82; }
nav.top a:hover { opacity: 1; color: hsl(var(--accent)); }
.call {
  margin-left: auto; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  background: hsl(var(--accent)); color: var(--on-leaf);
  padding: 0.62rem 1.1rem; border-radius: 9px; white-space: nowrap;
}
nav.top + .call { margin-left: 1.3rem; }
@media (min-width: 960px) { nav.top { display: flex; } }
/* A long business name wrapped to three lines and shoved the call button off
   the bar on a 390px phone. One line, clipped, with the wordmark still legible. */
@media (max-width: 560px) {
  /* HEADER only. Scoped, because an unscoped rule clipped the footer wordmark
     to "Cedar & Stone Gr…" in a column with room for all of it. */
  header.site .brand-name { font-size: 0.92rem; max-width: 9.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  header.site .brand img { height: 32px; }
  .call { padding: 0.55rem 0.85rem; font-size: 0.88rem; }
}

/* ---- buttons ----------------------------------------------------------- */
.btn {
  text-decoration: none; font-weight: 700; padding: 0.85rem 1.5rem; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: hsl(var(--accent)); color: var(--on-leaf); }
.btn-primary:hover { background: hsl(var(--accent-glow)); }
.btn-ghost { border-color: var(--on-leaf-hair); color: var(--on-leaf); background: transparent; }
.btn-ghost:hover { background: var(--on-leaf-ghost); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--paper); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---- hero -------------------------------------------------------------- */
/* No photograph. The hero is drawn from the palette — layered gradients and a
   contour motif — so it is honest on a mirror where we hold none of the
   client's own imagery, and it re-colours with the rest of the page. */
.hero {
  position: relative; overflow: hidden;
  color: var(--on-leaf);
  background:
    radial-gradient(120% 90% at 78% 8%, hsl(var(--accent-glow) / 0.5) 0%, transparent 58%),
    radial-gradient(90% 70% at 5% 95%, hsl(var(--accent) / 0.45) 0%, transparent 60%),
    linear-gradient(168deg, var(--leaf) 0%, var(--leaf-deep) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(65deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 78px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}
/* The hero is a <section>, so without this it takes the generic section padding
   AND its own — 209px of dead green above the eyebrow and 177px below the chips,
   measured at 1280. The inner element owns the rhythm here. */
.hero { padding: 0; }
.hero-inner { position: relative; z-index: 1; padding: clamp(3.6rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .eyebrow { color: var(--on-leaf-soft); }
.hero h1 { font-size: clamp(2.25rem, 5.8vw, 4.2rem); margin: 0 0 1.05rem; max-width: 21ch; }
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 54ch; color: var(--on-leaf-soft); margin: 0 0 2rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--on-leaf-hair); background: var(--on-leaf-ghost);
  border-radius: 999px; padding: 0.42rem 0.9rem; font-size: 0.83rem;
  color: var(--on-leaf); letter-spacing: 0.01em;
}
.chip b { font-weight: 700; }
.chip svg { width: 15px; height: 15px; }

/* ---- sections ---------------------------------------------------------- */
section { padding: clamp(3.2rem, 7vw, 5.8rem) 0; }
.band { background: var(--bone); }
.section-head { max-width: 60ch; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); margin: 0 0 0.7rem; }
.section-head p { margin: 0; color: var(--ink-soft); }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
/* Capped at three so six services read as two even rows instead of 4 + 2 with
   a hole on the right, which is what auto-fit gives at this wrap width. */
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.45rem 1.35rem; background: var(--paper);
}
.card h3 { font-size: 1.1rem; margin: 0 0 0.45rem; }
.card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.card .num {
  font-family: var(--font-display); font-size: 0.8rem; color: hsl(var(--accent));
  display: block; margin-bottom: 0.55rem; letter-spacing: 0.12em;
}

/* ---- gallery ----------------------------------------------------------- */
/* Every figure here is a photo_slot. The section ships hidden and is revealed
   only for slots the engine actually filled with the CLIENT's own photograph —
   see the reveal script in index.html. An empty gallery is a section that is
   not there, never six frames of nothing. */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.gallery figure {
  margin: 0; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--bone); border: 1px solid var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ---- about / story ----------------------------------------------------- */
.split { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
/* Set by the runtime when the second column has stood down (the map defers to
   the engine's). Without it the section keeps a half-width column of nothing. */
@media (min-width: 900px) { .split.solo { grid-template-columns: minmax(0, 60ch); } }
.prose p { margin: 0 0 1rem; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

/* ---- reviews ----------------------------------------------------------- */
.quotes { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 1.4rem 1.35rem;
}
.quote blockquote { margin: 0 0 0.9rem; font-size: 0.98rem; }
.quote figcaption { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.stars { color: hsl(var(--accent)); letter-spacing: 0.08em; font-size: 0.85rem; }

/* ---- faq --------------------------------------------------------------- */
.faq { display: grid; gap: 0.6rem; max-width: 80ch; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.faq summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700;
  font-family: var(--font-display); font-size: 1.02rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: hsl(var(--accent)); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 1.2rem 1.15rem; color: var(--ink-soft); }

/* ---- service area / map ------------------------------------------------ */
.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bone); }
.map-card iframe { display: block; width: 100%; height: 330px; border: 0; }
.nap { display: grid; gap: 0.9rem; margin: 0; }
.nap div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.6rem; font-size: 0.94rem; }
.nap dt { color: var(--ink-soft); }
.nap dd { margin: 0; font-weight: 600; }
.dirs { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.4rem; font-weight: 700; color: hsl(var(--accent)); }

/* ---- estimate + form --------------------------------------------------- */
.estimate {
  color: var(--on-leaf);
  background: linear-gradient(150deg, var(--leaf) 0%, var(--leaf-deep) 100%);
}
.estimate h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 0.85rem; }
.estimate .lede { color: var(--on-leaf-soft); max-width: 52ch; margin: 0 0 1.8rem; }
.estimate .eyebrow { color: var(--on-leaf-soft); }

form.quote-form { display: grid; gap: 0.85rem; }
@media (min-width: 720px) { form.quote-form { grid-template-columns: 1fr 1fr; } }
form.quote-form .full { grid-column: 1 / -1; }
form.quote-form label { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.35rem; color: var(--on-leaf-soft); }
form.quote-form input,
form.quote-form textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--field); border: 1px solid var(--on-leaf-hair);
  border-radius: 10px; padding: 0.72rem 0.85rem;
}
form.quote-form textarea { min-height: 118px; resize: vertical; }
form.quote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.84rem; color: var(--on-leaf-soft); margin: 0.4rem 0 0; }
.form-status { margin: 0.9rem 0 0; font-weight: 700; min-height: 1.3em; }

/* ---- footer ------------------------------------------------------------ */
footer.site {
  background: var(--leaf-deep); color: var(--on-leaf);
  padding: 3rem 0 2rem; font-size: 0.92rem;
}
footer.site a { color: inherit; text-decoration: none; opacity: 0.84; }
footer.site a:hover { opacity: 1; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot-h { font-weight: 700; margin: 0 0 0.6rem; }
.foot-grid p { margin: 0 0 0.3rem; color: var(--on-leaf-soft); }
.foot-bottom {
  margin-top: 2.3rem; padding-top: 1.3rem; border-top: 1px solid var(--on-leaf-hair);
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; color: var(--on-leaf-soft); font-size: 0.84rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* WSS mirror theme — light by default, built from the client's own colours. */
:root,[data-wss-theme="light"]{--wss-surface:#FCFDFC;--wss-surface-alt:#FFFFFF;--wss-text:#27321B;--wss-muted:#69775A;--wss-border:#E3E9DD;--wss-slab:#F5F8F1;--wss-slab-ink:#29361C;--wss-slab-muted:#677656;--wss-accent:#87BF4A;--wss-accent-hover:#6D9F38;--wss-accent-ink:#0B0B0C;--wss-accent-text:#58802D;--wss-accent-on-slab:#53792A;--wss-accent-soft:#496A25;--accent-soft:89 48% 28%;--background:120 20% 99%;--foreground:89 30% 15%;--card:0 0% 100%;--card-foreground:89 30% 15%;--popover:0 0% 100%;--popover-foreground:89 30% 15%;--muted-foreground:89 14% 41%;--border:90 21% 89%;--input:90 21% 89%;--primary:89 30% 15%;--accent:89 48% 52%;--accent-foreground:240 4% 5%;--ring:89 48% 52%;--primary-foreground:90 32% 16%;color-scheme:light}
[data-wss-theme="dark"]{--wss-surface:#151910;--wss-surface-alt:#1F2518;--wss-text:#F5F6F4;--wss-muted:#B8C2AE;--wss-border:#38422E;--wss-slab:#1F2518;--wss-slab-ink:#F5F6F4;--wss-slab-muted:#B8C3AC;--wss-accent:#87BF4A;--wss-accent-hover:#72A63A;--wss-accent-ink:#0B0B0C;--wss-accent-text:#87BF4A;--wss-accent-on-slab:#87BF4A;--wss-accent-soft:#87BF4A;--accent-soft:89 48% 52%;--background:87 22% 8%;--foreground:90 10% 96%;--card:88 21% 12%;--card-foreground:90 10% 96%;--popover:88 21% 12%;--popover-foreground:90 10% 96%;--muted-foreground:90 14% 72%;--border:90 18% 22%;--input:90 18% 22%;--primary:90 10% 96%;--accent:89 48% 52%;--accent-foreground:240 4% 5%;--ring:89 48% 52%;--primary-foreground:90 10% 96%;color-scheme:dark}
html,body{background-color:var(--wss-surface);color:var(--wss-text)}
:root{--gradient-hero:linear-gradient(115deg,color-mix(in srgb,var(--wss-slab) 92%,transparent) 0%,color-mix(in srgb,var(--wss-slab) 78%,transparent) 45%,color-mix(in srgb,var(--wss-accent) 22%,transparent) 100%);--gradient-primary:linear-gradient(135deg,var(--wss-slab) 0%,color-mix(in srgb,var(--wss-slab) 84%,var(--wss-accent)) 100%);--gradient-accent:linear-gradient(135deg,var(--wss-accent) 0%,var(--wss-accent-hover) 100%);--gradient-subtle:linear-gradient(180deg,var(--wss-surface) 0%,var(--wss-slab) 100%)}
:root{--gradient-mesh:radial-gradient(at 18% 18%,color-mix(in srgb,var(--wss-accent) 14%,transparent) 0px,transparent 45%),radial-gradient(at 82% 12%,color-mix(in srgb,var(--wss-accent-hover) 10%,transparent) 0px,transparent 50%),radial-gradient(at 65% 88%,color-mix(in srgb,var(--wss-accent) 10%,transparent) 0px,transparent 45%)}
.text-accent{color:var(--wss-accent-soft)!important}
.text-gradient-warm{background-image:linear-gradient(135deg,var(--wss-slab-ink),color-mix(in srgb,var(--wss-accent-soft) 60%,var(--wss-slab-ink)),var(--wss-accent-soft))!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important}
.wss-theme-toggle{position:fixed;top:14px;right:14px;z-index:2147483000;display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;border:1px solid var(--wss-border);background:var(--wss-surface-alt);color:var(--wss-text);font:600 12px/1 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.10)}
.wss-theme-toggle:hover{border-color:var(--wss-accent)}
.wss-theme-toggle svg{width:14px;height:14px;display:block}
@media print{.wss-theme-toggle{display:none}}
