/* ============================================================
   HealthCovered.org — Design System
   Navy/Blue professional theme for health insurance
   ============================================================ */

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

:root {
  --navy:       #0B1F3A;
  --navy-light: #122849;
  --blue:       #1E90FF;
  --blue-dark:  #1570D0;
  --green:      #00C896;
  --green-dark: #00A87E;
  --white:      #FFFFFF;
  --gray-100:   #F4F7FA;
  --gray-300:   #CBD5E1;
  --gray-500:   #64748B;
  --gray-700:   #334155;
  --text:       #1E293B;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem;   font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  background: var(--navy);
  padding: 0 1.25rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-size: 1.25rem; font-weight: 800; color: var(--white);
  text-decoration: none; display: flex; align-items: center; gap: 0.35rem;
  letter-spacing: -0.02em; line-height: 1;
}
.nav__logo:hover { text-decoration: none; }
.nav__logo__icon {
  display: flex; align-items: center; justify-content: center;
  background: var(--green); border-radius: 7px;
  width: 28px; height: 28px; flex-shrink: 0;
  margin-right: 0.15rem;
}
.nav__logo__word { color: var(--white); }
.nav__logo__brand { color: var(--green); }
.nav__logo__tld {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.42); align-self: flex-end;
  margin-bottom: 1px; margin-left: -0.1rem;
}
.nav__links { display: flex; gap: 1.75rem; list-style: none; }
.nav__links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--white); text-decoration: none; }
.nav__cta {
  background: var(--green); color: var(--navy) !important;
  padding: 0.45rem 1.1rem; border-radius: 8px;
  font-weight: 700 !important; transition: background 0.2s;
}
.nav__cta:hover { background: var(--green-dark); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: white; margin: 5px 0; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 1.25rem;
  text-align: center;
}
.hero__eyebrow {
  display: inline-block; background: rgba(0,200,150,0.15);
  color: var(--green); padding: 0.3rem 1rem;
  border-radius: 20px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero__sub { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 2rem; }
.hero__badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.badge {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85); padding: 0.5rem 1rem;
  border-radius: 20px; font-size: 0.8rem; font-weight: 500;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 0.85rem 2rem;
  border-radius: var(--radius); font-weight: 700;
  font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
  text-decoration: none; border: none;
}
.btn--primary { background: var(--green); color: var(--navy); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); text-decoration: none; }
.btn--secondary { background: var(--blue); color: var(--white); }
.btn--secondary:hover { background: var(--blue-dark); transform: translateY(-1px); text-decoration: none; }
.btn--outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn--outline:hover { border-color: white; background: rgba(255,255,255,0.1); text-decoration: none; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--gray-300);
  border-radius: 14px; padding: 1.75rem;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.card__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.75rem;
}
.card__tag--aca { background: rgba(30,144,255,0.1); color: var(--blue); }
.card__tag--medicare { background: rgba(0,200,150,0.1); color: var(--green-dark); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 4rem 1.25rem; }
.section--gray { background: var(--gray-100); }
.section--navy { background: var(--navy); color: var(--white); }
.section__title { margin-bottom: 0.75rem; }
.section__sub { color: var(--gray-500); margin-bottom: 2.5rem; font-size: 1.05rem; }
.section--navy .section__sub { color: rgba(255,255,255,0.7); }

/* ── CTA Box ─────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 16px; padding: 2.5rem;
  text-align: center; color: var(--white);
}
.cta-box h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-box p  { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

/* ── Affiliate Box ───────────────────────────────────────── */
.affiliate-card {
  border: 2px solid var(--green); border-radius: 14px;
  padding: 1.5rem; margin: 2rem 0;
  background: linear-gradient(135deg, rgba(0,200,150,0.05), rgba(30,144,255,0.05));
}
.affiliate-card__label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--green-dark); margin-bottom: 0.5rem;
}
.affiliate-card__disclaimer {
  font-size: 0.75rem; color: var(--gray-500); margin-top: 0.5rem;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  background: var(--gray-100); padding: 0.75rem 1.25rem;
  font-size: 0.82rem; color: var(--gray-500);
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb span { margin: 0 0.4rem; }

/* ── Article Layout ──────────────────────────────────────── */
.article-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 2.5rem; align-items: start; padding: 3rem 1.25rem;
  max-width: 1100px; margin: 0 auto;
}
.article-content h2 { margin: 2rem 0 0.75rem; color: var(--navy); border-bottom: 2px solid var(--gray-100); padding-bottom: 0.5rem; }
.article-content h3 { margin: 1.5rem 0 0.5rem; color: var(--navy); }
.article-sidebar { position: sticky; top: 80px; }
.sidebar-box { background: var(--gray-100); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-box h4 { margin-bottom: 0.75rem; color: var(--navy); }
.sidebar-box ul { padding-left: 0; list-style: none; }
.sidebar-box ul li { padding: 0.35rem 0; border-bottom: 1px solid var(--gray-300); font-size: 0.88rem; }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-box ul li a { color: var(--gray-700); }
.sidebar-box ul li a:hover { color: var(--blue); }

/* ── Trust bar ───────────────────────────────────────────── */
.trust-bar {
  background: var(--gray-100); border-top: 1px solid var(--gray-300);
  padding: 1rem 1.25rem;
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
}
.trust-bar__item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--gray-500); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 3rem 1.25rem 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto 2rem; }
.footer__logo { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 0.75rem; }
.footer__logo span { color: var(--green); }
.footer__desc { font-size: 0.85rem; line-height: 1.6; }
.footer h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.4rem; }
.footer ul li a { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.footer ul li a:hover { color: var(--white); text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; max-width: 1100px; margin: 0 auto; font-size: 0.78rem; }
.footer__disclaimer { margin-top: 0.75rem; font-size: 0.75rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.25rem; gap: 1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer__grid { grid-template-columns: 1fr; }
  .trust-bar { gap: 1rem; }
}
