/* ============================================
   CoupleLifeEvents.com — Ultra-Premium Editorial CSS
   Deep Blue (#0F2B4C) + Crimson Red (#D63031)
   Modern, clean, captivating
   ============================================ */

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

/* --- Variables --- */
:root {
  --navy: #0F2B4C;
  --navy-light: #1A3D6D;
  --navy-dark: #091E36;
  --red: #D63031;
  --red-hover: #C0211E;
  --red-soft: #FFF0F0;
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --gray-50: #F7F8FA;
  --gray-100: #EEF0F4;
  --gray-200: #E1E5EB;
  --gray-300: #CDD3DC;
  --gray-400: #A0AAB8;
  --gray-500: #6B7A8D;
  --gray-600: #4A5568;
  --text: #1A202C;
  --text-secondary: #5A6577;
  --text-light: #8896A8;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1240px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15,43,76,0.06);
  --shadow: 0 4px 20px rgba(15,43,76,0.08);
  --shadow-lg: 0 12px 40px rgba(15,43,76,0.12);
  --shadow-xl: 0 20px 60px rgba(15,43,76,0.16);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: all 0.25s var(--ease); }
a:hover { color: var(--red); }
ul, ol { padding-left: 1.4em; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; margin-bottom: 0.5em; font-weight: 400; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1.1em; }

/* --- Container --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ============================================
   HEADER — Glassmorphism sticky nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,43,76,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-logo .dot { color: var(--red); font-size: 2rem; line-height: 1; }
.site-logo:hover { color: var(--white); opacity: 0.92; }

.nav-menu { display: flex; list-style: none; gap: 4px; padding: 0; margin: 0; }
.nav-menu a {
  color: rgba(255,255,255,0.78);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.01em;
}
.nav-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.mobile-toggle:hover { border-color: rgba(255,255,255,0.5); }

@media (max-width: 860px) {
  .mobile-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
    border-bottom: 2px solid var(--red);
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 14px 16px; font-size: 0.95rem; border-radius: 8px; }
}

/* ============================================
   HERO — Premium gradient + pattern
   ============================================ */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #162F54 40%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 100px 28px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(214,48,49,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,61,109,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 780px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 12px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(214,48,49,0.35);
}
.hero-cta:hover {
  background: var(--red-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(214,48,49,0.45);
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 28px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
}
.hero-cta-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  display: block;
}
.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero { padding: 60px 20px 70px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 1.5rem; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-header h2 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   SILO CARDS — Life Event Cards
   ============================================ */
.silo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .silo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .silo-grid { grid-template-columns: 1fr; } }

.silo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  border: 1px solid var(--gray-200);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.silo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.silo-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}
.silo-card:hover::before { opacity: 1; }

.silo-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-50);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: all 0.35s var(--ease);
}
.silo-card:hover .silo-icon {
  background: var(--navy);
  transform: scale(1.05);
}
.silo-card:hover .silo-icon span { filter: brightness(10); }

.silo-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.silo-card h3 a { color: var(--navy); }
.silo-card h3 a:hover { color: var(--navy); }
.silo-card .desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.silo-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s var(--ease);
}
.silo-card .card-link:hover { gap: 10px; }
.silo-card .page-count {
  display: inline-block;
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-left: 8px;
}

/* ============================================
   SILO CARD IMAGE — Category illustration header
   ============================================ */
.silo-card-img {
  margin: -36px -28px 24px -28px;
  height: 155px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.silo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.silo-card:hover .silo-card-img img { transform: scale(1.04); }

/* ============================================
   HERO ILLUSTRATION — Decorative side image
   ============================================ */
.hero-illustration {
  position: absolute;
  right: max(20px, calc(50% - 640px));
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 340px;
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1200px) { .hero-illustration { width: 320px; height: 250px; opacity: 0.18; } }
@media (max-width: 1024px) { .hero-illustration { display: none; } }

/* ============================================
   LOCATION GRID — Sleek pills
   ============================================ */
.locations-section { padding-bottom: 40px; }
.location-group { margin-bottom: 36px; }
.location-group-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}
.location-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.location-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.location-link:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============================================
   GUIDE CARDS — Editorial article cards
   ============================================ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
@media (max-width: 768px) { .guide-grid { grid-template-columns: 1fr; } }

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s var(--ease);
  position: relative;
}
.guide-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.guide-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  width: fit-content;
}
.guide-tag-blue { background: rgba(15,43,76,0.07); color: var(--navy); }
.guide-tag-red { background: var(--red-soft); color: var(--red); }
.guide-tag-green { background: #F0FFF4; color: #276749; }
.guide-tag-purple { background: #FAF5FF; color: #6B46C1; }

.guide-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.35;
}
.guide-card .desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0;
  flex-grow: 1;
  line-height: 1.6;
}
.guide-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 16px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease);
}
.guide-card:hover .read-more {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   FEATURED STRIP — Horizontal scroll on mobile
   ============================================ */
.featured-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .featured-strip {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .featured-strip { grid-template-columns: 1fr; }
}
.featured-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s var(--ease);
  text-align: center;
}
.featured-item:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.featured-item .fi-icon {
  width: 48px;
  height: 48px;
  background: var(--red-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}
.featured-item h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.featured-item p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   FAQ — Modern accordion
   ============================================ */
.faq-section { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-item.open { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.faq-question {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  transition: all 0.2s;
}
.faq-question:hover { color: var(--navy); }
.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.faq-item.open .faq-icon {
  background: var(--navy);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(214,48,49,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto 28px; position: relative; z-index: 1; }

/* ============================================
   AD SLOTS — Clean, minimal
   ============================================ */
.ad-slot {
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 32px 0;
  letter-spacing: 0.05em;
}
.ad-slot-sidebar { margin-bottom: 24px; }

/* Mobile Anchor Ad — fixed bottom bar on mobile */
.ad-slot-anchor-mobile {
  display: none;
}
@media (max-width: 768px) {
  .ad-slot-anchor-mobile {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 8px;
    text-align: center;
    z-index: 999;
    font-size: 0.72rem;
    color: var(--gray-400);
  }
}

/* ============================================
   ARTICLE PAGE LAYOUT
   ============================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 28px;
}
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
}

.breadcrumbs {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--navy); font-weight: 500; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { color: var(--gray-400); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.meta-badge-blue { background: rgba(15,43,76,0.06); color: var(--navy); }
.meta-badge-green { background: #ECFDF5; color: #065F46; }
.meta-badge-gray { background: var(--gray-100); color: var(--gray-600); }

.article-content h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 20px; }
.article-content h2 {
  margin-top: 2.5em;
  padding-top: 2em;
  border-top: 1px solid var(--gray-200);
  font-size: 1.5rem;
}
.article-content h3 { margin-top: 1.8em; font-size: 1.2rem; }

/* Quick Answer */
.quick-answer {
  background: linear-gradient(135deg, rgba(15,43,76,0.03), rgba(15,43,76,0.06));
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  margin: 28px 0 36px;
  font-size: 0.98rem;
  line-height: 1.75;
}
.quick-answer strong { color: var(--navy); }

/* Scenarios */
.scenario {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  transition: all 0.3s var(--ease);
}
.scenario:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.scenario-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.scenario h4 { color: var(--navy); margin-bottom: 10px; }

/* Mistakes */
.mistakes-box {
  background: var(--red-soft);
  border: 1px solid rgba(214,48,49,0.12);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 28px 0;
}
.mistakes-box h3 { color: var(--red); margin-bottom: 16px; }
.mistakes-box li { margin-bottom: 10px; font-size: 0.95rem; }

/* Checklist */
.checklist {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 28px 0;
}
.checklist h3 { margin-bottom: 20px; }
.checklist ul { list-style: none; padding: 0; }
.checklist li {
  padding: 12px 0 12px 36px;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--navy);
  border-radius: 50%;
}
.checklist li::after {
  content: '\2713';
  position: absolute;
  left: 4px;
  top: 16px;
  font-size: 0.75rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 20px;
}

/* Legal Box */
.legal-box {
  background: rgba(15,43,76,0.02);
  border: 1px solid rgba(15,43,76,0.08);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 28px 0;
}
.legal-box h3 { color: var(--navy); }

/* Internal Links */
.internal-links {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 36px 0;
}
.internal-links h3 { margin-bottom: 16px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.internal-links ul { list-style: none; padding: 0; }
.internal-links li { margin-bottom: 12px; }
.internal-links a {
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Disclaimer */
.disclaimer-bar {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 40px;
  line-height: 1.65;
  border: 1px solid var(--gray-200);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { position: sticky; top: 92px; align-self: start; }
@media (max-width: 1024px) { .sidebar { display: none; } }

.toc {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
}
.toc h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.toc ul { list-style: none; padding: 0; }
.toc li { margin-bottom: 6px; }
.toc a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  display: block;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all 0.2s var(--ease);
}
.toc a:hover, .toc a.active {
  color: var(--navy);
  background: rgba(15,43,76,0.04);
  border-left-color: var(--red);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.footer-brand .site-logo { font-size: 1.3rem; margin-bottom: 16px; display: inline-block; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: all 0.25s var(--ease);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 56px;
  padding: 24px 28px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   HUB PAGES
   ============================================ */
.hub-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 28px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hub-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214,48,49,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hub-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; position: relative; z-index: 1; }
.hub-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

.hub-content { max-width: var(--max-w); margin: 0 auto; padding: 48px 28px; }
.hub-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}
.hub-filter a {
  padding: 8px 18px;
  border: 1px solid var(--gray-300);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease);
}
.hub-filter a:hover, .hub-filter a.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 4px 16px rgba(214,48,49,0.25); }
.btn-red:hover { background: var(--red-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(214,48,49,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gray-100); color: var(--navy); }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page { max-width: 780px; margin: 0 auto; padding: 56px 28px; }
.legal-page h1 { margin-bottom: 8px; font-size: 2.2rem; }
.legal-page .updated { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.35rem; margin-top: 2.5em; }
.legal-page p, .legal-page li { font-size: 0.95rem; line-height: 1.75; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Smooth animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
