/* ============================================
   IF & Hypoglycemia Guide — Main Styles
   ============================================ */

:root {
  --sage: #4a7c59;
  --sage-light: #e8f0eb;
  --sage-dark: #2d5c3c;
  --amber: #c9793a;
  --amber-light: #fdf3eb;
  --red: #c0392b;
  --red-light: #fdecea;
  --charcoal: #1e2227;
  --text: #2c3135;
  --text-muted: #6b7580;
  --border: #e0e4e8;
  --bg: #fafaf8;
  --white: #ffffff;
  --section-alt: #f4f6f3;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-dark); }

/* ---- CONTAINER ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  background: var(--sage);
  color: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-logo-text { font-size: 15px; color: var(--charcoal); }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--sage-light); }
.nav-cta {
  background: var(--sage) !important;
  color: white !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--sage-dark) !important; }
.nav-cta.active { background: var(--sage-dark) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
}
.btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: white; }
.btn-secondary {
  background: white;
  color: var(--sage);
  border-color: var(--sage);
}
.btn-secondary:hover { background: var(--sage-light); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: white; color: var(--text); }
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 120px 24px 80px;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--sage); }
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* ---- SECTIONS ---- */
.section { padding: 96px 0; }
.section-alt { background: var(--section-alt); }

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.eyebrow-danger { color: var(--red); }

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 48px;
}

/* ---- TYPE CARDS ---- */
.type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.type-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.type-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.type-card-fasting { background: var(--amber-light); }
.type-card-reactive { background: var(--sage-light); }
.type-card-header h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: var(--charcoal);
}
.type-card > p {
  padding: 20px 24px 8px;
  color: var(--text-muted);
}
.type-card > ul {
  padding: 0 24px 24px;
  list-style: none;
}
.type-card > ul li {
  padding: 4px 0;
  color: var(--text);
  font-size: 14px;
}
.type-card > ul li::before {
  content: '• ';
  color: var(--sage);
  font-weight: 700;
}

.timeline-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 320px;
}
.timeline-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* ---- STRATEGIES ---- */
.strategy-list { margin-bottom: 48px; }
.strategy-item {
  display: flex;
  gap: 16px;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.strategy-item:first-child { border-top: 1px solid var(--border); }
.strategy-icon {
  font-size: 24px;
  padding: 20px 0 20px;
  flex-shrink: 0;
  width: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.strategy-body { flex: 1; }
.strategy-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  font-family: inherit;
  text-align: left;
  gap: 16px;
}
.strategy-plus {
  font-size: 22px;
  color: var(--sage);
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.strategy-toggle[aria-expanded="true"] .strategy-plus { transform: rotate(45deg); }
.strategy-detail {
  display: none;
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.strategy-detail.open { display: block; }

.strategies-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.strategies-imgs img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---- TABLE ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.practices-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 15px;
}
.practices-table th {
  background: var(--sage);
  color: white;
  padding: 14px 20px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.practices-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.practices-table tr:last-child td { border-bottom: none; }
.practices-table tr:hover td { background: var(--sage-light); }

/* ---- WARNING ---- */
.section-warning { background: #fff9f8; }
.warning-header { margin-bottom: 48px; }
.warning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.warning-card {
  background: white;
  border: 1px solid #fbd0cb;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.warning-card-severe {
  grid-column: 1 / -1;
  background: var(--red-light);
  border-color: var(--red);
}
.warning-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.warning-symptom {
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.warning-action { font-size: 14px; color: var(--text-muted); }
.warning-seek { color: var(--red) !important; font-weight: 500 !important; }

.rule-1515 {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.rule-1515 h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.rule-1515 p { color: var(--text-muted); }
.rule-1515 strong { color: var(--charcoal); }

.warning-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 300px;
}
.warning-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  font-family: inherit;
  text-align: left;
}
.faq-plus {
  font-size: 22px;
  color: var(--sage);
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"] .faq-plus { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-a.open { display: block; }
.faq-a em { color: var(--sage); font-style: italic; }

/* ---- DISCLAIMER ---- */
.disclaimer {
  background: #f0f4f2;
  border-top: 2px solid var(--sage);
  padding: 28px 0;
}
.disclaimer p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 860px;
}
.disclaimer strong { color: var(--text); }

/* ---- CTA ---- */
.cta-section { background: var(--charcoal); }
.cta-inner { text-align: center; }
.cta-section h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 3vw, 36px);
  color: white;
  margin-bottom: 16px;
}
.cta-section p { color: rgba(255,255,255,0.65); margin-bottom: 36px; font-size: 17px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-ghost { border-color: rgba(255,255,255,0.3); color: white; }
.cta-section .btn-ghost:hover { background: rgba(255,255,255,0.08); color: white; }

/* ---- FOOTER ---- */
.footer {
  background: #161a1e;
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer .nav-logo-mark { background: var(--sage-dark); }
.footer .nav-logo-text { color: rgba(255,255,255,0.8); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.45); margin-top: 12px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-col ul a:hover { color: white; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.45); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 120px 0 64px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--charcoal);
  margin-bottom: 16px;
}
.page-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
}

/* ============================================
   RESPONSIVE — ONE AUTHORITATIVE BLOCK
   ============================================ */

/* Desktop: show nav links, hide hamburger */
.nav-hamburger { display: none; }
.nav-links { display: flex; }
.nav-links a { font-size: 13px; padding: 5px 8px; white-space: nowrap; }
.nav-inner { gap: 12px; }

/* Mobile: hide nav links, show hamburger */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    z-index: 99;
    box-shadow: var(--shadow);
  }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
  }
  .nav-logo-text { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 88px;
    gap: 32px;
    min-height: auto;
  }
  .hero-visual { order: -1; }
  .type-cards { grid-template-columns: 1fr; }
  .strategies-imgs { grid-template-columns: 1fr; }
  .warning-grid { grid-template-columns: 1fr; }
  .warning-card-severe { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .protocol-ratio { font-size: 24px; min-width: 70px; }
}

/* ---- MOBILE HG BANNER FIX ---- */
@media (max-width: 960px) {
  
  
}

/* Push page content below nav + banner bar */


/* HG banner sits below site banner bar */

@media (max-width: 960px) {
  .site-banner-bar {
  position: relative;
  background: var(--sage);
  color: white;
  text-align: center;
  padding: 20px 24px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
  .hero { padding-top: 140px; }
  .page-header { padding-top: 140px; }
  
  
  
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.lang-selector {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--sage); color: var(--sage); }
.lang-icon { font-size: 14px; }
.lang-chevron { font-size: 9px; opacity: 0.6; }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  min-width: 240px;
  padding: 6px;
  display: none;
  grid-template-columns: 1fr 1fr;
  max-height: 360px;
  overflow-y: auto;
}
.lang-dropdown.open { display: grid !important; }
.lang-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  transition: background 0.1s;
}
.lang-option:hover { background: var(--sage-light); color: var(--sage-dark); }
.lang-option.active { background: var(--sage-light); color: var(--sage); font-weight: 500; }

/* ============================================
   PÜTZU ATTRIBUTION BAR
   ============================================ */
.putzu-bar {
  position: relative;
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 16px 24px;
  font-size: 26px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.putzu-link {
  color: white;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.15s;
}
.putzu-link:hover { color: white; border-bottom-color: white; }
.putzu-cta {
  color: var(--sage-light);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.putzu-cta:hover { color: white; }

/* Adjust hero padding for new bar */


@media (max-width: 960px) {
  .hero { padding-top: 175px; }
  .page-header { padding-top: 175px; }
  .putzu-bar {
  position: relative;
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 16px 24px;
  font-size: 26px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
}

