/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a1a2e;
  --navy-light: #222240;
  --teal: #16a085;
  --teal-hover: #1abc9c;
  --teal-dark: #128a72;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f5f5f5;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-soft: #fef2f2;
  --red-border: #fca5a5;
  --red-text: #991b1b;
  --yellow-soft: #fffbeb;
  --yellow-border: #fcd34d;
  --yellow-text: #92400e;
  --green-soft: #f0fdf4;
  --green-border: #86efac;
  --green-text: #166534;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --content-width: 780px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-hover);
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--teal);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

/* ===== NAVIGATION ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--teal);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: clamp(60px, 10vw, 120px) 24px;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero .cta-button {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(22,160,133,0.4);
}

.hero .cta-button:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  color: var(--white);
}

/* ===== ARTICLE HERO (smaller, for article pages) ===== */
.article-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: clamp(40px, 6vw, 80px) 24px;
  text-align: center;
}

.article-hero h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto 12px;
}

.article-hero .article-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(48px, 6vw, 80px) 24px;
}

.section--alt {
  background: var(--gray-100);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section--navy .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 640px;
  margin-bottom: 40px;
}

.section--navy .section-subtitle {
  color: rgba(255,255,255,0.6);
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--gray-700);
  line-height: 1.7;
}

.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--gray-700);
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-content strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* ===== NUMBERED QUESTIONS LIST (Homepage) ===== */
.questions-list {
  counter-reset: question;
  list-style: none;
  padding: 0;
}

.question-item {
  counter-increment: question;
  margin-bottom: 48px;
  padding-left: 72px;
  position: relative;
}

.question-item::before {
  content: counter(question);
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  background: var(--teal);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.question-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.3;
}

.question-item p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ===== NUMBERED ARTICLE ITEMS ===== */
.numbered-item {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-200);
}

.numbered-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.numbered-item h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.item-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: var(--teal);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== RED FLAG CARD ===== */
.red-flag-item {
  background: var(--white);
  border-left: 4px solid #ef4444;
  padding: 24px 28px;
  margin-bottom: 32px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.red-flag-item h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  margin-top: 0;
}

.red-flag-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-top: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.red-flag-item p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ===== RIGHTS CARDS ===== */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.right-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.right-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.right-card .card-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.right-card .card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.right-card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 15px;
}

/* ===== SCORE EXPLAINER ===== */
.score-explainer {
  max-width: var(--content-width);
  margin: 0 auto;
}

.score-bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.score-band {
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
}

.score-band--green {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
}

.score-band--yellow {
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
}

.score-band--red {
  background: var(--red-soft);
  border: 1px solid var(--red-border);
}

.score-band .band-score {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.score-band--green .band-score { color: var(--green-text); }
.score-band--yellow .band-score { color: var(--yellow-text); }
.score-band--red .band-score { color: var(--red-text); }

.score-band .band-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.score-band--green .band-label { color: var(--green-text); }
.score-band--yellow .band-label { color: var(--yellow-text); }
.score-band--red .band-label { color: var(--red-text); }

.score-band .band-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: var(--white);
  padding: clamp(40px, 5vw, 64px) 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cta-banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.cta-banner .cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--teal-dark);
}

/* ===== INLINE CTA (within articles) ===== */
.inline-cta {
  background: var(--gray-50);
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 48px 0;
}

.inline-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.inline-cta p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.inline-cta .cta-button {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s ease;
}

.inline-cta .cta-button:hover {
  background: var(--teal-hover);
  color: var(--white);
}

/* ===== CALLOUT BOX ===== */
.callout {
  background: var(--yellow-soft);
  border-left: 4px solid var(--yellow-border);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--yellow-text);
  line-height: 1.6;
}

.callout--info {
  background: #eff6ff;
  border-left-color: #60a5fa;
  color: #1e40af;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}

.comparison-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  line-height: 1.5;
}

.comparison-table tr:nth-child(even) td {
  background: var(--gray-50);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-brand .footer-logo:hover {
  color: var(--teal);
}

.footer-brand .footer-logo svg {
  width: 24px;
  height: 24px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links-group h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-links-group ul {
  list-style: none;
  padding: 0;
}

.footer-links-group li {
  margin-bottom: 8px;
}

.footer-links-group a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-group a:hover {
  color: var(--teal);
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  margin-top: 8px;
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  max-width: 640px;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.about-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 40px;
  margin-bottom: 14px;
}

.about-content p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-content a {
  font-weight: 500;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--teal);
}

/* ===== INTERNAL LINK BOX ===== */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.related-articles h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.related-articles a {
  display: block;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  border: 1px solid var(--gray-200);
}

.related-articles a:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px 24px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    font-size: 15px;
    width: 100%;
  }

  .question-item {
    padding-left: 0;
    padding-top: 64px;
  }

  .question-item::before {
    left: 0;
    top: 0;
  }

  .score-bands {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero .subtitle {
    font-size: 15px;
  }

  .nav-logo {
    font-size: 13px;
  }

  .cta-banner h2 {
    font-size: 22px;
  }
}
