/* ==========================================================================
   Understory — neighbourhood plant shop
   Design world: a leafy GREENHOUSE. Where the old draft used green as a small
   accent on cream, here deep botanical green is the primary surface — the
   hero and footer are full-bleed forest green, like stepping into the shop —
   wrapped around a warm oat-paper catalogue. Rounded, hand-made and friendly.
   Signatures kept because they're genuinely useful: a three-icon care tag on
   every plant, and a hand-hung sign for the hours.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --forest: #22402b;      /* deep botanical green (primary surface) */
  --forest-2: #2c4f34;
  --leaf: #567049;
  --moss: #567049;        /* alias — kept so plant-card illustrations render */
  --sage: #8ba173;
  --sage-soft: #b7c7a3;
  --oat: #f3ecda;         /* warm paper */
  --oat-raised: #eadfc4;
  --cream: #fbf7ed;
  --ink: #23301d;         /* dark green-brown text on light */
  --ink-soft: #4f5a41;
  --terracotta: #bd5f30;
  --terracotta-deep: #99451f;
  --line: #ddd0ab;
  --line-green: #3a5641;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;

  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body { margin: 0; background: var(--oat); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------ type -------------------------------- */
.label { font-family: var(--font-body); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta-deep); display: inline-flex; align-items: center; gap: 0.5em; }
.label::before { content: '❋'; font-size: 0.9em; color: var(--sage); }

h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.018em; line-height: 1.05; color: var(--ink); }
.h-display { font-size: clamp(2.8rem, 6.2vw, 5rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.025em; }
h2, .h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3, .h3 { font-size: 1.35rem; }

.lede { font-size: clamp(1.04rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; line-height: 1.6; }
p.body-copy { color: var(--ink-soft); max-width: 60ch; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.section-head .label { margin-bottom: 0.8rem; }

/* ------------------------------ buttons -------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; padding: 0.85rem 1.7rem; border-radius: 100px; border: 2px solid var(--forest); transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta-deep); }

/* ------------------------------ nav -------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(243,236,218,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 0.95rem; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand .leaf-mark { width: 24px; height: 24px; flex: none; }
.brand-word { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a:not(.btn) { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); position: relative; padding-bottom: 3px; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 2px; background: var(--terracotta); transition: width 0.3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 2px solid var(--forest); width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; color: var(--forest); }
.nav-toggle svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 60px 0 auto 0; background: var(--oat); flex-direction: column; align-items: flex-start; padding: 1.8rem var(--gutter); gap: 1.4rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
}

/* ------------------------------ reveal -------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ------------------------------ sections -------------------------------- */
section { padding-block: clamp(3.4rem, 7vw, 5.6rem); }
.bg-cream { background: var(--cream); }
.bg-sage { background: var(--oat-raised); }

/* ------------------------------ hero (forest greenhouse) -------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--forest); color: var(--cream); padding-block: clamp(2.8rem, 6vw, 4.6rem); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 88% 20%, rgba(139,161,115,0.22), transparent 60%),
    radial-gradient(50% 60% at 6% 92%, rgba(139,161,115,0.16), transparent 60%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy .label { color: var(--sage-soft); margin-bottom: 1.4rem; }
.hero-copy .label::before { color: var(--sage-soft); }
.hero-copy h1 { color: var(--cream); margin-bottom: 1.5rem; }
.hero-copy .lede { color: #e6dfcc; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-primary { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.hero .btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.hero .btn-ghost { color: var(--cream); border-color: rgba(251,247,237,0.4); }
.hero .btn-ghost:hover { border-color: var(--cream); color: var(--cream); }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; max-width: 400px; margin-inline: auto; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; max-width: 340px; } }

/* ------------------------------ care icons -------------------------------- */
.care-row { display: flex; gap: 1.3rem; margin-top: 1rem; flex-wrap: wrap; }
.care-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.care-item svg { width: 17px; height: 17px; flex: none; }
.care-item svg .stroke { fill: none; stroke: var(--leaf); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.care-item span { font-size: 0.79rem; color: var(--ink-soft); font-weight: 600; }

/* ------------------------------ plant grid / cards -------------------------------- */
.plant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.plant-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.plant-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px rgba(34,64,43,0.5); }
.plant-thumb { aspect-ratio: 4/3.3; display: flex; align-items: center; justify-content: center; }
.plant-thumb svg { width: 62%; }
.plant-body { padding: 1.3rem 1.4rem 1.5rem; }
.plant-body h4 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; margin-bottom: 0.25rem; }
.plant-body .latin { font-style: italic; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.9rem; display: block; }
.plant-price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.plant-foot { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.difficulty { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 100px; background: var(--oat-raised); color: var(--ink-soft); }
.difficulty.easy { background: #dfe7cf; color: #47632f; }
.difficulty.moderate { background: #f0e2c4; color: #8a5a1e; }
.difficulty.attention { background: #f0d8c8; color: var(--terracotta-deep); }
@media (max-width: 900px) { .plant-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plant-grid { grid-template-columns: 1fr; } }

/* ------------------------------ philosophy -------------------------------- */
.philosophy-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.philosophy-card { background: var(--oat); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.7rem; }
.philosophy-card .pnum { width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; margin-bottom: 1.2rem; }
.philosophy-card h4 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.6rem; }
.philosophy-card p { color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 800px) { .philosophy-cols { grid-template-columns: 1fr; } }

/* ------------------------------ hanging sign -------------------------------- */
.sign-band { display: flex; justify-content: center; }
.hanging-sign { position: relative; background: var(--cream); border: 2px solid var(--forest); border-radius: 10px; padding: 2.4rem 3rem; text-align: center; transform: rotate(-1.2deg); box-shadow: 0 16px 30px -16px rgba(34,64,43,0.4); }
.hanging-sign::before { content: ''; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); width: 2px; height: 24px; background: var(--forest); }
.hanging-sign::after { content: ''; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--forest); background: var(--oat); }
.hanging-sign .label { display: inline-flex; margin-bottom: 1rem; }
.hanging-sign .hours-row { display: flex; justify-content: space-between; gap: 2.4rem; padding-block: 0.5rem; border-top: 1px dashed var(--line); font-family: var(--font-display); font-weight: 600; }
.hanging-sign .hours-row:first-of-type { border-top: none; }

/* ------------------------------ footer (forest) -------------------------------- */
.site-footer { background: var(--forest); color: var(--cream); padding-block: 3.4rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--line-green); }
.footer-brand .brand-word { color: var(--cream); }
.footer-tagline { font-size: 0.92rem; color: var(--sage-soft); margin-top: 0.9rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--cream); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: #d3dcc4; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: 0.8rem; color: var(--sage); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ------------------------------ demo banner -------------------------------- */
.demo-banner { background: var(--terracotta); color: #fbe9dd; text-align: center; padding: 0.5rem 1rem; font-size: 0.82rem; font-weight: 600; }
.demo-banner a { text-decoration: underline; text-underline-offset: 2px; color: #fbe9dd; }
.framed .demo-banner { display: none; }

/* ------------------------------ page head (shop / visit) -------------------------------- */
.page-head .label { margin-bottom: 1rem; }
.page-head h1 { max-width: 18ch; }

/* ------------------------------ shop page -------------------------------- */
.filter-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 2rem; }
.filter-chip { font-size: 0.86rem; font-weight: 700; padding: 0.5rem 1.15rem; border: 2px solid var(--line); border-radius: 100px; color: var(--ink-soft); background: var(--oat); }
.filter-chip.is-active { border-color: var(--forest); color: var(--cream); background: var(--forest); }
.category-block { margin-bottom: 3.2rem; }
.category-block h3 { margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 0.6rem; }
.category-block h3::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--terracotta); }

/* ------------------------------ cta band (green) -------------------------------- */
.cta-band { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3rem); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.cta-band h2 { color: var(--cream); max-width: 16ch; }
.cta-band .btn-primary { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.cta-band .btn-primary:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }

/* ------------------------------ visit page -------------------------------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.workshop-list { display: flex; flex-direction: column; }
.workshop-item { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1.3rem; border-top: 1px solid var(--line); }
.workshop-list .workshop-item:last-child { border-bottom: 1px solid var(--line); }
.workshop-item h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.3rem; }
.workshop-item p { font-size: 0.88rem; color: var(--ink-soft); }
.workshop-date { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; white-space: nowrap; color: var(--terracotta-deep); }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: flex; flex-direction: column; gap: 0.45rem; }
.form-row label { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.form-row input, .form-row textarea { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.95rem; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 2px rgba(189,95,48,0.2); }
.form-row textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { align-self: flex-start; margin-top: 0.4rem; }
