/* ==========================================================================
   Pete's Organic Market — Scaffold / Visual Direction
   Cohesive organic design system. PROTOTYPE — placeholder content.
   ========================================================================== */

:root {
  /* Earthy organic palette */
  --green-900: #1f3324;
  --green-700: #2f5137;
  --green-600: #3a6a45;
  --green-500: #4f8a5b;
  --green-300: #9cc4a2;
  --olive:     #7d8b4e;
  --terracotta:#c06b3e;
  --clay:      #a8552f;
  --wheat:     #d9b877;
  /* Pete's brand red (sampled from the real logo) — now the PRIMARY accent */
  --brand-red:      #eb1b24;
  --brand-red-dark: #c8141c;
  --brand-red-soft: #fdecec;
  --cream:     #f6f1e6;
  --cream-2:   #efe7d6;
  --linen:     #eee5d3;
  --wood:      #e7d9c2;
  --ink:       #2b2620;
  --ink-soft:  #5c5346;
  --line:      #e0d5bf;
  --white:     #fffdf8;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(43,38,32,.07);
  --shadow:    0 8px 26px rgba(43,38,32,.12);
  --shadow-lg: 0 18px 48px rgba(43,38,32,.18);

  --font-head: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--brand-red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 68px 0; }
.section--tight { padding: 44px 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .72rem; color: var(--brand-red);
  margin: 0 0 .7rem;
}
.lead { font-size: 1.12rem; max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Texture backgrounds */
.bg-linen { background: linear-gradient(rgba(246,241,230,.86), rgba(246,241,230,.9)), url("../img/texture_linen_seamless.jpg"); background-size: cover; }
.bg-wood  { background: linear-gradient(rgba(231,217,194,.82), rgba(239,231,214,.88)), url("../img/texture_lightwood_seamless.jpg"); background-size: cover; }
.bg-green { background: var(--green-900); color: var(--cream); }
.bg-green h1, .bg-green h2, .bg-green h3 { color: var(--cream); }
.bg-green p { color: rgba(246,241,230,.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .82em 1.5em; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--brand-red); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-red-dark); box-shadow: var(--shadow); }
.btn--accent { background: var(--brand-red); color: var(--white); }
.btn--accent:hover { background: var(--brand-red-dark); }
.btn--ghost { background: transparent; color: var(--brand-red-dark); border-color: var(--green-300); }
.btn--ghost:hover { background: rgba(79,138,91,.08); }
.btn--light { background: var(--cream); color: var(--green-900); }
.btn--disabled, .btn[disabled] { background: #d9d2c2; color: #8a8272; cursor: not-allowed; box-shadow: none; }
.btn--disabled:hover, .btn[disabled]:hover { transform: none; }
.btn--sm { padding: .6em 1.1em; font-size: .86rem; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .35em .7em; border-radius: var(--radius-pill);
}
.badge--placeholder { background: #f3e5c9; color: #8a6d24; border: 1px dashed #c9a84e; }
.badge--verify { background: #f7ddd0; color: #9a4a24; border: 1px dashed #d89066; }
.badge--soon { background: #e3ded0; color: #6c6450; }
.badge--good { background: #dcecdd; color: #2f5137; }

.chip {
  display: inline-block; font-size: .82rem; padding: .4em .9em; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); margin: 0 .3rem .5rem 0;
}
.chip--active { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }

/* Placeholder note banner */
.note {
  border-radius: var(--radius); padding: 14px 18px; font-size: .92rem;
  display: flex; gap: .6rem; align-items: flex-start;
}
.note--info { background: #eef4ee; border: 1px solid #cfe1d1; color: #33503a; }
.note--warn { background: #fbf0dd; border: 1px solid #e8cf95; color: #7a5f1e; }
.note strong { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,230,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__emblem { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 3px 7px rgba(43,38,32,.2)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.16rem; color: var(--ink); }
.brand__tag { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-red); font-weight: 700; }

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-red); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ---------- Primary nav (six doors) ---------- */
.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  font-size: .9rem; font-weight: 500; color: var(--ink); padding: .5em .5em; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav__link:hover { background: rgba(79,138,91,.1); text-decoration: none; }
.nav__link.active { color: var(--brand-red); font-weight: 700; }

/* sub-toggle caret button (doors with a dropdown) */
.nav__sub-toggle {
  background: none; border: none; cursor: pointer; padding: 6px 4px; margin-left: -4px;
  display: inline-flex; align-items: center; color: var(--green-700);
}
.nav__sub-toggle .caret {
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease; display: block; margin-top: -3px;
}

/* dropdown panels (shared) */
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* NOTE: the desktop horizontal menu + hover dropdowns have been removed.
   The site now uses ONE hamburger-driven slide-in drawer at ALL widths
   (see the "Hamburger slide-in drawer (all widths)" block below). */

/* Shop mega-menu */
.sub--mega { left: 0; width: min(880px, 90vw); }
.sub--mega .mega__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 26px; }
.mega__h { font-family: var(--font-body); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-red); font-weight: 700; margin: 0 0 8px; }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col li { margin-bottom: 3px; }
.mega__col a { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 4px 6px; border-radius: var(--radius-sm); color: var(--ink); }
.mega__col a:hover { background: rgba(79,138,91,.09); text-decoration: none; }
.sub__count { color: var(--ink-soft); font-size: .78rem; }
.mega__col--cta { background: #f4f8f4; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mega__note { font-size: .84rem; color: var(--ink-soft); margin: 0; }

/* Learn menu */
.sub--menu { left: 0; width: min(560px, 90vw); }
.learn-menu__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.learn-mini { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: var(--radius-sm); color: var(--ink); }
.learn-mini:hover { background: rgba(79,138,91,.09); text-decoration: none; }
.learn-mini__thumb { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.learn-mini__title { display: block; font-weight: 600; color: var(--green-900); font-size: .95rem; }
.learn-mini__blurb { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }

/* Utilities + account cluster */
.nav__utils { display: flex; align-items: center; gap: 8px; }
.nav__util { font-size: .88rem; color: var(--ink); padding: .5em .45em; border-radius: var(--radius-sm); white-space: nowrap; }
.nav__util:hover { background: rgba(79,138,91,.1); text-decoration: none; }
.nav__util.active { color: var(--brand-red); font-weight: 700; }
.nav__account { display: flex; align-items: center; gap: 8px; }

/* drawer chrome hidden on desktop */
.nav__drawer-head { display: none; }
.nav-backdrop { display: none; }

/* Header actions cluster (always-visible account + hamburger) */
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-account { display: flex; align-items: center; gap: 8px; }
/* On narrow phones the account buttons collapse into the drawer to keep the
   header clean; they stay one-click in the drawer's account cluster. */
@media (max-width: 560px) { .header-account { display: none; } }

/* Hamburger toggle */
.nav-toggle { display: none; background: none; border: 1.5px solid var(--green-300); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--green-700); margin: 4px 0; }

/* ---------- Hamburger slide-in drawer (ALL widths) ----------
   One consistent hamburger-driven nav on desktop AND mobile. The hamburger is
   always visible in the header; the six doors + Shop/Learn accordions live in a
   right-side slide-in drawer with a full-page scrim. */
@media all {
  .nav-toggle { display: block; }
  /* backdrop-filter creates a containing block that would trap the position:fixed
     drawer inside the 74px-tall header — disable it so the drawer spans the viewport. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
    width: min(400px, 92vw); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-left: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 0 0 28px; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(20,32,23,.5); }
  .nav-backdrop[hidden] { display: none; }

  .nav__drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
  .nav__drawer-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--green-900); }
  .nav__close { background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--green-900); padding: 2px 8px; border-radius: var(--radius-sm); }
  .nav__close:hover { background: rgba(79,138,91,.1); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 14px; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__link { flex: 1; font-size: 1rem; padding: 1.05em .7em; border-radius: 0; }
  .nav__sub-toggle { padding: 1.05em 14px; margin: 0; }
  .nav__sub-toggle .caret { transform: rotate(45deg); margin-top: -3px; }
  .nav__sub-toggle[aria-expanded="true"] .caret { transform: rotate(225deg); margin-top: 3px; }

  /* accordion sub-panels */
  .sub {
    position: static; width: auto !important; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; padding: 0; transition: none;
    display: none; background: #f4f8f4; margin: 0 -14px;
  }
  .sub.is-open { display: block; padding: 14px 20px; }
  .sub--mega .mega__inner { grid-template-columns: 1fr; gap: 4px 0; }
  .mega__col { padding: 8px 0; }
  .mega__col--cta { background: transparent; padding: 8px 0; }
  .sub--menu .learn-menu__inner { grid-template-columns: 1fr; }

  .nav__utils { flex-direction: column; align-items: stretch; gap: 10px; padding: 18px 20px 0; }
  .nav__account { flex-wrap: wrap; gap: 10px; }
  .nav__account .btn { flex: 1; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  color: var(--cream); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,32,23,.82) 0%, rgba(20,32,23,.55) 45%, rgba(20,32,23,.15) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 640px; padding: 80px 0; }
.hero h1 { color: var(--cream); text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero p { color: rgba(246,241,230,.92); font-size: 1.18rem; }
.hero__emblem {
  width: 92px; height: 92px; object-fit: contain; margin-bottom: 18px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 1/1; overflow: hidden; background: radial-gradient(circle at 50% 38%, #fbfaf5 0%, var(--cream-2) 100%); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font-family: var(--font-head); font-weight: 600; color: var(--green-900); font-size: 1.15rem; }
.price small { font-weight: 400; color: var(--ink-soft); font-size: .8rem; }

/* Category tile */
.tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,32,23,.75), rgba(20,32,23,0) 60%); }
.tile__label { position: absolute; left: 20px; bottom: 16px; z-index: 2; color: #fff; }
.tile__label h3 { color: #fff; margin: 0; }
.tile__label span { font-size: .85rem; opacity: .9; }
.tile:hover { text-decoration: none; }

/* Feature/icon block */
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature__ico { font-size: 1.7rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: #eaf1ea; margin-bottom: 14px; }

/* section heading */
.sec-head { max-width: 60ch; margin-bottom: 34px; }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #241f1a; color: rgba(246,241,230,.8); padding: 56px 0 26px; margin-top: 20px; }
.site-footer a { color: rgba(246,241,230,.8); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--cream); font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .92rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand span { font-family: var(--font-head); font-size: 1.15rem; color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(246,241,230,.15); margin-top: 34px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--ink-soft); padding: 16px 0 0; }
.crumbs a { color: var(--green-700); }
.crumbs span { margin: 0 .4em; opacity: .6; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 54px 0 40px; }
.page-hero h1 { margin-bottom: .3em; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .86rem; font-weight: 600; color: var(--green-900); }
input, select, textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .72em .9em; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(235,27,36,.18); }
textarea { resize: vertical; min-height: 110px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; }
legend { font-weight: 700; color: var(--green-900); padding: 0 8px; }

/* radio cards */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.radio-card:has(input:checked) { border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(235,27,36,.15); background: var(--brand-red-soft); }
.radio-card input { width: auto; margin-right: 8px; }
.radio-card h4 { margin: 0 0 6px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.gallery__main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; background: radial-gradient(circle at 50% 36%, #fbfaf5 0%, var(--cream-2) 100%); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery__thumbs img { width: 74px; height: 74px; object-fit: contain; padding: 6px; background: var(--cream-2); border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; }
.gallery__thumbs img:hover { border-color: var(--green-500); }

.datatable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.datatable th, .datatable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.datatable th { width: 38%; color: var(--green-900); font-weight: 600; }

.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: none; }
.accordion summary { padding: 15px 18px; cursor: pointer; font-weight: 600; color: var(--green-900); list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--terracotta); font-size: 1.3rem; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 18px 18px; font-size: .93rem; }

/* evidence row */
.evidence { background: #f4f8f4; border: 1px solid #cfe1d1; border-radius: var(--radius); padding: 18px; font-size: .9rem; }
.evidence dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; }
.evidence dt { font-weight: 700; color: var(--green-900); }
.evidence dd { margin: 0; color: var(--ink-soft); }

/* ---------- Concierge widget ---------- */
.concierge-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: flex; align-items: center; gap: 10px;
  background: var(--brand-red); color: #fff; border: none; cursor: pointer;
  padding: 14px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
}
.concierge-fab:hover { background: var(--brand-red-dark); }
.concierge-fab .dot { width: 9px; height: 9px; border-radius: 50%; background: #b6e2bd; box-shadow: 0 0 0 3px rgba(182,226,189,.35); }

.concierge-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 44px)); background: var(--cream); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.concierge-panel.open { display: flex; }
.concierge-head { background: var(--green-700); color: #fff; padding: 16px 18px; }
.concierge-head h4 { color: #fff; margin: 0 0 2px; font-size: 1.05rem; }
.concierge-head p { color: rgba(255,255,255,.82); margin: 0; font-size: .78rem; }
.concierge-head .close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.concierge-disclaimer { background: #fbf0dd; color: #7a5f1e; font-size: .74rem; padding: 8px 14px; border-bottom: 1px solid #e8cf95; }
.concierge-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.msg--bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--user { background: var(--green-600); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg--bot a { color: var(--green-700); font-weight: 600; }
.msg-source { font-size: .72rem; color: var(--ink-soft); margin-top: 6px; display: block; }
.concierge-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); }
.concierge-suggest button { font-size: .78rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .4em .8em; cursor: pointer; color: var(--green-700); }
.concierge-suggest button:hover { background: #eef4ee; }
.concierge-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.concierge-foot input { flex: 1; }

/* utility spacing */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mt-4 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hr { height: 1px; background: var(--line); border: none; margin: 34px 0; }

/* ============================================================
   Remedies & Practices hub
   ============================================================ */
.remedy-hero { position: relative; overflow: hidden; padding: 66px 0 54px; }
.remedy-hero .hero__bg { position: absolute; inset: 0; z-index: 0; }
.remedy-hero .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.remedy-hero .hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(31,51,36,.86) 0%, rgba(47,81,55,.72) 55%, rgba(31,51,36,.5) 100%);
}
.remedy-hero .wrap { position: relative; z-index: 1; }
.remedy-hero .eyebrow { color: var(--wheat); }
.remedy-hero h1 { color: var(--cream); text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.remedy-hero .lead { color: rgba(246,241,230,.92); max-width: 68ch; }

.remedy-block:nth-of-type(even) { background: var(--cream-2); }

.remedy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px;
}
@media (max-width: 900px) { .remedy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .remedy-grid { grid-template-columns: 1fr; } }

.remedy-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s ease, box-shadow .2s ease;
}
.remedy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.remedy-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.remedy-card__head h3 { margin: 0; font-size: 1.08rem; line-height: 1.25; }
.remedy-card__blurb { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.remedy-card__shop {
  flex-shrink: 0; text-decoration: none; white-space: nowrap;
  font-size: .72rem; padding: .34em .7em;
}

.remedy-more { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 10px; }
.remedy-more > summary {
  cursor: pointer; list-style: none; font-size: .82rem; font-weight: 600;
  color: var(--green-700); display: flex; align-items: center; gap: 6px;
}
.remedy-more > summary::-webkit-details-marker { display: none; }
.remedy-more > summary::before { content: "＋"; font-weight: 700; color: var(--green-500); }
.remedy-more[open] > summary::before { content: "－"; }
.remedy-more > summary:hover { color: var(--green-900); }
.remedy-more__body { margin-top: 10px; animation: remedyFade .2s ease; }
.remedy-more__body .evidence { font-size: .82rem; }
.remedy-more__body dl { margin: 0; }
.remedy-more__body dt { font-weight: 600; color: var(--green-900); margin-top: .5em; }
.remedy-more__body dd { margin: 0 0 .2em; color: var(--ink-soft); }
@keyframes remedyFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }


/* ============================================================
   Hero slider (vanilla JS carousel) — added for Bone Broth Challenge
   ============================================================ */
.hero-slider {
  position: relative; min-height: 82vh; overflow: hidden;
  color: var(--cream); background: var(--wood);
}
.hero-slides { position: relative; width: 100%; height: 82vh; min-height: 520px; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .8s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.hero-slide__bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,32,23,.86) 0%, rgba(20,32,23,.6) 48%, rgba(20,32,23,.2) 100%);
}
.hero-slide .wrap { position: relative; z-index: 2; width: 100%; }
.hero-slide__inner { max-width: 640px; padding: 80px 0; }
.hero-slide__title {
  color: var(--cream); text-shadow: 0 2px 20px rgba(0,0,0,.35);
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin: .12em 0 .3em;
}
.hero-slide p { color: rgba(246,241,230,.94); font-size: 1.16rem; max-width: 54ch; }
.hero-slide__inner .hero__actions { margin-top: 22px; }

/* arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(246,241,230,.5);
  background: rgba(20,32,23,.42); color: var(--cream); font-size: 1.8rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s, transform .2s;
}
.hero-arrow:hover, .hero-arrow:focus-visible { background: rgba(20,32,23,.75); }
.hero-arrow:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; }
.hero-arrow--prev { left: 18px; }
.hero-arrow--next { right: 18px; }

/* dots */
.hero-dots {
  position: absolute; bottom: 22px; left: 0; right: 0; z-index: 5;
  display: flex; gap: 10px; justify-content: center;
}
.hero-dot {
  width: 12px; height: 12px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(246,241,230,.75); background: transparent;
  cursor: pointer; transition: background .2s, transform .2s;
}
.hero-dot:hover { background: rgba(246,241,230,.5); }
.hero-dot.is-active { background: var(--wheat); border-color: var(--wheat); transform: scale(1.15); }
.hero-dot:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; }

@media (max-width: 640px) {
  .hero-arrow { width: 40px; height: 40px; font-size: 1.4rem; }
  .hero-arrow--prev { left: 8px; } .hero-arrow--next { right: 8px; }
  .hero-slide__inner { padding: 64px 0 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ============================================================
   Bone Broth Challenge banner + hero + details card
   ============================================================ */
.bbc-banner {
  background: linear-gradient(120deg, var(--clay) 0%, var(--terracotta) 100%);
  color: var(--cream); padding: 40px 0;
}
.bbc-banner__inner { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: center; }
.bbc-banner__media img {
  width: 200px; height: 200px; object-fit: cover; border-radius: var(--r-lg, 18px);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.bbc-banner__text h2 { color: var(--cream); margin: .1em 0 .3em; }
.bbc-banner__text p { color: rgba(246,241,230,.94); max-width: 60ch; }
.bbc-banner__note { font-size: .82rem; color: rgba(246,241,230,.8); margin-top: 14px; }
.bbc-banner .hero__actions { margin-top: 18px; }
@media (max-width: 720px) {
  .bbc-banner__inner { grid-template-columns: 1fr; text-align: left; }
  .bbc-banner__media img { width: 140px; height: 140px; }
}

.bbc-hero .hero__bg::after {
  background: linear-gradient(120deg, rgba(60,33,22,.82) 0%, rgba(120,60,38,.62) 55%, rgba(60,33,22,.4) 100%);
}
.evidence-card {
  background: var(--linen); border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px); padding: 24px 26px; box-shadow: var(--sh-sm, 0 6px 18px rgba(0,0,0,.06));
}



/* =====================================================================
   Community layer — footer signup, auth forms, chat, tables
   ===================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Footer signup band */
.footer-signup {
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center;
  justify-content: space-between; padding: 4px 0 26px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(246,241,230,.16);
}
.footer-signup__copy h4 { margin: 0 0 4px; color: #f6f1e6; font-family: var(--font-head); }
.footer-signup__copy p { margin: 0; color: rgba(246,241,230,.68); font-size: .88rem; max-width: 46ch; }
.footer-signup__form { display: grid; gap: 10px; min-width: min(360px, 100%); }
.footer-signup__form input[type=email] {
  padding: 11px 14px; border-radius: var(--radius-pill, 999px);
  border: 1px solid rgba(246,241,230,.24); background: rgba(255,255,255,.06);
  color: #f6f1e6; font: inherit; font-size: .92rem;
}
.footer-signup__form input[type=email]::placeholder { color: rgba(246,241,230,.5); }
.footer-signup__consent {
  display: flex; gap: 9px; align-items: flex-start;
  color: rgba(246,241,230,.72); font-size: .8rem; line-height: 1.4;
}
.footer-signup__consent input { margin-top: 3px; }
.footer-signup__consent a { color: #f6f1e6; text-decoration: underline; }

/* Auth / member form fields */
.field { display: grid; gap: 6px; margin-bottom: 4px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm, 10px);
  font: inherit; background: #fff; color: var(--ink); width: 100%;
}
.field input:disabled { background: var(--cream-2, #f3efe4); color: var(--ink-soft, #6b6b5e); }
.stack { display: grid; gap: 14px; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat__log {
  display: flex; flex-direction: column; gap: 12px; max-height: 460px; overflow-y: auto;
  padding: 16px; background: var(--cream, #faf7ef); border: 1px solid var(--line);
  border-radius: var(--radius-lg, 18px);
}
.chat__msg {
  max-width: 78%; align-self: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 13px; box-shadow: var(--shadow-sm, 0 4px 12px rgba(0,0,0,.05));
}
.chat__msg--mine { align-self: flex-end; background: var(--green-500, #3f7d4f); border-color: transparent; color: #fff; }
.chat__msg--mine .muted { color: rgba(255,255,255,.75); }
.chat__meta { font-size: .74rem; margin-bottom: 3px; }
.chat__body { font-size: .95rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.chat__compose { display: flex; gap: 10px; }
.chat__compose input {
  flex: 1; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-pill, 999px); font: inherit;
}

/* Admin subscriber table */
.datatable table th, .datatable table td {
  padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top;
}
.datatable table th { font-family: var(--font-head); font-weight: 600; background: var(--cream-2, #f3efe4); }
.datatable table tr:hover td { background: rgba(0,0,0,.02); }

@media (max-width: 680px) {
  .footer-signup { flex-direction: column; align-items: stretch; }
  .footer-signup__form { min-width: 100%; }
  .chat__msg { max-width: 90%; }
}


/* ==================================================================
   Footer top strip: social row + Latest/News + market switcher
   ================================================================== */
.footer-top {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: start;
  padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid rgba(246,241,230,.15);
}
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; gap: 24px; } }
.footer-social__label { display: block; color: var(--cream); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.social__row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.social__link {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  background: rgba(246,241,230,.08); border: 1px solid rgba(246,241,230,.18); transition: background .2s, transform .2s;
}
.social__link:hover { background: rgba(246,241,230,.18); transform: translateY(-2px); }
.social__link svg { width: 20px; height: 20px; fill: var(--cream); }
.footer-news__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-news__head h4 { color: var(--cream); margin: 0; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-news__intro { font-size: .88rem; color: rgba(246,241,230,.72); margin: 0 0 12px; max-width: 60ch; }
.footer-news__list { list-style: none; margin: 0; padding: 0; }
.footer-news__list li { font-size: .88rem; padding: 7px 0; border-bottom: 1px dashed rgba(246,241,230,.14); display: flex; gap: 10px; }
.footer-news__date { color: var(--cream); font-variant-numeric: tabular-nums; flex: 0 0 auto; opacity: .7; }
.market-switcher { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.market-switcher select { width: auto; min-width: 150px; background: rgba(246,241,230,.06); color: var(--cream); border-color: rgba(246,241,230,.25); }
.market-switcher__globe { font-size: 1.1rem; }

/* narrow content column (awareness/truth) */
.wrap--narrow { max-width: 820px; }

/* ==================================================================
   Learn hub landing cards
   ================================================================== */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 720px) { .learn-grid { grid-template-columns: 1fr; } }
.learn-card { color: var(--ink); }
.learn-card:hover { text-decoration: none; }
.learn-card .card__media img { object-fit: cover; padding: 0; }
.learn-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.learn-card__head h3 { margin: 0; }
.learn-card__go { margin-top: auto; color: var(--green-700); font-weight: 600; font-size: .92rem; padding-top: 8px; }

/* ==================================================================
   Videos gallery
   ================================================================== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }
.video-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.video-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--cream-2); }
.video-card__media img { width: 100%; height: 100%; object-fit: cover; }
.video-card__media iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-card__media--empty img { filter: grayscale(.35) brightness(.82); }
.video-card__media--empty::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,32,23,.5), rgba(20,32,23,.15)); }
.video-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(246,241,230,.92); color: var(--green-900); font-size: 1.2rem; padding-left: 4px;
}
.video-card__soon { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--terracotta); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-pill, 999px); }
.video-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.video-card__body h3 { margin: 0; font-size: 1.05rem; }
.video-card__body p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.video-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* ==================================================================
   Awareness "truth" accordion
   ================================================================== */
.truth-list { display: flex; flex-direction: column; gap: 12px; }
.truth { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; box-shadow: var(--shadow-sm); }
.truth > summary { padding: 18px 20px; cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.truth > summary::-webkit-details-marker { display: none; }
.truth > summary::after { content: "+"; position: absolute; right: 20px; color: var(--terracotta); font-size: 1.4rem; line-height: 1; }
.truth[open] > summary::after { content: "\2013"; }
.truth > summary { position: relative; padding-right: 46px; }
.truth__title { font-family: var(--font-head); font-weight: 600; color: var(--green-900); font-size: 1.1rem; }
.truth__summary { font-size: .9rem; color: var(--ink-soft); }
.truth__body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.truth__body > * { margin: 12px 0 0; }
.truth__source a { color: var(--green-700); word-break: break-word; }
.truth__meta { font-size: .84rem; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 8px; border-top: 1px dashed var(--line); }

/* ---- Bone Broth Challenge: member stories gallery ---- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .story-grid { grid-template-columns: 1fr; } }
.story-card { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); display: flex; flex-direction: column; }
.story-card__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #f6efe7, #efe2d4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--brand-red, #eb1b24); overflow: hidden; }
.story-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }
.story-card__pending { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 0 14px; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.story-card__media.is-pending .story-card__video { display: none; }
.story-card__media.is-pending .story-card__pending { display: flex; }
.story-card__play { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand-red, #eb1b24); color: #fff; font-size: 1.1rem; padding-left: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.story-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.story-card__name { font-weight: 700; margin: 0; }
.story-card__quote { margin: 0; color: var(--ink-soft); font-style: italic; }
.story-card__meta { margin: 4px 0 0; font-size: .78rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 8px; }
