/* ============================================================
   ANCHOR · Brand Site Shared Stylesheet
   Palette: navy #0F172A / cream #FAF7F2 / sand #EADFCB / slate #334155
   Font: Inter (Google Fonts)
   ============================================================ */

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

:root {
  --navy:   #0F172A;
  --cream:  #FAF7F2;
  --sand:   #EADFCB;
  --slate:  #334155;
  --slate-light: #64748B;
  --sage:   #6B8F71;
  --stone:  #F3EEE7;
  --r: 4px;
  --max-w: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-gap: clamp(4rem, 8vw, 7rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.6rem); }
p  { max-width: 65ch; color: var(--slate); }
p.wide { max-width: 80ch; }
p strong { color: var(--navy); }

.label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate-light);
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section-gap); }

/* ── Announcement Bar ── */
.annbar {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  position: relative;
  overflow: hidden;
}
.annbar__track {
  display: inline-flex;
  gap: 4rem;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}
.annbar__track span::before { content: "·"; margin-right: 1.5rem; color: var(--sand); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(15,23,42,0.1);
  padding-block: 0.85rem;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-header__logo img {
  height: 32px;
  width: auto;
}
.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--navy); }
.site-nav .nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 0.55rem 1.25rem;
  border-radius: var(--r);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}
.site-nav .nav-cta:hover { opacity: 0.85; }

.site-header__toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.site-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .site-header__toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(15,23,42,0.1);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    margin: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: block;
    padding: 0.75rem var(--gutter);
    border-bottom: 1px solid rgba(15,23,42,0.06);
  }
  .site-nav .nav-cta { margin: 1rem var(--gutter); border-radius: var(--r); text-align: center; }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-outline  { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-sand     { background: var(--sand); color: var(--navy); }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.8rem; }

/* ── Hero ── */
.hero {
  min-height: 90svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.hero__copy {
  padding-block: clamp(3rem, 8vh, 6rem);
  padding-inline: var(--gutter);
  max-width: 640px;
  margin-inline: auto;
}
.hero__label { margin-bottom: 1.25rem; }
.hero__copy h1 { margin-bottom: 1.5rem; color: var(--navy); }
.hero__subhead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--slate);
  margin-bottom: 2rem;
  max-width: 48ch;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__ctas .btn-link {
  font-size: 0.875rem;
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__image {
  height: 90svh;
  overflow: hidden;
  position: relative;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 12%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__image {
    height: 55vw;
    min-height: 260px;
    order: -1;
  }
  .hero__image::after {
    background: linear-gradient(to bottom, transparent 60%, var(--cream) 100%);
  }
  .hero__copy {
    padding-block: 2rem;
    max-width: 100%;
  }
}

/* ── Trust Bar ── */
.trust-bar {
  background: var(--sand);
  padding-block: 1.25rem;
  border-block: 1px solid rgba(15,23,42,0.08);
}
.trust-bar .container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.trust-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Chapters ── */
.chapter { padding-block: var(--section-gap); }
.chapter--dark {
  background: var(--navy);
  color: var(--cream);
}
.chapter--dark p { color: rgba(250,247,242,0.75); }
.chapter--dark .label { color: rgba(250,247,242,0.45); }
.chapter--dark h2, .chapter--dark h3 { color: var(--cream); }
.chapter--stone { background: var(--stone); }
.chapter--sand  { background: var(--sand); }

.chapter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.chapter__inner--reverse { direction: rtl; }
.chapter__inner--reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .chapter__inner { grid-template-columns: 1fr; direction: ltr; }
  .chapter__inner--reverse { direction: ltr; }
}

.chapter__media { position: relative; border-radius: 6px; overflow: hidden; }
.chapter__media img { width: 100%; height: 400px; object-fit: cover; border-radius: 6px; }

.chapter__text { display: flex; flex-direction: column; gap: 1.25rem; }
.chapter__text .label { margin-bottom: 0; }
.chapter__text h2 { margin-bottom: 0; }
.chapter__text p { margin-bottom: 0; }

/* ── Pillars ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.pillar {
  background: rgba(250,247,242,0.06);
  border: 1px solid rgba(250,247,242,0.12);
  border-radius: 6px;
  padding: 1.75rem;
}
.chapter--dark .pillar { background: rgba(250,247,242,0.05); border-color: rgba(250,247,242,0.1); }
.pillar__icon {
  width: 40px; height: 40px;
  background: var(--sand);
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.chapter--dark .pillar__icon { background: rgba(234,223,203,0.15); }
.pillar h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.pillar p { font-size: 0.9rem; max-width: none; }

/* ── Evidence / Stats ── */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.stat-card {
  border-top: 3px solid var(--sand);
  padding-top: 1.5rem;
}
.stat-card__number {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-card__desc { font-size: 0.925rem; color: var(--slate); max-width: none; }
.stat-card__source { font-size: 0.75rem; color: var(--slate-light); margin-top: 0.5rem; }
.stat-card__source a { text-decoration: underline; color: var(--slate-light); }

@media (max-width: 768px) {
  .evidence-grid { grid-template-columns: 1fr; }
}

/* ── Product Cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.product-card {
  background: var(--cream);
  border: 1px solid rgba(15,23,42,0.09);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 8px 30px rgba(15,23,42,0.1); transform: translateY(-2px); }
.product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--stone);
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__body { padding: 1.25rem; }
.product-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.product-card__benefit { font-size: 0.85rem; color: var(--slate); margin-bottom: 0.85rem; max-width: none; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.product-card__price { font-weight: 700; font-size: 1.05rem; }

/* ── Journal Strip ── */
.journal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.article-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 6px 24px rgba(15,23,42,0.09); }
.article-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--stone);
}
.article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-card__image img { transform: scale(1.04); }
.article-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card__title { font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: 0.75rem; flex: 1; }
.article-card__read { font-size: 0.8rem; font-weight: 600; color: var(--slate); letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 900px) {
  .journal-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .journal-strip { grid-template-columns: 1fr; }
}

/* ── FAQ ── */
.faq-list { margin-top: 2.5rem; border-top: 1px solid rgba(15,23,42,0.1); }
.faq-item { border-bottom: 1px solid rgba(15,23,42,0.1); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-q .icon { font-size: 1.25rem; flex-shrink: 0; transition: transform 0.25s; color: var(--slate); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 72ch;
}
.faq-item.open .faq-a { display: block; }

/* ── Section Headings ── */
.section-heading { margin-bottom: 0.75rem; }
.section-sub { font-size: 1.05rem; color: var(--slate); max-width: 55ch; margin-top: 0.75rem; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding-block: 3.5rem 2rem;
}
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(250,247,242,0.6); max-width: 32ch; }
.footer-brand .footer-contact { margin-top: 1.25rem; font-size: 0.85rem; color: rgba(250,247,242,0.75); }
.footer-brand .footer-contact a { color: rgba(250,247,242,0.75); }
.footer-brand .footer-contact a:hover { color: var(--cream); }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,247,242,0.45); margin-bottom: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.875rem; color: rgba(250,247,242,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(250,247,242,0.1); font-size: 0.75rem; color: rgba(250,247,242,0.4); }
.footer-bottom p { max-width: none; color: rgba(250,247,242,0.4); }

@media (max-width: 900px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 500px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

/* ── Popup ── */
.popup-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15,23,42,0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.popup-overlay.active { opacity: 1; pointer-events: all; }
.popup {
  background: var(--cream);
  border-radius: 10px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s;
}
.popup-overlay.active .popup { transform: none; }
.popup__image { aspect-ratio: 16/7; overflow: hidden; }
.popup__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.popup__body { padding: 2rem; }
.popup__gifts { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.popup__gift { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; }
.popup__gift .gift-code { font-weight: 700; font-family: monospace; font-size: 0.85rem; background: var(--sand); padding: 0.15rem 0.5rem; border-radius: 3px; }
.popup h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.popup p.popup__sub { font-size: 0.9rem; color: var(--slate); margin-bottom: 1.5rem; max-width: none; }
.popup__form { display: flex; gap: 0.5rem; }
.popup__form input[type="email"] {
  flex: 1; border: 1.5px solid rgba(15,23,42,0.2); border-radius: var(--r);
  padding: 0.7rem 1rem; font-size: 0.9rem; font-family: inherit;
  background: white; color: var(--navy);
}
.popup__form input:focus { outline: none; border-color: var(--navy); }
.popup__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 32px; height: 32px; background: rgba(15,23,42,0.5); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1; cursor: pointer; border: none;
}
.popup__close:hover { background: rgba(15,23,42,0.75); }
.popup__legal { font-size: 0.72rem; color: var(--slate-light); margin-top: 0.75rem; text-align: center; }

/* ── Breadcrumb / Inner Pages ── */
.breadcrumb { font-size: 0.8rem; color: var(--slate-light); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--slate-light); }
.breadcrumb a:hover { color: var(--navy); }

/* ── Article / GLP-1 Page ── */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding-block: clamp(3rem, 8vh, 5rem);
}
.page-hero .label { color: rgba(250,247,242,0.45); margin-bottom: 0.75rem; }
.page-hero h1 { color: var(--cream); max-width: 20ch; }
.page-hero .breadcrumb a { color: rgba(250,247,242,0.5); }
.page-hero .breadcrumb { color: rgba(250,247,242,0.5); }

.article-content { max-width: 72ch; margin-inline: auto; }
.article-content h1, .article-content h2, .article-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.article-content p { color: var(--slate); margin-bottom: 1rem; max-width: none; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--slate); }
.article-content li { margin-bottom: 0.4rem; }
.article-content a { color: var(--navy); text-decoration: underline; }
.article-content .key-takeaways { background: var(--stone); border-left: 3px solid var(--sand); padding: 1.25rem 1.5rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0; }
.article-content .key-takeaways p { font-weight: 600; color: var(--navy); }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.article-content th { background: var(--navy); color: var(--cream); text-align: left; padding: 0.6rem 0.85rem; }
.article-content td { border-bottom: 1px solid rgba(15,23,42,0.08); padding: 0.6rem 0.85rem; color: var(--slate); }
.article-content tr:nth-child(even) td { background: var(--stone); }
.article-cta-box { background: var(--navy); color: var(--cream); border-radius: 8px; padding: 2rem; margin: 2.5rem 0; }
.article-cta-box h3 { color: var(--cream); margin-bottom: 0.75rem; }
.article-cta-box p { color: rgba(250,247,242,0.75); max-width: none; margin-bottom: 1.25rem; }

/* ── Journal List ── */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

/* ── GLP-1 Guide ── */
.glp-guide-body { padding-block: var(--section-gap); }
.glp-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-bottom: var(--section-gap); }
.glp-intro__image { border-radius: 8px; overflow: hidden; }
.glp-intro__image img { width: 100%; height: 380px; object-fit: cover; }
@media (max-width: 768px) { .glp-intro { grid-template-columns: 1fr; } }

/* ── Products Index ── */
.products-index-header { padding-block: var(--section-gap) 2rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-cream { color: var(--cream); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── Lazy load fade-in ── */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s; }
img.loaded { opacity: 1; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .annbar__track { animation: none; }
}
