/* ============================================================
   HEALTHY AGING HUB — Design System
   Brand: Deep navy + warm gold + alert red
   Typography: Montserrat (headings) + Inter (body)
   ============================================================ */

:root {
  /* Brand colors */
  --primary: #0A1628;         /* Deep navy — trust, authority */
  --primary-light: #1a2a45;
  --accent: #D4AF37;          /* Warm gold — premium, warm */
  --accent-dark: #b8941f;
  --highlight: #FACC15;       /* Bright amber */
  --warning: #DC2626;         /* Alert red */
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --bg-cream: #FBF8F1;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-dark: #374151;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --max-width: 1140px;
  --section-padding: 80px 20px;
  --container-padding: 0 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 22, 40, 0.12);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4.5vw, 42px); margin-bottom: 20px; }
h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
h4 { font-size: 20px; margin-bottom: 8px; }

p { margin-bottom: 16px; font-size: 17px; }
p.lead { font-size: 20px; line-height: 1.6; color: var(--text-light); }

ul, ol { margin: 0 0 16px 24px; }
li { margin-bottom: 8px; font-size: 17px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: var(--container-padding); }

/* ============================================================
   HEADER + NAVIGATION
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: var(--primary);
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
}
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; align-items: center; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-dark); }
.nav-cta {
  background: var(--accent);
  color: var(--primary) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--primary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.08), transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: rgba(255, 255, 255, 0.85); font-size: 22px; margin-bottom: 40px; }

/* Email capture card */
.capture-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 540px;
  margin: 40px auto 0;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.capture-card h3 {
  text-align: center;
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 8px;
}
.capture-card p.sub {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 20px;
}
.capture-form { display: flex; flex-direction: column; gap: 12px; }
.capture-form input[type="email"] {
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.2s;
}
.capture-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.capture-form button {
  padding: 14px 24px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}
.capture-form button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.capture-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 14px;
}

/* Trust signals row */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
}
.trust-row span::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-padding);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-header p {
  color: var(--text-light);
  font-size: 19px;
}
.section.alt { background: var(--off-white); }
.section.dark { background: var(--primary); color: var(--white); }
.section.dark h2 { color: var(--white); }
.section.dark p { color: rgba(255, 255, 255, 0.8); }

/* ============================================================
   CONTENT PILLARS GRID
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.pillar-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.pillar-card h4 { color: var(--primary); margin-bottom: 8px; }
.pillar-card p { font-size: 15px; color: var(--text-light); margin: 0; }

/* ============================================================
   RESOURCE CARDS (Lead magnets)
   ============================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.resource-mockup {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  padding: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.resource-card h3 { font-size: 22px; margin-bottom: 12px; }
.resource-card .desc { font-size: 16px; color: var(--text-light); margin-bottom: 20px; }
.resource-card ul.contents { margin-bottom: 24px; }
.resource-card ul.contents li {
  font-size: 14px;
  list-style: none;
  margin-left: 0;
  padding-left: 22px;
  position: relative;
}
.resource-card ul.contents li::before {
  content: "✓"; color: var(--accent-dark); font-weight: 800;
  position: absolute; left: 0;
}
.resource-card .btn {
  margin-top: auto;
  align-self: stretch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  border: 2px solid transparent;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--primary); transform: translateY(-1px); }
.btn-secondary {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary:hover { background: var(--primary-light); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-block { display: block; width: 100%; }

/* ============================================================
   VIDEOS SECTION
   ============================================================ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}
.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.video-thumb {
  aspect-ratio: 16/9;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.video-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(212, 175, 55, 0.8);
  font-size: 48px;
}
.video-meta { padding: 18px; }
.video-meta h4 { font-size: 17px; margin-bottom: 6px; color: var(--primary); }
.video-meta .meta-line { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   PRODUCTS (affiliate)
   ============================================================ */
.products-list {
  display: grid;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.product-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.product-block .category {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.product-block h3 { margin-bottom: 12px; }
.product-block .disclosure {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   ABOUT / METHODOLOGY
   ============================================================ */
.methodology-list {
  max-width: 760px;
  margin: 0 auto;
  list-style: none;
  margin-left: 0;
  counter-reset: method;
}
.methodology-list li {
  counter-increment: method;
  padding: 24px 24px 24px 80px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
}
.methodology-list li::before {
  content: counter(method);
  position: absolute;
  left: 24px; top: 24px;
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
}
.methodology-list li h4 { margin-bottom: 4px; font-size: 18px; }
.methodology-list li p { font-size: 15px; color: var(--text-light); margin: 0; }

/* ============================================================
   DISCLAIMER BANNER
   ============================================================ */
.disclaimer-banner {
  background: #FEF3C7;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  font-size: 14px;
  color: #78350F;
  margin: 24px 0;
  border-radius: var(--radius-sm);
}
.disclaimer-banner strong { color: var(--warning); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 20px 28px;
  font-size: 14px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-inner h5 {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-inner ul { list-style: none; margin: 0; }
.footer-inner li { margin-bottom: 8px; }
.footer-inner a { color: rgba(255, 255, 255, 0.7); }
.footer-inner a:hover { color: var(--accent); }
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .tagline { font-size: 14px; line-height: 1.6; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   PAGE-SPECIFIC
   ============================================================ */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 60px 20px 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; font-size: clamp(32px, 5vw, 48px); }
.page-hero p { color: rgba(255, 255, 255, 0.85); font-size: 19px; max-width: 720px; margin: 0 auto; }

/* Article (blog) */
article.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
article.post h1 { margin-bottom: 24px; }
article.post .meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
article.post p { line-height: 1.75; margin-bottom: 20px; font-size: 18px; }
article.post h2 { margin-top: 40px; }

/* Inline CTA in article */
.inline-cta {
  background: var(--off-white);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}
.inline-cta h4 { margin-bottom: 8px; }
.inline-cta p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { width: 100%; text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { padding: 56px 20px 72px; }
  .section { padding: 56px 20px; }
  .trust-row { gap: 16px; }
  .pillars-grid, .resources-grid, .videos-grid { gap: 18px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .capture-card { padding: 24px 20px; }
  body { font-size: 16px; }
  p, li { font-size: 16px; }
}
