/* ============================================
   VIVARTA — Health Confidence™
   Design tokens derived from brand + visual identity guides
   STAGING 29 Sep 2026: base file preserved; changes are marked "STAGING" and
   collected in the block at the end of this file.
   ============================================ */

:root {
  --navy: #0F2740;
  --navy-80: rgba(15,39,64,0.8);
  --teal: #0E6B6B;
  --teal-light: #3E8F8A;
  --sage: #B7C4B0;
  --warm-white: #F8F7F4;
  --stone: #8A8F94;
  --stone-text: #5E6469; /* STAGING: darker Stone Grey for small text (4.5:1+ on Warm White) */
  --gold: #C7A66A;
  --white: #FFFFFF;

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --container: 1200px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--sans);
  color: var(--navy);
  background: var(--warm-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

p { color: var(--navy-80); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

/* ---------- Leaf-vein signature divider ---------- */
.leaf-divider {
  width: 100%;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
}
.leaf-divider img { height: 100%; width: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--warm-white); }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--warm-white); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--warm-white); color: var(--navy); }
.btn-on-dark { border: 1px solid rgba(248,247,244,0.7); color: var(--warm-white); }
.btn-on-dark:hover { background: var(--warm-white); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248,247,244,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,39,64,0.1);
  transition: transform 0.4s var(--ease);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* STAGING: logo enlarged (mark 30px → 44px, wordmark and HEALTH CONFIDENCE™ line larger) */
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--serif); }
.logo-mark { width: 44px; height: 44px; }
.logo-word { font-size: 1.55rem; letter-spacing: 0.1em; font-weight: 600; color: var(--navy); line-height: 1.1; }
.logo-tag { display: block; font-family: var(--sans); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; color: var(--teal); text-transform: uppercase; margin-top: 2px; }

nav.main-nav { display: flex; align-items: center; gap: 34px; }
nav.main-nav a { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em; position: relative; padding: 4px 0; }
nav.main-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--teal);
  transition: width 0.3s var(--ease);
}
nav.main-nav a:not(.btn):hover::after { width: 100%; }
nav.main-nav a.active:not(.btn)::after { width: 100%; }
nav.main-nav a.btn { padding: 11px 22px; }

.nav-toggle { display: none; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  position: relative;
  background: linear-gradient(180deg, var(--warm-white) 0%, #F1EFE9 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 26px; }
.hero-copy h1 em { font-style: italic; color: var(--teal); }
.hero-copy p.lede { font-size: 1.15rem; max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--warm-white); }
.section-navy h2, .section-navy h3 { color: var(--warm-white); }
.section-navy p { color: rgba(248,247,244,0.88); }
.section-navy .eyebrow { color: var(--sage); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(15,39,64,0.1);
  border: 1px solid rgba(15,39,64,0.1);
}
.pillar { background: var(--warm-white); padding: 44px 30px; }
.pillar h3 { margin: 0 0 12px; }
.pillar p { font-size: 0.95rem; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

.card {
  background: var(--white);
  border: 1px solid rgba(15,39,64,0.1);
  padding: 36px 32px;
  border-radius: var(--radius);
}
.card .icon-tag { color: var(--teal); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.card h3 { margin: 14px 0 10px; }
.card p { font-size: 0.95rem; margin-bottom: 18px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: rgba(248,247,244,0.9);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(248,247,244,0.18);
}
.footer-grid h4 { color: var(--warm-white); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--sans); font-weight: 600; }
/* STAGING: footer text lifted from 68% to 84% opacity for contrast */
.footer-grid a, .footer-grid p { display: block; font-size: 0.9rem; margin-bottom: 10px; color: rgba(248,247,244,0.84); transition: color 0.2s; }
.footer-grid a:hover { color: var(--sage); }
.footer-brand p { max-width: 280px; margin-top: 18px; }
/* STAGING: the navy stroke of the V disappeared on the navy footer. The unchanged mark now sits on a Warm White tile. */
.footer-logo { display: flex; align-items: center; gap: 12px; font-family: var(--serif); }
.footer-logo .tile { background: var(--warm-white); border-radius: 4px; padding: 6px; display: inline-flex; }
.footer-logo .tile img { width: 34px; height: 34px; }
.footer-logo .logo-word { color: var(--warm-white); }
.footer-logo .logo-tag { color: var(--sage); }
.social-row { display: flex; gap: 14px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(248,247,244,0.45);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0;
}
.social-row a svg { width: 16px; height: 16px; }
.social-row a:hover { background: var(--teal); border-color: var(--teal); }

.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(248,247,244,0.74); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(248,247,244,0.74); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 170px 0 70px;
  background: linear-gradient(180deg, var(--warm-white) 0%, #F1EFE9 100%);
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero p.lede { max-width: 640px; font-size: 1.12rem; margin-top: 20px; }

/* =====================================================
   STAGING ADDITIONS — 29 Sep 2026
   ===================================================== */

/* Image slots: the live site used Unsplash stock photos. The brief asks for
   real-life healthy-ageing photography, so each slot names the photo to source. */
.img-slot {
  background: linear-gradient(160deg, #E4E9E1 0%, var(--sage) 100%);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  max-width: 100%;
  display: flex; align-items: flex-end;
  padding: 22px;
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.45;
}
.img-slot.wide { aspect-ratio: 16 / 10; }
.img-slot span { background: rgba(248,247,244,0.92); padding: 10px 14px; border-radius: 2px; }

/* Three homepage reading sections */
.reading-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; padding: 56px 0; border-top: 1px solid rgba(15,39,64,0.12); }
.reading-row:first-of-type { border-top: none; padding-top: 0; }
.reading-row h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.reading-row p + p { margin-top: 14px; }
.reading-row .more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--teal); border-bottom: 1px solid var(--teal); padding-bottom: 2px; font-size: 0.92rem; }
.reading-row > * { min-width: 0; }

.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(248,247,244,0.2); margin-top: 40px; }
.promise-row div { background: var(--navy); padding: 28px 26px; }
.promise-row h3 { font-size: 1.5rem; margin-bottom: 8px; }

/* Insights */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.topic-card { background: var(--white); border: 1px solid rgba(15,39,64,0.1); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.topic-card h3 { font-size: 1.45rem; }
.topic-card p { font-size: 0.95rem; }
.topic-card .meta { font-size: 0.78rem; color: var(--stone-text); letter-spacing: 0.02em; }
.topic-card .read { margin-top: auto; font-weight: 600; color: var(--teal); font-size: 0.9rem; }
.topic-card.featured { grid-column: 1 / -1; border-left: 3px solid var(--gold); }
.topic-card.featured h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.status-badge { display: inline-block; align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 12px; }
.status-live { background: rgba(14,107,107,0.12); color: var(--teal); }
.status-review { background: rgba(199,166,106,0.2); color: #6E5420; }
.status-unavailable { background: var(--navy); color: var(--warm-white); }

.evidence-tag { display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.03em; text-transform:uppercase; padding:4px 10px; border-radius:12px; margin-bottom:10px; }
.evidence-know { background:rgba(14,107,107,0.12); color:var(--teal); }
.evidence-mayhelp { background:rgba(199,166,106,0.2); color:#6E5420; }
.evidence-unclear { background:rgba(138,143,148,0.18); color:var(--stone-text); }

.qa-block { border-bottom:1px solid rgba(15,39,64,0.1); padding:30px 0; max-width: 820px; }
.qa-block h3 { font-size:1.3rem; margin-bottom:10px; }
.qa-block p { font-size:0.97rem; }
.qa-block p + p { margin-top: 10px; }
.qa-refs { font-size:0.84rem; color:var(--stone-text); margin-top:12px; }
.qa-refs strong { color:var(--navy); }

/* Articles */
.article-body { max-width: 720px; margin: 0 auto; }
.article-meta { font-size: 0.86rem; color: var(--stone-text); border-top: 1px solid rgba(15,39,64,0.12); border-bottom: 1px solid rgba(15,39,64,0.12); padding: 16px 0; margin: 30px 0 0; display: flex; gap: 8px 24px; flex-wrap: wrap; }
.article-meta strong { color: var(--navy); font-weight: 600; }
.article-body h2 { font-size: 1.75rem; margin-top: 48px; margin-bottom: 14px; }
.article-body h3 { font-size: 1.3rem; margin-top: 28px; margin-bottom: 10px; }
.article-body p { font-size: 1.04rem; margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 8px 0 18px 22px; font-size: 1.04rem; color: var(--navy-80); }
.article-body li { margin-bottom: 8px; }
.article-body a:not(.btn) { color: var(--teal); border-bottom: 1px solid rgba(14,107,107,0.4); }
.callout { background: rgba(199,166,106,0.13); border-left: 3px solid var(--gold); padding: 18px 22px; font-size: 0.97rem; margin: 28px 0; border-radius: 2px; }
.callout p { margin-bottom: 0; font-size: 0.97rem; }
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.figure { background: var(--white); border: 1px solid rgba(15,39,64,0.1); padding: 20px 22px; border-radius: 2px; }
.figure .num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.figure .lbl { font-size: 0.86rem; color: var(--navy-80); margin-top: 8px; }
.evidence-grid { display: grid; gap: 14px; margin: 18px 0 24px; }
.evidence-grid > div { border: 1px solid rgba(15,39,64,0.1); background: var(--white); padding: 18px 20px; border-radius: 2px; }
.evidence-grid p { margin: 6px 0 0; font-size: 0.97rem; }
.refs { font-size: 0.9rem; }
.refs li { margin-bottom: 10px; }
.next-read { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(15,39,64,0.12); }

/* Future therapies */
.future-intro { max-width: 720px; }
.future-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.future-card { background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.future-card h3 { font-size: 1.5rem; }
.future-card p { font-size: 0.95rem; }
.future-card .ask { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--teal); }
.plain-note { font-size: 0.9rem; color: var(--stone-text); max-width: 720px; }

/* Forms */
.form-panel { background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-radius: var(--radius); padding: 36px 32px; }
.form-panel h2 { font-size: 1.9rem; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:24px; }
.form-grid .full { grid-column:1 / -1; }
.form-grid label, .field-label { display:block; font-size:0.9rem; font-weight:600; margin-bottom:6px; color: var(--navy); }
.form-grid input[type=text], .form-grid input[type=email], .form-grid select, .form-grid textarea { width:100%; padding:12px 14px; border:1px solid rgba(15,39,64,0.6); border-radius:2px; font-family:var(--sans); font-size:1rem; color: var(--navy); background: var(--white); }
.hint { font-size: 0.84rem; color: var(--stone-text); margin-top: 6px; }
.consent-row { display:flex; gap:10px; align-items:flex-start; font-size:0.9rem; color: var(--navy); }
.consent-row input { width:18px; height: 18px; margin-top:3px; flex: none; }
.field-error { color: #A12C2C; font-size: 0.84rem; margin-top: 6px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 2px; font-size: 0.92rem; background: rgba(14,107,107,0.1); color: var(--navy); }
.staging-flag { display: block; margin-top: 14px; font-size: 0.82rem; color: #6E5420; background: rgba(199,166,106,0.2); padding: 10px 12px; border-radius: 2px; }
.urgent-notice { font-size:0.9rem; color:var(--stone-text); text-align:center; max-width:640px; margin:0 auto; padding:24px 18px 0; border-top:1px solid rgba(15,39,64,0.12); }

/* Other inherited page blocks */
.statement-block { max-width:760px; margin:50px auto 0; text-align:center; padding:40px 0; border-top:1px solid rgba(15,39,64,0.12); border-bottom:1px solid rgba(15,39,64,0.12); }
.statement-block p { font-family:var(--serif); font-size:1.5rem; color:var(--navy); line-height:1.4; }
.statement-block p.sub { font-size:1.2rem; margin-top:10px; color:var(--navy-80); }
.pillar-nav { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin:0 auto; }
.pillar-nav a { display:flex; align-items:center; gap:10px; font-size:0.85rem; font-weight:700; letter-spacing:0.08em; color:var(--navy); padding:10px 18px; border:1px solid rgba(15,39,64,0.2); border-radius:30px; }
.pillar-nav a:hover { background:var(--navy); color:var(--warm-white); }
.pillar-nav .arrow { color:#8A6D2F; }
.pillar-headline { font-size:1.4rem; font-family:var(--serif); font-style:italic; color:var(--teal); margin:14px 0 16px; }
.pillar-copy { font-size:1.03rem; max-width:520px; }
.pillar-copy + .pillar-copy { margin-top: 12px; }
.pillar-link { display:inline-block; margin-top:20px; font-weight:600; color:var(--teal); border-bottom:1px solid var(--teal); padding-bottom:2px; font-size:0.92rem; }

.draft-banner { background: #6E5420; color: var(--warm-white); text-align: center; font-size: 0.85rem; font-weight: 600; padding: 10px 16px; position: relative; z-index: 1001; }
.draft-banner + .site-header { top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .img-slot { max-width: 420px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .reading-row { grid-template-columns: 1fr; gap: 16px; }
  .promise-row { grid-template-columns: 1fr; }
  nav.main-nav { gap: 22px; }
}
@media (max-width: 860px) {
  nav.main-nav { position: fixed; top: 72px; left:0; right:0; bottom:0; background: var(--warm-white); flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 40px 24px; gap: 26px; transform: translateX(100%); transition: transform 0.4s var(--ease); }
  nav.main-nav a { font-size: 1.1rem; }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; font-size: 1.6rem; padding: 6px 4px; }
}
@media (max-width: 680px) {
  .header-inner { padding: 12px 20px; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-word { font-size: 1.35rem; }
  .pillars { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .hero { padding: 120px 0 60px; }
  .page-hero { padding: 130px 0 50px; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 26px 20px; }
  .figure-row { grid-template-columns: 1fr; }
  .img-slot { aspect-ratio: 16 / 10; }
  .btn { white-space: normal; }
}
.footer-grid a.footer-logo { display: flex; margin-bottom: 0; color: var(--warm-white); }
.footer-grid a.footer-logo > span:last-child { display: flex; flex-direction: column; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { position: relative; }

/* =====================================================
   PHOTOGRAPHY UPDATE — approved image set (revision 4)
   ===================================================== */
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }
.footer-btn { display: inline-flex; margin-top: 6px; }

/* Homepage hero: full-width photo, headline on a navy gradient */
.hero-photo { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 150px 0 90px; background: var(--navy); overflow: hidden; }
.hero-photo > picture { position: absolute; inset: 0; }
.hero-photo > picture img { object-position: 72% 45%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,39,64,0.95) 0%, rgba(15,39,64,0.9) 40%, rgba(15,39,64,0.62) 54%, rgba(15,39,64,0.18) 70%, rgba(15,39,64,0) 82%); }
@media (min-width: 701px) and (max-width: 1180px) { .hero-photo > picture img { object-position: 88% 45%; } .hero-photo::after { background: linear-gradient(90deg, rgba(15,39,64,0.95) 0%, rgba(15,39,64,0.9) 52%, rgba(15,39,64,0.55) 66%, rgba(15,39,64,0.1) 82%, rgba(15,39,64,0) 90%); } }
.hero-photo .container { position: relative; z-index: 1; width: 100%; }
.hero-photo .hero-copy { max-width: 560px; }
.hero-photo .eyebrow { color: var(--sage); }
.hero-photo h1 { color: var(--warm-white); margin-bottom: 24px; }
.hero-photo h1 em { color: var(--sage); font-style: italic; }
.hero-photo .lede { color: rgba(248,247,244,0.94); font-size: 1.18rem; max-width: 520px; margin-bottom: 34px; }
.btn-light { background: var(--warm-white); color: var(--navy); }
.btn-light:hover { background: var(--sage); color: var(--navy); transform: translateY(-2px); }

/* Image cards: photo on top, larger legible text below (not over the photo) */
.photo-card { background: var(--white); border: 1px solid rgba(15,39,64,0.1); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; color: var(--navy); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(15,39,64,0.35); }
.photo-card picture { aspect-ratio: 3 / 2; max-width: 100%; }
.photo-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.photo-card .meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.photo-card h3 { font-size: clamp(1.5rem, 2.2vw, 1.8rem); line-height: 1.15; }
.photo-card p { font-size: 1rem; }
.photo-card .read { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--teal); font-size: 0.95rem; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.photo-grid.three { grid-template-columns: repeat(3, 1fr); }
.photo-card.featured { grid-column: 1 / -1; flex-direction: row; }
.photo-card.featured picture { flex: 1.2; aspect-ratio: auto; min-height: 360px; }
.photo-card.featured .body { flex: 1; padding: 40px; justify-content: center; }
.photo-card.featured h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }

/* Split feature: photo beside text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.split picture { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; max-width: 100%; }
.split.reverse > picture { order: 2; }

/* Article header photo */
.article-photo { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.article-photo picture { aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; max-width: 100%; }

@media (max-width: 980px) {
  .photo-grid.three { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > picture { order: 0; }
  .photo-card.featured { flex-direction: column; }
  .photo-card.featured picture { aspect-ratio: 3 / 2; min-height: 0; }
  .photo-card.featured .body { padding: 26px 24px; }
}
@media (max-width: 700px) {
  .hero-photo { min-height: 0; align-items: stretch; padding: 64px 0 0; flex-direction: column; }
  .hero-photo > picture { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 5; max-height: 62vh; }
  .hero-photo > picture img { object-position: 60% 50%; }
  .hero-photo::after { inset: auto 0 0 0; top: 0; background: linear-gradient(180deg, rgba(15,39,64,0) 30%, rgba(15,39,64,0.88) 43%, rgba(15,39,64,1) 48%); pointer-events: none; }
  .hero-photo .container { margin-top: -36px; padding-bottom: 56px; }
  .hero-photo .lede { font-size: 1.05rem; }
  .photo-grid, .photo-grid.three { grid-template-columns: 1fr; }
  .article-photo { padding: 0 20px; }
}
.grid-2 > picture { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; max-width: 100%; }
.credits-table { overflow-x: auto; border: 1px solid rgba(15,39,64,0.12); border-radius: 4px; background: var(--white); }
.credits-table table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.credits-table th, .credits-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid rgba(15,39,64,0.1); color: var(--navy); }
.credits-table th { border-top: none; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-text); }
.credits-table a { color: var(--teal); text-decoration: underline; }
.photo-card.featured.flip { flex-direction: row-reverse; }
.review-note { color: #6E5420; }
@media (max-width: 980px) { .photo-card.featured.flip { flex-direction: column; } }
/* Text-only article cards (gut health series: no photos approved for these yet) */
.text-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.text-card { background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-top: 3px solid var(--teal); border-radius: 4px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; color: var(--navy); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.text-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(15,39,64,0.35); }
.text-card .meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.text-card h3 { font-size: clamp(1.45rem, 2.1vw, 1.7rem); }
.text-card p { font-size: 1rem; }
.text-card .read { margin-top: auto; font-weight: 600; color: var(--teal); font-size: 0.95rem; }
.gut-band { padding: 72px 0; background: var(--navy); }
.gut-band-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.gut-band-inner > * { min-width: 0; }
.gut-band .eyebrow { color: var(--sage); }
.gut-band h2 { color: var(--warm-white); }
.gut-band p { color: rgba(248,247,244,0.9); margin-top: 14px; }
.gut-links { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(248,247,244,0.22); }
.gut-links li { border-bottom: 1px solid rgba(248,247,244,0.22); }
.gut-links a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; color: var(--warm-white); font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.gut-links a::after { content: "→"; color: var(--sage); font-family: var(--sans); }
.gut-links a:hover { color: var(--sage); }
@media (max-width: 980px) { .gut-band-inner { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 700px) { .text-cards { grid-template-columns: 1fr; } }
.footer-legal { font-size: 0.8rem; color: rgba(248,247,244,0.78); margin-top: 14px; max-width: 900px; line-height: 1.6; }
.footer-legal a { color: rgba(248,247,244,0.9); text-decoration: underline; }
/* Draft pages */
.pathway { list-style: none; counter-reset: step; margin: 20px 0 0 !important; padding: 0; display: grid; gap: 16px; }
.pathway > li { counter-increment: step; position: relative; background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-radius: 4px; padding: 22px 22px 18px 72px; }
.pathway > li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--warm-white); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.pathway h3 { margin-top: 0 !important; }
.pathway p, .pathway li { font-size: 1rem; }
.draft-note { background: rgba(199,166,106,0.2); color: #5A4418; padding: 12px 14px; border-radius: 2px; font-size: 0.95rem; }
.profile-draft { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.profile-photo { aspect-ratio: 4 / 5; background: #E4E9E1; border-radius: 4px; display: flex; align-items: flex-end; padding: 12px; font-size: 0.82rem; color: var(--navy); }
@media (max-width: 700px) { .profile-draft { grid-template-columns: 1fr; } .profile-photo { max-width: 200px; } }
.topic-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.topic-jump a { padding: 9px 16px; border: 1px solid rgba(15,39,64,0.3); border-radius: 20px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.topic-jump a:hover { background: var(--navy); color: var(--warm-white); }

/* ---------- v4: seven-item navigation, services and treatment pages ---------- */
nav.main-nav { gap: 26px; }
nav.main-nav a { white-space: nowrap; }
@media (max-width: 1300px) { nav.main-nav { gap: 18px; } nav.main-nav a { font-size: 0.85rem; } nav.main-nav a.btn { padding: 10px 16px; } }
@media (max-width: 1180px) {
  nav.main-nav { position: fixed; top: 72px; left:0; right:0; bottom:0; background: var(--warm-white); flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 36px 24px; gap: 22px; transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto; }
  nav.main-nav a { font-size: 1.1rem; }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; font-size: 1.6rem; padding: 6px 4px; }
}
.status-available { background: rgba(14,107,107,0.12); color: var(--teal); }
.status-soon { background: rgba(199,166,106,0.22); color: #5A4418; }
.status-consider { background: rgba(15,39,64,0.08); color: var(--navy); }
.service-group { margin-top: 56px; }
.service-group:first-child { margin-top: 0; }
.service-group > h2 { margin-bottom: 8px; }
.service-group > p.group-intro { max-width: 720px; margin-bottom: 26px; }
.treatment-grid, .service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 26px; }
.treatment-card, .service-card { background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.treatment-card h3, .service-card h3 { font-size: 1.4rem; margin: 0; }
.treatment-card p, .service-card p { font-size: 0.95rem; margin: 0; }
.treatment-card .ask, .service-card .ask { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.service-card .icon { width: 36px; height: 36px; color: var(--teal); }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
@media (max-width: 980px) { .help-grid { grid-template-columns: 1fr; } }
.t-info-list { display: grid; gap: 12px; margin-top: 22px; }
.t-info, .faq details { background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-radius: 4px; padding: 16px 20px; }
.t-info summary, .faq summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.t-info[open] summary, .faq details[open] summary { margin-bottom: 10px; }
.t-info p, .faq p, .t-info li { font-size: 0.97rem; }
.faq { display: grid; gap: 12px; margin-top: 22px; }
.fact-panel { background: var(--navy); color: var(--warm-white); border-radius: 4px; padding: 28px 30px; margin-top: 26px; }
.fact-panel p { color: var(--warm-white); font-size: 1.08rem; margin: 0; }
.fact-panel p + p { margin-top: 10px; font-size: 0.95rem; opacity: 0.9; }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.jump-links a { border: 1px solid rgba(15,39,64,0.25); border-radius: 22px; padding: 8px 16px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.check-list li { padding-left: 26px; position: relative; font-size: 0.98rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.confirm-wrap { outline: 2px dashed #B58A2E; outline-offset: 4px; position: relative; margin-top: 24px; }
.confirm-wrap::before { content: "STAGING · " attr(data-confirm); position: absolute; top: -20px; left: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: #6E5420; background: #F6ECD6; padding: 1px 6px; }
.treatment-grid .confirm-wrap, .service-grid .confirm-wrap { margin-top: 22px; }
.sources { font-size: 0.9rem; }
.sources li { margin-bottom: 6px; }
.pathway-dark > li { background: rgba(248,247,244,0.06); border-color: rgba(248,247,244,0.18); }
.pathway-dark > li::before { background: var(--gold); color: var(--navy); }
.pathway-dark h3, .pathway-dark p { color: var(--warm-white); }
.pathway-dark a { color: var(--warm-white); text-decoration: underline; }
.logo { flex-shrink: 0; }
.logo-tag { white-space: nowrap; }
nav.main-nav { gap: 22px; }
/* Fix: the header's backdrop-filter makes it the containing block for the fixed menu, so bottom:0 gave a 72px-tall panel. */
@media (max-width: 1180px) { nav.main-nav { bottom: auto; height: calc(100vh - 72px); height: calc(100dvh - 72px); } }

/* ===== v5 (October 2026) ===== */
/* Route cards (Our Approach on navy; Blood Tests on light) */
.route-grid { gap: 26px; }
.route-card { border: 1px solid rgba(248,247,244,0.22); border-radius: 4px; padding: 32px 30px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; height: 100%; }
.route-card h3 { font-size: 1.6rem; margin: 0; }
.route-card p { margin: 0; }
.route-card .btn { margin-top: auto; }
.route-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }
.route-light .route-card { background: var(--white); border-color: rgba(15,39,64,0.12); }
.route-light .route-label { color: var(--teal); }
.check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 700px) { .check-list.two-col { grid-template-columns: 1fr; } }

/* Blood test panels */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 28px; }
.panel-card { background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-radius: 4px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.panel-card h3 { font-size: 1.45rem; margin: 0; }
.panel-card p { font-size: 0.95rem; margin: 0; }
.panel-card .btn { margin-top: auto; align-self: flex-start; }
.price { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--navy); }
.price:empty { display: none; }

/* Tags and filters */
.tag-filter, .topic-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.tag { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--navy); background: transparent; border: 1px solid rgba(15,39,64,0.25); border-radius: 22px; padding: 8px 16px; cursor: pointer; min-height: 40px; }
.tag:hover { border-color: var(--teal); color: var(--teal); }
.tag.on { background: var(--navy); border-color: var(--navy); color: var(--warm-white); }
.tag:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tag-chip { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--teal); background: rgba(14,107,107,0.08); border-radius: 12px; padding: 3px 10px; }
a.tag-chip:hover { text-decoration: underline; }
.cat-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 10px; }
.topic-count { font-size: 0.9rem; color: var(--stone-text); min-height: 1.4em; }

/* Product catalogue */
.product-list { display: grid; gap: 12px; margin-top: 18px; }
.product { background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-radius: 4px; padding: 0 24px; }
.product summary { cursor: pointer; padding: 20px 0; display: grid; gap: 6px; list-style: none; }
.product summary::-webkit-details-marker { display: none; }
.product[open] summary { border-bottom: 1px solid rgba(15,39,64,0.08); }
.product > p, .product > .btn, .product > .status-badge { margin: 14px 0; }
.product > .btn { margin-bottom: 22px; }
.p-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.p-desc { font-size: 0.95rem; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Therapies */
.therapies { max-width: 900px; }
.therapy { border-top: 1px solid rgba(15,39,64,0.14); padding: 44px 0 10px; scroll-margin-top: 90px; }
.therapy:first-child { border-top: 0; padding-top: 10px; }
.therapy-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 18px; }
.therapy-head h2 { margin: 0; }
.therapy-body h3 { font-size: 1.3rem; margin: 22px 0 8px; }
.therapy-body p { max-width: 760px; }
.sources-d { margin-top: 20px; }
.sources-d summary { cursor: pointer; font-weight: 600; color: var(--teal); font-size: 0.92rem; }
.sources-d ul { margin-top: 10px; }

/* Contact details */
.contact-info { display: grid; gap: 20px; margin-top: 20px; }
.contact-info h3 { font-size: 1.15rem; margin-bottom: 4px; }
.contact-info a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* Article end call to action */
.article-next { margin: 48px 0 10px; padding: 30px 28px; background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-left: 3px solid var(--teal); border-radius: 4px; }
.article-next p { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 18px; }

/* Health Insights article list */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 22px; }
.article-card { background: var(--white); border: 1px solid rgba(15,39,64,0.1); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; color: var(--navy); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(15,39,64,0.35); }
.article-card[hidden] { display: none; }
.article-card picture { aspect-ratio: 3 / 2; max-width: 100%; display: block; }
.article-card picture img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card .meta { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.article-card h3 { font-size: 1.45rem; line-height: 1.18; }
.article-card p { font-size: 0.95rem; }
.article-card .upd { font-size: 0.82rem; color: var(--stone-text); }
.article-card .read { margin-top: auto; padding-top: 4px; font-weight: 600; color: var(--teal); font-size: 0.92rem; }
@media (max-width: 980px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }
[data-topics][hidden] { display: none !important; }

/* About: beliefs */
.beliefs { gap: 30px 48px; }
.beliefs > div { border-top: 2px solid var(--teal); padding-top: 18px; }
.beliefs h3 { font-size: 1.45rem; margin-bottom: 8px; }

/* v5: eight-item navigation. Wider header, long label wraps to two lines, menu below 1300px. */
.header-inner { max-width: 1440px; }
nav.main-nav { gap: 20px; }
nav.main-nav a { font-size: 0.85rem; }
nav.main-nav a[data-long] { white-space: normal; max-width: 12em; line-height: 1.25; text-align: center; }
nav.main-nav a.btn { padding: 10px 16px; }
@media (min-width: 1300px) and (max-width: 1400px) { nav.main-nav { gap: 15px; } nav.main-nav a { font-size: 0.82rem; } .logo-word { font-size: 1.35rem; } }
@media (max-width: 1299px) {
  nav.main-nav { position: fixed; top: 72px; left:0; right:0; bottom: auto; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: var(--warm-white); flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 32px 24px; gap: 20px; transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto; }
  nav.main-nav a { font-size: 1.1rem; }
  nav.main-nav a[data-long] { max-width: none; text-align: left; }
  nav.main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; font-size: 1.6rem; padding: 6px 4px; }
}

/* v5.2: homepage assessment areas, journey strip, direct route; blood test options */
.area-heading { font-size: 1.5rem; margin-bottom: 16px; }
.area-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.area-card { background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-radius: 4px; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; color: var(--navy); transition: border-color 0.2s, box-shadow 0.2s; }
.area-card:hover, .area-card:focus-visible { border-color: var(--teal); box-shadow: 0 10px 24px -18px rgba(15,39,64,0.45); }
.area-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.area-sum { font-size: 0.9rem; color: var(--stone-text); }
.area-more { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--teal); }
@media (max-width: 1100px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .area-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .area-grid { grid-template-columns: 1fr; } }
.journey-strip { list-style: none; counter-reset: j; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 26px 0 0; }
.journey-strip li { counter-increment: j; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.journey-strip li::before { content: counter(j); width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.direct-route { margin-top: 22px; max-width: 760px; }
.direct-route a, .bt-options a.ask { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.bt-card { background: var(--white); border: 1px solid rgba(15,39,64,0.12); border-radius: 4px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.bt-card h3 { font-size: 1.35rem; margin: 0; }
.bt-card p { font-size: 0.95rem; margin: 0; }
.bt-card .ask { margin-top: auto; font-size: 0.9rem; font-weight: 600; }
.staging-spec { font-size: 0.78rem; color: #6E5420; background: rgba(199,166,106,0.18); padding: 10px 12px; border-radius: 2px; }
.staging-spec ul { margin: 6px 0 0 16px; }
#areas .service-card[id] { scroll-margin-top: 96px; }

.bt-photo, picture:has(.bt-photo) { display:block; margin: 22px 0 6px; }
.article-card:not(.has-img) { border-top: 3px solid var(--teal); }
