/* ============================================================================
   Monarch Gardens — styles.css  (single stylesheet, hand-authored)
   ----------------------------------------------------------------------------
   Aesthetic: calm, earthy, warm-bone backgrounds; minimal; serif display type;
   generous whitespace. The site should feel ALIVE without ever being busy —
   motion is color movement (ambient glows, slow hero zoom, gentle reveals),
   never bounce or spring.

   THEMES: three "directions" toggled via [data-direction] on <html>:
     moss (default) · sage · forest
   Each redefines the CSS variables in the block below. The user's choice
   persists in localStorage (see site.js).
   ============================================================================ */

/* ------------------------------------------------------------------ Themes */
:root,
[data-direction="moss"] {
  --bg:      #f2efe4;  /* warm bone page */
  --surface: #f8f6ee;  /* raised cards / lighter panels */
  --tint:    #e8e3d3;  /* soft tinted band */
  --ink:     #23281f;  /* primary text — deep warm green-black */
  --muted:   #6c705f;  /* secondary text */
  --line:    #d8d2c0;  /* hairlines / borders */
  --accent:  #5c6f45;  /* moss green — the signature color */
  --accent-2:#7f9660;  /* lighter accent for glows / hovers */
  --band:    #38402e;  /* dark section background */
  --band-ink:#eef0e6;  /* text on dark bands */
  --glow:    92, 111, 69; /* --accent as rgb, for rgba() glows */
}

[data-direction="sage"] {
  --bg:      #eef0e8;
  --surface: #f6f7f1;
  --tint:    #e0e5d9;
  --ink:     #262b26;
  --muted:   #6b7168;
  --line:    #d3d9cc;
  --accent:  #6f8a6a;  /* softer grey-green */
  --accent-2:#96ad8f;
  --band:    #33402f;
  --band-ink:#eef2ea;
  --glow:    111, 138, 106;
}

[data-direction="forest"] {
  --bg:      #eae7db;
  --surface: #f3f1e7;
  --tint:    #dcd7c6;
  --ink:     #1c231a;
  --muted:   #626a58;
  --line:    #cfc9b6;
  --accent:  #38502f;  /* deep forest */
  --accent-2:#5e7a4c;
  --band:    #1e2a18;
  --band-ink:#e9eee2;
  --glow:    56, 80, 47;
}

/* ------------------------------------------------------------------ Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 600ms ease, color 600ms ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Ambient page glow — soft accent light bleeding from the corners. Color
   movement only (a slow opacity breath); it never moves position. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -8%,  rgba(var(--glow), 0.14), transparent 70%),
    radial-gradient(45% 45% at 100% 102%, rgba(var(--glow), 0.10), transparent 70%),
    radial-gradient(40% 40% at 0% 100%,   rgba(var(--glow), 0.07), transparent 70%);
  animation: ambient-breath 14s ease-in-out infinite;
}
@keyframes ambient-breath {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Everything real sits above the ambient wash. */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------- Typography */
h1, h2, h3, h4, .display, .brand {
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* Wrapping: headings + short intro copy get balanced lines (even rag, no lone
   word stranded on the last line); running body copy gets "pretty" so it avoids
   orphans without the cost of full balancing. Applies site-wide, and does the
   most visible work on the left/right-aligned blocks (story, cards, footer). */
h1, h2, h3, h4, .display { text-wrap: balance; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); text-wrap: balance; }
.tagline { font-family: "Jost", system-ui, sans-serif; line-height: 1.3; text-wrap: balance; }

/* Small mono labels / eyebrows. */
.eyebrow {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow.on-dark { color: var(--accent-2); }

/* --------------------------------------------------------------- Layout */
.wrap { width: min(1160px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 92vw); margin-inline: auto; }
section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1),
              background 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(var(--glow), 0.75);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 14px 40px -10px rgba(var(--glow), 0.9); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Glass buttons — used over the photographic hero. */
.btn-glass {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.25),
              0 10px 34px -10px rgba(0,0,0,0.5);
}
.btn-glass:hover { background: rgba(255,255,255,0.26); }
.btn-glass.solid { background: var(--accent); border-color: transparent; }
.btn-glass.solid:hover { background: var(--accent-2); }

/* --------------------------------- Contact: "What we offer" (expandable) */
.offer-grid {
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.9rem;
  align-items: start;
}
.offer {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Jost", sans-serif;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  transition: transform 320ms cubic-bezier(0.22,1,0.36,1),
              border-color 300ms ease, box-shadow 300ms ease, background 300ms ease;
}
/* Obvious hover/focus: lift + soft moss fill + accent border + gentle glow. */
.offer:hover,
.offer:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(var(--glow), 0.08);
  box-shadow: 0 14px 34px -18px rgba(var(--glow), 0.6);
  outline: none;
}
.offer:hover .offer-name,
.offer:focus-visible .offer-name { color: var(--accent); }
.offer:hover .offer-toggle,
.offer:focus-visible .offer-toggle { border-color: var(--accent-2); }
.offer[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 16px 44px -20px rgba(var(--glow), 0.55);
}
.offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Fits a two-line label, so every button is the same height regardless of
     how long the service name is. */
  min-height: 3.1rem;
}
.offer-name {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.005em;
  transition: color 260ms ease;
}
/* Chevron expand cue — points down when closed, flips up when open. */
.offer-toggle {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -3px;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 360ms cubic-bezier(0.22,1,0.36,1), border-color 260ms ease;
}
.offer[aria-expanded="true"] .offer-toggle {
  transform: rotate(-135deg);
  margin-top: 3px;
}
/* Smooth height reveal via grid-template-rows 0fr → 1fr. */
.offer-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(0.22,1,0.36,1);
}
.offer[aria-expanded="true"] .offer-body { grid-template-rows: 1fr; }
.offer-copy {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.offer[aria-expanded="true"] .offer-copy {
  opacity: 1;
  transform: none;
  padding-top: 0.75rem;
}

/* --------------------------------------------------------------- Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* logo · centered nav · instagram */
  align-items: center;
  padding: clamp(0.95rem, 2.2vw, 1.25rem);   /* equal inset on every side */
  transition: transform 340ms cubic-bezier(0.22,1,0.36,1);
}
/* Barless header: it hides on scroll-down and reappears on scroll-up, so it
   never needs a background bar or divider line — it reads as part of the page. */
.site-header.hidden { transform: translateY(-100%); }
/* Reserve the logo's height even on Home (where the mark is empty) so the
   header is the same height on every page and the nav never shifts vertically. */
.brand-mark { justify-self: start; display: inline-flex; align-items: center; gap: 0.55rem; min-height: 56px; }
.site-header .nav-links { justify-self: center; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 56px; width: auto; display: block; }
/* Adaptive mark: green on light pages, white over the dark hero. */
.brand-logo-white { display: none; }
.site-header.over-hero .brand-logo-green { display: none; }
.site-header.over-hero .brand-logo-white { display: block; }
/* Project pages: white nav lettering over the hero, but keep the green logo. */
.site-header.logo-green .brand-logo-green { display: block; }
.site-header.logo-green .brand-logo-white { display: none; }
.brand-word {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 1.32rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}
.site-header.over-hero .brand-word { color: #fff; }
@media (max-width: 460px) { .brand-word { display: none; } }
/* Solid state = dark ink text over the light page. No bar, no line — the
   header just floats and the scroll-away behavior keeps it from clashing. */
.site-header.solid { background: transparent; box-shadow: none; }
/* Over the hero photo: white text, softly shadowed so it reads without a bar. */
.site-header.over-hero {
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 14px rgba(0,0,0,0.55);
}
.site-header.over-hero .nav-link,
.site-header.over-hero .brand-mark { color: #fff; }
.site-header.over-hero .nav-link::after { background: #fff; }
.site-header.over-hero .theme-toggle { border-color: rgba(255,255,255,0.4); color:#fff; }

.brand-mark {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-mark span { color: var(--accent); }

/* Fixed gap (not viewport-relative) so nav spacing is identical on every page
   and at every window width — no shrinking as the window narrows. */
.nav-links { display: flex; gap: 3.75rem; }

/* Instagram — icon only (top-right), no label, no pill. */
.ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color 250ms ease, transform 250ms ease;
}
.ig-btn:hover { color: var(--accent); transform: scale(1.1); }
.ig-btn svg { display: block; width: 26px; height: 26px; }
.ig-label { display: none; }
.site-header.over-hero .ig-btn { color: #fff; }
.nav-link {
  position: relative;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.2rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.22,1,0.36,1);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Theme switcher */
.theme-toggle {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
}
.swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 200ms ease, border-color 200ms ease;
}
.swatch:hover { transform: scale(1.15); }
.swatch[aria-pressed="true"] { border-color: currentColor; }
.swatch.moss   { background: #5c6f45; }
.swatch.sage   { background: #6f8a6a; }
.swatch.forest { background: #38502f; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; color: inherit; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    background: var(--surface);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.35);
    transform: translateX(100%);
    transition: transform 380ms cubic-bezier(0.22,1,0.36,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .nav-link { font-size: 1.2rem; color: var(--ink); }
  .nav-toggle { display: inline-flex; }
  .site-header.over-hero .nav-links .nav-link { color: var(--ink); }
}

/* --------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
/* Crossfading slideshow — several garden photos dissolve into one another,
   each slowly zooming (Ken Burns) while it's the active frame. site.js toggles
   .active. Fallback earthy gradient shows behind if an image is missing. */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 70% 15%, #8a9a6d, transparent 55%),
    linear-gradient(160deg, #43502f 0%, #2c3325 55%, #1c231a 100%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 2200ms ease;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  animation: ken-burns 12s ease-out both;
}
@keyframes ken-burns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-1.5%, -1.5%, 0); }
}
/* Legibility washes — soft, not hard bars. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(78% 64% at 50% 44%, rgba(9,12,6,0.5) 0%, rgba(9,12,6,0.34) 55%, rgba(9,12,6,0.28) 100%),
    linear-gradient(180deg, rgba(9,12,6,0.55) 0%, rgba(9,12,6,0.2) 38%, rgba(9,12,6,0.58) 100%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; padding: 6rem 1.5rem 0; color: #fff; }
/* Big white logo lockup as the landing focal point. */
.hero-logo {
  width: auto;
  height: clamp(200px, 36vh, 360px);
  margin: 0 auto 3.4rem;
  filter: drop-shadow(0 6px 34px rgba(0,0,0,0.55));
}
/* Entrance nav — centered under the logo, like stepping through a gateway. */
.hero-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3.2rem);
}
.hero-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: 5px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.6);
}
.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 320ms cubic-bezier(0.22,1,0.36,1);
}
.hero-nav a:hover::after { transform: scaleX(1); }

/* Landing splash — the centered lockup is one big link into the site. */
.landing-enter { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.enter-cue {
  margin-top: 1.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 0.7rem 1.9rem;
  border-radius: 999px;
  transition: background 300ms ease, letter-spacing 300ms ease;
}
.landing-enter:hover .enter-cue { background: rgba(255,255,255,0.16); letter-spacing: 0.42em; }

/* Home hero heading (over the photo). */
.hero-title {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
  margin: 0 0 0.2rem;
}
.hero .brand {
  font-size: clamp(3rem, 9vw, 7rem);
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}
/* "Gardens" picks up the brand green, brightened for legibility on the photo. */
.hero .brand .brand-green {
  color: #b4cd8a;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5), 0 0 26px rgba(140,170,90,0.35);
}
.hero .eyebrow { color: #fff; opacity: 0.92; text-shadow: 0 1px 18px rgba(0,0,0,0.6); }
.hero .tagline {
  font-family: "Jost", system-ui, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: #fff;
  margin: 1.2rem 0 0;
  text-shadow: 0 1px 24px rgba(0,0,0,0.5);
  transition: opacity 500ms ease;   /* crossfade when the tagline rotates */
}
.hero .lead { color: rgba(255,255,255,0.9); max-width: 40ch; margin: 1.3rem auto 0; text-shadow: 0 1px 18px rgba(0,0,0,0.5); }
.hero-cta { margin-top: 2.2rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* Scroll cue — deliberately faint; a slow, soft breath, no bounce. */
.scroll-cue {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.75);
}
.scroll-cue svg { width: 18px; height: 9px; animation: cue-glow 3.2s ease-in-out infinite; }
@keyframes cue-glow {
  0%, 100% { opacity: 0.28; }
  50%      { opacity: 0.6; }
}

/* --------------------------------------------------------------- Bands */
/* Section tones are kept close in value, so moving between them reads as a
   calm, natural step rather than a hard seam OR a muddy gradient. Green is the
   single statement color, reserved for CTA bands. No dark full-bleed bands. */
.band-surface { background: var(--surface); }   /* barely-lighter warm panel */
.band-tint    { background: var(--tint); }       /* soft warm-sand tint */

/* "band-ink" is no longer dark — it's a calm pale-sage panel with dark text,
   so it never clashes with the green CTAs or muddies the transitions. */
.band-ink { background: #e7ebdd; color: var(--ink); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--ink); }
.band-ink .lead { color: var(--muted); }
.eyebrow.on-dark { color: var(--accent); }

/* The one bold moment: a solid moss-green CTA band, crisp edges, used sparingly. */
.band-accent  { background: var(--accent); color: #fff; }
.band-accent h1, .band-accent h2, .band-accent h3 { color: #fff; }
.band-accent .lead { color: rgba(255,255,255,0.85); }

/* --------------------------------------------------------------- Photo bands */
/* Full-bleed photograph as a section, optional overlaid caption. */
.photo-band {
  position: relative;
  padding: 0;
  height: clamp(320px, 58vh, 620px);
  overflow: hidden;
}
.photo-band > img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-band figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(0deg, rgba(12,15,9,0.62), transparent);
  color: #fff;
}
.photo-band figcaption .eyebrow { color: rgba(255,255,255,0.85); }
.photo-band figcaption h2 { color: #fff; max-width: 20ch; }

/* Two photos side by side. */
.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.6rem, 1.5vw, 1rem); }
.photo-duo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; }
@media (max-width: 620px) { .photo-duo { grid-template-columns: 1fr; } }

/* Three small photos in a row (collapses on narrow screens). */
.photo-trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(0.6rem, 1.5vw, 1rem); }
.photo-trio img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; }
@media (max-width: 720px) { .photo-trio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .photo-trio { grid-template-columns: 1fr; } }

/* Testimonials — items crossfade; only the active one holds height. */
.testimonials { position: relative; }
.testimonials .t-item { opacity: 0; transition: opacity 0.5s ease; position: absolute; inset: 0; }
.testimonials .t-item.active { opacity: 1; position: relative; }

/* Click-to-advance controls. */
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.8rem; }
.t-prev, .t-next {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(35,40,31,0.22); background: transparent;
  color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.t-prev:hover, .t-next:hover { border-color: var(--accent); color: var(--accent); }
.t-dots { display: flex; gap: 0.5rem; }
.t-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; border: none; cursor: pointer;
  background: rgba(35,40,31,0.22); transition: background 0.2s ease;
}
.t-dot.active { background: var(--accent); }

/* --------------------------------------------------------------- Cards / grid */
.grid {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
/* Big, image-forward cards — the photo fills the whole card, title overlaid. */
.grid.two,
.grid-gallery { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 500ms cubic-bezier(0.22,1,0.36,1), box-shadow 500ms ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 32px 60px -26px rgba(9,12,6,0.6); }
.card-media { position: absolute; inset: 0; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.22,1,0.36,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 4.5rem 1.6rem 1.4rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(9,12,6,0.82) 0%, rgba(9,12,6,0.3) 48%, transparent 100%);
}
.card-title { font-size: 1.75rem; color: #fff; text-shadow: 0 1px 16px rgba(0,0,0,0.55); }
.card-meta {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 0.3rem;
}

/* Gallery: garden name centered in the middle of each preview. A soft radial
   scrim sits behind the title so it reads over any photo without dimming the
   edges; it deepens a touch on hover. */
.grid-gallery .card-body {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center,
              rgba(9,12,6,0.52) 0%, rgba(9,12,6,0.2) 46%, transparent 72%);
  transition: background 500ms ease;
}
.grid-gallery .card:hover .card-body {
  background: radial-gradient(ellipse at center,
              rgba(9,12,6,0.62) 0%, rgba(9,12,6,0.26) 50%, transparent 76%);
}
.grid-gallery .card-title {
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 22px rgba(0,0,0,0.6);
}

/* Placeholder image blocks (design-notes convention). */
.ph {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(var(--glow), 0.16), rgba(var(--glow), 0.04)),
    var(--tint);
  color: var(--muted);
}
.ph::after {
  content: attr(data-label);
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* --------------------------------------------------------------- Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.feature.flip .feature-media { order: 2; }
.feature-media { border-radius: 18px; overflow: hidden; aspect-ratio: 5/4; border: 1px solid var(--line); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } }

/* --------------------------------------------------------------- Project page */
.project-hero { position: relative; height: 62svh; min-height: 380px; overflow: hidden; display: flex; align-items: flex-end; }
.project-hero img, .project-hero .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,24,16,0.78), transparent 65%); }
.project-hero .wrap { position: relative; z-index: 2; padding-bottom: 2.5rem; color: #fff; }
.project-hero h1 { color: #fff; }
.project-hero .eyebrow { color: #fff; }
/* Project gallery — full-bleed, edge-to-edge, with only a hairline gap between
   images (no rounding, no borders, no page margins). */
.gallery { columns: 2; column-gap: 4px; }
.gallery > * { break-inside: avoid; margin: 0 0 4px; overflow: hidden; border-radius: 0; border: 0; line-height: 0; }
.gallery img { display: block; width: 100%; height: auto; }
@media (max-width: 620px) { .gallery { columns: 1; } }
.meta-row { display: flex; flex-wrap: wrap; gap: 2rem 3rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 2.5rem 0; }
.meta-item .k { font-family: "Jost", system-ui, sans-serif; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.meta-item .v { font-family: "Jost", system-ui, sans-serif; font-size: 1.4rem; }

/* --------------------------------------------------------------- Contact form */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 240ms ease, box-shadow 240ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--glow), 0.18);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(var(--glow), 0.14);
  border: 1px solid var(--accent);
  color: var(--ink);
}
.form-success.show { display: block; }

.form-error {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(150, 60, 40, 0.10);
  border: 1px solid rgba(150, 60, 40, 0.45);
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.form-error a { color: inherit; text-decoration: underline; }
.form-error.show { display: block; }

/* ------------------------- Location autocomplete ("Where is your garden?") */
/* A smart-search dropdown styled to match the form fields — surface panel,
   hairline border, moss highlight on the active option. */
.combo { position: relative; }
.combo-list {
  position: absolute;
  z-index: 20;
  left: 0; right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 22px 46px -22px rgba(9, 12, 6, 0.4);
  max-height: 17rem;
  overflow-y: auto;
  display: none;
}
.combo-list.show { display: block; }
.combo-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
  transition: background 160ms ease;
}
.combo-option + .combo-option { border-top: 1px solid rgba(var(--glow), 0.08); }
.combo-option:hover,
.combo-option.active { background: rgba(var(--glow), 0.10); }
.combo-option mark { background: none; color: var(--accent); font-weight: 600; }
.combo-option .area {
  flex: none;
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Honeypot: kept in the layout but invisible/unfocusable to humans. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* --------------------------------------------------------------- Footer */
.site-footer {
  background: var(--band);
  color: var(--band-ink);
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
  position: relative;
  overflow: hidden;
}
/* Line-art monarch watermark, lighter moss on the dark band, bleeding off the corner. */
.footer-watermark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8%;
  width: min(70%, 680px);
  aspect-ratio: 640 / 318;
  background: url(assets/watermark.png) center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
/* Footer content runs full-bleed with only a slim gutter, so the side columns
   push right out to the edges of the page. */
.site-footer > .wrap {
  position: relative; z-index: 1;
  width: auto; max-width: none;
  margin-inline: 0;
  padding-inline: clamp(1.5rem, 3vw, 4rem);
}
.site-footer a:hover { color: var(--accent-2); }
/* Three tracks: brand hard-left, nav dead-center, contact hard-right. */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2.5rem;
}
.footer-grid > :last-child { justify-self: end; text-align: right; }
.footer-brand { font-family: "Jost", system-ui, sans-serif; font-size: 2rem; }
/* Green lockup needs a light backing to read on the dark footer band. */
.footer-logo {
  display: inline-block;
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  line-height: 0;
}
.footer-logo img { width: 132px; height: auto; }
/* White lockup reads directly on the dark band — no light backing needed. */
.footer-logo.on-band { background: none; padding: 0; border-radius: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.6rem, 2.8vw, 3.2rem); font-size: 0.9rem; }
.footer-bottom {
  margin-top: 3.5rem;
  font-family: "Jost", system-ui, sans-serif;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(238,240,230,0.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}

/* On narrow screens the three columns stack and center. */
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.8rem;
  }
  .footer-grid > :last-child { justify-self: center; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
}

/* --------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 800ms cubic-bezier(0.22,1,0.36,1), transform 800ms cubic-bezier(0.22,1,0.36,1);
}
.reveal.d1.in { transition-delay: 0.08s; }
.reveal.d2.in { transition-delay: 0.16s; }
.reveal.d3.in { transition-delay: 0.24s; }

/* --------------------------------------------------------------- Motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { animation: none; transform: scale(1.03); transition: none; }
  body::before { animation: none; }
  .scroll-cue svg { animation: none; opacity: 0.4; }
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: 0.001ms !important; }
}
