/* EVERBED main stylesheet. Layout, components, motion. Tokens live in tokens.css.
   Class vocabulary is this site's own: lane (width wrapper), patch (page section),
   marker (small caps label), press (button), ask (form field), and so on. */

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; }
[hidden] { display: none !important; }

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

::selection { background: var(--spring-bright); color: var(--loam); }

.skip-link {
  position: fixed;
  top: var(--s-3);
  left: var(--s-3);
  z-index: var(--z-skip);
  background: var(--loam);
  color: var(--cream);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-1);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ---------- text roles ---------- */
.headline,
.patch-title,
.sub-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.headline { font-size: var(--t-h1); }
.patch-title { font-size: var(--t-h2); }
.sub-title { font-size: var(--t-h3); font-weight: 700; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.45;
  max-width: var(--measure);
  text-wrap: pretty;
}

.prose {
  max-width: var(--measure);
  color: var(--muted);
  text-wrap: pretty;
}

.marker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
}
.marker--muted { color: var(--muted); }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--fg); }

/* ---------- layout ---------- */
.lane {
  max-width: var(--lane-max);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.patch { padding-block: var(--patch-pad); }
.patch--hairline { border-top: 1px solid var(--line); }
/* any wrapper carrying the loam theme paints itself from the flipped semantics,
   so no section needs an inline style to do it */
[data-theme="loam"] { background: var(--bg); color: var(--fg); }

.patch-head {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}

/* sample chip: marks placeholder content that must be replaced per client */
.sample-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.15em 0.7em;
  vertical-align: middle;
}

/* ---------- buttons ---------- */
.press {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--spring-bright);
  color: var(--loam);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0.8em 1.6em;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) linear;
}
.press:hover { background: var(--spring-deep); color: var(--white); transform: translateY(-1px); }
.press--line {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.press--line:hover { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.press--big { font-size: 1.1rem; padding: 0.9em 1.9em; }

.call-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.call-link:hover { color: var(--accent); }

/* ---------- topbar ----------
   Solid cream, no blur: the bar has to stay legible over the hero art on a
   phone in daylight, and a hairline carries the edge on its own. */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--cream);
  border-bottom: 1px solid var(--line-strong);
}
.topbar .lane {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.wordmark svg { width: 26px; height: 26px; }
.topbar-nav {
  display: flex;
  gap: var(--s-5);
  margin-inline: auto;
}
.topbar-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--fg);
  text-decoration: none;
  opacity: 0.75;
}
.topbar-nav a:hover { opacity: 1; }
.topbar-actions { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }
.topbar-actions .press { padding: 0.55em 1.2em; font-size: var(--t-small); }
@media (max-width: 860px) {
  .topbar-nav { display: none; }
}
/* small screens: the sprout stands for the name; phone + quote stay reachable */
@media (max-width: 620px) {
  .wordmark-text { display: none; }
  .topbar .lane { gap: var(--s-3); }
  .topbar-actions { gap: var(--s-3); }
  .call-link { font-size: var(--t-small); }
}

/* ---------- opening (hero) ---------- */
.opening {
  position: relative;
  padding-block: clamp(3rem, 8vh, 6rem) 0;
  overflow: clip;
}
.opening .lane {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(var(--s-6), 4vw, var(--s-9));
  align-items: start;
  position: relative;
  z-index: 1;
}
.opening-pitch { display: grid; gap: var(--s-5); align-content: start; padding-block: var(--s-5); }
.opening-pitch .lead { color: var(--muted); }
.opening-ways { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line);
  margin-top: var(--s-5);
}
.trust-strip li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-small);
  color: var(--muted);
}
.trust-strip svg { width: 14px; height: 14px; color: var(--accent-mark); flex: none; }

/* grass edge: SVG blade silhouette that closes the hero.
   ART SLOT: swap the inline SVG in index.html for another ground treatment
   (soil gradient, hedge line) if the client's trade reads differently. */
.grass-edge { margin-top: var(--s-7); }
.grass-edge svg { width: 100%; height: clamp(28px, 5vw, 52px); color: var(--spring-deep); }

@media (max-width: 960px) {
  .opening .lane { grid-template-columns: 1fr; }
  .opening-pitch { padding-block: 0; }
}

/* ---------- quote panel: THE conversion object ---------- */
.quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  padding: clamp(var(--s-5), 3vw, var(--s-7));
  display: grid;
  gap: var(--s-4);
}
.quote-panel > .marker { color: var(--accent); }
.quote-title { font-size: 1.45rem; }

.ask { display: grid; gap: var(--s-1); }
.ask label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-small);
}
.ask input,
.ask select {
  font: inherit;
  color: var(--fg);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  padding: 0.65em 0.8em;
  width: 100%;
}
.ask input:focus-visible,
.ask select:focus-visible { outline-offset: 0; }
.ask.is-wrong input,
.ask.is-wrong select { border-color: #a33a1f; }
.ask-error { color: #a33a1f; font-size: var(--t-small); }
.ask-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 430px) { .ask-pair { grid-template-columns: 1fr; } }

.photo-note {
  background: var(--cream);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-small);
  color: var(--muted);
}
.photo-note a { font-weight: 600; }

.fix-list {
  background: #f9e8e2;
  border: 1px solid #a33a1f;
  border-radius: var(--r-2);
  padding: var(--s-4);
  color: #7c2c16;
}
.fix-list ul { margin: var(--s-2) 0 0; padding-left: 1.2em; }
.fix-list a { color: inherit; }

.quote-status { font-size: var(--t-small); color: var(--muted); }

/* the no-JS path: shown only when the head bootstrap never set html.js, or
   removed it because main.js failed to load */
.no-js-note { display: none; }
html:not(.js) .no-js-note {
  display: block;
  background: var(--cream);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-small);
  color: var(--fg);
}
html:not(.js) .no-js-note a { font-weight: 600; }

.fallback-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-4);
  display: grid;
  gap: var(--s-3);
}
.fallback-panel textarea {
  font: inherit;
  font-size: var(--t-small);
  width: 100%;
  min-height: 9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  padding: var(--s-3);
  background: var(--white);
  color: var(--fg);
}
.fallback-panel .press { justify-self: start; padding: 0.55em 1.2em; font-size: var(--t-small); }

.nowhere { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- season line ---------- */
.season-line { padding-block: var(--s-4); }
.season-line .lane {
  display: flex;
  align-items: baseline;
  gap: var(--s-3) var(--s-4);
  flex-wrap: wrap;
}
.season-line p { font-size: var(--t-small); }
.season-line .marker { flex: none; }

/* ---------- services ---------- */
.service-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-2) var(--s-5);
  align-items: baseline;
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.service-row h3 { font-size: 1.2rem; }
.service-row .prose { font-size: var(--t-small); margin-top: var(--s-1); }
.price-from {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--fg);
}
.price-from small {
  display: block;
  text-align: right;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.services-foot { margin-top: var(--s-5); font-size: var(--t-small); color: var(--muted); max-width: var(--measure); }

/* ---------- steps ---------- */
.step-walk {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.step-stone { display: grid; gap: var(--s-3); align-content: start; }
.step-stone .step-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent-mark);
  line-height: 1;
}
.step-stone p { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 760px) { .step-walk { grid-template-columns: 1fr; } }

/* ---------- before / after pair ---------- */
.pair-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.pair-half {
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: clip;
  background: var(--white);
}
.pair-half figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-small);
}
.pair-half svg { width: 100%; height: auto; }
@media (max-width: 640px) { .pair-view { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.review-bed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.review-slip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  align-content: start;
}
.review-slip blockquote { font-size: var(--t-body); text-wrap: pretty; }
.review-slip figcaption {
  display: grid;
  gap: var(--s-1);
  font-size: var(--t-small);
  color: var(--muted);
}
.review-slip figcaption strong { color: var(--fg); font-family: var(--font-display); }
.review-stars { color: var(--accent-mark); letter-spacing: 0.1em; }
@media (max-width: 860px) { .review-bed { grid-template-columns: 1fr; } }

/* ---------- ground info: area + hours ---------- */
.ground-info {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s-7);
  align-items: start;
}
.area-aside { margin-top: var(--s-4); }
.area-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; margin-top: var(--s-4); }
.area-chips li {
  list-style: none;
  font-size: var(--t-small);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.3em 0.9em;
}
.hours-slab {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-5);
}
.hours-slab table { width: 100%; border-collapse: collapse; }
.hours-slab caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.hours-slab td, .hours-slab th {
  text-align: left;
  font-weight: 400;
  font-size: var(--t-small);
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.hours-slab tr:last-child td, .hours-slab tr:last-child th { border-bottom: 0; }
.hours-slab td { text-align: right; }
@media (max-width: 860px) { .ground-info { grid-template-columns: 1fr; } }

/* ---------- FAQ (native details, no JS) ---------- */
.faq-stack { display: grid; border-top: 1px solid var(--line); max-width: 48rem; }
.faq-stack details { border-bottom: 1px solid var(--line); }
.faq-stack summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding-block: var(--s-5);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.faq-stack summary::-webkit-details-marker { display: none; }
.faq-stack summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--accent-mark);
  flex: none;
  transition: rotate var(--dur-2) var(--ease-out);
}
.faq-stack details[open] summary::after { rotate: 45deg; }
.faq-stack details > div { padding-bottom: var(--s-5); }
.faq-stack details p { max-width: var(--measure); color: var(--muted); }

/* ---------- last call band ---------- */
.last-call { text-align: left; }
.last-call .lane {
  display: grid;
  gap: var(--s-5);
  justify-items: start;
}
.last-call .patch-title { max-width: 30ch; }
.last-call .opening-ways { margin-top: var(--s-2); }

/* ---------- groundwork (operational footer) ---------- */
.groundwork { padding-block: var(--s-8) var(--s-6); background: var(--bg-2); }
.groundwork .lane {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--s-7);
}
.groundwork h2 { font-size: 1rem; font-family: var(--font-display); }
.groundwork ul { padding: 0; display: grid; gap: var(--s-2); }
.groundwork li { list-style: none; font-size: var(--t-small); }
.groundwork a { color: var(--fg); }
.groundwork a:hover { color: var(--accent); }
.groundwork .marker { margin-bottom: var(--s-3); display: block; }
.groundwork-base {
  border-top: 1px solid var(--line);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-size: 0.8rem;
  color: var(--muted);
}
@media (max-width: 860px) { .groundwork .lane { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- 404 ---------- */
.lost-patch {
  min-height: 82svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--s-5);
  position: relative;
  overflow: clip;
}
.lost-patch .headline { font-size: clamp(4rem, 16vw, 9rem); }
.lost-edge { position: absolute; inset-inline: 0; bottom: 0; }
.lost-edge svg { width: 100%; height: clamp(36px, 7vw, 70px); color: var(--spring-deep); }

/* ---------- styleguide ---------- */
.guide-row { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
.swatch-row { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.swatch {
  width: 8.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: clip;
  font-size: 0.75rem;
}
.swatch > span { display: block; height: 3.5rem; }
.swatch > code { display: block; padding: var(--s-2) var(--s-3); }
.guide-note { max-width: var(--measure); color: var(--muted); font-size: var(--t-small); }
.fit-list { padding-left: 1.2em; display: grid; gap: var(--s-3); max-width: var(--measure); }
.fit-list li::marker { color: var(--accent-mark); font-weight: 700; }

/* ---------- reveals ---------- */
html.js .reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out);
}
html.js .reveal[data-delay="1"] { transition-delay: 90ms; }
html.js .reveal[data-delay="2"] { transition-delay: 180ms; }
html.js .reveal.is-inview { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; translate: 0 0; transition: none; }
  .press { transition: none; }
}

/* ---------- print ---------- */
@media print {
  .topbar, .grass-edge, .season-line, .last-call, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .quote-panel, .review-slip, .hours-slab { box-shadow: none; }
}
