:root {
  --terracotta: #C4572A;
  --terracotta-light: #D97B4F;
  --sand: #F5E6D3;
  --sand-light: #FAF3EB;
  --olive: #6B7B3A;
  --olive-dark: #4A5628;
  --warm-brown: #5C3D2E;
  --warm-brown-light: #8B6A52;
  --cream: #FFF8F0;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --text-dark: #2C1810;
  --text-body: #4A3728;
  --text-muted: #7A6558;
  --border: #E0D0C0;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(92,61,46,0.08);
  --shadow-md: 0 4px 12px rgba(92,61,46,0.1);
  --shadow-lg: 0 8px 30px rgba(92,61,46,0.12);
  --radius: 8px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.3;
}

a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--terracotta-light); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, var(--warm-brown) 0%, var(--terracotta) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.active { color: var(--white); }
.main-nav a.active::after { width: 100%; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--warm-brown) 0%, var(--terracotta) 60%, var(--terracotta-light) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; line-height: 1.2; color: var(--white); }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 30px; line-height: 1.6; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat-label { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* ── Section ── */
.section { padding: 70px 0; }
.section-alt { background: var(--sand-light); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--terracotta);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-badge {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-badge.green { background: var(--olive); }
.card-badge.gold { background: var(--gold); color: var(--text-dark); }

.card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.card-body { padding: 24px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-link {
  font-weight: 600;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover { gap: 8px; }

/* ── Stats Table ── */
.stats-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.stats-table thead {
  background: var(--warm-brown);
  color: var(--white);
}

.stats-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
}

.stats-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.stats-table tbody tr:nth-child(even) { background: var(--sand-light); }
.stats-table tbody tr:hover { background: var(--sand); }

/* ── Data Highlights ── */
.data-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.data-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.data-card:hover { transform: translateY(-2px); }

.data-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.data-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.data-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Category Pills ── */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
}

.category-pill:hover,
.category-pill.active {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(196,87,42,0.05);
}

/* ── Featured ── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.featured-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.featured-main .card-img { height: 280px; }
.featured-main .card-body { padding: 32px; }
.featured-main h3 { font-size: 1.5rem; }

.featured-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-small {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.featured-small:hover { box-shadow: var(--shadow-md); }

.featured-small-icon {
  width: 48px;
  height: 48px;
  background: var(--sand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.featured-small h4 { font-size: 1rem; margin-bottom: 6px; }
.featured-small p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Methodology ── */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.method-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  text-align: center;
}

.method-num {
  width: 48px;
  height: 48px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 18px;
}

.method-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.method-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Source Sans 3', sans-serif;
}

.faq-question:hover { background: var(--sand-light); }

.faq-arrow {
  transition: transform 0.3s;
  font-size: 1.2rem;
  color: var(--terracotta);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  background: var(--warm-brown);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 12px; opacity: 0.8; }

.footer-col h4 {
  color: var(--gold);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  color: var(--gold);
}

/* ── Article Page ── */
.article-hero {
  background: linear-gradient(135deg, var(--warm-brown) 0%, var(--terracotta) 100%);
  color: var(--white);
  padding: 60px 0 50px;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }

.article-hero h1 { font-size: 2.2rem; color: var(--white); max-width: 800px; }
.article-hero .meta { margin-top: 14px; font-size: 0.9rem; opacity: 0.8; }

.article-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 24px;
}

.article-content h2 { font-size: 1.6rem; margin: 36px 0 16px; }
.article-content h3 { font-size: 1.25rem; margin: 28px 0 12px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content li { margin-bottom: 8px; }

.article-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--terracotta);
}

.sidebar-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.sidebar-link:last-child { border-bottom: none; }

/* ── Legal Pages ── */
.legal-page { max-width: 800px; margin: 0 auto; padding: 50px 24px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; }
.legal-page h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.legal-page p { margin-bottom: 14px; }
.legal-page ul { margin: 0 0 14px 24px; }
.legal-page li { margin-bottom: 6px; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; color: var(--text-muted); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--cream);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover { background: var(--terracotta-light); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
}
.btn-outline:hover { background: var(--terracotta); color: var(--white); }

/* ── Responsible Play ── */
.rg-banner {
  background: var(--olive-dark);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.rg-banner-icon { font-size: 2.5rem; flex-shrink: 0; }
.rg-banner h3 { color: var(--white); margin-bottom: 8px; font-size: 1.2rem; }
.rg-banner p { font-size: 0.95rem; opacity: 0.9; }

.rg-resources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.rg-resource-card {
  background: var(--white);
  border: 2px solid var(--olive);
  border-radius: var(--radius);
  padding: 24px;
}

.rg-resource-card h4 { color: var(--olive-dark); margin-bottom: 8px; }
.rg-resource-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .data-highlights { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .methodology-grid { grid-template-columns: repeat(2, 1fr); }
  .article-sidebar-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-brown);
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .main-nav a { display: block; padding: 12px 0; }

  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }

  .cards-grid { grid-template-columns: 1fr; }
  .data-highlights { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .methodology-grid { grid-template-columns: 1fr; }

  .section { padding: 50px 0; }
  .section-header h2 { font-size: 1.6rem; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .data-highlights { grid-template-columns: 1fr; }
  .rg-resources { grid-template-columns: 1fr; }
}
