/*
Theme Name: The Functional Weightloss
Theme URI: https://thefunctionalweightloss.com
Author: Widgetzmarketing
Author URI: https://widgetzmarketing.com
Description: Custom WordPress theme for The Functional Weightloss — functional medicine, peptide therapy, and metabolic health by Dr. Michael Nguyen, Pharm.D.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: tfw
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0D2B52;
  --navy-mid:  #1A4A7A;
  --navy-lt:   #1E6FA8;
  --teal:      #0E9F8E;
  --teal-lt:   #12C4AF;
  --teal-xlt:  #E0F7F5;
  --bg:        #F4F7FA;
  --white:     #FFFFFF;
  --text:      #1C2B3A;
  --muted:     #5C6F80;
  --border:    #D8E4EE;
  --font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  --r:  10px;
  --r-sm: 6px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container        { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 780px;  margin: 0 auto; padding: 0 40px; }
.centered         { text-align: center; }

/* ===== TYPE SCALE ===== */
h1 {
  font-family: var(--font-sans);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h2.light { color: var(--white); }

h3 {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
h3.light { color: var(--white); }

h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  display: block;
}
.overline.light { color: var(--teal-lt); }

.body-lg {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 640px;
}
.body-lg.centered { max-width: 580px; margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn-primary-hero {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 16px 36px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.btn-primary-hero:hover { background: var(--teal-lt); }

.btn-ghost-hero {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 15px 36px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost-hero:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 36px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--teal-lt); }

.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 36px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.btn-navy:hover { background: var(--navy-mid); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 32px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--navy); }

.btn-teal-lg {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 18px 48px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
  margin-bottom: 20px;
}
.btn-teal-lg:hover { background: var(--teal-lt); }

.btn-nav {
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--teal-lt); }

/* ===== PROMO BAR ===== */
.promo-bar {
  background: var(--navy);
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}
.promo-bar a { color: var(--teal-lt); font-weight: 600; }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(13,43,82,0.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.current-menu-item { color: var(--navy); background: var(--bg); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.nav-login { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.nav-login:hover { color: var(--navy); }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); font-size: 22px; cursor: pointer; padding: 4px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,43,82,0.88) 0%, rgba(13,43,82,0.65) 55%, rgba(14,159,142,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 40px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 20px;
  display: block;
}
.hero-content h1 { margin-bottom: 22px; }
.hero-sub {
  font-size: 19px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}
.hero-trust span::before { content: '✓ '; color: var(--teal-lt); }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--navy); padding: 36px 40px; }
.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat { text-align: center; flex: 1; }
.stat-num { font-size: 44px; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.stat-num span { font-size: 26px; color: var(--teal-lt); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); letter-spacing: 0.03em; }
.stat-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* ===== SECTION BACKGROUNDS ===== */
.section-white { padding: 80px 0; background: var(--white); }
.section-light  { padding: 80px 0; background: var(--bg); }
.section-navy   { padding: 80px 0; background: var(--navy); }
.section-teal   { padding: 80px 0; background: var(--teal-xlt); }

/* ===== PATHS SECTION ===== */
.paths-section { background: var(--bg); padding: 80px 0; }
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }

.path-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.path-card:hover { box-shadow: 0 8px 32px rgba(13,43,82,0.1); border-color: var(--navy-lt); }
.path-card-img { margin: -28px -28px 24px -28px; overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
.path-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.path-icon { font-size: 32px; margin-bottom: 18px; }
.path-card h3 { font-size: 20px; margin-bottom: 10px; }
.path-card p { font-size: 14px; color: var(--muted); line-height: 1.75; flex: 1; margin-bottom: 24px; }
.path-link { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: 0.06em; text-transform: uppercase; }
.path-link:hover { color: var(--teal-lt); }

/* ===== DUAL FORK SECTION ===== */
.fork-section { background: var(--navy); padding: 80px 0; }
.fork-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 40px; }

.fork-card {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease;
}
.fork-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.40), 0 0 0 1px rgba(18,196,175,0.45);
  border-color: rgba(18,196,175,0.4);
  z-index: 2;
}
.fork-card-a { background: rgba(255,255,255,0.04); }
.fork-card-b { background: rgba(14,159,142,0.12); }
.fork-card-c { background: rgba(212,165,92,0.10); }
.fork-card-a:hover { background: rgba(255,255,255,0.09); }
.fork-card-b:hover { background: rgba(14,159,142,0.20); }
.fork-card-c:hover { background: rgba(212,165,92,0.18); }

.fork-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 3px;
  align-self: flex-start;
}
.fork-badge-a { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.fork-badge-b { background: rgba(14,159,142,0.3); color: var(--teal-lt); }
.fork-badge-c { background: rgba(212,165,92,0.24); color: #e3c087; }

.fork-card h3 { font-size: 24px; color: var(--white); margin-bottom: 0; white-space: normal; }
.fork-card .fork-desc { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.75; }

/* Graith advocacy card — left-aligned to match cards A & B, high-contrast text on navy */
.fork-card-c h3 { color: #ffffff; }
.fork-card-c .fork-desc { color: rgba(255,255,255,0.80); }
.fork-card-c .fork-list li { color: rgba(255,255,255,0.75); }
@media (max-width: 980px) { .fork-grid { grid-template-columns: 1fr; } }

.fork-list { display: flex; flex-direction: column; gap: 10px; }
.fork-list li { font-size: 14px; color: rgba(255,255,255,0.6); padding-left: 18px; position: relative; }
.fork-list li::before { content: '→'; position: absolute; left: 0; color: var(--teal-lt); }

.fork-cta { margin-top: auto; }
.fork-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,0.18);
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.fork-btn:hover,
.fork-card:hover .fork-btn {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 0 24px rgba(18,196,175,0.6);
}
.fork-note { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 14px; line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.steps-grid { max-width: 1100px; margin: 0 auto; padding: 48px 40px 0; }
.step-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: flex-start;
  border-top: 1px solid var(--border);
  padding: 48px 0;
  gap: 40px;
}
.step-num { font-size: 64px; font-weight: 700; color: var(--teal); opacity: 0.25; line-height: 1; }
.step-text h3 { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.step-text p { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 560px; }

/* ===== STEP VISUAL (alternating image/text) ===== */
.steps-visual { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.step-visual-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.step-visual-reverse .step-visual-img { order: 2; }
.step-visual-reverse .step-visual-text { order: 1; }
.step-visual-img { border-radius: var(--r); overflow: hidden; }
.step-visual-img img { width: 100%; height: auto; display: block; border-radius: var(--r); }
.step-visual-num {
  display: block;
  font-size: 64px;
  font-weight: 700;
  color: var(--teal-lt);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.step-visual-text h3 { font-size: 24px; color: var(--white); margin-bottom: 14px; }
.step-visual-text p { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.8; }

/* ===== WHY US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 56px;
}
.why-card { background: var(--white); padding: 36px 32px; }
.why-icon { font-size: 26px; margin-bottom: 14px; }
.why-card h4 { font-size: 16px; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ===== DR. NGUYEN SECTION ===== */
.doctor-section { background: var(--navy); padding: 80px 0; }
.doctor-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.doctor-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-text .overline { color: var(--teal-lt); }
.doctor-text h2 { color: var(--white); font-size: clamp(28px, 3.5vw, 40px); }
.doctor-title { font-size: 15px; color: var(--teal-lt); font-weight: 500; margin-bottom: 24px; letter-spacing: 0.02em; }
.doctor-bio { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 28px; }
.credential-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.credential-badge {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  letter-spacing: 0.03em;
}

/* ===== PULL QUOTE ===== */
.pull-quote-section { background: var(--navy); padding: 72px 40px; text-align: center; }
.pull-quote-section blockquote {
  font-size: clamp(20px, 2.5vw, 28px);
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}
.pull-quote-section cite { font-size: 14px; color: rgba(255,255,255,0.45); font-style: normal; letter-spacing: 0.04em; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testimonial-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.stars { color: var(--teal-lt); font-size: 15px; letter-spacing: 2px; }
.testimonial-card p { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.75; flex: 1; }
.t-meta { display: flex; justify-content: space-between; align-items: center; }
.t-author { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 600; }
.t-result { font-size: 12px; font-weight: 700; color: var(--teal-lt); background: rgba(14,159,142,0.15); padding: 3px 10px; border-radius: 20px; }

/* ===== LAB TESTING CTA ===== */
.labs-section { background: var(--white); padding: 80px 0; }
.labs-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.labs-text h2 { color: var(--navy); }
.labs-text p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.lab-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.lab-list li { font-size: 14px; color: var(--text); padding-left: 20px; position: relative; }
.lab-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.labs-visual { background: var(--navy); border-radius: var(--r); padding: 36px 32px; color: var(--white); }
.labs-visual h4 { font-size: 18px; color: var(--white); margin-bottom: 6px; }
.labs-visual p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.coupon-badge { display: inline-block; background: var(--teal); color: var(--white); font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: var(--r-sm); letter-spacing: 0.06em; margin-bottom: 16px; }

/* ===== CTA BAND ===== */
.cta-band { background: var(--teal); padding: 80px 40px; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; color: var(--white); margin-bottom: 16px; line-height: 1.25; letter-spacing: -0.01em; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.82); max-width: 540px; margin: 0 auto 36px; line-height: 1.7; }
.cta-note { font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; margin-top: 4px; display: block; }
.btn-white { display: inline-block; background: var(--white); color: var(--teal); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; padding: 18px 48px; border-radius: var(--r-sm); transition: background 0.2s; margin-bottom: 20px; }
.btn-white:hover { background: rgba(255,255,255,0.9); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 36px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  font-size: 16px; font-weight: 600; color: var(--navy);
  padding: 22px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--teal); font-size: 22px; font-weight: 300; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 22px; font-size: 15px; color: var(--muted); line-height: 1.8; max-width: 640px; }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.blog-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); transition: box-shadow 0.2s; }
.blog-card:hover { box-shadow: 0 8px 32px rgba(13,43,82,0.1); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.blog-card-body h4 { font-size: 17px; color: var(--navy); line-height: 1.4; flex: 1; }
.blog-card-body p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.blog-link { font-size: 13px; font-weight: 700; color: var(--navy); }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding: 72px 40px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 16px; letter-spacing: -0.01em; }
.footer-logo span { color: var(--teal-lt); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.75; margin-bottom: 10px; }
.footer-disclaimer { font-size: 11px !important; }
.footer-social { display: flex; gap: 12px; margin: 6px 0 18px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); transition: background 0.15s, color 0.15s, transform 0.15s; }
.footer-social a:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-lt); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.48); transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 40px; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .paths-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .doctor-inner { grid-template-columns: 1fr 1.4fr; gap: 48px; }
  .labs-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 24px; }
  .hero { min-height: 75vh; }
  .hero-content { padding: 0 24px; }
  .hero-trust { gap: 14px; flex-direction: column; align-items: center; }
  .paths-grid { grid-template-columns: 1fr; }
  .fork-grid { grid-template-columns: 1fr; }
  .steps-grid { padding: 40px 24px 0; }
  .step-block { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .step-num { font-size: 40px; }
  .steps-visual { padding: 0 24px; }
  .step-visual-block { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .step-visual-reverse .step-visual-img { order: 0; }
  .step-visual-reverse .step-visual-text { order: 0; }
  .step-visual-num { font-size: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .doctor-inner { grid-template-columns: 1fr; }
  .doctor-photo { aspect-ratio: 3/2; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .stats-inner { flex-direction: column; gap: 32px; }
  .stat-divider { width: 60px; height: 1px; }
  .section-white, .section-light, .section-navy, .section-teal { padding: 60px 0; }
  .footer-top, .footer-bottom { padding-left: 24px; padding-right: 24px; }
}

/* ===== NAV COLLAPSE — hamburger before the 7-link nav can overflow ===== */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 0 24px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.is-open li { width: 100%; }
  .nav-links.is-open a { padding: 14px 28px; font-size: 16px; display: block; color: var(--navy); }
  .nav-toggle { display: block; }
  .nav-actions { display: none; }
  .nav-inner { padding: 0 24px; gap: 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ===== NEWSLETTER SIGNUP BAND ===== */
.nl-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 0;
  border-top: 3px solid var(--teal);
}
.nl-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.nl-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 14px;
}
.nl-title {
  color: var(--white);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.nl-sub {
  color: #B7C7D8;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 520px;
}
.nl-form { width: 100%; }
.nl-row { display: flex; gap: 12px; margin-bottom: 12px; }
.nl-row input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
}
.nl-row input::placeholder { color: #8CA2B8; }
.nl-row input:focus {
  outline: none;
  border-color: var(--teal-lt);
  background: rgba(255,255,255,0.10);
}
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-btn {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.nl-btn:hover { background: var(--teal-lt); }
.nl-btn:active { transform: translateY(1px); }
.nl-btn:disabled { opacity: 0.7; cursor: default; }
.nl-fine { margin: 12px 0 0; font-size: 13px; color: #8CA2B8; line-height: 1.5; }
.nl-fine.nl-ok  { color: var(--teal-lt); font-weight: 600; font-size: 15px; }
.nl-fine.nl-err { color: #FF9B9B; font-weight: 600; }

/* Compact variant — top-of-page, light band, inline email + button */
.nl-band.nl-compact {
  background: var(--teal-xlt);
  border-top: none;
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.nl-compact .nl-eyebrow { color: var(--teal); }
.nl-compact .nl-title {
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 6px;
}
.nl-compact .nl-sub { color: var(--muted); font-size: 15px; }
.nl-compact .nl-row { margin-bottom: 8px; }
.nl-compact .nl-row input {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}
.nl-compact .nl-row input::placeholder { color: #9AABBB; }
.nl-compact .nl-row input:focus { border-color: var(--teal); background: var(--white); }
.nl-compact .nl-btn { width: auto; white-space: nowrap; padding: 15px 26px; }
.nl-compact .nl-fine { color: var(--muted); }
.nl-compact .nl-fine.nl-ok { color: var(--teal); }

@media (max-width: 860px) {
  .nl-inner { grid-template-columns: 1fr; gap: 28px; }
  .nl-band { padding: 52px 0; }
}
@media (max-width: 560px) {
  .nl-inner { padding: 0 24px; }
  .nl-row { flex-direction: column; }
  .nl-compact .nl-btn { width: 100%; }
}

/* ===== WOOCOMMERCE ===== */
.woo-page { padding: 0 0 80px; }
.woo-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 0 56px;
  margin-bottom: 48px;
}
.woo-hero-title { font-size: clamp(30px, 4vw, 48px); color: var(--white); }
.woo-hero-sub { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 620px; margin-top: 14px; }
.woo-wrap { padding-top: 8px; }

/* Nav cart */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  padding: 6px;
}
.nav-cart:hover { color: var(--teal); }
.nav-cart-count {
  position: absolute;
  top: -4px; right: -6px;
  background: var(--teal);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 999px;
}

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top: 3px solid var(--teal);
  background: var(--teal-xlt);
  color: var(--text);
  padding: 16px 20px 16px 48px;
  border-radius: var(--r-sm);
  margin-bottom: 28px;
  list-style: none;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--teal); }
.woocommerce-error { border-top-color: #C0392B; background: #FDEDEB; }
.woocommerce-error::before { color: #C0392B; }

/* Product grid */
.woocommerce ul.products li.product {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: left;
  padding-bottom: 20px;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 12px 32px rgba(13, 43, 82, 0.10);
  transform: translateY(-3px);
}
.woocommerce ul.products li.product img { width: 100%; margin: 0 0 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  padding: 0 20px;
  line-height: 1.4;
}
.woocommerce ul.products li.product .price {
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
  padding: 0 20px;
  display: block;
  margin-top: 6px;
}
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; opacity: 0.7; }
.woocommerce ul.products li.product .button {
  margin: 14px 20px 0;
}
.woocommerce span.onsale {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  min-height: 0; min-width: 0;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  top: 12px; left: 12px;
}

/* Buttons — match .btn-primary */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 26px;
  border: none;
  border-radius: var(--r-sm);
  transition: background 0.2s;
  cursor: pointer;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-components-button:hover {
  background: var(--teal-lt);
  color: var(--white);
}
.woocommerce .button.disabled, .woocommerce .button:disabled { background: var(--muted); }

/* Single product */
.woocommerce div.product .product_title {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy);
  font-weight: 700;
}
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--teal);
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 18px;
}
.woocommerce div.product div.images img { border-radius: var(--r); border: 1px solid var(--border); }
.woocommerce div.product form.cart { margin: 24px 0; }
.woocommerce div.product form.cart div.quantity .qty {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 8px;
  height: auto;
  font-family: var(--font-sans);
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin-bottom: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--white); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--navy); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs .panel { padding-top: 28px; }

/* Cart + checkout tables */
.woocommerce table.shop_table {
  border: 1px solid var(--border);
  border-radius: var(--r);
  border-collapse: separate;
}
.woocommerce table.shop_table th {
  background: var(--bg);
  color: var(--navy);
  font-weight: 600;
}
.woocommerce table.shop_table td { border-top: 1px solid var(--border); }
.woocommerce-cart table.cart td.actions .coupon .input-text {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  width: 160px;
}
.woocommerce .cart_totals h2, .woocommerce-checkout h3 { font-size: 21px; }

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  height: auto;
}
.woocommerce form .form-row label { color: var(--navy); font-weight: 500; font-size: 14px; }

/* Account */
.woocommerce-MyAccount-navigation ul { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--border); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 13px 18px; color: var(--navy); font-weight: 500; }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { background: var(--teal-xlt); color: var(--teal); }

/* Breadcrumb + result bar */
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--teal); }
.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 14px; }
.woocommerce .woocommerce-ordering select {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-family: var(--font-sans);
}

/* Star ratings */
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--teal); }

@media (max-width: 768px) {
  .woo-hero { padding: 44px 0 38px; margin-bottom: 32px; }
}

/* === MOBILE FIXES — inline-grid pages (GLP-1 #16, About #12) === */
@media (max-width: 768px) {
  .page-id-16 [style*="grid-template-columns:1fr 1fr"],
  .page-id-12 [style*="grid-template-columns:1fr 1.6fr"],
  .page-id-12 [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .page-id-12 body, .page-id-12 { overflow-x: hidden; }
  .page-id-16 .glp-cta { width: 100%; text-align: center; box-sizing: border-box; }
}
