/* ---------------------------------------------------------------------------
   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: 0 100% 45%;
  --accent-glow: 0 100% 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.006 150);
  --bone: oklch(96% 0.016 150);
  --line: oklch(89% 0.014 150);
  --ink: oklch(20% 0.030 150);
  --ink-soft: oklch(43% 0.022 150);
  --leaf: oklch(27% 0.058 150);
  --leaf-deep: oklch(18% 0.038 150);
  --on-leaf: oklch(96% 0.018 150);
  --on-leaf-soft: oklch(85% 0.020 150);
  --field: oklch(99% 0.004 150);

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

  --font-display: "Bebas Neue", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", 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; }
}

/* --- client hero wash (wss photo bank) ------------------------------
   Their own photograph behind every page hero, under a scrim in their
   accent at 0.92 alpha. That alpha is not a taste call: it is the smallest
   opacity for which the WORST possible photograph still leaves the hero
   text at 4.53:1, against a 4.5:1 requirement.
   Remove this block to revert; no donor rule was edited. */
:is(main > section:first-of-type) {
  background-image: linear-gradient(rgba(171, 12, 6, 0.92), rgba(171, 12, 6, 0.92)), url("/assets/hero-wash.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  :is(main > section:first-of-type) { background-attachment: scroll; }
}
@media (max-width: 640px) {
  :is(main > section:first-of-type) {
    background-image: linear-gradient(to bottom, rgba(171, 12, 6, 0.92) 0%, rgba(171, 12, 6, 0.92) 38%, rgba(171, 12, 6, 0.276) 100%), url("/assets/hero-wash.jpg");
  }
}


/* --- wss mobile fold (owner spec 2026-08-12): name/logo, ONE line,
   rating stars, call button — the rest scrolls. Desktop untouched. */
@media (max-width: 640px) {
  :is(main > section:first-of-type) :is(p, ul, dl, aside) { display: none !important; }
  :is(main > section:first-of-type) div:has(> dl) { display: none !important; }
  :is(main > section:first-of-type) > div > div:not(:has(h1)) { display: none !important; }
  :is(main > section:first-of-type) > div { padding-top: 16px !important; padding-bottom: 28px !important; gap: 12px !important; }
  :is(main > section:first-of-type) h1 br, :is(main > section:first-of-type) h1 br ~ * { display: none !important; }
  :is(main > section:first-of-type) h1 { font-size: clamp(26px, 8vw, 34px) !important; line-height: 1.15 !important; margin-top: 12px !important; }
}
