/* =================================================================
   Yard Fluent — styles.css
   Plain CSS, mobile-first. No build step.
   Sections: tokens · reset · layout · type · buttons · header ·
   footer · hero · photo placeholders · components · pages · utils
   ================================================================= */

/* ---- Tokens ---- */
:root {
  /* Brand palette */
  --forest:     #2C4A24;  /* primary — headlines, primary CTAs */
  --canopy:     #3B5C2F;  /* secondary primary */
  --sage:       #6B8F5E;  /* accents, icons, logo subline */
  --meadow:     #A8C5A0;
  --moss-tint:  #E4EBD9;  /* soft section fills */
  --harvest:    #C4A265;  /* warm accent — rules, underlines */
  --soil:       #8B6840;  /* warm earth — used sparingly */
  --linen:      #F5F3EE;  /* page background */
  --stone:      #D4DCCC;  /* borders, dividers */
  --bark:       #2E2C27;  /* body text */

  /* Semantic aliases */
  --bg:           var(--linen);
  --bg-raised:    #ffffff;
  --bg-deep:      var(--forest);
  --text:         var(--bark);
  --text-muted:   #5e5b53;
  --text-on-dark: var(--linen);
  --border:       var(--stone);
  --accent:       var(--harvest);
  --link:         var(--canopy);

  /* Type */
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 2rem + 3.2vw, 4.4rem);

  /* Space */
  --space-2xs: .375rem; --space-xs: .625rem; --space-s: 1rem;
  --space-m: 1.5rem;    --space-l: 2.5rem;   --space-xl: 4rem;
  --space-2xl: 6.5rem;

  --measure: 68ch;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(46,44,39,.06), 0 8px 24px rgba(46,44,39,.06);
  --wrap: 1180px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--harvest);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- Layout ---- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--moss { background: var(--moss-tint); }
.section--raised { background: var(--bg-raised); }
.section--dark { background: var(--bg-deep); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--linen); }
.section--dark .lead { color: color-mix(in srgb, var(--linen) 82%, transparent); }

/* readable column */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-s); }
.prose h2 { margin-top: var(--space-l); }
.prose h3 { margin-top: var(--space-m); }

/* ---- Type ---- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--forest); letter-spacing: -.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 500; }
h4 { font-size: var(--step-1); font-weight: 500; }
p { text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text-muted); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 1.8rem; height: 2px;
  background: var(--harvest);
}
.section--dark .eyebrow { color: var(--meadow); }

/* signature harvest rule (echoes the logo) */
.rule {
  border: 0;
  height: 2px;
  width: 4.5rem;
  background: var(--harvest);
  margin-block: var(--space-m);
}

/* pull quote */
.pull-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--canopy);
  max-width: 24ch;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: .85em 1.5em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--forest); color: var(--linen); }
.btn--primary:hover { background: var(--canopy); }
.btn--soil { background: var(--harvest); color: var(--bark); }
.btn--soil:hover { background: #b3915a; }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--linen); }
.btn--ghost-light { background: transparent; color: var(--linen); border-color: var(--meadow); }
.btn--ghost-light:hover { background: var(--linen); color: var(--forest); border-color: var(--linen); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: var(--space-s); top: -3.5rem;
  background: var(--forest); color: var(--linen);
  padding: .6rem 1rem; border-radius: var(--radius); z-index: 100;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--space-s); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--linen) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-m); min-height: 5rem;
}
.site-header__logo { width: clamp(170px, 22vw, 230px); height: auto; }
.site-header__brand { display: inline-flex; }
.site-header__brand:hover { text-decoration: none; }

.primary-nav ul {
  display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.7rem);
}
.primary-nav a:not(.btn) {
  color: var(--forest); font-weight: 500; padding: .4rem 0;
  position: relative; text-decoration: none;
}
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--harvest); transform: scaleX(0);
  transform-origin: left; transition: transform .22s var(--ease);
}
.primary-nav a:not(.btn):hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--canopy); }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 26px; height: 2px; background: var(--forest);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; inset: 5rem 0 auto 0;
    background: var(--linen); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .28s var(--ease);
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { max-height: 80vh; }
  .primary-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-s) 0;
    width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  }
  .primary-nav li { border-bottom: 1px solid var(--border); }
  .primary-nav li:last-child { border-bottom: 0; padding-top: var(--space-s); }
  .primary-nav a:not(.btn) { display: block; padding: .9rem 0; }
  .primary-nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---- Footer ---- */
.site-footer { background: var(--forest); color: var(--text-on-dark); }
.site-footer__inner {
  display: grid; gap: var(--space-l);
  padding-block: var(--space-xl);
  grid-template-columns: 1fr;
}
.site-footer__logo { width: 200px; height: auto; }
.site-footer__tag { font-family: var(--font-head); font-style: italic; color: var(--meadow); margin-top: var(--space-xs); }
.site-footer__place { color: color-mix(in srgb, var(--linen) 75%, transparent); margin-top: var(--space-xs); max-width: 30ch; }
.site-footer h2 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: .12em; color: var(--meadow); font-family: var(--font-body); font-weight: 600; margin-bottom: var(--space-s); }
.site-footer a { color: var(--linen); }
.site-footer__nav li, .site-footer__contact a { margin-bottom: .55rem; }
.site-footer__nav a, .site-footer__contact a { display: inline-block; }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.site-footer__contact .btn { margin-top: var(--space-s); }
.site-footer__base {
  border-top: 1px solid color-mix(in srgb, var(--linen) 18%, transparent);
  padding-block: var(--space-m);
  font-size: var(--step--1);
  color: color-mix(in srgb, var(--linen) 70%, transparent);
}
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-2xl); }
.hero--home { background: linear-gradient(180deg, var(--moss-tint), var(--linen)); }
.hero__grid { display: grid; gap: var(--space-l); align-items: center; }
.hero__title { margin-top: var(--space-s); }
.hero__lead { margin-top: var(--space-m); max-width: 46ch; }
.hero__actions { margin-top: var(--space-l); }
.hero__meta { margin-top: var(--space-m); font-size: var(--step--1); color: var(--text-muted); }
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--space-xl); }
}

/* decorative sprig watermark */
.sprig-mark {
  position: absolute; pointer-events: none; opacity: .10;
  width: clamp(180px, 26vw, 340px);
}
.sprig-mark--tr { top: -2rem; right: -2rem; transform: rotate(18deg); }
.sprig-mark--bl { bottom: -3rem; left: -3rem; transform: rotate(-160deg); }
.section--dark .sprig-mark { opacity: .14; filter: brightness(0) invert(1); }

/* ---- Photo placeholders ---- */
.photo {
  background: var(--moss-tint);
  border: 2px dashed var(--sage);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-m);
  min-height: 280px;
  position: relative;
}
.photo--tall { min-height: 420px; }
.photo--wide { min-height: 240px; }
.photo__caption {
  font-family: var(--font-head); font-style: italic;
  color: var(--canopy); text-align: center; max-width: 32ch;
  line-height: 1.4;
}
.photo__caption::before {
  content: "Photo to come"; display: block;
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: .5rem;
}
.section--dark .photo { background: color-mix(in srgb, var(--linen) 8%, transparent); border-color: var(--meadow); }
.section--dark .photo__caption { color: var(--meadow); }

/* ---- Generic grid + cards ---- */
.grid { display: grid; gap: var(--space-m); }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
}
.card h3 { color: var(--forest); }
.card p { color: var(--text-muted); margin-top: var(--space-xs); }

/* ---- Steps (how it works) ---- */
.steps { display: grid; gap: var(--space-l); counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-m); align-items: start; }
.step__num {
  counter-increment: step;
  font-family: var(--font-head); font-size: var(--step-2); color: var(--harvest);
  width: 3.4rem; height: 3.4rem; flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--harvest); border-radius: 50%;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: var(--space-2xs); }
.step p { color: var(--text-muted); }

/* ---- Testimonials ---- */
.testimonials { display: grid; gap: var(--space-l); }
@media (min-width: 760px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
.testimonial {
  background: var(--bg-raised);
  border-left: 4px solid var(--harvest);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-l);
  box-shadow: var(--shadow);
}
.testimonial blockquote { font-family: var(--font-head); font-size: var(--step-1); line-height: 1.4; color: var(--bark); }
.testimonial figcaption { margin-top: var(--space-s); font-weight: 600; color: var(--canopy); }
.testimonial figcaption span { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--step--1); }
.section--dark .testimonial { background: color-mix(in srgb, var(--linen) 6%, transparent); }
.section--dark .testimonial blockquote { color: var(--linen); }
.section--dark .testimonial figcaption span { color: var(--meadow); }

/* ---- Pricing ---- */
.pricing { display: grid; gap: var(--space-l); align-items: start; }
@media (min-width: 820px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-l);
  display: flex; flex-direction: column; height: 100%;
}
.price-card--featured { border-color: var(--canopy); border-width: 2px; box-shadow: var(--shadow); }
.price-card__flag { font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--harvest); margin-bottom: var(--space-xs); }
.price-card h3 { color: var(--forest); }
.price-card__price { font-family: var(--font-head); font-size: var(--step-2); color: var(--canopy); margin-block: var(--space-xs); }
.price-card__price span { font-family: var(--font-body); font-size: var(--step--1); color: var(--text-muted); }
.price-card ul { margin-block: var(--space-m); display: grid; gap: .6rem; }
.price-card li { padding-left: 1.6rem; position: relative; color: var(--text-muted); }
.price-card li::before { content: "✦"; position: absolute; left: 0; color: var(--sage); }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ---- Feature / split rows ---- */
.split { display: grid; gap: var(--space-l); align-items: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .split--reverse > :first-child { order: 2; }
}

/* ---- Blog (Field notes) ---- */
.post-list { display: grid; gap: var(--space-l); }
@media (min-width: 760px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.post-card .photo { border: 0; border-radius: 0; min-height: 200px; }
.post-card__body { padding: var(--space-l); display: flex; flex-direction: column; gap: var(--space-2xs); flex: 1; }
.post-card__meta { font-size: var(--step--1); color: var(--sage); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.post-card h3 { color: var(--forest); margin-block: var(--space-2xs); }
.post-card p { color: var(--text-muted); }
.post-card__more { margin-top: auto; font-weight: 600; color: var(--canopy); }

/* ---- Coming soon (Learn) ---- */
.coming-soon { text-align: center; max-width: 56ch; margin-inline: auto; }
.coming-soon .eyebrow { justify-content: center; }
.coming-soon .btn-row { justify-content: center; }
.notify-form { display: flex; flex-wrap: wrap; gap: var(--space-s); justify-content: center; margin-top: var(--space-l); }
.notify-form input {
  flex: 1 1 16rem; padding: .85em 1em; font: inherit;
  border: 2px solid var(--stone); border-radius: var(--radius); background: var(--bg-raised);
}
.notify-form input:focus-visible { border-color: var(--canopy); outline-offset: 0; }

/* ---- Book / Calendly ---- */
.calendly-frame {
  border: 2px dashed var(--sage); border-radius: var(--radius-lg);
  background: var(--moss-tint); padding: var(--space-xl) var(--space-m);
  text-align: center; min-height: 540px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-s);
}
.calendly-frame .eyebrow { justify-content: center; }

/* ---- FAQ ---- */
.faq { display: grid; gap: var(--space-s); max-width: var(--measure); }
.faq details {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-s) var(--space-m);
}
.faq summary { font-family: var(--font-head); font-size: var(--step-1); color: var(--forest); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-s); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--harvest); font-size: 1.6em; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin-top: var(--space-s); color: var(--text-muted); }

/* ---- Page intro band ---- */
.page-intro { padding-block: var(--space-xl); background: linear-gradient(180deg, var(--moss-tint), var(--linen)); position: relative; overflow: hidden; }
.page-intro h1 { margin-top: var(--space-s); }
.page-intro .lead { margin-top: var(--space-m); max-width: 52ch; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band .prose { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-l); }

/* ---- Utilities ---- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: var(--space-s); }
.stack-l > * + * { margin-top: var(--space-l); }
