/* ============================================================
   Bee Happy Hive — shared design system
   Locked 2026-05-13 (see memory/design_system_locked.md)
   Used by index.html, privacy.html, compliance.html, diseases.html
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Locked palette ────────────────────────────────────────── */
:root {
  --ink:        #1A1A1A;   /* headlines + buttons + nav: near-black */
  --ink-mid:    #3D352B;   /* body paragraphs: warm dark */
  --ink-light:  #7A6E60;   /* captions + meta + fine print: warm mid */
  --gold:       #F0A81E;   /* honey amber accent */
  --gold-dark:  #B27A0E;   /* hover state + emphasis */
  --gold-light: #FBEFCE;   /* subtle tint backgrounds */
  --cream:      #FAFAFA;   /* near-white primary background */
  --cream-deep: #F6F2EA;   /* warm off-white for alt sections + photo block backgrounds */
  --white:      #FFFFFF;
  --green:      #2A7D4E;   /* compliance ticks */
  --green-bg:   #E8F5EE;
  --warn:       #C87010;   /* matches app orange-brown warn */
  --warn-bg:    #FBE9D6;
  --rule:       rgba(26,26,26,0.12);

  --max:        1120px;
  --max-text:   680px;
}

/* ── Base ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { image-orientation: from-image; }

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-dark); }

/* ── Editorial typography helpers ─────────────────────────── */
.serif      { font-family: 'Lora', Georgia, serif; }
.smallcaps  { font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow    { font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mid); }
.pullquote  { font-family: 'Lora', serif; font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.55; color: var(--ink); }

/* ── Containers ───────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.text-col { max-width: var(--max-text); }

/* ── Section number signposts (magazine style) ────────────── */
.section-no {
  display: flex; align-items: baseline; gap: 14px;
  font-family: 'Lora', serif; font-size: 14px; font-style: italic; color: var(--ink-light);
  margin-bottom: 18px;
}
.section-no::before, .section-no::after { content: ''; flex: 0 0 28px; height: 1px; background: var(--rule); }
.section-no::after { flex: 1; }

/* ── Nav (thin editorial) ─────────────────────────────────── */
nav.bhh-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; }
.nav-logo-text { font-family: 'Lora', serif; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 600; color: var(--ink-mid); text-decoration: none; letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-block; padding: 9px 18px;
  background: var(--ink); color: var(--cream);
  font-size: 13px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; padding: 15px 28px;
  background: var(--ink); color: var(--cream);
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--ink);
  letter-spacing: 0.005em;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn-outline {
  display: inline-block; padding: 14px 26px;
  background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--ink);
  transition: all 0.15s;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ── Section defaults ─────────────────────────────────────── */
section.editorial      { padding: 96px 28px; }
section.editorial-alt  { padding: 96px 28px; background: var(--cream-deep); }
section.editorial-dark { padding: 96px 28px; background: var(--ink); color: var(--cream); }
section.editorial-dark a { color: var(--cream); }
section.editorial-dark .smallcaps { color: var(--gold); }

h2.section-title {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 22px;
}
section.editorial-dark h2.section-title { color: var(--cream); }
.section-lede {
  font-family: 'Lora', serif; font-size: 19px; font-style: italic;
  color: var(--ink-mid); max-width: 620px; line-height: 1.6;
}
section.editorial-dark .section-lede { color: rgba(250,246,238,0.75); }

/* ── Full-bleed brand photo strip ─────────────────────────── */
.brand-photo { margin: 0; padding: 0; width: 100%; background: var(--cream); }
.brand-photo picture { display: block; }
.brand-photo img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.brand-photo figcaption {
  font-family: 'Lora', serif; font-style: italic; font-size: 13px;
  color: var(--ink-light); text-align: center;
  padding: 14px 28px 0;
}

/* ── Sample record card (legal record document look) ──────── */
.record-doc {
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--gold-light);
  max-width: 460px;
}
.record-doc-header {
  background: var(--ink); padding: 14px 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.record-doc-title { color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.record-doc-badge {
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 800; padding: 4px 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.record-doc-body { padding: 22px 22px 16px; }
.record-field {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; border-bottom: 1px dotted var(--rule);
}
.record-field:last-child { border-bottom: none; }
.record-key {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-light); white-space: nowrap;
}
.record-val { font-size: 13px; font-weight: 600; color: var(--ink); text-align: right; }
.record-doc-footer {
  background: var(--cream); padding: 11px 22px;
  border-top: 1px solid var(--rule);
  font-size: 11px; color: var(--ink-light); line-height: 1.45;
}

/* ── Tables (newspaper / print style) ─────────────────────── */
.table-wrap { overflow-x: auto; margin: 18px 0; }
.bhh-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bhh-table th {
  background: var(--ink); color: var(--cream);
  font-weight: 700; text-align: left; padding: 10px 14px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.bhh-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--rule);
  vertical-align: top; line-height: 1.55;
}
.bhh-table tr:last-child td { border-bottom: none; }
.bhh-table td:first-child { font-weight: 600; color: var(--ink); }
.bhh-table td:nth-child(2) { color: var(--ink-mid); font-size: 12px; }

/* ── Highlight box (Tracy's "what we do and do not claim" pattern) ── */
.factbox {
  background: var(--gold-light);
  border-left: 4px solid var(--gold-dark);
  padding: 24px 28px; margin: 32px 0;
  max-width: var(--max);
}
.factbox h3 {
  font-family: 'Lora', serif; font-size: 18px; font-weight: 600;
  color: var(--gold-dark); margin-bottom: 10px;
}
.factbox p { font-size: 15px; line-height: 1.7; color: var(--ink-mid); }
.factbox p + p { margin-top: 12px; }

/* ── Warning callout (notifiable diseases, withdrawal etc.) ── */
.callout-warn {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn);
  padding: 18px 22px; margin: 24px 0;
}
.callout-warn strong { display: block; color: var(--warn); font-family: 'Lora', serif; font-size: 16px; margin-bottom: 6px; }
.callout-warn p { font-size: 15px; line-height: 1.7; color: var(--ink-mid); margin-bottom: 8px; }
.callout-warn p:last-child { margin-bottom: 0; }

/* ── Footer (dark, four-column) ───────────────────────────── */
footer.bhh-footer {
  background: var(--ink); color: rgba(250,250,250,0.6);
  padding: 56px 28px 32px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Lora', serif; font-size: 18px; font-weight: 600;
  color: var(--cream); margin-bottom: 10px;
}
.footer-brand .footer-logo img { width: 28px; height: 28px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(250,250,250,0.5); max-width: 280px; }
.footer-col h4 {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(250,250,250,0.35);
  margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13px; color: rgba(250,250,250,0.7);
  text-decoration: none; padding: 4px 0;
}
.footer-col a:hover { color: var(--gold); }
.footer-legal {
  max-width: var(--max); margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(250,250,250,0.08);
  font-size: 11px; line-height: 1.7; color: rgba(250,250,250,0.4);
}
.footer-legal p + p { margin-top: 8px; }
.footer-legal a { color: rgba(250,250,250,0.6); }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  section.editorial, section.editorial-alt, section.editorial-dark { padding: 64px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .bhh-table { font-size: 12px; }
}

@media print {
  nav, .nav-cta, footer.bhh-footer { display: none; }
}
