/* ===== SPREE CASINO — MAIN STYLESHEET ===== */
/* Brand: Navy #0D1B3E | Gold #D4921A/#F5C842 | Cream #F0EAD6 */

:root {
  --c-navy:    #0D1B3E;
  --c-navy-2:  #101F47;
  --c-navy-3:  #162450;
  --c-navy-4:  #1C2D60;
  --c-gold:    #D4921A;
  --c-gold-2:  #F5C842;
  --c-gold-3:  #FDE68A;
  --c-cream:   #F0EAD6;
  --c-silver:  #C8CDE0;
  --c-muted:   #8892B0;
  --c-red:     #E84040;
  --c-green:   #2ECC71;
  --c-border:  rgba(212,146,26,.18);
  --c-card:    rgba(22,36,80,.70);
  --c-glass:   rgba(13,27,62,.80);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-card: 0 4px 24px rgba(0,0,0,.45);
  --shadow-glow: 0 0 24px rgba(212,146,26,.30);
  --shadow-gold: 0 2px 12px rgba(245,200,66,.25);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-h: 70px;
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-navy);
  color: var(--c-cream);
  line-height: 1.65;
  min-height: 100vh;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 9999;
  padding: 8px 20px;
  background: var(--c-gold);
  color: var(--c-navy);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--transition);
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ===== SELECTION ===== */
::selection { background: var(--c-gold); color: var(--c-navy); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-navy-2); }
::-webkit-scrollbar-thumb { background: var(--c-gold); border-radius: 4px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--c-cream);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.gold-text { color: var(--c-gold-2); }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: .75rem;
}

a { color: var(--c-gold-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-gold-3); }
:focus-visible { outline: 2px solid var(--c-gold-2); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--c-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-silver);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(212,146,26,.12);
  color: var(--c-gold-2);
}
.nav-cta {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-cream);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--c-navy);
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu ul a {
  display: block;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-cream);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--c-border);
}
.mobile-menu ul a:hover { background: rgba(212,146,26,.12); color: var(--c-gold-2); }
.mobile-menu .mob-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.mobile-tracker { 
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: .75rem;
  color: var(--c-muted);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  min-height: 44px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-2) 100%);
  color: var(--c-navy);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--c-gold-2) 0%, var(--c-gold-3) 100%);
  color: var(--c-navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,200,66,.40);
}
.btn-outline {
  background: transparent;
  color: var(--c-gold-2);
  border: 2px solid var(--c-gold);
}
.btn-outline:hover {
  background: rgba(212,146,26,.12);
  color: var(--c-gold-2);
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--c-cream);
  border: 1px solid rgba(255,255,255,.10);
}
.btn-ghost:hover { background: rgba(255,255,255,.10); color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .8rem; min-height: 36px; }

/* ===== CARDS ===== */
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card), var(--shadow-glow); }

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header p { color: var(--c-muted); max-width: 620px; margin: 12px auto 0; font-size: 1.05rem; }

/* ===== DIVIDER ===== */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-2));
  border-radius: 2px;
  margin: 16px auto 0;
}
.divider--left { margin-left: 0; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-gold { background: rgba(212,146,26,.18); color: var(--c-gold-2); border: 1px solid rgba(212,146,26,.3); }
.badge-green { background: rgba(46,204,113,.15); color: var(--c-green); border: 1px solid rgba(46,204,113,.25); }
.badge-red { background: rgba(232,64,64,.15); color: var(--c-red); border: 1px solid rgba(232,64,64,.25); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }
.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table thead th {
  background: var(--c-navy-4);
  color: var(--c-gold-2);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid var(--c-border);
}
.data-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
}
.data-table tbody tr:hover { background: rgba(212,146,26,.05); }
.data-table tbody td {
  padding: 13px 18px;
  color: var(--c-cream);
  vertical-align: middle;
}
.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.data-table tbody tr:nth-child(even):hover { background: rgba(212,146,26,.05); }

/* ===== CHART CONTAINERS ===== */
.chart-wrap {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-cream);
  margin-bottom: 20px;
}
.chart-box { position: relative; width: 100%; }

/* ===== STAT BOXES ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
}
.stat-box .stat-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-gold-2);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box .stat-lbl { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--c-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-gold-2); }
.breadcrumb .sep { color: var(--c-gold); }
.breadcrumb .current { color: var(--c-cream); }

/* ===== RATING STARS ===== */
.stars { color: var(--c-gold-2); letter-spacing: 2px; }
.rating-row { display: flex; align-items: center; gap: 8px; }
.rating-val { font-weight: 700; color: var(--c-gold-2); }

/* ===== PROGRESS BAR ===== */
.progress-item { margin-bottom: 16px; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; color: var(--c-silver); }
.progress-track { height: 8px; background: var(--c-navy-4); border-radius: 4px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-2));
  border-radius: 4px;
  transition: width 1s ease;
}

/* ===== ICON BOXES ===== */
.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 16px;
}
.icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(212,146,26,.12);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ===== ACCORDION / FAQ ===== */
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item:first-child { border-top: 1px solid var(--c-border); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: none;
  border: none;
  color: var(--c-cream);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-icon { font-size: 1.2rem; color: var(--c-gold); transition: transform .3s; flex-shrink: 0; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 18px; color: var(--c-muted); line-height: 1.7; }
.faq-answer.open { display: block; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(28,45,96,.8) 0%, var(--c-navy) 70%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(212,146,26,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,146,26,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(212,146,26,.02) 80px, rgba(212,146,26,.02) 82px);
  pointer-events: none;
}

/* ===== GOLD GRADIENT SECTION BG ===== */
.bg-dark-2 { background-color: var(--c-navy-2); }
.bg-dark-3 { background-color: var(--c-navy-3); }
.bg-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(212,146,26,.05) 1px, transparent 0);
  background-size: 40px 40px;
}

/* ===== GOLD LINE ===== */
.gold-line {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  margin: 48px 0;
}

/* ===== NOTICE / ALERT ===== */
.notice {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  border-left: 3px solid;
}
.notice-gold { background: rgba(212,146,26,.08); border-color: var(--c-gold); color: var(--c-cream); }
.notice-green { background: rgba(46,204,113,.08); border-color: var(--c-green); color: #a8f0cb; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--c-navy-2);
  border-top: 1px solid var(--c-border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: .9rem; color: var(--c-muted); margin-top: 16px; max-width: 300px; line-height: 1.6; }
.footer-brand img { height: 38px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-gold-2); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .875rem; color: var(--c-muted); }
.footer-col ul a:hover { color: var(--c-cream); }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--c-muted); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { font-size: .8rem; color: var(--c-muted); }
.footer-legal a:hover { color: var(--c-cream); }
.footer-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--c-muted);
  font-size: .7rem;
  font-weight: 800;
  color: var(--c-muted);
  flex-shrink: 0;
}
.footer-logos { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.footer-logos span {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: .5px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-silver);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-navy-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-cream);
  font-size: .95rem;
  transition: border-color var(--transition);
  min-height: 44px;
}
.form-control:focus { outline: none; border-color: var(--c-gold); }
.form-control::placeholder { color: var(--c-muted); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy-3) 0%, var(--c-navy-2) 100%);
  border-bottom: 1px solid var(--c-border);
  padding: 60px 0 48px;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--c-muted); max-width: 580px; font-size: 1.05rem; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: var(--c-navy-2);
  border-top: 1px solid var(--c-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
.cookie-banner p { font-size: .875rem; color: var(--c-muted); flex: 1; min-width: 200px; }
.cookie-banner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner.hidden { display: none; }

/* ===== MOBILE SVG ILLUSTRATIONS ===== */
.illustration { width: 100%; height: auto; display: block; }

/* ===== AUTHOR CARD ===== */
.author-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--c-gold);
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {

  .hero .grid-2 {
    display: flex !important;
    flex-direction: column-reverse !important;
    text-align: center;
  }
  .hero-visual {
    margin-bottom: 24px;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero p {
    text-align: center;
    margin: 12px auto 20px;
  }

  :root { --nav-h: 62px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section { padding: 52px 0; }
  .section--lg { padding: 72px 0; }
  .container { padding: 0 16px; }

  .hero { padding: 72px 0 56px; }
  .page-hero { padding: 40px 0 32px; }

  .data-table { font-size: .82rem; }
  .data-table thead th,
  .data-table tbody td { padding: 10px 12px; }

  .author-card { flex-direction: column; }

  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.45rem; }
  .btn { padding: 10px 18px; font-size: .85rem; }
  .btn-lg { padding: 12px 24px; }
  .card { padding: 20px; }
  .stat-box { padding: 20px 12px; }
  .stat-box .stat-val { font-size: 1.7rem; }

  .table-wrap { margin-left: -16px; margin-right: -16px; border-radius: 0; }
}

/* ===== SECTION VARIANTS ===== */
.section-compact { padding: 40px 0; }

/* ===== STAT NUMBER / LABEL (alias for stat-val / stat-lbl) ===== */
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-gold-2);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: .78rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== PROGRESS LIST / BAR / META (aliases + new) ===== */
.progress-list { display: flex; flex-direction: column; gap: 0; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--c-silver);
}
.progress-bar {
  height: 8px;
  background: var(--c-navy-4);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

/* ===== PAGE HERO INNER / SUB ===== */
.page-hero-inner { max-width: 680px; }
.page-hero-sub {
  color: var(--c-muted);
  font-size: 1.05rem;
  margin-top: 12px;
  max-width: 580px;
  line-height: 1.7;
}

/* ===== LEGAL CONTENT ===== */
.legal-content h2 { color: var(--c-cream); }
.legal-content a { color: var(--c-gold-2); }
.legal-content a:hover { color: var(--c-gold-3); }

/* ===== SAFE AREA (notch phones) ===== */
.cookie-banner {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.site-footer {
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== COLOR SCHEME ===== */
body { color-scheme: dark; }

/* ===== FOCUS TRAP / VISUALLY HIDDEN ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== MOBILE FORM INPUT SIZES (prevent iOS zoom) ===== */
@media (max-width: 768px) {

  .hero .grid-2 {
    display: flex !important;
    flex-direction: column-reverse !important;
    text-align: center;
  }
  .hero-visual {
    margin-bottom: 24px;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero p {
    text-align: center;
    margin: 12px auto 20px;
  }

  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ===== TABLE MIN-WIDTH ADJUSTMENTS ===== */
@media (max-width: 768px) {

  .hero .grid-2 {
    display: flex !important;
    flex-direction: column-reverse !important;
    text-align: center;
  }
  .hero-visual {
    margin-bottom: 24px;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero p {
    text-align: center;
    margin: 12px auto 20px;
  }

  .data-table { min-width: 480px; }
}
@media (max-width: 480px) {
  .data-table { min-width: 440px; }
  .table-wrap { margin-left: -16px; margin-right: -16px; border-radius: 0; }
}

/* ===== CHART ASPECT RATIO ===== */
.chart-box { aspect-ratio: 16/9; max-height: 400px; }
.chart-box canvas { max-width: 100%; }

/* ===== PRINT ===== */
@media print {
  .site-header, .mobile-menu, .cookie-banner, .hamburger { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; }
}
