/* ============================================================
   Ozark Nomads - dark botanical theme
   Base: deep near-black pine green · Accent: herbal lime
   ============================================================ */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

:root {
  --bg:        #0e1613;
  --bg-2:      #121e19;
  --bg-3:      #16241d;
  --surface:   #18271f;
  --line:      rgba(225, 234, 220, 0.10);
  --line-2:    rgba(225, 234, 220, 0.18);
  --text:      #eaefe4;
  --text-dim:  #9fae9d;
  --text-mut:  #748072;
  --accent:    #c2e84b;
  --accent-2:  #aed63c;
  --accent-ink:#0e1613;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw:      1200px;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle organic top glow, fixed and inert */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 78% -10%, rgba(194, 232, 75, 0.10), transparent 55%),
    radial-gradient(90% 60% at 0% 0%, rgba(40, 70, 52, 0.55), transparent 60%);
}

h1, h2, h3, .brand-name {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 100; font-weight: 600;
}

em { font-style: italic; color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(14, 22, 19, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-elevated { background: rgba(14, 22, 19, 0.86); border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name { font-size: 19px; font-weight: 700; }
.nav-links { margin-left: auto; display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--text-dim); font-size: 15px; font-weight: 500;
  transition: color 0.18s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { flex: none; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
  .nav-cta { margin-left: auto; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.eyebrow {
  font-family: "Outfit", sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.6rem); font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; }
.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--text-dim);
  max-width: 34ch; margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  aspect-ratio: 4 / 4.6;
  background: linear-gradient(160deg, var(--bg-3), var(--bg));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-badge {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); padding: 14px 20px 12px;
  display: flex; flex-direction: column; line-height: 1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.hero-badge-big { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 40px; }
.hero-badge-sub { font-weight: 600; font-size: 14px; margin-top: 4px; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; }
  .lede { max-width: 46ch; }
}

/* ── Benefit strip ───────────────────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.strip-item {
  padding: 34px 28px; display: flex; flex-direction: column; gap: 8px;
  border-left: 1px solid var(--line);
}
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-k {
  font-family: "Outfit", sans-serif; font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--accent); line-height: 1;
}
.strip-v { font-size: 15px; color: var(--text-dim); line-height: 1.45; }

@media (max-width: 820px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-item { padding: 26px 22px; }
  .strip-item:first-child { padding-left: 22px; border-left: 1px solid var(--line); }
  .strip-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item, .strip-item:first-child { border-left: 0; padding: 22px 0; }
  .strip-item:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* ── Section heads ───────────────────────────────────────── */
.sec-head { margin-bottom: clamp(34px, 5vw, 58px); max-width: 30ch; }
.sec-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2, .product h2, .story h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700;
}
.sec-sub { color: var(--text-dim); margin-top: 16px; font-size: 1.05rem; }

/* ── Ingredients ─────────────────────────────────────────── */
.ingredients { padding: clamp(64px, 10vw, 130px) 0; }
.ing-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.ing {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px 22px;
  display: flex; flex-direction: column; min-height: 220px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ing:hover { transform: translateY(-4px); border-color: var(--line-2); }
.ing-num {
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 14px;
  color: var(--text-mut); letter-spacing: 0.08em;
}
.ing h3 { font-size: 1.25rem; margin: 16px 0 10px; }
.ing p { font-size: 14.5px; color: var(--text-dim); line-height: 1.5; margin-top: auto; }
.ing-water { background: var(--accent); border-color: var(--accent); }
.ing-water .ing-num { color: rgba(14, 22, 19, 0.55); }
.ing-water h3, .ing-water p { color: var(--accent-ink); }
.ing-water:hover { border-color: var(--accent-2); }

@media (max-width: 1040px) { .ing-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .ing-grid { grid-template-columns: 1fr 1fr; } .ing { min-height: 0; } .ing p { margin-top: 12px; } }
@media (max-width: 420px)  { .ing-grid { grid-template-columns: 1fr; } }

/* ── Product / Buy ───────────────────────────────────────── */
.product { padding: clamp(64px, 10vw, 130px) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery-main {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 4.4; background: linear-gradient(160deg, var(--bg-3), var(--bg));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.gallery-thumbs { display: flex; gap: 12px; }
.thumb {
  flex: 1; padding: 0; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 4;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.thumb:hover { transform: translateY(-2px); }
.thumb.is-active { border-color: var(--accent); }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.buy .eyebrow { margin-bottom: 14px; }
.buy h2 { margin-bottom: 14px; }
.buy-sub { color: var(--text-dim); margin-bottom: 30px; max-width: 42ch; }

.sizes { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 12px; }
.size {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.size:hover { border-color: var(--text-mut); transform: translateY(-1px); }
.size-body { display: flex; flex-direction: column; }
.size-name { font-family: "Outfit", sans-serif; font-weight: 700; font-size: 1.15rem; }
.size-meta { font-size: 14px; color: var(--text-dim); }
.size-price { margin-left: auto; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--text); }
.size.has-qty { border-color: var(--accent); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--accent); }
.size.has-qty .size-price { color: var(--accent); }

.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--surface); overflow: hidden; flex-shrink: 0;
}
.qty-btn {
  width: 38px; height: 40px; background: transparent; border: 0; color: var(--text);
  font-size: 19px; cursor: pointer; line-height: 1;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.qty-btn:hover:not(:disabled) { background: var(--bg-3); color: var(--accent); }
.qty-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qty-btn:disabled { opacity: 0.32; cursor: not-allowed; }
.qty-num { min-width: 30px; text-align: center; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 1.05rem; }
.btn-buy { width: 100%; min-height: 54px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-accent:disabled:hover { transform: none; background: var(--accent); }

@media (max-width: 420px) {
  .size { flex-wrap: wrap; gap: 10px 16px; }
  .size-price { margin-left: auto; }
  .qty { width: 100%; justify-content: space-between; }
}

.ship-note { margin-top: 20px; font-size: 14px; color: var(--text-mut); }

@media (max-width: 880px) {
  .product-grid { grid-template-columns: 1fr; }
  .gallery { max-width: 460px; }
}

/* ── Directions ──────────────────────────────────────────── */
.directions { padding: clamp(64px, 10vw, 130px) 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 32px); }
.step {
  padding: 32px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  position: relative;
}
.step-n {
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 2.6rem;
  color: var(--accent); line-height: 1; display: block; margin-bottom: 16px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ── Story ───────────────────────────────────────────────── */
.story { padding: clamp(64px, 10vw, 130px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.story-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 84px); align-items: center;
}
.story-media {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 4.6; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  background: linear-gradient(160deg, var(--bg-3), var(--bg));
}
.story-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.story-copy .eyebrow { margin-bottom: 14px; }
.story-copy h2 { margin-bottom: 22px; max-width: 18ch; }
.story-copy p { color: var(--text-dim); margin-bottom: 18px; max-width: 56ch; }
.story-copy .btn { margin-top: 12px; }
@media (max-width: 820px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { max-width: 380px; order: 2; }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding: 52px 0 64px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 15px; transition: color 0.18s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-fine { width: 100%; color: var(--text-mut); font-size: 14px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px);
  background: var(--accent); color: var(--accent-ink);
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; z-index: 60;
  opacity: 0; pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ── Reveal animation ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal[data-d="1"] { --d: 1; }
.reveal[data-d="2"] { --d: 2; }
.reveal[data-d="3"] { --d: 3; }
.reveal[data-d="4"] { --d: 4; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .ing, .size, .thumb, .nav, .toast { transition: none !important; }
}
