/* ============================================================
   BestSupplement.org — Master Stylesheet
   Used across ALL pages: home, blog, category, review,
   about, contact, disclaimer, privacy, terms, sitemap, 404
   
   Folder: css/style.css
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Merriweather:wght@700&display=swap');

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

/* ══════════════════════════════════════════
   DESIGN TOKENS — change here, updates everywhere
══════════════════════════════════════════ */
:root {
  /* Brand colours */
  --teal:       #2A9D8F;
  --teal-dark:  #21867A;
  --teal-light: #E8F5F3;
  --teal-mid:   #C5E8E4;
  --navy:       #1B2E4B;
  --navy-light: #2C4166;

  /* Page colours */
  --white:      #FFFFFF;
  --bg:         #F8FAFA;
  --bg-alt:     #EFF7F5;
  --text:       #2E2E2E;
  --text-muted: #5A6473;
  --border:     #DDE8E5;

  /* Shadows */
  --shadow-sm:  0 2px 8px  rgba(27, 46, 75, 0.07);
  --shadow-md:  0 4px 20px rgba(27, 46, 75, 0.11);
  --shadow-lg:  0 8px 32px rgba(27, 46, 75, 0.14);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  /* Typography */
  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:  1160px;
  --header: 72px;
}

/* ══════════════════════════════════════════
   BASE
══════════════════════════════════════════ */
html {
  scroll-behavior: smooth;
  font-size: 17px; /* Base increased for readability */
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--teal-dark); }

ul { list-style: none; }

/* ── Headings ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.3;
}

h1 { font-size: clamp(1.9rem,  4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem,  3vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }

p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

/* ══════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════ */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section spacing */
.sec       { padding: 80px 0; }
.sec-white { background: var(--white); }
.sec-alt   { background: var(--bg-alt); }

/* Text alignment */
.t-center { text-align: center; }
.t-center p { margin-left: auto; margin-right: auto; }

/* Pill label — used on all pages */
.pill {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.sec-title   { margin-bottom: 12px; }
.sec-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 62ch;
}

/* ══════════════════════════════════════════
   BUTTONS — used on all pages
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(42, 157, 143, .3);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal-mid);
}

/* ══════════════════════════════════════════
   HEADER — uniform across all pages
══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(27, 46, 75, .06);
  transition: box-shadow .2s;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
}

.site-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: .97rem;
  font-weight: 500;
  color: var(--navy);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--teal);
  border-color: var(--teal);
}

/* Hamburger */
.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.ham span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mob-nav {
  display: none;
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(27, 46, 75, .1);
}
.mob-nav.open { display: block; }
.mob-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.mob-nav a:last-of-type { border-bottom: none; }
.mob-nav .btn {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════════════════
   HERO — home page only
══════════════════════════════════════════ */
.hero {
  background: var(--white);
  padding: 68px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.hero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero-content h1 { margin-bottom: 18px; }

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.85;
  max-width: 48ch;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: .88rem;
  color: var(--text-muted);
}
.trust-dots { display: flex; gap: 4px; }
.trust-dots i {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.trust-dots i:nth-child(2) { opacity: .55; }
.trust-dots i:nth-child(3) { opacity: .25; }

.hero-img-wrap img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

/* Floating stat bubble */
.stat-bubble {
  position: absolute;
  bottom: 22px;
  left: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 17px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 185px;
}
.hero-img-wrap { position: relative; }
.stat-icon {
  width: 36px; height: 36px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 18px; height: 18px; color: var(--teal); }
.stat-info strong {
  display: block;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
}
.stat-info span { font-size: .76rem; color: var(--text-muted); }

/* ══════════════════════════════════════════
   CATEGORY SECTION — home page
══════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 0;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--teal);
  color: inherit;
}

.cat-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-alt);
  display: block;
}

/* Placeholder shown until real image is added */
.cat-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: var(--teal-dark);
  font-weight: 500;
}

.cat-card-body {
  padding: 16px 18px 18px;
}

.cat-card h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.cat-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ══════════════════════════════════════════
   CTA BANNER — dark (home page, reusable)
══════════════════════════════════════════ */
.cta-dark {
  background: linear-gradient(130deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 56px 0;
}
.cta-dark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-dark-text h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.cta-dark-text p {
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
  max-width: 52ch;
}

/* ══════════════════════════════════════════
   CTA STRIP — light teal (home page, reusable)
══════════════════════════════════════════ */
.cta-light {
  background: var(--teal-light);
  border-top: 1px solid var(--teal-mid);
  border-bottom: 1px solid var(--teal-mid);
  padding: 48px 0;
}
.cta-light-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-light-row h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.cta-light-row p {
  font-size: .97rem;
  color: var(--text-muted);
  max-width: 52ch;
}

/* ══════════════════════════════════════════
   WHO WE ARE — home page (no image, 3 pillars)
══════════════════════════════════════════ */
.feat-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.feat-icon svg { width: 22px; height: 22px; color: var(--teal); }

/* 3-column pillars layout */
.who-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.who-pillar {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 24px;
  text-align: center;
}

.who-pillar strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.who-pillar span {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   CONTACT SECTION — home page
══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-text p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--teal-mid);
  transition: background .2s, color .2s, transform .15s;
}
.email-btn:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}
.email-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 22px; }

.c-info-list { display: flex; flex-direction: column; gap: 16px; }
.c-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: var(--text);
}
.c-info-item svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

/* ══════════════════════════════════════════
   BLOG / CATEGORY PAGE — review cards
   (used on blog.html and all category pages)
══════════════════════════════════════════ */
.page-hero {
  background: var(--white);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 7px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-alt);
}

.post-card-body { padding: 20px 22px 22px; }

.post-cat {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--teal);
  display: block;
  margin-bottom: 8px;
}

.post-title {
  font-size: 1.05rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--text-muted);
}

.post-rating { color: #E6A817; letter-spacing: 1px; }


/* ══════════════════════════════════════════
   REVIEW / SINGLE POST PAGE
══════════════════════════════════════════ */
.review-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding: 56px 0;
}

.review-content h1 { margin-bottom: 16px; }

.review-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.review-meta-bar .rating { color: #E6A817; font-size: 1rem; }

.review-content img {
  width: 100%;
  border-radius: var(--r-md);
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.review-content h2 { margin: 32px 0 12px; }
.review-content h3 { margin: 24px 0 10px; }
.review-content p  { margin-bottom: 16px; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.pros, .cons {
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 22px;
}
.pros { border-top: 3px solid var(--teal); }
.cons { border-top: 3px solid #E57373; }
.pros h4, .cons h4 { font-family: var(--font-body); margin-bottom: 12px; font-size: 1rem; }
.pros ul, .cons ul { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.pros ul li, .cons ul li {
  font-size: .92rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.pros ul li::before { content: '✓'; color: var(--teal); position: absolute; left: 0; font-weight: 700; }
.cons ul li::before { content: '✗'; color: #E57373; position: absolute; left: 0; }

.faq-block { margin: 32px 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.faq-a { font-size: .95rem; color: var(--text-muted); }

/* Sidebar */
.review-sidebar { position: sticky; top: calc(var(--header) + 20px); }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* FTC Disclosure */
.ftc-notice {
  background: #FFF9E6;
  border: 1px solid #F0D070;
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: .85rem;
  color: #7A6000;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   FOOTER — uniform across all pages
══════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* Categories column: in HTML but hidden */
.footer-categories { display: none; }

.f-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.f-brand p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .58);
  line-height: 1.75;
  max-width: 32ch;
}

.f-disclaimer {
  margin-top: 16px;
  padding: 13px;
  background: rgba(255, 255, 255, .05);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.65;
}

.f-col h4 {
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}

.f-col ul { display: flex; flex-direction: column; gap: 10px; }
.f-col ul li a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .58);
  transition: color .2s;
}
.f-col ul li a:hover { color: var(--white); }

.social-col { display: flex; flex-direction: column; gap: 11px; }
.s-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255, 255, 255, .58);
  transition: color .2s;
}
.s-link:hover { color: var(--white); }
.s-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
  max-width: 100%;
}
.f-legal { display: flex; gap: 20px; }
.f-legal a {
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
  transition: color .2s;
}
.f-legal a:hover { color: var(--white); }

/* ══════════════════════════════════════════
   STATIC PAGES — about, disclaimer, privacy,
   terms, contact, sitemap, 404
══════════════════════════════════════════ */
.static-page { padding: 64px 0; background: var(--white); }
.static-page h1 { margin-bottom: 20px; }
.static-page h2 { margin: 36px 0 12px; font-size: 1.4rem; }
.static-page p  { color: var(--text-muted); margin-bottom: 16px; }
.static-page ul { list-style: disc; padding-left: 22px; }
.static-page ul li { font-size: 1rem; color: var(--text-muted); margin-bottom: 8px; }

/* ══════════════════════════════════════════
   RESPONSIVE — all pages
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cat-grid    { grid-template-columns: repeat(2, 1fr); }
  .post-grid   { grid-template-columns: repeat(2, 1fr); }
  .review-wrap { grid-template-columns: 1fr; }
  .review-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header: 64px; }
  html  { font-size: 16px; }

  .main-nav, .header-cta { display: none; }
  .ham { display: flex; }

  .hero { padding: 44px 0 40px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-btns      { justify-content: center; }
  .hero-trust     { justify-content: center; }
  .hero-img-wrap img { height: 280px; }
  .stat-bubble {
    left: 50%;
    transform: translateX(-50%);
    bottom: -16px;
    white-space: nowrap;
  }

  .who-pillars   { grid-template-columns: 1fr; gap: 16px; }

  .contact-grid  { grid-template-columns: 1fr; gap: 36px; }
  .pros-cons     { grid-template-columns: 1fr; }

  .cta-dark-row,
  .cta-light-row { text-align: center; justify-content: center; }
  .cta-dark-text p,
  .cta-light-row p { margin: 0 auto; }

  .post-grid   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .sec { padding: 56px 0; }
}

@media (max-width: 480px) {
  .cat-grid  { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .stat-bubble {
    position: static;
    transform: none;
    margin: 20px auto 0;
    width: fit-content;
  }
}

/* ── Accessibility ── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ══════════════════════════════════════════
   BLOG PAGE — Category filter bar
══════════════════════════════════════════ */
.blog-filter {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: var(--header);
  z-index: 100;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}

.filter-btn:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal-mid);
}

.filter-btn.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ── Post card image placeholder (blog + category pages) ── */
.post-card-ph {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .blog-filter { position: static; }
  .filter-row  { gap: 8px; }
  .filter-btn  { font-size: .8rem; padding: 6px 12px; }
}

/* ── Post card image (real img tag, replaces placeholder div) ── */
.post-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}

/* ── Legal / Disclosure pages ── */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.legal-content h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-content p { margin-bottom: 14px; line-height: 1.8; color: var(--text); font-size: .97rem; }
.legal-content code { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; font-size: .85rem; }
.legal-content a { color: var(--teal); }