/* =========================================================
   AMAZING SKIN CARE UNDER NUTRITION — Design System
   Concept: "The Apothecary Shelf" — kraft-paper specimen
   labels, botanical line art, numbered herbarium tags.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* ---- Core brand tokens ---- */
  --ink:        #2A1F16;   /* warm near-black text */
  --umber:      #4A3222;   /* primary — shelf / nav / footer / hero */
  --umber-dark: #382517;
  --parchment:  #FAF3E4;   /* page background */
  --paper:      #FFFCF6;   /* card background */
  --gold:       #E3A73C;   /* primary accent — CTAs, links, active state */
  --gold-dark:  #C98C24;
  --forest:     #5B7B4F;   /* secondary accent — nature / success cues */
  --rust:       #C1502E;   /* tertiary accent — used sparingly */
  --line:       #E4D8C0;   /* hairline borders on parchment */
  --line-dark:  rgba(255,255,255,0.14);
  --whatsapp:   #25D366;

  /* ---- Category swatches (used only as small tags/dots) ---- */
  --cat-herbal:      #7C8B4A;
  --cat-sweeteners:  #4C8C93;
  --cat-leaf:        #4F7942;
  --cat-minerals:    #C1502E;
  --cat-superfoods:  #D98E3B;
  --cat-flours:      #B08D57;
  --cat-sea:         #2A6F6A;
  --cat-fermented:   #7A4869;
  --cat-culinary:    #E3A73C;

  /* ---- Type ---- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px -12px rgba(42, 31, 22, 0.28);
  --shadow-sm: 0 4px 14px -6px rgba(42, 31, 22, 0.22);
}

/* ---------- Reset ---------- */
*, *::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;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.12; color: var(--umber); font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--umber { background: var(--umber); color: var(--parchment); }
.section--umber h1, .section--umber h2, .section--umber h3 { color: var(--paper); }
.section--paper { background: var(--paper); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.section--umber .eyebrow { color: var(--gold); }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.lede { font-size: 1.15rem; color: #6B5B47; max-width: 60ch; }
.section--umber .lede { color: #E7DCC7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--umber-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.section--paper .btn-ghost, .section:not(.section--umber) .btn-ghost { border-color: var(--umber); color: var(--umber); }
.section--paper .btn-ghost:hover, .section:not(.section--umber) .btn-ghost:hover { background: var(--umber); color: var(--paper); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--umber-dark); }
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 8px 24px;
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
}
.topbar a { color: #E7DCC7; font-size: 0.8rem; font-weight: 500; transition: color 0.15s ease; }
.topbar a:hover { color: var(--gold); }
.topbar-icon { width: 14px; height: 14px; display: inline-flex; color: var(--gold); flex-shrink: 0; }
.topbar-icon svg { width: 100%; height: 100%; display: block; }
@media (max-width: 480px) { .topbar-inner { justify-content: center; } }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--umber);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
.brand-text small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--gold); font-weight: 400; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: #E7DCC7;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(227,167,60,0.16); color: var(--gold); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--paper);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--umber); flex-direction: column; align-items: stretch; padding: 10px 20px 24px; gap: 2px; border-bottom: 1px solid var(--line-dark); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.22s ease; }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--umber-dark); color: #D8C9AE; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: #B7A688; font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; color: #D8C9AE; font-size: 0.92rem; margin-bottom: 10px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.82rem; color: #A5946F; }
.footer-note { font-size: 0.8rem; color: #8B7A5C; margin-top: 6px; max-width: 70ch; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.55);
  animation: fab-pulse 2.6s ease-in-out infinite;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.06); }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 10px 30px -4px rgba(37, 211, 102, 0.85), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.grid { display: grid; gap: 24px; }
.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-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ----------
   Visible by default — this is progressive enhancement.
   JS opts elements into the hidden "pre-reveal" state only
   once it's actually running (see main.js), so content is
   never left permanently invisible if a script fails. */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pre-reveal { opacity: 0; transform: translateY(18px); }
.reveal.pre-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Stat / specimen tag strip ---------- */
.tag-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.tag-chip { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; padding: 8px 14px; border: 1px dashed var(--line); border-radius: 999px; color: #6B5B47; background: var(--paper); }

/* ---------- Hero botanical line art ---------- */
.hero-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0.5; }
.hero-art svg { position: absolute; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
