:root {
  --crimson: #B33030;
  --pink: #FFCCCC;
  --terracotta: #D6501C;
  --terracotta-deep: #B54015;
  --white: #FFFFFF;
  --panel: #F8F5EF;
  --cream: #FCF3E9;
  --navy: #0B2047;
  --brown: #25130B;
  --brown-soft: #55402F;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--brown);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;
  -webkit-font-feature-settings: "liga" 0, "clig" 0;
  font-feature-settings: "liga" 0, "clig" 0;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; margin: 0; letter-spacing: -0.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0; padding: 28px 16px 40px 40px; }

.card {
  background: var(--white);
  border-radius: 22px;
  padding: 40px 28px;
  margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(37, 19, 11, 0.18);
}

/* Ribbon */
.ribbon { background: var(--brown); text-align: center; padding: 12px 16px; }
.ribbon a { color: var(--cream); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.ribbon a:hover { text-decoration: underline; }

/* Site shell: sidebar + main content */
.site-shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--crimson) 0px, var(--crimson) 10px,
    var(--pink) 10px, var(--pink) 36px
  );
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  background: var(--panel);
  border-radius: 10px;
  padding: 16px 12px;
}
.sidebar-logo img { width: 100%; display: block; }
.sidebar-nav { display: flex; flex-direction: column; gap: 10px; }
.sidebar-nav a {
  background: var(--panel);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #5A4536;
  text-decoration: none;
}
.sidebar-nav a.active { font-weight: 700; color: #99102A; }

.main-content { flex: 1; min-width: 0; }

@media (max-width: 780px) {
  .site-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }
  .sidebar-logo { padding: 8px 10px; flex-shrink: 0; width: 120px; }
  .sidebar-nav { flex-direction: row; flex: 1; gap: 6px; }
  .sidebar-nav a { flex: 1; text-align: center; padding: 10px 6px; font-size: 11px; }
  .wrap { padding: 28px 16px 40px; }
  .page-hero { padding: 44px 16px 6px; }
}

/* Page hero (interior pages) */
.page-hero { max-width: 1040px; margin: 0; padding: 44px 16px 6px 40px; }
.page-hero h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 600; color: var(--brown); line-height: 1.15; }
.page-hero .page-hero-sub { margin-top: 12px; font-size: 16px; color: var(--brown-soft); max-width: 60ch; }

/* Hero card (home) */
.hero { text-align: center; }
.hero .logo { width: 200px; margin: 0 auto 26px; }
.hero h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 600; color: var(--brown); line-height: 1.2; }
.hero p { max-width: 42ch; margin: 16px auto 0; font-size: 16px; color: var(--brown-soft); }
.hero .place {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  color: var(--brown-soft);
  border: 1px solid rgba(37,19,11,0.16);
  border-radius: 100px;
  padding: 8px 18px;
}
.hero .place strong { color: var(--terracotta-deep); font-weight: 600; }

/* Teaser cards (home) */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.teaser-card {
  background: var(--white);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(37, 19, 11, 0.14);
  text-decoration: none;
  color: inherit;
  display: block;
}
.teaser-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.teaser-card p { font-size: 13.5px; color: var(--brown-soft); margin: 0; }
.teaser-card .teaser-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--terracotta-deep); }
.teaser-card.wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .teaser-grid { grid-template-columns: 1fr; } }

/* Product cards shared */
.product-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.product-grid figure { margin: 0; }
.product-grid figure img { border-radius: 14px; }
.banner-figure { margin: 0 0 22px; }
.banner-figure img { width: 100%; border-radius: 14px; }
.product-grid h2 { font-size: clamp(27px, 5.5vw, 33px); font-weight: 600; line-height: 1.15; }
.product-grid .desc { margin-top: 10px; font-size: 15px; color: var(--brown-soft); }
.sweetener .desc { color: var(--navy); opacity: 0.85; }
.sweetener .eyebrow-label { color: var(--navy); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(37,19,11,0.18);
  color: var(--brown-soft);
}
.sweetener .badge { border-color: rgba(11,32,71,0.22); color: var(--navy); }

/* Nutrition panel */
.nutrition { margin-top: 20px; border: 1.5px solid var(--brown); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; }
.nutrition .head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 6px solid var(--brown); padding-bottom: 8px; margin-bottom: 6px; }
.nutrition .head span:first-child { font-weight: 600; font-size: 12px; }
.nutrition .kcal { font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px; }
.nutrition .row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(37,19,11,0.14); }
.nutrition .row.sub { padding-left: 12px; color: var(--brown-soft); font-size: 12.5px; }
.nutrition .row.total { font-weight: 700; color: var(--terracotta-deep); }
.nutrition .row.sub.total { font-size: 13px; }
.nutrition .row:last-child { border-bottom: none; }

/* Sweetener facts */
.sweetener-facts { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sweetener-facts .fact { background: rgba(11, 32, 71, 0.06); border-radius: 10px; padding: 12px 14px; }
.sweetener-facts .fact .num { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; color: var(--navy); display: block; }
.sweetener-facts .fact .lbl { font-size: 12px; color: var(--navy); opacity: 0.75; }
.swap-note { margin-top: 14px; font-size: 13.5px; color: var(--navy); background: rgba(11,32,71,0.06); border-radius: 10px; padding: 10px 14px; }
.pack-detail { margin-top: 10px; font-size: 13px; color: var(--navy); opacity: 0.75; }

/* Pricing */
.price-row { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.old-price { text-decoration: line-through; color: var(--brown-soft); font-size: 15px; }
.sweetener .old-price { color: var(--navy); opacity: 0.55; }
.new-price { font-family: 'Fraunces', serif; font-weight: 700; font-size: 24px; color: var(--terracotta-deep); }
.price-note { font-size: 12.5px; color: var(--brown-soft); }
.sweetener .price-note { color: var(--navy); opacity: 0.75; }

/* Mini forms */
.mini-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(37,19,11,0.12); }
.mini-form .row-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-form input, .mini-form textarea, .mini-form select {
  flex: 1;
  min-width: 130px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(37,19,11,0.22);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--brown);
}
.mini-form textarea { min-height: 90px; resize: vertical; flex-basis: 100%; }
.sweetener .mini-form input { border-color: rgba(11,32,71,0.25); }
.mini-form .qty-field { display: flex; flex-direction: column; gap: 4px; flex: 0 0 80px; }
.mini-form .qty-field label { font-size: 11px; font-weight: 600; color: var(--brown-soft); }
.sweetener .mini-form .qty-field label { color: var(--navy); opacity: 0.75; }
.mini-form .qty-field input { width: 100%; }
.mini-form input:focus, .mini-form textarea:focus, .mini-form button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}
.mini-form button {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.mini-form button:hover { background: var(--terracotta-deep); }
.mini-form .field-note { font-size: 12.5px; color: var(--brown-soft); margin-top: 10px; }
.sweetener .mini-form .field-note { color: var(--navy); opacity: 0.75; }
.hidden-field { position: absolute; left: -9999px; }
.mini-confirm {
  display: none;
  margin-top: 14px;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(214, 80, 28, 0.12);
  color: var(--terracotta-deep);
}
.mini-confirm.show { display: block; }

@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .card { padding: 28px 20px; }
}

/* Team tasting */
.team-tasting h2 { font-size: clamp(27px, 5.5vw, 33px); font-weight: 600; line-height: 1.15; }
.team-tasting .desc { margin-top: 12px; font-size: 15px; color: var(--brown-soft); }

/* Article / long-form content */
.article h2 { font-size: clamp(20px, 3.5vw, 24px); font-weight: 600; margin-top: 32px; margin-bottom: 10px; }
.article h2:first-child { margin-top: 0; }
.article p { font-size: 15.5px; line-height: 1.7; color: var(--brown-soft); margin: 0; max-width: 70ch; text-align: justify; }
.article p + p { margin-top: 14px; }
.article a { color: var(--terracotta-deep); text-decoration: underline; }
.article ul { margin: 10px 0 0; padding-left: 20px; font-size: 15.5px; line-height: 1.7; color: var(--brown-soft); }
.article li { margin-bottom: 8px; }
.article .lede { font-family: 'Fraunces', serif; font-size: clamp(19px, 3.5vw, 22px); font-weight: 500; color: var(--brown); line-height: 1.5; max-width: 42ch; }

/* FAQ accordion */
.faq h2 { text-align: center; font-size: clamp(22px, 4vw, 26px); font-weight: 600; margin-bottom: 6px; }
.faq .faq-sub { text-align: center; font-size: 14px; color: var(--brown-soft); margin-bottom: 8px; }
.faq details { border-top: 1px solid rgba(37,19,11,0.14); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid rgba(37,19,11,0.14); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--terracotta-deep); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--brown-soft); max-width: 62ch; }
.faq details ul { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--brown-soft); max-width: 62ch; }
.faq details li { margin-bottom: 8px; }
.faq details li:last-child { margin-bottom: 0; }
.faq details strong { color: var(--brown); }
.faq details a { color: var(--terracotta-deep); text-decoration: underline; }

/* Stat strip (About / Why pages) */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.stat-strip .stat { background: rgba(37,19,11,0.05); border-radius: 10px; padding: 16px 12px; text-align: center; }
.stat-strip .stat .num { font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; color: var(--terracotta-deep); display: block; }
.stat-strip .stat .lbl { font-size: 12px; color: var(--brown-soft); margin-top: 4px; }
@media (max-width: 560px) { .stat-strip { grid-template-columns: 1fr 1fr; } }

/* Contact band */
.band-wrap { background: var(--brown); }
.band { max-width: 720px; margin: 0 auto; padding: 56px 20px 0; text-align: center; }
.band h2 { color: var(--cream); font-size: clamp(24px, 5vw, 30px); font-weight: 600; }
.band .sub { color: rgba(252,243,233,0.75); font-size: 15px; max-width: 40ch; margin: 14px auto 0; }
.contact-links { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.contact-btn {
  display: inline-block; background: var(--terracotta); color: var(--cream);
  padding: 14px 26px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none;
}
.contact-btn:hover { background: var(--terracotta-deep); }
.contact-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.contact-link { color: rgba(252,243,233,0.85); font-size: 14px; text-decoration: underline; }
.retailer-line { margin-top: 28px; font-size: 13px; color: rgba(252,243,233,0.65); max-width: 46ch; margin-left: auto; margin-right: auto; }
.retailer-line a { color: var(--cream); text-decoration: underline; }
footer { padding: 30px 0 36px; text-align: center; font-size: 13px; color: rgba(252,243,233,0.6); }

/* Contact page: dark form card */
.contact-form-card {
  background: var(--white);
  border-radius: 22px;
  padding: 32px 24px;
  margin-top: 30px;
  text-align: left;
  color: var(--brown);
}
.contact-form-card .mini-form { border-top: none; padding-top: 0; margin-top: 0; }

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