/* =============================================
   SilverHealthGuide.com — Core Stylesheet
   Niche: Senior Health & Medicare USA
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --brand:       #1a6b4a;
  --brand-light: #e8f5f0;
  --brand-mid:   #2e8a63;
  --accent:      #d47c2f;
  --accent-light:#fdf3e7;
  --text:        #1c1c1e;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --bg:          #ffffff;
  --bg-soft:     #f8faf9;
  --border:      #e5e7eb;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
  --shadow-lg:   0 4px 24px rgba(0,0,0,.10);
  --max-w:       760px;
  --max-w-wide:  1120px;
  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
p  { margin-bottom: 1.25rem; font-size: 1.0625rem; }
a  { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-mid); text-decoration: underline; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: .4rem; }

strong { font-weight: 600; color: var(--text); }
em     { font-style: italic; }

blockquote {
  border-left: 3px solid var(--brand);
  padding: 1rem 1.5rem;
  background: var(--brand-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: #2d5a44;
}

/* ── Layout ─────────────────────────────────── */
.container      { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ── Header / Nav ────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.site-logo span { color: var(--accent); }
.site-logo svg  { width: 28px; height: 28px; flex-shrink: 0; }

.site-nav { display: flex; gap: .25rem; }
.site-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .5rem .85rem;
  border-radius: var(--radius);
  transition: all .15s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand-light) 0%, #f0faf6 60%, #fdf3e7 100%);
  padding: 3.5rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid var(--brand);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.hero h1 { max-width: 680px; margin: 0 auto .75rem; }
.hero p {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  transition: background .15s, transform .1s;
}
.hero-cta:hover { background: var(--brand-mid); text-decoration: none; transform: translateY(-1px); color: #fff; }

/* ── Article Cards ─────────────────────────── */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .5rem;
}
.section-title { margin: 0 0 1.5rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-thumb {
  width: 100%;
  height: 180px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 1.25rem; }
.card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: .2rem .6rem;
  border-radius: 100px;
  margin-bottom: .6rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 .5rem;
  color: var(--text);
}
.card-excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-light);
}
.card-meta span { display: flex; align-items: center; gap: .3rem; }

/* ── Featured card (large) ─────────────────── */
.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.card-featured .card-thumb { height: 100%; min-height: 240px; }
.card-featured .card-body   { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.card-featured .card-title  { font-size: 1.4rem; margin-bottom: .75rem; }
.card-featured .card-excerpt { font-size: .95rem; }

/* ── Sections ──────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-soft); }
.section-accent { background: var(--brand-light); border-top: 1px solid rgba(26,107,74,.12); border-bottom: 1px solid rgba(26,107,74,.12); }

/* ── Trust bar ─────────────────────────────── */
.trust-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-item svg { color: var(--brand); width: 18px; height: 18px; }

/* ── Newsletter ────────────────────────────── */
.newsletter-box {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
  text-align: center;
}
.newsletter-box h3 { color: #fff; font-size: 1.5rem; margin-bottom: .5rem; }
.newsletter-box p  { color: rgba(255,255,255,.8); margin-bottom: 1.25rem; }
.newsletter-form {
  display: flex;
  gap: .5rem;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: .7rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: .95rem;
  outline: none;
}
.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .7rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.newsletter-form button:hover { background: #b8691e; }

/* ── Article page ──────────────────────────── */
.article-header { padding: 3rem 0 2rem; }
.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.article-tag {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border-radius: 100px;
}
.article-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.article-meta-item { display: flex; align-items: center; gap: .35rem; }
.author-mini {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand);
}
.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* Article content ─ */
.article-content h2 { color: var(--brand); border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.article-content h3 { color: var(--text); }

.info-box {
  background: var(--brand-light);
  border: 1px solid rgba(26,107,74,.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.info-box-title {
  font-weight: 600;
  color: var(--brand);
  margin-bottom: .5rem;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.info-box p { margin: 0; font-size: .95rem; }

.warning-box {
  background: var(--accent-light);
  border: 1px solid rgba(212,124,47,.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.warning-box .info-box-title { color: var(--accent); }

.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: .5rem 0 .5rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.stat-callout {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}
.stat-number { font-size: 3rem; font-weight: 600; font-family: var(--font-serif); line-height: 1; }
.stat-label  { font-size: .9rem; opacity: .85; margin-top: .4rem; }

/* Article sidebar ─ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand);
  margin-bottom: 1rem;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { font-size: .875rem; color: var(--text-muted); }
.toc-list a:hover { color: var(--brand); text-decoration: none; }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: #1a2821;
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  margin-bottom: 2rem;
}
.footer-brand .site-logo { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-brand p { font-size: .875rem; line-height: 1.6; }
.footer-col h5 {
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.6); }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-disclaimer { font-size: .75rem; color: rgba(255,255,255,.4); max-width: 600px; }

/* ── Ad placeholders ─────────────────────────── */
.ad-slot {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--text-light);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 1.5rem 0;
}
.ad-slot-banner { height: 90px; }
.ad-slot-rect   { height: 250px; }
.ad-slot-mid    { height: 280px; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-thumb { height: 200px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .site-nav { gap: 0; }
  .site-nav a { padding: .4rem .6rem; font-size: .8rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 1rem; }
}
