/* =============================================
   Physician's Guide to Medicare — Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --navy:       #1B2B5E;
  --navy-dark:  #111d42;
  --navy-light: #2a3f7f;
  --gold:       #B8922E;
  --gold-light: #d4ac50;
  --gold-pale:  #f5ead8;
  --cream:      #F8F6F1;
  --white:      #ffffff;
  --gray-100:   #f3f2ef;
  --gray-200:   #e8e6e0;
  --gray-500:   #7a7568;
  --gray-700:   #3d3a33;
  --text:       #2c2a25;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(27,43,94,0.08);
  --shadow-md:  0 4px 16px rgba(27,43,94,0.12);
  --shadow-lg:  0 8px 32px rgba(27,43,94,0.16);
  --transition: 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Announcement Bar ── */
.announcement-bar {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.announcement-bar a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement-bar a:hover { color: var(--white); }

/* ── Navigation ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.nav-logo span { display: block; font-size: 11px; font-family: 'DM Sans', sans-serif; font-weight: 400; color: var(--gray-500); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--navy); background: var(--gray-100); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta-btn {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.nav-cta-btn:hover { background: var(--navy-light) !important; color: var(--white) !important; }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-cta { margin-top: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(184,146,46,0.35); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: var(--white); border-color: var(--white); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ── Layout Utilities ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 100px 0; }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-subtitle { font-size: 17px; color: var(--gray-500); font-family: 'DM Sans', sans-serif; max-width: 560px; line-height: 1.6; }

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gray-200); }

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,146,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust {
  margin-top: 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ── Path Cards ── */
.path-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.path-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.path-card-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.path-card h3 { font-size: 22px; margin-bottom: 12px; }
.path-card p { font-family: 'DM Sans', sans-serif; font-size: 14.5px; color: var(--gray-500); line-height: 1.65; }
.path-card .learn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 20px;
}
.path-card .learn-link:hover { color: var(--gold); }

/* ── Five Dimension Model ── */
.dimension-list { list-style: none; padding: 0; }
.dimension-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.dimension-item:last-child { border-bottom: none; }
.dimension-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 40px;
}
.dimension-content h4 { font-size: 17px; margin-bottom: 4px; }
.dimension-content p { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.55; }

/* ── Status Badge ── */
.badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-coming { background: #fef3c7; color: #92400e; }
.badge-dev { background: #dbeafe; color: #1e3a8a; }
.badge-live { background: #dcfce7; color: #166534; }

/* ── Email Capture Form ── */
.email-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
}
.email-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.email-form input[type="email"]:focus { border-color: var(--navy); }
.email-form input[type="email"]::placeholder { color: var(--gray-500); }

.email-form-dark input[type="email"] {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}
.email-form-dark input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.email-form-dark input[type="email"]:focus { border-color: var(--gold-light); }

/* ── Blog Post Card ── */
.blog-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  background: var(--white);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-body { padding: 28px; }
.blog-card-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 19px; margin-bottom: 10px; }
.blog-card p { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.blog-card-footer { padding: 0 28px 24px; }
.blog-card .read-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

/* ── Page Banner (for existing pages) ── */
.page-banner {
  background: var(--gold-pale);
  border-bottom: 1px solid rgba(184,146,46,0.2);
  padding: 12px 24px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--gray-700);
}
.page-banner a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Page Hero (interior pages) ── */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
  padding: 64px 0 48px;
}
.page-hero h1 { font-size: clamp(28px, 4.5vw, 46px); max-width: 700px; }
.page-hero p { font-family: 'DM Sans', sans-serif; font-size: 17px; color: var(--gray-500); max-width: 580px; margin-top: 12px; line-height: 1.65; }

/* ── Tool Cards ── */
.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
}
.tool-card:hover { box-shadow: var(--shadow-md); }
.tool-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.tool-icon { font-size: 32px; margin-bottom: 4px; }
.tool-card h3 { font-size: 20px; margin-bottom: 10px; }
.tool-card p { font-family: 'DM Sans', sans-serif; font-size: 14.5px; color: var(--gray-500); line-height: 1.65; margin-bottom: 0; }
.tool-output {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--gray-700);
}
.tool-output strong { font-weight: 600; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 0; }

/* ── Quote / Blockquote ── */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
}
.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
  font-style: italic;
  line-height: 1.5;
}
.pull-quote cite { font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--gray-500); font-style: normal; }

/* ── Compliance box ── */
.compliance-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
}
.compliance-box strong { color: var(--gray-700); }

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand h3 { font-family: 'Playfair Display', serif; color: var(--white); font-size: 18px; margin-bottom: 10px; }
.footer-brand p { font-family: 'DM Sans', sans-serif; font-size: 13.5px; line-height: 1.65; }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-family: 'DM Sans', sans-serif; font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-cta-bar {
  background: var(--navy);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-cta-bar p { font-family: 'DM Sans', sans-serif; font-size: 15px; color: rgba(255,255,255,0.85); margin: 0; }
.footer-cta-bar strong { color: var(--white); }

/* ── Sticky Mobile CTA ── */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 14px 20px;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.sticky-mobile-cta .btn { width: 100%; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta-bar { flex-direction: column; align-items: flex-start; }
  .sticky-mobile-cta { display: block; }
  body { padding-bottom: 72px; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; }
  .email-form { flex-direction: column; }
  .email-form input[type="email"] { min-width: unset; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

/* ── Misc ── */
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy-dark { background: var(--navy-dark); color: var(--white); }
.text-white { color: var(--white) !important; }
.text-white h1, .text-white h2, .text-white h3, .text-white h4 { color: var(--white); }
.text-gold { color: var(--gold); }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 40px; }

.prose h2 { font-size: 26px; margin-top: 40px; margin-bottom: 14px; }
.prose h3 { font-size: 20px; margin-top: 28px; margin-bottom: 10px; }
.prose ul { padding-left: 22px; margin-bottom: 1rem; }
.prose ul li { margin-bottom: 6px; line-height: 1.7; }
.prose ol { padding-left: 22px; margin-bottom: 1rem; }
.prose ol li { margin-bottom: 6px; line-height: 1.7; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
