/* ==========================================================================
   The Senior Health Review — style.css
   "Consumer Ratings Board" design system.
   Deep navy trust authority + warm amber-gold verification accent.
   ========================================================================== */

:root {
  --navy: #1B2A4A;
  --navy-light: #2A3E66;
  --navy-dark: #121D33;
  --gold: #D4A24C;
  --gold-light: #E5BE78;
  --gold-dark: #B3843A;
  --offwhite: #FAF8F4;
  --paper: #FFFFFF;
  --charcoal: #2B2E33;
  --ink-muted: #5B6270;
  --line: #E4DFD3;
  --line-soft: #EEEAE0;
  --ok: #2E7D4F;
  --err: #B3402A;

  --font-head: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(27,42,74,.06), 0 4px 16px rgba(27,42,74,.07);
  --shadow-card-hover: 0 4px 10px rgba(27,42,74,.08), 0 12px 28px rgba(27,42,74,.12);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-color: rgba(27,42,74,.35); }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); line-height: 1.22; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
code { background: var(--line-soft); padding: .1em .4em; border-radius: 4px; font-size: .92em; }
[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--offwhite); }
.btn-navy:hover { background: var(--navy-light); color: var(--offwhite); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--offwhite); }

/* ---------------------------------- Header ---------------------------------- */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--offwhite);
}
.brand-mark { flex-shrink: 0; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--offwhite);
  line-height: 1.15;
  display: flex;
  flex-direction: column;
}
.brand-text small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 2px;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--offwhite);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  opacity: .88;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
.main-nav a:hover { opacity: 1; border-bottom-color: var(--gold); color: var(--offwhite); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--offwhite); border-radius: 2px; }

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--offwhite);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 88% 18%, rgba(212,162,76,.14), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { color: var(--offwhite); font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.hero-dek { color: #C9D2E2; font-size: 17px; max-width: 56ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-seal-wrap { display: flex; justify-content: center; }

/* ---------------------------------- Trust badge (signature seal motif) ---------------------------------- */
.trust-badge {
  --seal-size: 128px;
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--navy-light), var(--navy) 70%);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(212,162,76,.18), 0 10px 24px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--offwhite);
  text-align: center;
  position: relative;
  flex-shrink: 0;
}
.trust-badge::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(212,162,76,.55);
}
.trust-badge-score {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}
.trust-badge-outof { font-size: 12px; color: var(--gold-light); font-weight: 600; }
.trust-badge-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 4px;
  max-width: 84px;
  line-height: 1.25;
}
.trust-badge-lg { --seal-size: 168px; }
.trust-badge-lg .trust-badge-score { font-size: 38px; }
.trust-badge-sm {
  --seal-size: 64px;
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(212,162,76,.16), 0 4px 10px rgba(0,0,0,.2);
}
.trust-badge-sm .trust-badge-score { font-size: 17px; }
.trust-badge-sm .trust-badge-outof { font-size: 8px; }
.trust-badge-sm .trust-badge-label { font-size: 6.5px; max-width: 54px; margin-top: 1px; }
.trust-badge-sm::before { inset: 4px; }

/* Verification strip under hero */
.verification-strip {
  background: var(--navy-dark);
  border-top: 1px solid rgba(212,162,76,.25);
  border-bottom: 1px solid rgba(212,162,76,.25);
}
.verification-strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 34px;
  justify-content: center;
}
.verification-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #DCE3EF;
  font-size: 13.5px;
  font-weight: 600;
}
.verification-item .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* ---------------------------------- Sections ---------------------------------- */
.section { padding: 64px 0; }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 26px; }
.section-note {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.section-alt { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.mission-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.mission-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.mission-card h4 { font-size: 17px; margin-bottom: 8px; }
.mission-card p { color: var(--ink-muted); font-size: 14.5px; margin: 0; }

/* ---------------------------------- Product grid / cards ---------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .15s ease, transform .15s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--line-soft);
  overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-badge { position: absolute; top: 12px; right: 12px; }
.product-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.product-card-title { font-size: 18.5px; margin: 0; }
.product-card-title a { color: var(--navy); text-decoration: none; }
.product-card-title a:hover { color: var(--gold-dark); }
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.product-card-rating .stars { color: var(--gold-dark); letter-spacing: 1px; }
.product-card-excerpt { color: var(--ink-muted); font-size: 14px; margin: 0; }
.product-card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ---------------------------------- Article grid / cards ---------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .15s ease, transform .15s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.article-card-image { aspect-ratio: 16 / 10; background: var(--line-soft); overflow: hidden; }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
}
.article-card-title { font-size: 18.5px; margin: 0; }
.article-card-title a { color: var(--navy); text-decoration: none; }
.article-card-title a:hover { color: var(--gold-dark); }
.article-card-excerpt { color: var(--ink-muted); font-size: 14px; margin: 0; }
.article-card-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-muted); }

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  font-size: 14.5px;
  background: rgba(255,255,255,.5);
}

/* ---------------------------------- Newsletter ---------------------------------- */
.newsletter {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  text-align: center;
  color: var(--offwhite);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 100%, rgba(212,162,76,.16), transparent 45%);
}
.newsletter h2 { color: var(--offwhite); position: relative; }
.newsletter p { color: #C9D2E2; max-width: 52ch; margin: 0 auto 22px; position: relative; }
.nl-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.nl-form input[type="email"] {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.25);
  min-width: 280px;
  font-size: 15px;
  font-family: var(--font-body);
  background: rgba(255,255,255,.96);
  color: var(--charcoal);
}
.nl-form button {
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease;
}
.nl-form button:hover { background: var(--gold-light); }
.nl-msg { margin-top: 14px; font-size: 13.5px; font-weight: 600; position: relative; min-height: 1.2em; }

/* ---------------------------------- Page hero (legal pages) ---------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--offwhite);
  padding: 40px 0 34px;
  border-bottom: 3px solid var(--gold);
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.crumbs { font-size: 12.5px; color: var(--gold-light); font-weight: 600; margin-bottom: 12px; letter-spacing: .02em; }
.page-hero h1 { color: var(--offwhite); font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: #C9D2E2; }
.page-meta b { color: var(--offwhite); }

/* ---------------------------------- Legal / content body ---------------------------------- */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 24px 68px;
}
.content h2 { font-size: 21px; margin-top: 2em; }
.content h2:first-of-type { margin-top: 0; }
.content p { color: var(--charcoal); font-size: 15.5px; }
.content ul, .content ol { color: var(--charcoal); font-size: 15.5px; padding-left: 22px; }
.content li { margin-bottom: .5em; }
.fineprint { font-size: 13px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2em; }

.info-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 26px 0;
}
.info-box .flabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.info-box p:last-child { margin-bottom: 0; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}
.contact-card .flabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 16px 0 4px;
}
.contact-card .flabel:first-child { margin-top: 0; }
.tel-link { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--navy); text-decoration: none; }
.tel-link:hover { color: var(--gold-dark); }

.refs {
  background: var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-muted);
}
.refs p { margin: 0 0 6px; font-size: 13px; }
.refs p:last-child { margin-bottom: 0; }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--navy-dark); color: #C9D2E2; margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px 24px 34px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--offwhite); margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: #A9B4C7; max-width: 40ch; }
.footer-col h5 { color: var(--gold-light); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: #C9D2E2; text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 24px;
}
.footer-bottom p { max-width: var(--maxw); margin: 0 auto; font-size: 12.5px; color: #8896AC; text-align: center; }
.footer-bottom a { color: #A9B4C7; }

/* ---------------------------------- Cookie banner ---------------------------------- */
#cookieBanner {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  z-index: 100;
  padding: 16px 24px;
}
#cookieBanner.show { display: block; }
.cookie-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-inner p { margin: 0; font-size: 13.5px; color: #C9D2E2; }
.cookie-banner-inner a { color: var(--gold-light); }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions button {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
#cbAccept { background: var(--gold); color: var(--navy-dark); }
#cbAccept:hover { background: var(--gold-light); }
#cbReject { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #C9D2E2; }
#cbReject:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------------------------------- 404 ---------------------------------- */
.notfound {
  max-width: 620px;
  margin: 0 auto;
  padding: 90px 24px 110px;
  text-align: center;
}
.notfound .hero-kicker { background: var(--gold); color: var(--navy-dark); }
.notfound h1 { font-size: 30px; margin: 18px 0 14px; }
.notfound p { color: var(--ink-muted); margin-bottom: 26px; }

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-dek { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-seal-wrap { order: -1; }
  .mission-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px 22px;
    gap: 16px;
    border-bottom: 3px solid var(--gold);
  }
}
@media (max-width: 480px) {
  .nl-form input[type="email"] { min-width: 0; width: 100%; }
  .newsletter { padding: 32px 22px; }
}
