@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

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

:root {
  --primary: #34495E;
  --accent-green: #2ECC71;
  --accent-orange: #F39C12;
  --accent-grey: #BDC3C7;
  --white: #FFFFFF;
  --light-bg: #F4F6F7;
  --mid-grey: #7F8C8D;
  --dark-text: #2C3E50;
  --border-color: #DDE1E3;
  --shadow: 0 2px 12px rgba(52,73,94,0.09);
  --shadow-hover: 0 6px 24px rgba(52,73,94,0.16);
  --radius: 4px;
  --max-w: 1440px;
  --content-w: 1120px;
}

html { font-size: 16px; scroll-behavior: smooth; background: var(--light-bg); }
body { font-family: 'Open Sans', sans-serif; color: var(--dark-text); line-height: 1.7; background: var(--light-bg); }

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; color: var(--primary); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1.1rem; color: var(--dark-text); font-size: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--accent-green); }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; line-height: 1.6; }

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

.container { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(52,73,94,0.18);
  height: 64px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.logo-link {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 1.45rem; color: var(--white); letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none;
}
.logo-link:hover { color: var(--accent-green); }
.logo-link span { color: var(--accent-green); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: 'Open Sans', sans-serif; font-weight: 500;
  font-size: 0.88rem; color: var(--accent-grey); padding: 8px 13px;
  border-radius: var(--radius); transition: color 0.22s, background 0.22s;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-green); background: rgba(46,204,113,0.08); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; border-radius: 2px; }

.mobile-nav { display: none; background: var(--primary); padding: 12px 24px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a { display: block; color: var(--accent-grey); font-size: 0.9rem; font-weight: 500; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-nav a:hover { color: var(--accent-green); }
.mobile-nav.open { display: block; }

/* ===== PAGE OFFSET ===== */
.page-body { padding-top: 64px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--accent-grey); }
.section-muted { background: #EBF0F2; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 540px; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--primary);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; opacity: 0.42; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(44,62,80,0.92) 30%, rgba(44,62,80,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 64px 24px 56px; max-width: var(--content-w); margin: 0 auto; width: 100%; }
.hero-content h1 { color: var(--white); max-width: 700px; margin-bottom: 20px; }
.hero-content p { color: var(--accent-grey); font-size: 1.08rem; max-width: 600px; margin-bottom: 0; }
.hero-tag { display: inline-block; background: var(--accent-green); color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 2px; margin-bottom: 18px; font-family: 'Montserrat', sans-serif; }

/* ===== INTRO BLOCK ===== */
.intro-block { background: var(--white); border-left: 4px solid var(--accent-green); padding: 40px 48px; border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-block h2 { margin-bottom: 16px; }

/* ===== CARDS GRID ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-green); }
.card-img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: var(--mid-grey); }
.card-tag { font-size: 0.73rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-orange); font-family: 'Montserrat', sans-serif; margin-bottom: 10px; display: block; }

/* ===== TWO COL ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.two-col-text h2 { margin-bottom: 18px; }
.two-col-text p { color: var(--mid-grey); }

/* ===== SECTION LABEL ===== */
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-green); font-family: 'Montserrat', sans-serif; margin-bottom: 12px; display: block; }
.section-divider { width: 48px; height: 3px; background: var(--accent-green); margin: 16px 0 24px; border-radius: 2px; }

/* ===== MYTH / ACCORDION ===== */
.myth-block { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; box-shadow: var(--shadow); }
.myth-block h4 { color: var(--primary); margin-bottom: 8px; }
.myth-block p { font-size: 0.94rem; color: var(--mid-grey); margin: 0; }
.myth-block .myth-false { color: var(--accent-orange); font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-family: 'Montserrat', sans-serif; margin-bottom: 6px; display: block; }

/* ===== TIMELINE ===== */
.timeline { display: flex; gap: 0; position: relative; overflow-x: auto; padding-bottom: 8px; }
.timeline::before { content: ''; position: absolute; top: 36px; left: 0; right: 0; height: 2px; background: var(--border-color); z-index: 0; }
.timeline-item { flex: 1; min-width: 180px; padding: 0 16px; position: relative; z-index: 1; }
.timeline-dot { width: 14px; height: 14px; background: var(--accent-green); border-radius: 50%; margin: 29px auto 16px; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--accent-green); }
.timeline-era { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.8rem; color: var(--accent-orange); text-align: center; margin-bottom: 6px; letter-spacing: 1px; }
.timeline-text { font-size: 0.84rem; color: var(--mid-grey); text-align: center; line-height: 1.5; }

/* ===== FEATURED ARTICLES ===== */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.featured-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.25s; }
.featured-card:hover { box-shadow: var(--shadow-hover); }
.featured-card-img { width: 100%; height: 200px; object-fit: cover; }
.featured-card-body { padding: 24px; }
.featured-card-body h3 { margin-bottom: 10px; }
.featured-card-body p { font-size: 0.92rem; color: var(--mid-grey); margin-bottom: 16px; }
.link-accent { color: var(--accent-green); font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.link-accent:hover { border-bottom-color: var(--accent-green); color: var(--accent-green); }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); padding: 22px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem; color: var(--primary); margin-bottom: 10px; }
.faq-a { font-size: 0.94rem; color: var(--mid-grey); }

/* ===== CONTACT PREVIEW ===== */
.contact-preview { background: var(--primary); color: var(--white); padding: 56px 48px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-preview h2 { color: var(--white); margin-bottom: 12px; }
.contact-preview p { color: var(--accent-grey); margin-bottom: 20px; }
.contact-detail { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.93rem; color: var(--accent-grey); }

/* ===== CTA BUTTON ===== */
.btn {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.5px; padding: 14px 32px;
  background: var(--primary); color: var(--white); border-radius: var(--radius);
  border: 2px solid var(--primary); transition: background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer; text-align: center;
}
.btn:hover { background: transparent; color: var(--accent-green); border-color: var(--accent-green); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--accent-green); border-color: var(--accent-green); color: var(--white); }
.btn-green { background: var(--accent-green); border-color: var(--accent-green); color: var(--white); }
.btn-green:hover { background: transparent; border-color: var(--accent-green); color: var(--accent-green); }

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative; min-height: 300px; display: flex; align-items: center;
  overflow: hidden; background: var(--primary);
}
.cta-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; z-index: 0; border-radius: 0; }
.cta-overlay { position: absolute; inset: 0; background: rgba(44,62,80,0.75); z-index: 1; }
.cta-content { position: relative; z-index: 2; text-align: center; width: 100%; padding: 64px 24px; }
.cta-content h2 { color: var(--white); margin-bottom: 12px; }
.cta-content p { color: var(--accent-grey); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===== BLOG GRID ===== */
.blog-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; background: var(--primary); overflow: hidden; }
.blog-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; z-index: 0; border-radius: 0; }
.blog-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(44,62,80,0.88) 40%, rgba(44,62,80,0.25) 100%); z-index: 1; }
.blog-hero-content { position: relative; z-index: 2; padding: 48px 24px 40px; max-width: var(--content-w); margin: 0 auto; width: 100%; }
.blog-hero-content h1 { color: var(--white); max-width: 680px; }

.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.25s, border-color 0.25s; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-green); }
.blog-card-img { width: 100%; height: 190px; object-fit: cover; }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h3 { margin-bottom: 10px; font-size: 1.05rem; }
.blog-card-body p { font-size: 0.9rem; color: var(--mid-grey); flex: 1; margin-bottom: 16px; }
.blog-card-meta { font-size: 0.78rem; color: var(--accent-orange); font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 6px; }

/* ===== ARTICLE PAGE ===== */
.article-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; background: var(--primary); overflow: hidden; }
.article-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; z-index: 0; border-radius: 0; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(44,62,80,0.9) 40%, rgba(44,62,80,0.3) 100%); z-index: 1; }
.article-hero-content { position: relative; z-index: 2; padding: 56px 24px 48px; max-width: var(--content-w); margin: 0 auto; width: 100%; }
.article-hero-content h1 { color: var(--white); max-width: 800px; margin-bottom: 16px; }
.article-meta { font-size: 0.85rem; color: var(--accent-grey); display: flex; gap: 20px; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 6px; }

.article-body { max-width: 820px; }
.article-body h2 { margin: 40px 0 16px; padding-top: 8px; border-top: 2px solid var(--border-color); }
.article-body h3 { margin: 28px 0 12px; color: var(--primary); }
.article-body p { color: #3d4f5c; margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin-bottom: 1.1rem; }
.article-body li { color: #3d4f5c; }

.article-sidebar { position: sticky; top: 80px; align-self: start; }
.glossary-rail { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.glossary-rail h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-green); font-family: 'Montserrat', sans-serif; margin-bottom: 16px; }
.glossary-term { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-color); }
.glossary-term:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.glossary-term dt { font-weight: 600; font-size: 0.88rem; color: var(--primary); margin-bottom: 4px; }
.glossary-term dd { font-size: 0.82rem; color: var(--mid-grey); margin: 0; line-height: 1.5; }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.article-layout.no-sidebar { grid-template-columns: 1fr; }
.article-layout.no-sidebar .article-body { max-width: 860px; margin: 0 auto; }

/* ===== FACTOR MATRIX TABLE ===== */
.factor-matrix { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.92rem; }
.factor-matrix th { background: var(--primary); color: var(--white); padding: 12px 16px; text-align: left; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.83rem; letter-spacing: 0.5px; }
.factor-matrix td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.factor-matrix tr:nth-child(even) td { background: var(--light-bg); }
.factor-matrix tr:hover td { background: #EAF7F0; }

/* ===== COMPARISON PANELS ===== */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.compare-panel { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.compare-panel h4 { color: var(--accent-orange); border-bottom: 2px solid var(--accent-orange); padding-bottom: 10px; margin-bottom: 16px; font-size: 1rem; }
.compare-panel ul { padding-left: 1.2rem; }
.compare-panel li { font-size: 0.91rem; color: var(--mid-grey); margin-bottom: 8px; }

/* ===== MUSEUM / ARTIFACT BLOCKS ===== */
.artifact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin: 32px 0; }
.artifact-block { border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.artifact-img { width: 100%; height: 200px; object-fit: cover; filter: sepia(20%) contrast(1.05); }
.artifact-caption { padding: 20px; }
.artifact-era { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-orange); font-family: 'Montserrat', sans-serif; margin-bottom: 6px; display: block; }
.artifact-caption h4 { margin-bottom: 8px; font-size: 1rem; }
.artifact-caption p { font-size: 0.88rem; color: var(--mid-grey); margin: 0; }

/* ===== SLEEP DIAGRAM ===== */
.sleep-diagram { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); margin: 32px 0; }
.sleep-stages { display: flex; gap: 0; margin-top: 24px; }
.sleep-stage { flex: 1; text-align: center; padding: 16px 8px; border-right: 1px solid var(--border-color); }
.sleep-stage:last-child { border-right: none; }
.stage-bar { height: 8px; border-radius: 4px; margin: 0 auto 10px; }
.stage-n1 .stage-bar { width: 60%; background: #BDC3C7; }
.stage-n2 .stage-bar { width: 80%; background: var(--accent-orange); }
.stage-n3 .stage-bar { width: 100%; background: var(--primary); }
.stage-rem .stage-bar { width: 75%; background: var(--accent-green); }
.stage-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.78rem; color: var(--primary); margin-bottom: 6px; }
.stage-desc { font-size: 0.78rem; color: var(--mid-grey); line-height: 1.45; }

/* ===== PANEL SYSTEM (SLEEP PAGE) ===== */
.info-panel { background: var(--white); border-left: 4px solid var(--accent-green); padding: 24px 28px; margin-bottom: 24px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.info-panel h3 { margin-bottom: 10px; }
.info-panel.orange { border-left-color: var(--accent-orange); }
.info-panel.grey { border-left-color: var(--accent-grey); }

/* ===== MICRONUTRIENT TYPES ===== */
.nutrient-types { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.nutrient-type-card { background: var(--light-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 22px; }
.nutrient-type-card h4 { color: var(--primary); margin-bottom: 8px; font-size: 0.95rem; }
.nutrient-type-card p { font-size: 0.88rem; color: var(--mid-grey); margin: 0; }

/* ===== CONTACT PAGE ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-details h3 { margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon { width: 40px; height: 40px; background: var(--light-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border-color); }
.contact-icon svg { width: 18px; height: 18px; stroke: var(--accent-green); fill: none; }
.contact-item-text strong { font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--mid-grey); display: block; margin-bottom: 3px; }
.contact-item-text span { font-size: 0.93rem; color: var(--dark-text); }
.contact-hours { background: var(--light-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; }
.contact-hours h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--mid-grey); margin-bottom: 10px; font-family: 'Montserrat', sans-serif; }
.contact-hours p { font-size: 0.9rem; margin-bottom: 4px; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-form-wrap h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--mid-grey); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem; color: var(--dark-text); background: var(--light-bg);
  border: 1px solid var(--border-color); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-green); box-shadow: 0 0 0 3px rgba(46,204,113,0.12); }
.form-group textarea { min-height: 130px; }

/* ===== ABOUT PAGE ===== */
.about-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; background: var(--primary); overflow: hidden; }
.about-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; z-index: 0; border-radius: 0; }
.about-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(44,62,80,0.88) 40%, rgba(44,62,80,0.3) 100%); z-index: 1; }
.about-hero-content { position: relative; z-index: 2; padding: 56px 24px 48px; max-width: var(--content-w); margin: 0 auto; width: 100%; }
.about-hero-content h1 { color: var(--white); max-width: 700px; }

/* ===== LEGAL PAGES ===== */
.legal-header { background: var(--primary); padding: 56px 0 40px; }
.legal-header h1 { color: var(--white); }
.legal-header p { color: var(--accent-grey); margin-top: 8px; font-size: 0.9rem; }
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { margin: 40px 0 14px; padding-top: 8px; border-top: 2px solid var(--border-color); }
.legal-body p { color: #3d4f5c; margin-bottom: 1rem; }
.legal-body ul { margin-bottom: 1rem; }
.legal-body li { color: #3d4f5c; font-size: 0.96rem; }

/* ===== THANK YOU PAGE ===== */
.thankyou-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; background: var(--white); text-align: center; padding: 80px 24px; }
.thankyou-box { max-width: 520px; }
.thankyou-icon { width: 64px; height: 64px; background: rgba(46,204,113,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.thankyou-icon svg { width: 30px; height: 30px; stroke: var(--accent-green); fill: none; }
.thankyou-box h1 { margin-bottom: 14px; font-size: 1.8rem; }
.thankyou-box p { color: var(--mid-grey); margin-bottom: 28px; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs { padding: 12px 0; font-size: 0.82rem; color: var(--mid-grey); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumbs a { color: var(--accent-green); }
.breadcrumbs span { color: var(--accent-grey); }

/* ===== STAT STRIP ===== */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--primary); }
.stat-item { padding: 32px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--accent-green); display: block; }
.stat-label { font-size: 0.82rem; color: var(--accent-grey); margin-top: 4px; line-height: 1.4; }

/* ===== FOOTER ===== */
.site-footer { background: #1E2B37; color: var(--accent-grey); padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo-link { font-size: 1.3rem; color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; max-width: 300px; }
.footer-col h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--accent-grey); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent-green); }
.footer-contact-item { font-size: 0.88rem; margin-bottom: 8px; line-height: 1.5; }
.footer-contact-item strong { color: var(--white); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.footer-hours { margin-top: 16px; }
.footer-hours p { font-size: 0.85rem; margin-bottom: 4px; }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: var(--mid-grey); }
.footer-editorial-note { font-size: 0.8rem; color: var(--accent-green); font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: 0.3px; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1E2B37; border-top: 2px solid var(--accent-green);
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; transform: translateY(100%);
  transition: transform 0.35s ease; box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.87rem; color: var(--accent-grey); margin: 0; max-width: 700px; }
.cookie-banner p a { color: var(--accent-green); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.82rem; padding: 9px 20px; border-radius: var(--radius); cursor: pointer; border: none; transition: background 0.2s, color 0.2s; letter-spacing: 0.3px; }
.cookie-btn-accept { background: var(--accent-green); color: var(--white); }
.cookie-btn-accept:hover { background: #27ae60; }
.cookie-btn-decline { background: transparent; color: var(--accent-grey); border: 1px solid rgba(189,195,199,0.4); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.06); color: var(--white); }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box { background: #EAF7F0; border: 1px solid rgba(46,204,113,0.3); border-left: 4px solid var(--accent-green); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 24px 0; }
.highlight-box p { color: #2d6a4f; margin: 0; font-size: 0.94rem; }

/* ===== 404 ===== */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.error-page h1 { font-size: 6rem; color: var(--accent-green); margin-bottom: 12px; }
.error-page h2 { color: var(--primary); margin-bottom: 16px; }
.error-page p { color: var(--mid-grey); margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-muted { color: var(--mid-grey); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.mb-0 { margin-bottom: 0; }
.accent { color: var(--accent-green); }
.accent-orange { color: var(--accent-orange); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .blog-cards { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse { direction: ltr; }
  .two-col-img { height: 260px; }
  .contact-layout { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .artifact-grid { grid-template-columns: 1fr; }
  .nutrient-types { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: 420px; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .intro-block { padding: 28px 24px; }
  .contact-preview { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .timeline { flex-direction: column; }
  .timeline::before { display: none; }
  .timeline-item { display: flex; align-items: flex-start; gap: 16px; min-width: auto; padding: 0 0 20px; }
  .timeline-dot { margin: 4px 0 0; flex-shrink: 0; }
  .timeline-era { text-align: left; }
  .timeline-text { text-align: left; }
  .sleep-stages { flex-direction: column; gap: 12px; }
  .sleep-stage { border-right: none; border-bottom: 1px solid var(--border-color); padding: 12px; display: flex; align-items: center; gap: 16px; text-align: left; }
  .stage-bar { margin: 0; flex-shrink: 0; width: 60px; height: 8px; }
}
@media (max-width: 580px) {
  .cards-grid { grid-template-columns: 1fr; }
  .blog-cards { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
