/*
Theme Name: HealthNation
Theme URI: https://healthnation.com
Author: HealthNation
Author URI: https://healthnation.com
Description: Evidence-based health content theme with clean editorial design, medical reviewer support, category hubs, and REST API automation compatibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: healthnation
*/

/* ─── CSS VARIABLES ─────────────────────────── */
:root {
  --ink:        #111827;
  --ink-mid:    #374151;
  --ink-soft:   #6B7280;
  --ink-faint:  #9CA3AF;
  --sage:       #4A7C59;
  --sage-light: #6B9E7A;
  --sage-pale:  #EEF5F1;
  --sage-xpale: #F6FAF7;
  --teal:       #0D9488;
  --white:      #FFFFFF;
  --gray-50:    #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E5E7EB;
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:      70px;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 6px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --max-w:      1280px;
  --content-w:  760px;
}

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--sans); }

/* ─── UTILITY ───────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section    { padding: 80px 0; }
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.section-overline {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sage); margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--ink); line-height: 1.15; letter-spacing: -.3px;
}
.section-title em { font-style: italic; color: var(--sage); }
.section-sub {
  margin-top: 12px; font-size: 15.5px; color: var(--ink-soft);
  max-width: 520px; line-height: 1.65;
}

/* ─── HEADER ─────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; gap: 4px;
}
.site-logo {
  font-family: var(--serif); font-size: 21px; color: var(--ink);
  margin-right: auto; display: flex; align-items: center; gap: 8px;
  white-space: nowrap; font-weight: 400;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--sage); display: flex; align-items: center;
  justify-content: center; color: white; font-size: 15px; flex-shrink: 0;
}
.main-nav { display: flex; align-items: center; gap: 2px; margin-right: 16px; }
.main-nav a {
  padding: 8px 13px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--ink-mid);
  transition: background .15s, color .15s; white-space: nowrap;
}
.main-nav a:hover { background: var(--gray-100); color: var(--ink); }
.nav-cta {
  padding: 9px 18px; background: var(--sage); color: white;
  border-radius: 50px; font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: background .15s; margin-left: 8px;
}
.nav-cta:hover { background: #3d6b4a; color: white; }
.nav-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--ink-soft);
  transition: background .15s; margin-left: 4px;
}
.nav-search-btn:hover { background: var(--gray-100); color: var(--ink); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; margin-left: auto;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .2s;
}

/* ─── HERO (front-page) ──────────────────────── */
.hero-section {
  padding-top: var(--nav-h);
  background: linear-gradient(160deg, var(--sage-xpale) 0%, #ffffff 60%);
  min-height: 88vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-blob {
  position: absolute; top: -120px; right: -80px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,124,89,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 80px 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 2; width: 100%;
}
.hero-overline {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-pale); border: 1px solid rgba(74,124,89,.2);
  padding: 6px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 600; color: var(--sage);
  letter-spacing: .3px; margin-bottom: 24px;
}
.hero-overline-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1; color: var(--ink); margin-bottom: 20px; letter-spacing: -.5px;
}
.hero-h1 em { font-style: italic; color: var(--sage); }
.hero-sub {
  font-size: 17px; color: var(--ink-soft); line-height: 1.7;
  max-width: 460px; margin-bottom: 32px;
}
.hero-search-form {
  display: flex; background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: 50px;
  overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 20px;
}
.hero-search-form:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(74,124,89,.12); }
.hero-search-form input {
  flex: 1; border: none; outline: none; padding: 15px 22px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.hero-search-form input::placeholder { color: var(--ink-faint); }
.hero-search-form button {
  padding: 10px 22px; background: var(--sage); color: white;
  border: none; font-size: 13px; font-weight: 600; border-radius: 44px; margin: 5px;
  transition: background .15s;
}
.hero-search-form button:hover { background: #3d6b4a; }
.quick-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-tag {
  padding: 6px 14px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 50px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-mid);
  cursor: pointer; transition: all .2s;
}
.quick-tag:hover { border-color: var(--sage); color: var(--sage); background: var(--sage-pale); }
.hero-visual { position: relative; }
.hero-main-img { border-radius: 20px; overflow: hidden; height: 480px; box-shadow: var(--shadow-lg); }
.hero-main-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -20px; left: -24px;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; min-width: 220px;
}
.badge-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.badge-text { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.badge-sub { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

/* ─── TRUST BAR ──────────────────────────────── */
.trust-bar {
  background: var(--ink); padding: 16px 32px;
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: rgba(255,255,255,.65); font-weight: 500;
}
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-light); flex-shrink: 0; }

/* ─── CATEGORY GRID ──────────────────────────── */
.categories-section { background: var(--gray-50); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-img { height: 180px; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-img img { transform: scale(1.04); }
.cat-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cat-tag { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage); display: flex; align-items: center; gap: 6px; }
.cat-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.cat-body h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.25; }
.cat-body p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.cat-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--gray-100); }
.cat-count { font-size: 12px; color: var(--ink-faint); font-weight: 500; }
.cat-arrow { width: 28px; height: 28px; border-radius: 50%; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; color: var(--sage); font-size: 13px; transition: background .2s; }
.cat-card:hover .cat-arrow { background: var(--sage); color: white; }

/* ─── ARTICLE CARDS (archive / homepage latest) ─ */
.articles-section { background: var(--gray-50); }
.article-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.art-filter {
  padding: 7px 16px; border-radius: 50px; border: 1.5px solid var(--gray-200);
  font-size: 13px; font-weight: 500; color: var(--ink-mid); cursor: pointer;
  transition: all .2s; background: var(--white);
}
.art-filter:hover, .art-filter.active { background: var(--sage); color: white; border-color: var(--sage); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card-img { height: 200px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-cat-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage); }
.article-card-body h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); line-height: 1.3; flex: 1; }
.article-card-footer { padding: 12px 22px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.article-read-time { font-size: 12px; color: var(--ink-faint); font-weight: 500; }
.article-tag-pill { font-size: 11px; padding: 3px 10px; border-radius: 50px; background: var(--sage-pale); color: var(--sage); font-weight: 500; }

/* ─── SINGLE ARTICLE ─────────────────────────── */
.single-header { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 0; background: var(--white); }
.single-header .container { max-width: var(--content-w); }
.single-category-link { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage); display: inline-block; margin-bottom: 16px; }
.single-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); line-height: 1.15; color: var(--ink); letter-spacing: -.3px; margin-bottom: 20px; }
.single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 13px; color: var(--ink-soft); }
.single-meta strong { color: var(--ink); }
.meta-divider { color: var(--gray-200); }
.reviewer-block {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--gray-50);
  border-radius: var(--radius); border-left: 3px solid var(--sage);
  margin-bottom: 32px;
}
.reviewer-block-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.reviewer-block-text { font-size: 12.5px; }
.reviewer-block-text strong { display: block; color: var(--ink); font-weight: 600; }
.reviewer-block-text span { color: var(--ink-soft); }
.key-takeaways {
  background: var(--sage-pale); border-radius: var(--radius-lg);
  padding: 24px 28px; margin-bottom: 36px;
  border: 1px solid rgba(74,124,89,.15);
}
.key-takeaways h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--sage); margin-bottom: 14px; }
.key-takeaways ul { display: flex; flex-direction: column; gap: 10px; }
.key-takeaways ul li { font-size: 14.5px; color: var(--ink-mid); line-height: 1.55; padding-left: 20px; position: relative; }
.key-takeaways ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* Article hero image */
.single-hero-img { margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; height: 460px; }
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article body content */
.entry-content { max-width: var(--content-w); margin: 0 auto; padding: 0 32px 80px; }
.entry-content h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); color: var(--ink); margin: 48px 0 16px; line-height: 1.25; }
.entry-content h3 { font-family: var(--serif); font-size: clamp(18px, 2.5vw, 22px); color: var(--ink); margin: 36px 0 12px; }
.entry-content p { font-size: 16.5px; line-height: 1.8; color: var(--ink-mid); margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px 20px; }
.entry-content li { font-size: 16px; line-height: 1.75; color: var(--ink-mid); margin-bottom: 8px; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content blockquote { border-left: 3px solid var(--sage); padding: 16px 24px; background: var(--sage-pale); border-radius: 0 var(--radius) var(--radius) 0; margin: 28px 0; font-style: italic; color: var(--ink-mid); font-size: 16px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14.5px; }
.entry-content table th { background: var(--sage); color: white; padding: 12px 16px; text-align: left; font-weight: 600; }
.entry-content table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: var(--ink-mid); }
.entry-content table tr:hover td { background: var(--gray-50); }
.entry-content a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #3d6b4a; }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content .wp-block-image { margin: 32px 0; }
.entry-content .wp-block-image img { border-radius: var(--radius-lg); }

/* FAQ section */
.faq-section { margin: 48px 0; }
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.faq-question { font-weight: 600; font-size: 16px; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { font-size: 15px; color: var(--ink-soft); line-height: 1.7; padding-top: 12px; }

/* Medical disclaimer */
.medical-disclaimer {
  padding: 18px 22px; background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.6;
  margin: 40px 0 20px;
}

/* Related articles */
.related-articles { margin: 60px 0 0; padding-top: 40px; border-top: 1px solid var(--gray-200); }
.related-articles h3 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* References */
.references { margin: 40px 0; padding: 24px; background: var(--gray-50); border-radius: var(--radius-lg); }
.references h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--sage); margin-bottom: 16px; }
.references ol { margin-left: 18px; }
.references ol li { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.5; }

/* Inline newsletter CTA */
.inline-newsletter-cta {
  background: linear-gradient(135deg, var(--sage) 0%, #2d5c3d 100%);
  border-radius: var(--radius-lg); padding: 32px 36px; margin: 48px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.inline-cta-text h4 { font-family: var(--serif); font-size: 20px; color: white; margin-bottom: 6px; }
.inline-cta-text p { font-size: 13.5px; color: rgba(255,255,255,.7); }
.inline-cta-form { display: flex; gap: 8px; flex-shrink: 0; }
.inline-cta-form input { padding: 10px 16px; border-radius: 50px; border: none; outline: none; font-size: 13px; width: 220px; }
.inline-cta-form button { padding: 10px 20px; background: white; color: var(--sage); border: none; border-radius: 50px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: opacity .15s; }
.inline-cta-form button:hover { opacity: .9; }

/* ─── LONGEVITY DARK SECTION ─────────────────── */
.longevity-section {
  background: linear-gradient(135deg, #0f2419 0%, #1a3d26 50%, #0d3033 100%);
  padding: 80px 0;
}
.longevity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.longevity-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 28px 26px; cursor: pointer; transition: background .2s, transform .25s; }
.longevity-card:hover { background: rgba(255,255,255,.11); transform: translateY(-3px); }
.longevity-num { font-family: var(--serif); font-size: 44px; color: rgba(94,234,212,.3); line-height: 1; margin-bottom: 16px; }
.longevity-card h3 { font-family: var(--serif); font-size: 20px; color: white; line-height: 1.3; margin-bottom: 10px; }
.longevity-card p { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.6; }
.longevity-section .section-overline { color: #5eead4; }
.longevity-section .section-title { color: white; }
.longevity-section .section-title em { color: #5eead4; }
.longevity-section .section-sub { color: rgba(255,255,255,.6); }
.longevity-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; padding: 13px 26px; background: var(--teal); color: white; border-radius: 50px; font-size: 14px; font-weight: 600; transition: background .15s; }
.longevity-cta:hover { background: #0b7a70; color: white; }

/* ─── TOOLS GRID ─────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { padding: 22px 24px; border-radius: var(--radius-lg); border: 1.5px solid var(--gray-200); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; display: flex; align-items: center; gap: 16px; }
.tool-card:hover { border-color: var(--sage); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.tool-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.tool-text h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.tool-text p { font-size: 12px; color: var(--ink-soft); }

/* ─── NEWSLETTER ─────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--sage) 0%, #2d5c3d 100%);
  padding: 80px 0;
}
.newsletter-inner { max-width: 640px; margin: 0 auto; text-align: center; padding: 0 32px; }
.newsletter-section .section-overline { color: rgba(255,255,255,.6); }
.newsletter-section .section-title { color: white; }
.newsletter-section .section-sub { color: rgba(255,255,255,.7); margin: 0 auto 32px; }
.newsletter-form {
  display: flex; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25); border-radius: 50px;
  overflow: hidden; padding: 5px; max-width: 460px; margin: 0 auto;
}
.newsletter-form input { flex: 1; background: transparent; border: none; outline: none; padding: 12px 18px; font-size: 14px; color: white; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form button { padding: 12px 22px; background: white; color: var(--sage); border: none; border-radius: 44px; font-size: 13px; font-weight: 700; white-space: nowrap; transition: opacity .15s; }
.newsletter-form button:hover { opacity: .9; }
.newsletter-disclaimer { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.4); }

/* ─── FOOTER ─────────────────────────────────── */
.site-footer { background: var(--ink); padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand-logo { font-family: var(--serif); font-size: 18px; color: white; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 230px; margin-bottom: 16px; }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.2); line-height: 1.6; max-width: 230px; }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: 12px; color: rgba(255,255,255,.3); transition: color .15s; }
.footer-legal-links a:hover { color: rgba(255,255,255,.65); }

/* ─── SIDEBAR ────────────────────────────────── */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 48px; max-width: var(--max-w); margin: 0 auto; padding: 0 32px 80px; }
.sidebar { padding-top: 40px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.sidebar-widget h4 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.sidebar-newsletter-btn { display: block; width: 100%; padding: 12px; background: var(--sage); color: white; border-radius: 50px; font-size: 13px; font-weight: 600; text-align: center; margin-top: 12px; transition: background .15s; }
.sidebar-newsletter-btn:hover { background: #3d6b4a; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .longevity-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .cat-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .longevity-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .trust-bar { gap: 20px; padding: 14px 20px; }
  .inline-newsletter-cta { flex-direction: column; }
  .inline-cta-form { width: 100%; }
  .inline-cta-form input { flex: 1; }
  .hero-inner { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .entry-content { padding: 0 20px 60px; }
}
