@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

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

:root {
  --navy:       #0B1F3A;
  --blue:       #185FA5;
  --blue-mid:   #378ADD;
  --blue-pale:  #E6F1FB;
  --blue-faint: #F4F8FD;
  --teal:       #1D9E75;
  --teal-pale:  #E1F5EE;
  --amber:      #EF9F27;
  --amber-pale: #FAEEDA;
  --red:        #E24B4A;
  --red-pale:   #FCEBEB;
  --white:      #FFFFFF;
  --gray-50:    #F8F9FA;
  --gray-100:   #EEF1F5;
  --gray-200:   #D3D6DC;
  --gray-400:   #8A93A0;
  --gray-600:   #4A5568;
  --gray-800:   #1A202C;
  --border:     rgba(24, 95, 165, 0.12);
  --shadow-sm:  0 1px 3px rgba(11,31,58,0.06), 0 1px 2px rgba(11,31,58,0.04);
  --shadow:     0 4px 16px rgba(11,31,58,0.08);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-xs:  6px;
  --max-width:  1100px;
  --page-pad:   40px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 var(--page-pad);
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--navy);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 17px; height: 17px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }

.btn-nav {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s !important;
}
.btn-nav:hover { background: var(--blue) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}
.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--blue); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--blue-pale); }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--page-pad);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: 12px; height: 12px; }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.tag-liver       { background: var(--teal-pale);  color: var(--teal); }
.tag-antioxidant { background: #EEEDFE; color: #534AB7; }
.tag-energy      { background: var(--blue-pale);  color: var(--blue); }
.tag-metabolic   { background: var(--amber-pale); color: #854F0B; }
.tag-cardiovascular { background: #FBEAF0; color: #993556; }
.tag-weight      { background: #FBEAF0; color: #993556; }
.tag-cognitive   { background: #EEEDFE; color: #534AB7; }
.tag-muscle      { background: #EAF3DE; color: #3B6D11; }
.tag-athletic    { background: #EAF3DE; color: #3B6D11; }
.tag-immune      { background: var(--teal-pale);  color: var(--teal); }
.tag-bone        { background: var(--blue-pale);  color: var(--blue); }
.tag-default     { background: var(--gray-100);   color: var(--gray-600); }

/* ── EVIDENCE DOTS ── */
.evidence-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ev-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.ev-dot.filled-1, .ev-dot.filled-2, .ev-dot.filled-3 { background: var(--teal); }
.ev-dot.filled-4 { background: var(--blue-mid); }
.ev-dot.filled-5 { background: #0d1520; }
.ev-dot.empty { background: var(--gray-200); }
.ev-label { font-size: 12px; color: var(--gray-400); margin-left: 5px; }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-400);
  font-weight: 300;
  line-height: 1.7;
  max-width: 520px;
}

/* ── FOOTER ── */
.site-footer {
  background: #f0ede6;
  border-top: 1px solid rgba(13,21,32,0.1);
  padding: 52px var(--page-pad) 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(13,21,32,0.08);
  margin-bottom: 28px;
}
.footer-brand .footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: #0d1520;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(13,21,32,0.65);
  max-width: 220px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(13,21,32,0.5);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 13px;
  color: rgba(13,21,32,0.65);
  transition: color 0.15s;
}
.footer-col a:hover { color: #0d1520; }
.footer-disclaimer {
  padding: 16px 0;
  border-top: 1px solid rgba(13,21,32,0.07);
  margin-bottom: 4px;
}
.footer-disclaimer p {
  font-size: 11px;
  color: rgba(13,21,32,0.55);
  line-height: 1.7;
  max-width: 800px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(13,21,32,0.55);
}

/* ── IMAGE PLACEHOLDERS ── */
/* card-img-wrap: now just a 4px accent bar — no large image placeholder */
.card-img-wrap {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.card-accent-bar {
  height: 4px;
  width: 100%;
  display: block;
}
/* legacy — kept for any remaining references */
.img-placeholder { display: none; }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }

/* ── UTILITY ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 768px) {
  :root { --page-pad: 20px; }
  .nav-links { display: none; }
}
