/* Hearthgrove Landscape Co. — "Garden Row" layout primitive.
   Full-bleed rows with offset content panels, not a centered container +
   card grid. Own CSS variables and class taxonomy — see img/SOURCES.md
   and README.md for the rest of the build notes. */

:root {
  --canopy: #16231c;
  --canopy-2: #1d2e22;
  --moss: #3f6b4a;
  --moss-2: #2f5138;
  --moss-light: #6f9c7b;
  --clay: #c1622d;
  --clay-2: #9c4d22;
  --parchment: #faf6ec;
  --parchment-2: #f1ead9;
  --bark: #241c14;
  --stone: #6b6459;
  --mist: #ece5d6;
  --spring: #6f9c53;
  --summer: #d9a441;
  --autumn: #bf5a2c;
  --winter: #4f7088;

  --font-display: 'Fraunces', serif;
  --font-text: 'Work Sans', sans-serif;

  --curve: 14px;
  --lift: 0 18px 40px rgba(18, 27, 21, 0.22);
  --measure: 62ch;
  --edge: clamp(20px, 5vw, 72px);
}

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

body {
  margin: 0;
  background: var(--parchment);
  color: var(--bark);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--canopy);
}

p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--moss-2); }

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

button { font-family: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.dig {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--curve);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dig:hover { transform: translateY(-2px); }
.dig--clay { background: var(--clay); color: var(--parchment); box-shadow: 0 10px 22px rgba(193, 98, 45, 0.35); }
.dig--clay:hover { background: var(--clay-2); }
.dig--outline { background: transparent; color: var(--parchment); border-color: rgba(250, 246, 236, 0.5); }
.dig--outline:hover { border-color: var(--parchment); }
.dig--ghost { background: transparent; color: var(--canopy); border-color: var(--canopy); }
.dig--ghost:hover { background: var(--canopy); color: var(--parchment); }
.dig--full { width: 100%; justify-content: center; }

/* ---------- Topbar ---------- */
.strip {
  background: var(--canopy);
  color: var(--mist);
  font-size: 0.82rem;
}
.strip-inner {
  max-width: none;
  padding: 0.5em var(--edge);
  display: flex;
  justify-content: space-between;
  gap: 1em;
  flex-wrap: wrap;
}

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(22, 35, 28, 0.08);
}
.masthead-row {
  padding: 0.9em var(--edge);
  display: flex;
  align-items: center;
  gap: 2em;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  color: var(--canopy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-right: auto;
}
.brandmark svg { flex: none; }
.paths {
  display: flex;
  gap: 1.6em;
}
.paths a {
  text-decoration: none;
  color: var(--bark);
  font-weight: 500;
  font-size: 0.95rem;
}
.paths a:hover { color: var(--moss-2); }
.dial {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--moss);
  color: var(--parchment);
  padding: 0.6em 1.2em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.dial:hover { background: var(--moss-2); }
.sprout {
  background: none;
  border: none;
  padding: 0.4em;
  display: none;
}
.sprout span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--canopy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.paths.is-open { display: flex; }

@media (max-width: 860px) {
  .paths {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--parchment);
    flex-direction: column;
    padding: 1em var(--edge) 1.4em;
    border-bottom: 1px solid rgba(22, 35, 28, 0.08);
    gap: 0.9em;
  }
  .sprout { display: block; }
}

/* ---------- Hero: frontbed ---------- */
.frontbed {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.frontbed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.frontbed-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 35, 28, 0.05) 0%, rgba(22, 35, 28, 0.05) 45%, rgba(22, 35, 28, 0.55) 100%);
}
.frontbed-panel {
  position: relative;
  z-index: 2;
  background: var(--parchment);
  box-shadow: var(--lift);
  border-radius: var(--curve) var(--curve) 0 0;
  padding: 2.6em var(--edge) 2.8em;
  margin: 0 0 0 clamp(0px, 4vw, 5vw);
  max-width: 640px;
}
.frontbed-panel h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}
.frontbed-panel .lede {
  font-style: italic;
  color: var(--moss-2);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.9em;
}
.frontbed-actions {
  display: flex;
  gap: 0.9em;
  flex-wrap: wrap;
  margin-top: 1.2em;
}
.frontbed-actions .dig--outline { color: var(--canopy); border-color: var(--canopy); }
.frontbed-actions .dig--outline:hover { background: var(--canopy); color: var(--parchment); }

/* ---------- Credibility strip: badgeline ---------- */
.badgeline {
  background: var(--canopy-2);
  color: var(--mist);
}
.badgeline-inner {
  padding: 0.9em var(--edge);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 2em;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
}
.badgeline-inner span { white-space: nowrap; }
.badgeline-inner span:not(:last-child)::after {
  content: '\2022';
  margin-left: 2em;
  color: var(--moss-light);
}
@media (max-width: 700px) {
  .badgeline-inner span:not(:last-child)::after { display: none; }
}

/* ---------- Seasonal Almanac (bespoke) ---------- */
.almanac {
  padding: clamp(3em, 7vw, 5.5em) var(--edge);
  background: var(--parchment-2);
}
.almanac-frame {
  max-width: 980px;
  margin: 0 auto;
}
.almanac-lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.9em;
}
.almanac-dial {
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
  margin-bottom: 1.6em;
  border-bottom: 2px solid rgba(22, 35, 28, 0.1);
  padding-bottom: 0;
}
.almanac-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.7em 0.2em;
  margin-right: 1.6em;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.almanac-tab .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--season-color, var(--moss));
}
.almanac-tab[data-season="spring"] { --season-color: var(--spring); }
.almanac-tab[data-season="summer"] { --season-color: var(--summer); }
.almanac-tab[data-season="autumn"] { --season-color: var(--autumn); }
.almanac-tab[data-season="winter"] { --season-color: var(--winter); }
.almanac-tab[aria-selected="true"] {
  color: var(--canopy);
  border-bottom-color: var(--season-color, var(--moss));
}
.almanac-sheet {
  background: var(--parchment);
  border-radius: var(--curve);
  padding: clamp(1.6em, 4vw, 2.6em);
  box-shadow: var(--lift);
}
.almanac-sheet h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5em;
}
.almanac-tasks {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
  display: grid;
  gap: 0.7em;
}
.almanac-tasks li {
  padding-left: 1.6em;
  position: relative;
}
.almanac-tasks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--clay);
  transform: rotate(45deg);
}

/* ---------- Services: rowlist ---------- */
.rowlist-section {
  padding: clamp(3em, 7vw, 5.5em) var(--edge);
}
.rowlist-open {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 46ch;
  margin-bottom: 1.4em;
}
.rowlist { border-top: 1px solid rgba(22, 35, 28, 0.12); }
.row {
  display: grid;
  grid-template-columns: 3.5em 1.4fr 1fr 2fr;
  gap: 1.5em;
  align-items: center;
  padding: 1.6em 0;
  border-bottom: 1px solid rgba(22, 35, 28, 0.12);
}
.row:nth-child(even) { background: var(--parchment-2); margin: 0 calc(-1 * var(--edge)); padding-left: var(--edge); padding-right: var(--edge); }
.row-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--moss-light);
  font-size: 1.4rem;
}
.row h3 { margin: 0; font-size: 1.2rem; }
.row-cadence {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clay-2);
}
.row p { margin: 0; font-size: 0.95rem; color: var(--stone); max-width: 42ch; }
@media (max-width: 760px) {
  .row { grid-template-columns: 2.5em 1fr; }
  .row-cadence, .row p { grid-column: 2; }
}

/* ---------- Work gallery: yard ---------- */
.yard-section {
  padding: clamp(3em, 7vw, 5.5em) var(--edge);
  background: var(--canopy);
  color: var(--parchment);
}
.yard-filter {
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
  margin-bottom: 1.8em;
}
.yard-filter button {
  background: rgba(250, 246, 236, 0.08);
  border: 1px solid rgba(250, 246, 236, 0.25);
  color: var(--parchment);
  padding: 0.55em 1.1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}
.yard-filter button[aria-pressed="true"] {
  background: var(--clay);
  border-color: var(--clay);
}
.yard-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1em;
}
.yard-item {
  position: relative;
  border-radius: var(--curve);
  overflow: hidden;
  grid-column: span 3;
  aspect-ratio: 4 / 3;
}
.yard-item:nth-child(3n+1) { grid-column: span 4; }
.yard-item:nth-child(3n+2) { grid-column: span 2; }
.yard-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.yard-item:hover img { transform: scale(1.06); }
.yard-tag {
  position: absolute;
  left: 0.9em;
  bottom: 0.9em;
  background: rgba(22, 35, 28, 0.82);
  color: var(--parchment);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35em 0.8em;
  border-radius: 999px;
}
.yard-item.is-hidden { display: none; }
@media (max-width: 760px) {
  .yard-grid { grid-template-columns: repeat(2, 1fr); }
  .yard-item, .yard-item:nth-child(3n+1), .yard-item:nth-child(3n+2) { grid-column: span 1; }
}

/* ---------- How we work: timeline ---------- */
.timeline-section {
  padding: clamp(2.6em, 6vw, 4em) var(--edge);
  max-width: 760px;
}
.timeline-open {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1.2em;
}
.timeline { border-left: 3px solid var(--moss-light); padding-left: 1.6em; }
.timeline-step { margin-bottom: 1.6em; position: relative; }
.timeline-step:last-child { margin-bottom: 0; }
.timeline-step::before {
  content: '';
  position: absolute;
  left: -2.02em;
  top: 0.25em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--clay);
  border: 2px solid var(--parchment);
}
.timeline-step h3 { font-size: 1.05rem; margin-bottom: 0.15em; }
.timeline-step p { margin: 0; font-size: 0.92rem; color: var(--stone); }

/* ---------- Reviews: testimony ---------- */
.testimony-section {
  padding: clamp(3em, 7vw, 5.5em) var(--edge);
  background: var(--parchment-2);
}
.testimony-frame { max-width: 1200px; margin: 0 auto; }
.testimony-open {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-bottom: 1.4em;
  flex-wrap: wrap;
}
.testimony-open .score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--canopy);
}
.testimony-open .score-note { color: var(--stone); font-size: 0.95rem; }
.testimony-set {
  display: flex;
  gap: 1.2em;
  overflow-x: auto;
  padding-bottom: 0.6em;
  scroll-snap-type: x proximity;
}
.testimony-card {
  flex: 0 0 min(340px, 85vw);
  background: var(--parchment);
  border-radius: var(--curve);
  padding: 1.6em;
  box-shadow: 0 8px 20px rgba(22, 35, 28, 0.1);
  scroll-snap-align: start;
}
.testimony-avatar {
  width: 42px;
  height: 42px;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: var(--moss);
  color: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 0.9em;
}
.testimony-card p { font-size: 0.95rem; margin-bottom: 0.9em; }
.testimony-who { font-size: 0.85rem; color: var(--stone); }
.testimony-who strong { color: var(--bark); }

/* ---------- Service area: range ---------- */
.range-section {
  padding: clamp(2em, 5vw, 3em) var(--edge);
  text-align: center;
}
.range-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  justify-content: center;
  margin-top: 1em;
}
.range-tags span {
  background: var(--mist);
  color: var(--bark);
  padding: 0.5em 1em;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* ---------- Closer CTA ---------- */
.closer {
  position: relative;
  padding: clamp(4em, 10vw, 7em) var(--edge);
  color: var(--parchment);
  text-align: center;
  overflow: hidden;
}
.closer-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.closer-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(22, 35, 28, 0.92) 0%, rgba(22, 35, 28, 0.75) 55%, rgba(63, 107, 74, 0.65) 100%);
  z-index: 1;
}
.closer-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.closer h2 { color: var(--parchment); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.closer .phone-big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--parchment);
  text-decoration: none;
  margin: 0.5em 0 1.1em;
}
.closer-actions { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact + footer ---------- */
.plotcontact {
  padding: clamp(3em, 7vw, 5.5em) var(--edge);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3em;
}
.plotcontact .phone-lead {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  display: block;
  margin-bottom: 0.3em;
  text-decoration: none;
  color: var(--canopy);
}
.field { margin-bottom: 1em; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1.5px solid rgba(22, 35, 28, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--parchment);
  color: var(--bark);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--moss);
  outline: none;
}
.form-note {
  font-size: 0.85rem;
  margin-top: 0.8em;
  min-height: 1.2em;
}
.form-note[data-state="ok"] { color: var(--moss-2); }
.form-note[data-state="err"] { color: var(--clay-2); }
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail { margin-bottom: 1.3em; }
.detail strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--stone); margin-bottom: 0.25em; }
.detail a, .detail span { color: var(--bark); text-decoration: none; font-size: 1.02rem; }
.detail a:hover { color: var(--moss-2); }
@media (max-width: 800px) {
  .plotcontact { grid-template-columns: 1fr; }
}

.roots {
  background: var(--canopy);
  color: var(--mist);
  padding: 3em var(--edge) 2em;
}
.roots-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5em;
  justify-content: space-between;
  margin-bottom: 2em;
}
.roots .brandmark { color: var(--parchment); }
.roots-tagline { max-width: 32ch; color: var(--moss-light); font-size: 0.92rem; }
.roots-nav { display: flex; flex-direction: column; gap: 0.6em; }
.roots-nav a { color: var(--mist); text-decoration: none; font-size: 0.92rem; }
.roots-nav a:hover { color: var(--parchment); }
.roots-bottom {
  border-top: 1px solid rgba(250, 246, 236, 0.12);
  padding-top: 1.4em;
  font-size: 0.8rem;
  color: var(--moss-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6em;
}

/* ---------- Persistent CTA: quote-tuck ---------- */
.quote-tuck {
  position: fixed;
  right: 1.2em;
  bottom: 1.2em;
  z-index: 50;
  background: var(--parchment);
  border-radius: var(--curve);
  box-shadow: var(--lift);
  padding: 1em 1.2em;
  max-width: 240px;
  border: 1px solid rgba(22, 35, 28, 0.1);
}
.quote-tuck p { font-size: 0.85rem; margin: 0 0 0.6em; color: var(--stone); }
.quote-tuck .dig { padding: 0.6em 1em; font-size: 0.85rem; width: 100%; justify-content: center; }
.quote-tuck-close {
  position: absolute;
  top: -0.5em;
  right: -0.5em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--canopy);
  color: var(--parchment);
  border: none;
  font-size: 0.9rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .quote-tuck {
    right: 0.8em;
    bottom: 0.8em;
    max-width: none;
    padding: 0.7em 0.9em;
  }
  .quote-tuck p { display: none; }
  .quote-tuck .dig { width: auto; padding: 0.65em 1.1em; }
  .quote-tuck-close { display: none; }
}
