/*
Theme Name: Over 50 Health & Fitness
Theme URI: https://over50healthandfitness.com/
Author: Over 50 Health & Fitness
Description: A fast, editorial WordPress theme for evidence-aware strength, longevity, and healthy-aging content.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: over50-health-fitness
*/

:root {
  --ink: #0a1113;
  --ink-soft: #101b1e;
  --surface: #142226;
  --surface-2: #1a2c30;
  --paper: #f4f1e8;
  --paper-2: #e9e5da;
  --white: #fffef8;
  --muted: #aebbb7;
  --text: #253135;
  --teal: #62d6c5;
  --teal-dark: #267b72;
  --amber: #e9aa5f;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --shadow: 0 24px 70px rgba(2, 10, 12, 0.16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.15rem, 4vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
p { margin: 0 0 1.25rem; }
button, input, textarea { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 780px); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; background: #fff; padding: 10px 14px; }

.utility-bar { background: #071012; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.utility-bar .wrap { display: flex; justify-content: space-between; gap: 24px; padding: 8px 0; }
.utility-bar a { color: var(--teal); text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,17,19,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); color: white; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand:hover { color: white; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--ink); font-weight: 900; letter-spacing: -.08em; }
.brand-type { display: grid; line-height: 1; }
.brand-type strong { font-size: .98rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-type span { color: var(--muted); font-size: .72rem; letter-spacing: .14em; margin-top: 6px; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: #e8efec; text-decoration: none; font-size: .88rem; font-weight: 700; }
.primary-nav a:hover { color: var(--teal); }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; color: white; border-radius: 10px; padding: 9px 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--teal); color: var(--ink) !important; font-weight: 850; font-size: .9rem; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #83e5d7; }
.button-outline { background: transparent; border-color: rgba(255,255,255,.35); color: white !important; }
.button-outline:hover { background: rgba(255,255,255,.08); }

.hero { position: relative; min-height: 780px; display: grid; align-items: center; overflow: hidden; background: var(--ink); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 42%, rgba(98,214,197,.22), transparent 0 17%, rgba(98,214,197,.07) 17.4% 24%, transparent 24.4%), radial-gradient(circle at 74% 47%, transparent 0 32%, rgba(233,170,95,.16) 32.4% 32.8%, transparent 33.2%), linear-gradient(115deg, #050c0e 0%, #0a1518 49%, #193238 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(transparent, rgba(5,12,14,.75)); }
.hero .wrap { position: relative; z-index: 2; padding: 110px 0 130px; }
.hero-copy { max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--teal); }
.hero h1 { max-width: 760px; margin: 0 0 28px; color: white; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero .lead { max-width: 630px; color: #d5dedb; font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 58px; color: #b7c4c0; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.trust-line span::before { content: "✓"; margin-right: 8px; color: var(--amber); }

.section { padding: 110px 0; }
.section-dark { background: var(--ink-soft); color: #d9e2df; }
.section-dark h2, .section-dark h3 { color: white; }
.section-muted { background: var(--paper-2); }
.section-heading { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: end; margin-bottom: 52px; }
.section-heading h2 { margin: 0; }
.section-heading p { max-width: 620px; margin: 0; color: #637074; font-size: 1.08rem; }
.section-dark .section-heading p { color: var(--muted); }
.kicker { margin-bottom: 15px; color: var(--teal-dark); font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-dark .kicker { color: var(--teal); }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.topic-card:hover { transform: translateY(-5px); background: var(--surface-2); border-color: rgba(98,214,197,.55); color: inherit; }
.topic-number { color: var(--amber); font: 700 .78rem/1 Inter, sans-serif; letter-spacing: .12em; }
.topic-card h3 { margin: 55px 0 10px; font-size: 1.5rem; }
.topic-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.topic-link { color: var(--teal); font-size: .82rem; font-weight: 850; }

.principles { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; }
.principles h2 { margin-top: 0; }
.principles-list { display: grid; gap: 12px; }
.principle { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 20px; border-radius: 14px; background: var(--white); box-shadow: 0 8px 30px rgba(12,26,30,.06); }
.principle-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #d9f3ee; color: var(--teal-dark); font-weight: 900; }
.principle h3 { margin: 2px 0 5px; font: 850 .98rem/1.3 Inter, sans-serif; letter-spacing: 0; }
.principle p { margin: 0; color: #687478; font-size: .9rem; line-height: 1.55; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 45px rgba(10,17,19,.08); }
.post-card-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--surface), #33535a); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 26px; }
.post-card-meta, .article-meta { color: #6a777a; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { margin: 12px 0; }
.post-card h3 a { text-decoration: none; }
.post-card p { color: #647174; font-size: .93rem; }
.text-link { color: var(--teal-dark); font-weight: 850; text-decoration: none; }

.cta { padding: 45px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; border-radius: 26px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.cta h2 { margin: 0 0 12px; color: white; font-size: clamp(2rem, 4vw, 3.6rem); }
.cta p { margin: 0; color: var(--muted); }

.page-hero { padding: 100px 0 80px; background: var(--ink); color: white; }
.page-hero h1 { margin: 12px 0 18px; color: white; font-size: clamp(3rem, 6vw, 5.5rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.15rem; }
.content-area { padding: 80px 0 110px; }
.entry-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--max); }
.entry-content h2 { margin-top: 2.4em; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.entry-content h3 { margin-top: 2em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote { padding: 24px 28px; border-left: 4px solid var(--teal-dark); background: var(--paper-2); font-family: Georgia, serif; font-size: 1.2rem; }
.policy-note, .article-disclosure { max-width: 780px; margin: 0 auto 36px; padding: 18px 20px; border-left: 4px solid var(--amber); background: #fff7e9; color: #57452f; font-size: .9rem; }
.article-disclosure a { font-weight: 800; }
.empty-state { padding: 35px; border: 1px dashed #aeb9b6; border-radius: var(--radius); text-align: center; }
.pagination { margin-top: 42px; }

.site-footer { padding: 72px 0 28px; background: #071012; color: #b8c4c1; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .75fr; gap: 70px; }
.footer-brand p { max-width: 440px; margin-top: 20px; color: #92a19d; }
.footer-heading { margin: 0 0 18px; color: white; font: 850 .8rem/1 Inter, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #b8c4c1; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 58px; padding-top: 24px; border-top: 1px solid var(--line); color: #778783; font-size: .75rem; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 22px; background: var(--ink); border-top: 1px solid var(--line); }
  .primary-nav.is-open { display: grid; }
  .primary-nav ul { align-items: flex-start; flex-direction: column; }
  .header-cta { display: none; }
  .hero { min-height: 700px; }
  .hero::before { background: radial-gradient(circle at 80% 38%, rgba(98,214,197,.22), transparent 0 18%, rgba(98,214,197,.07) 18.4% 25%, transparent 25.4%), linear-gradient(115deg, #050c0e 0%, #0a1518 54%, #193238 100%); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; gap: 45px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .utility-bar .wrap { justify-content: center; }
  .utility-bar span:last-child { display: none; }
  .brand-type span { display: none; }
  .hero { min-height: 720px; }
  .hero::before { background: radial-gradient(circle at 70% 24%, rgba(98,214,197,.2), transparent 0 17%, rgba(233,170,95,.08) 17.6% 24%, transparent 24.6%), linear-gradient(160deg, #071012 0%, #10252a 44%, #050c0e 100%); }
  .hero .wrap { align-self: end; padding: 280px 0 70px; }
  .hero h1 { font-size: clamp(3.1rem, 14vw, 4.7rem); }
  .trust-line { margin-top: 38px; }
  .section { padding: 78px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .topic-grid, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 210px; }
  .cta { grid-template-columns: 1fr; padding: 32px 26px; }
  .footer-grid { gap: 36px; }
  .footer-bottom { flex-direction: column; }
}
