/* ===========================================================
   Jungle Root Organics — shared design system
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  --green-900: #0F2A1F;   /* primary dark */
  --green-800: #16382A;
  --green-700: #1E4632;   /* secondary dark */
  --green-600: #2C5A41;
  --green-500: #3C6E52;
  --gold:      #D4AF37;   /* accent */
  --gold-soft: #E4CB78;
  --gold-deep: #A8801E;   /* darker gold for text on cream */
  --cream:     #FAF6EC;   /* warm light bg */
  --cream-2:   #F3EBD8;
  --cream-3:   #ECE1C8;
  --ink:       #1A1A1A;
  --ink-soft:  #3A3A36;
  --paper:     #FFFFFF;
  --line:      rgba(15,42,31,0.14);
  --line-soft: rgba(15,42,31,0.08);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --shadow-sm: 0 1px 2px rgba(15,42,31,0.06), 0 4px 16px rgba(15,42,31,0.05);
  --shadow-md: 0 18px 50px rgba(15,42,31,0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, image-slot { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; }
.display {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.0;
}
h2.section-title { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.on-dark { color: var(--gold); }

.tagline { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.7; color: var(--ink-soft); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.section.tight { padding-block: clamp(48px, 6vw, 88px); }
.bg-cream  { background: var(--cream); }
.bg-cream2 { background: var(--cream-2); }
.bg-paper  { background: var(--paper); }
.bg-green  { background: var(--green-900); color: var(--cream); }
.bg-green .lede { color: rgba(250,246,236,0.78); }

.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95em 1.7em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--green-900); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 10px 30px rgba(212,175,55,0.32); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250,246,236,0.45); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(250,246,236,0.08); }
.btn-ghost.on-light { color: var(--green-900); border-color: rgba(15,42,31,0.4); }
.btn-ghost.on-light:hover { border-color: var(--green-900); background: rgba(15,42,31,0.05); }
.btn-solid { background: var(--green-900); color: var(--cream); border-color: var(--green-900); }
.btn-solid:hover { background: var(--green-700); }
.btn-lg { padding: 1.05em 2em; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.92rem; color: var(--green-700);
  letter-spacing: 0.01em;
}
.link-arrow .ar { transition: transform .3s var(--ease); }
.link-arrow:hover .ar { transform: translateX(5px); }
.on-dark.link-arrow { color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 0.7em; }
.brand .mark { width: auto; height: 38px; flex: none; }
.brand .name {
  font-family: var(--serif); font-weight: 600; font-size: 1.18rem;
  letter-spacing: 0.01em; line-height: 1; color: var(--cream);
  transition: color .4s;
}
.brand .name small { display: block; font-family: var(--sans); font-weight: 500;
  font-size: 0.56rem; letter-spacing: 0.32em; text-transform: uppercase;
  opacity: 0.7; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
.nav a.nl {
  font-family: var(--sans); font-size: 0.86rem; font-weight: 500;
  color: rgba(250,246,236,0.86); letter-spacing: 0.01em;
  position: relative; padding-block: 6px; transition: color .25s;
}
.nav a.nl::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav a.nl:hover, .nav a.nl[aria-current="page"] { color: var(--cream); }
.nav a.nl:hover::after, .nav a.nl[aria-current="page"]::after { width: 100%; }

/* scrolled / solid header */
.site-header.solid {
  background: rgba(250,246,236,0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 0 rgba(15,42,31,0.04);
}
.site-header.solid .brand .name { color: var(--green-900); }
.site-header.solid .nav a.nl { color: rgba(26,26,26,0.72); }
.site-header.solid .nav a.nl:hover, .site-header.solid .nav a.nl[aria-current="page"] { color: var(--green-900); }
.site-header.solid .mark .stroke { stroke: var(--green-900); }
.site-header.solid .btn-ghost { color: var(--green-900); border-color: rgba(15,42,31,0.35); }

/* header that sits on light pages from the start */
.site-header.on-light:not(.solid) .brand .name { color: var(--green-900); }
.site-header.on-light:not(.solid) .nav a.nl { color: rgba(26,26,26,0.72); }
.site-header.on-light:not(.solid) .nav a.nl:hover { color: var(--green-900); }
.site-header.on-light:not(.solid) .mark .stroke { stroke: var(--green-900); }
.site-header.on-light:not(.solid) .btn-ghost { color: var(--green-900); border-color: rgba(15,42,31,0.35); }

.nav-cta { margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 5px auto; transition: .3s var(--ease); }
.site-header { color: var(--cream); }
.site-header.solid, .site-header.on-light:not(.solid) { color: var(--green-900); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--green-900); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: var(--gutter);
  transform: translateY(-100%); transition: transform .5s var(--ease);
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(2rem,8vw,3rem); font-weight: 500;
  padding: 8px 0; border-bottom: 1px solid rgba(250,246,236,0.12); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .mm-foot { margin-top: 28px; font-family: var(--sans); font-size: 0.9rem; color: rgba(250,246,236,0.6); }

@media (max-width: 940px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(250,246,236,0.8); padding-block: clamp(56px, 7vw, 84px) 36px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.site-footer a:hover { color: var(--cream); }
.site-footer .f-links li { margin-bottom: 9px; }
.site-footer .f-brand .name { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); font-weight: 600; }
.site-footer .f-tag { font-family: var(--serif); font-style: italic; color: var(--gold); margin-top: 10px; }
.site-footer address { font-style: normal; line-height: 1.8; font-size: 0.92rem; }
.footer-base { border-top: 1px solid rgba(250,246,236,0.12); margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(250,246,236,0.5); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: 8px; }
.field label .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 2px; padding: 0.85em 1em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(30,70,50,0.1);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B23A2E; box-shadow: 0 0 0 3px rgba(178,58,46,0.1); }
.field .err { color: #B23A2E; font-size: 0.8rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

.form-success {
  display: none; text-align: center; padding: 48px 32px;
}
.form-success.show { display: block; animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none; } }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: rgba(212,175,55,0.16); display: grid; place-items: center; }

/* ---------- Misc components ---------- */
.rule-gold { width: 56px; height: 2px; background: var(--gold); border: 0; }
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 3px; box-shadow: var(--shadow-sm); }
.badge { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700);
  background: rgba(30,70,50,0.07); padding: 0.4em 0.85em; border-radius: 100px; }
.badge.gold { color: var(--gold-deep); background: rgba(212,175,55,0.14); }

img.ph, .ph-fill { background: linear-gradient(135deg, var(--green-700), var(--green-900)); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--green-900); color: var(--cream); padding: 150px 0 clamp(60px, 8vw, 104px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--cream); font-size: clamp(2.5rem, 5.4vw, 4.4rem); max-width: 18ch; }
.page-hero .lede { color: rgba(250,246,236,0.78); margin-top: 22px; max-width: 58ch; }
.page-hero .ghost-mark { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); z-index: 0;
  width: min(40vw, 460px); opacity: 0.06; pointer-events: none; }
.page-hero .ghost-mark .stroke { stroke: var(--gold); stroke-width: 0.8; }

/* eyebrow alt for two-tone */
.page-hero .crumbs { font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(250,246,236,0.55); margin-bottom: 26px; }
.page-hero .crumbs a:hover { color: var(--gold); }

/* generic content blocks reused on subpages */
.prose { max-width: 64ch; }
.prose p { font-size: 1.08rem; line-height: 1.78; color: var(--ink-soft); margin-bottom: 1.1em; }
.prose p.first::first-letter { font-family: var(--serif); font-size: 3.6em; line-height: 0.8; float: left;
  color: var(--green-900); padding: 6px 12px 0 0; font-weight: 500; }
.pull { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3; color: var(--green-900); border-left: 2px solid var(--gold); padding-left: 28px; margin: 8px 0; }

/* split media row */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.media-row.flip .m-text { order: 2; }
.media-row image-slot { width: 100%; aspect-ratio: 4/5; border-radius: 4px; }
.media-row.wide image-slot { aspect-ratio: 3/2; }
@media (max-width: 820px) { .media-row { grid-template-columns: 1fr; } .media-row.flip .m-text { order: 0; } }

/* utilities */
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.flex { display: flex; } .gap-s { gap: 12px; } .gap-m { gap: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.eyebrow + h2, .eyebrow + h1 { margin-top: 18px; }

/* ---------- Production image placeholders ----------
   The Claude Design <image-slot> runtime is removed for production. Until real
   photography is dropped in, each slot renders as an elegant botanical-green
   panel with a faint brand crest. To add a photo, replace the <image-slot ...>
   element with <img src="..." alt="..." class="ph-img" /> (same CSS box). */
image-slot {
  position: relative; display: block; overflow: hidden;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  border-radius: 4px; min-height: 200px;
}
image-slot::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: no-repeat; background-position: center; background-size: 52px;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23FAF6EC' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4 V36'/%3E%3Cpath d='M20 11 C16 9 13 9.5 11 12'/%3E%3Cpath d='M20 11 C24 9 27 9.5 29 12'/%3E%3Cpath d='M20 17 C15 15 11 16 8.5 19'/%3E%3Cpath d='M20 17 C25 15 29 16 31.5 19'/%3E%3Cpath d='M20 23 C15 25 11 24 8.5 21'/%3E%3Cpath d='M20 23 C25 25 29 24 31.5 21'/%3E%3Cpath d='M20 29 C16 31 13 30.5 11 28'/%3E%3Cpath d='M20 29 C24 31 27 30.5 29 28'/%3E%3C/svg%3E");
}
.ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.site-footer .f-mark { height: 50px; width: auto; display: block; margin-bottom: 18px; }

/* ---------- Motion layer (Lenis + GSAP) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* Hide above-the-fold content until the intro timeline runs (motion-capable only) */
.pre-motion .hero-a .hero-inner > *,
.pre-motion .page-hero .wrap > * { opacity: 0; }
.motion .reveal { transition: none; }            /* GSAP drives these */
.jr-line { overflow: hidden; padding-bottom: 0.06em; }
