/* ============================================================
   Eat Healthy Fight Diabetes (EHFD) — site stylesheet
   Light theme: white sections alternating with light green tint
   ============================================================ */

:root {
  --green-900: #0b3d26;
  --green-800: #0e5233;
  --green-700: #0e7c4a;   /* brand primary (from logo) */
  --green-600: #15935c;
  --green-500: #2faf75;
  --green-100: #e3f4ec;
  --tint: #f3faf6;        /* light tinted section background */
  --tint-2: #eaf6f0;
  --ink: #17251d;
  --ink-soft: #4b5d52;
  --line: #dbe9e1;
  --white: #ffffff;
  --amber: #e8a13c;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 61, 38, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 61, 38, 0.16);
  --max: 1140px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--green-900);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-tint-2 { background: var(--tint-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.section-lead { font-size: 19px; color: var(--ink-soft); max-width: 720px; margin-bottom: 40px; }
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 16px;
  padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer; transition: all .25s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--green-700); color: #fff !important; box-shadow: 0 8px 20px rgba(14,124,74,.28); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(14,124,74,.34); }
.btn-outline { background: transparent; color: var(--green-700) !important; border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-100); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--green-800) !important; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-amber { background: var(--amber); color: var(--green-900) !important; }
.btn-amber:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11,61,38,.07); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 19px; color: var(--green-900); line-height: 1.1; }
.brand-text small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a.nav-link {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--ink); text-decoration: none !important; position: relative; padding: 6px 0;
}
.main-nav a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--green-600); border-radius: 3px; transition: width .25s ease;
}
.main-nav a.nav-link:hover::after, .main-nav a.nav-link.active::after { width: 100%; }
.main-nav a.nav-link.active { color: var(--green-700); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--green-900); border-radius: 3px; margin: 5px 0; transition: .3s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 12px 24px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 12px 0; border-bottom: 1px solid var(--tint-2); }
  .main-nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, var(--green-100), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, #eaf6ee, transparent 55%),
    var(--tint);
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 14px 0 20px; }
.hero h1 .accent { color: var(--green-600); }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-note { font-size: 14px; color: var(--ink-soft); }
.hero-media { position: relative; }
.hero-media .logo-badge {
  position: absolute; right: -14px; bottom: -14px;
  width: 108px; height: 108px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
.hero-media .logo-badge img { border-radius: 50%; }
.hero-media .img-frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 520px; }
}

/* ---------- Stats band ---------- */
.stats-band { padding: 56px 0; background: var(--green-800); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .stat-number { font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 4.6vw, 56px); line-height: 1; color: #7fe0b2; }
.stat .stat-label { margin-top: 10px; font-size: 15px; color: #d9efe4; }
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 4px 16px rgba(11,61,38,.05);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Image placeholders ---------- */
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.placeholder-note { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-top: 10px; }

/* ---------- Video / embeds ---------- */
.embed-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #0b3d26;
}
.embed-frame iframe { display: block; width: 100%; border: 0; }
.embed-16x9 { aspect-ratio: 16 / 9; }
.embed-16x9 iframe { position: absolute; inset: 0; height: 100%; }

/* ---------- Lead magnet / form ---------- */
.lead-magnet {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border-radius: 24px; color: #fff; padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.lead-magnet h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.lead-magnet p { color: #d9efe4; margin-bottom: 20px; }
.lead-magnet .checklist { list-style: none; margin-bottom: 8px; }
.lead-magnet .checklist li { padding: 7px 0 7px 34px; position: relative; color: #eafff4; }
.lead-magnet .checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #9df0c5;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.form-card { background: #fff; border-radius: 18px; padding: 32px; color: var(--ink); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card > p { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
@media (max-width: 900px) { .lead-magnet { grid-template-columns: 1fr; padding: 36px 28px; } }

/* ---------- List with ticks ---------- */
.tick-list { list-style: none; }
.tick-list li { padding: 9px 0 9px 38px; position: relative; }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

/* ---------- Quotes / testimonials ---------- */
.quote-card { position: relative; }
.quote-card .stars { color: var(--amber); letter-spacing: 3px; margin-bottom: 14px; }
.quote-card blockquote { font-size: 16.5px; color: var(--ink); margin-bottom: 18px; font-style: italic; }
.quote-card .who { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--green-800); }
.quote-card .who small { display: block; font-weight: 500; color: var(--ink-soft); }

/* ---------- Comparison table ---------- */
.compare { border-collapse: separate; border-spacing: 0; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.compare th, .compare td { padding: 16px 20px; text-align: left; font-size: 15.5px; }
.compare thead th { background: var(--green-800); color: #fff; font-family: var(--font-head); font-size: 15px; }
.compare tbody tr:nth-child(even) { background: var(--tint); }
.compare td:first-child { font-weight: 600; color: var(--green-900); width: 30%; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: var(--green-100); border-radius: 3px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -31px; top: 5px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--green-600); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--green-100);
}
.timeline-item h3 { font-size: 19px; margin-bottom: 6px; }
.timeline-item p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-900); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: #cfe8da; max-width: 640px; margin: 0 auto 30px; font-size: 18px; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--green-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--green-600); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--tint); padding: 72px 0 60px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 14px 0 16px; }
.page-hero p { font-size: 19px; color: var(--ink-soft); max-width: 720px; }

/* ---------- Source footnotes ---------- */
.source-note { font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
.source-note a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #bcd8c9; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 3px; }
.footer-brand span { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 17px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #bcd8c9; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; color: #9dc3b1; }
.footer-bottom .copy { color: #cfe8da; }

/* ---------- Medical disclaimer strip ---------- */
.disclaimer {
  background: #fff8ec; border: 1px solid #f0dfb8; color: #6b5416;
  border-radius: 12px; padding: 14px 20px; font-size: 13.5px; margin-top: 36px;
}

/* ---------- Scroll reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
