/* ===== Puruscent brand tokens (Natural Confidence identity) ===== */
:root {
  --forest: #123C22;
  --forest-dark: #0B2A17;
  --stone: #F7F4EC;
  --stone-deep: #ECE5D4;
  --gold: #B8902E;
  --gold-deep: #96741F;
  --ink: #16201A;
  --line: #DED4BC;
  --white: #FFFFFF;
  --error: #A8402F;
  --max: 1180px;
  --radius: 4px;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--stone);
  color: var(--ink);
  font-family: "Barlow", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.6em;
  display: block;
}
.lede { font-size: 1.1rem; color: #4A5248; max-width: 60ch; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--forest); color: var(--stone); }
.btn-primary:hover { background: var(--forest-dark); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--stone); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,244,236,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 4px 0;
}
.main-nav a.active { color: var(--forest); font-weight: 600; }
.main-nav a:hover { color: var(--forest); }
.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.cart-link { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 600; }
.cart-count {
  background: var(--forest); color: var(--stone); font-size: 0.72rem; font-weight: 700;
  border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== Footer (light, to keep the gold/green logo legible without a reversed asset) ===== */
.site-footer {
  background: var(--stone-deep); color: var(--ink); margin-top: 5rem; border-top: 1px solid var(--line);
}
.site-footer .container {
  padding-top: 3.2rem; padding-bottom: 2rem;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem;
}
.site-footer h4 { color: var(--ink); font-family: "Barlow", sans-serif; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 1em; }
.site-footer a { color: #4A5248; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--forest); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6em; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 1.2rem 0; font-size: 0.8rem; color: #6B7268;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5em;
}
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { color: #4A5248; font-size: 0.9rem; max-width: 32ch; }

/* ===== Sections generic ===== */
section { padding: 4.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-alt { background: var(--white); }

/* ===== Hero ===== */
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
  padding-top: 3rem; padding-bottom: 3rem;
}
.hero-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.4rem 0 1.8rem; }
.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4em 0.9em;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.03em; color: var(--forest); background: var(--white);
}
.hero-cta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-art img { width: min(460px, 95%); border-radius: 8px; box-shadow: 0 24px 50px rgba(18,60,34,0.18); }

/* ===== Ingredient grid ===== */
.ingredient-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.4rem;
}
.ingredient-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.ingredient-card .ing-name { font-family: "Spectral", serif; font-size: 1.15rem; margin-bottom: 0.3em; }
.ingredient-card .ing-latin { font-size: 0.78rem; color: var(--gold-deep); font-style: italic; margin-bottom: 0.6em; display: block; }
.ingredient-card p { font-size: 0.92rem; color: #4A5248; margin: 0; }

/* ===== Why / difference section ===== */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.4rem; }
.diff-item { text-align: left; }
.diff-num { font-family: "Spectral", serif; font-size: 2.4rem; color: var(--forest); opacity: 0.3; margin-bottom: 0.2em; }
.diff-item h3 { margin-bottom: 0.4em; }
.diff-item p { color: #4A5248; font-size: 0.95rem; }

/* ===== Callout / trust strip ===== */
.trust-strip {
  background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.trust-strip .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.trust-strip span { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--forest); }

/* ===== Product page ===== */
.product-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3.5rem; align-items: flex-start; }
.product-gallery { position: sticky; top: 92px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; justify-content: center; }
.product-gallery img { width: 100%; border-radius: 4px; }
.price-row { display: flex; align-items: baseline; gap: 0.7em; margin: 0.6em 0 1.2em; }
.price { font-family: "Spectral", serif; font-size: 2rem; }
.price-note { font-size: 0.82rem; color: #6B7268; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--radius); }
.qty-control button { background: none; border: none; width: 36px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.qty-control input { width: 40px; text-align: center; border: none; font-size: 1rem; font-family: inherit; background: transparent; }
.product-actions { display: flex; gap: 1rem; margin-bottom: 2rem; }
.tabs { border-top: 1px solid var(--line); margin-top: 2rem; }
.tab { border-bottom: 1px solid var(--line); }
.tab-head {
  width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 0;
  font-family: "Barlow", sans-serif; font-weight: 600; font-size: 1rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink);
}
.tab-body { display: none; padding-bottom: 1.2rem; color: #4A5248; font-size: 0.95rem; }
.tab-body.open { display: block; }
.tab-head .chev { transition: transform 0.15s ease; }
.tab-head[aria-expanded="true"] .chev { transform: rotate(45deg); }
.stock-note { font-size: 0.85rem; color: var(--forest); font-weight: 600; margin-bottom: 1rem; }
.gs1-note { font-size: 0.78rem; color: #6B7268; margin-top: 0.4rem; }

/* ===== Cart page ===== */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: flex-start; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto; gap: 1.2rem; align-items: center;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.cart-item .name { font-family: "Spectral", serif; font-size: 1.05rem; }
.cart-item .remove { font-size: 0.8rem; color: var(--error); background: none; border: none; cursor: pointer; padding: 0; text-decoration: underline; }
.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.8em; font-size: 0.95rem; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 0.8em; margin-top: 0.8em; }
.empty-cart { text-align: center; padding: 4rem 0; color: #6B7268; }

/* ===== About page ===== */
.timeline { border-left: 2px solid var(--line); padding-left: 2rem; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2.2rem; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.46rem; top: 0.3rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--stone);
}
.timeline-item .t-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold-deep); text-transform: uppercase; }
.timeline-item h3 { margin: 0.3em 0 0.3em; }
.timeline-item p { color: #4A5248; }
.pull-quote {
  font-family: "Spectral", serif; font-style: italic; font-size: 1.4rem; color: var(--forest);
  border-left: 3px solid var(--gold); padding-left: 1.4rem; margin: 2.5rem 0; text-wrap: balance;
}

/* ===== Contact page ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.form-field { margin-bottom: 1.3rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4em; }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.75em 0.9em; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; border-color: var(--forest); }
.form-note { font-size: 0.8rem; color: #6B7268; margin-top: 0.8rem; }
.toast {
  display: none; background: var(--forest); color: var(--stone); padding: 0.9em 1.2em; border-radius: var(--radius);
  font-size: 0.9rem; margin-top: 1rem;
}
.toast.show { display: block; }
.toast.error { background: var(--error); }

/* ===== Page header banner ===== */
.page-banner { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 0.8rem; color: #6B7268; margin-bottom: 0.6em; }
.breadcrumb a { text-decoration: none; color: #6B7268; }
.breadcrumb a:hover { color: var(--forest); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .diff-grid, .ingredient-grid { grid-template-columns: 1fr; }
  .product-layout, .cart-layout, .contact-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--stone);
    border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 0.5rem 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.9rem 24px; }
  .site-header .container { position: relative; }
}
@media (max-width: 480px) {
  .site-footer .container { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr; grid-template-areas: "img name" "img qty" "img remove"; }
}
