/* ==========================================================================
   Best Casino Online — Design System
   Dark premium theme: charcoal/navy surfaces, gold + emerald accents
   ========================================================================== */

:root {
  --bg: #090b10;
  --bg-alt: #0d1017;
  --surface: #131924;
  --surface-2: #1a2230;
  --border: #262f3f;
  --border-soft: #1e2635;
  --text: #eef1f6;
  --text-dim: #9aa7bb;
  --text-faint: #6b7688;

  --gold: #e9b949;
  --gold-soft: #f6d98a;
  --gold-dim: #a9862f;
  --emerald: #23c68a;
  --emerald-soft: #6fe6b8;
  --red-flag: #e2596b;

  --gradient-gold: linear-gradient(135deg, #f6d98a 0%, #e9b949 45%, #c9932c 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(233, 185, 73, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(35, 198, 138, 0.10), transparent 60%),
    linear-gradient(180deg, #0b0e14 0%, #090b10 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 20px 60px -20px rgba(0, 0, 0, 0.7);

  --container: 1180px;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-dim); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
::selection { background: var(--gold); color: #1a1300; }

/* -------------------------------------------------------------------------
   Eyebrow / kicker / section headers
   ------------------------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--gold); display: inline-block; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text); }
.section-head p { font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-gold); color: #1c1400;
  box-shadow: 0 8px 22px -8px rgba(233, 185, 73, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(233, 185, 73, 0.7); }
.btn-outline {
  background: transparent; border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald-soft); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------------
   Header / Navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 11, 16, 0.97);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px; padding: 12px 0; flex-wrap: nowrap;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--text); flex-shrink: 0; white-space: nowrap; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-gold); color: #1c1400;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 2px 6px -1px rgba(0,0,0,0.4);
}
.logo .mark svg { width: 21px; height: 21px; display: block; }
.logo .brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.main-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 0; }
.main-nav > ul > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 8px 10px; border-radius: 8px; font-size: 0.86rem; font-weight: 600;
  color: var(--text-dim); transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-link .chev { font-size: 0.6rem; opacity: 0.6; transition: transform 0.15s; }
.has-dropdown:hover .chev, .has-dropdown.open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 50;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.88rem; color: var(--text-dim); }
.dropdown a:hover { background: var(--surface); color: var(--gold-soft); }
.dropdown-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; min-width: 420px; }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 42px; height: 42px; color: var(--text); font-size: 1.2rem; cursor: pointer; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { background: var(--gradient-hero); padding: 88px 0 64px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: var(--text); }
.hero h1 .accent { background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.1rem; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.trust-row { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-soft); }
.trust-stat span { font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-card);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hero-panel-head h3 { margin: 0; font-size: 1rem; color: var(--text); }
.badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(35, 198, 138, 0.14); color: var(--emerald-soft);
}
.mini-rank { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }
.mini-rank + .mini-rank { border-top: 1px solid var(--border-soft); }
.mini-rank .num { font-family: var(--font-head); font-weight: 800; color: var(--gold); width: 22px; }
.mini-rank .name { flex: 1; font-weight: 600; font-size: 0.92rem; }
.mini-rank .bonus { font-size: 0.8rem; color: var(--text-faint); }

/* -------------------------------------------------------------------------
   Casino avatar (placeholder logo)
   ------------------------------------------------------------------------- */
.casino-avatar {
  width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #14100a;
  background: var(--gradient-gold);
}
.casino-avatar.sm { width: 44px; height: 44px; font-size: 0.85rem; border-radius: 10px; }
.casino-avatar.lg { width: 72px; height: 72px; font-size: 1.5rem; border-radius: 18px; }

/* -------------------------------------------------------------------------
   Casino of the Month (hero panel)
   ------------------------------------------------------------------------- */
.cotm { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 4px 0 2px; }
.cotm h4 { font-size: 1.1rem; margin: 4px 0 0; color: var(--text); }
.cotm .bonus-headline { font-size: 1.05rem; margin: 4px 0 0; }
.cotm .btn-block { margin-top: 4px; }

/* -------------------------------------------------------------------------
   Star rating
   ------------------------------------------------------------------------- */
.stars { position: relative; display: inline-block; font-size: 1rem; letter-spacing: 2px; color: var(--border); }
.stars::before { content: "\2605\2605\2605\2605\2605"; }
.stars .fill { position: absolute; inset: 0; overflow: hidden; color: var(--gold); white-space: nowrap; }
.stars .fill::before { content: "\2605\2605\2605\2605\2605"; }
.rating-line { display: flex; align-items: center; gap: 8px; }
.rating-score { font-family: var(--font-head); font-weight: 800; color: var(--gold-soft); }

/* -------------------------------------------------------------------------
   Ranked casino cards (replaces the old nested <table> bonus lists)
   ------------------------------------------------------------------------- */
.rank-list { display: flex; flex-direction: column; gap: 16px; }
.rank-card {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-card); position: relative; overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.rank-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.rank-card.featured { border-color: var(--gold-dim); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.rank-card.featured::after {
  content: "Editor's Choice"; position: absolute; top: 14px; right: -34px; transform: rotate(35deg);
  background: var(--gradient-gold); color: #1c1400; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 40px;
}
.rank-badge {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head);
  font-weight: 800; color: var(--text-faint); font-size: 1rem; background: var(--bg-alt);
}
.rank-card:nth-child(1) .rank-badge { color: #1c1400; background: var(--gradient-gold); border-color: transparent; }
.rank-card:nth-child(2) .rank-badge { color: #14100a; background: linear-gradient(135deg,#e8ecf1,#b9c2cf); border-color: transparent; }
.rank-card:nth-child(3) .rank-badge { color: #2a1607; background: linear-gradient(135deg,#d79a63,#a5652f); border-color: transparent; }

.rank-info h3 { font-size: 1.15rem; margin-bottom: 4px; }
.rank-info h3 a:hover { color: var(--gold-soft); }
.rank-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 8px 0 10px; font-size: 0.85rem; color: var(--text-faint); }
.rank-meta strong { color: var(--emerald-soft); font-weight: 700; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.72rem; font-weight: 600; color: var(--text-dim); background: var(--surface-2);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px;
}
.rank-cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 150px; }
.bonus-headline { font-family: var(--font-head); font-weight: 800; color: var(--gold-soft); font-size: 1.05rem; text-align: center; }

@media (max-width: 900px) {
  .rank-card { grid-template-columns: auto 1fr; }
  .rank-cta { grid-column: 1 / -1; flex-direction: row; }
  .bonus-headline { text-align: left; }
}

/* -------------------------------------------------------------------------
   Generic card grid (games, guides, reviews index, trust)
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-card); transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-soft); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px;
  color: var(--gold);
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin-bottom: 0; }
.card a.card-link { font-size: 0.85rem; font-weight: 700; color: var(--gold-soft); display: inline-flex; gap: 6px; margin-top: 12px; }

.news-card .date { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; display: block; }
.news-card h3 { font-size: 1.05rem; }

/* -------------------------------------------------------------------------
   Alt section background band
   ------------------------------------------------------------------------- */
.band { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* -------------------------------------------------------------------------
   How-we-rate / steps
   ------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--gold); font-family: var(--font-head); font-weight: 800; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px;
}
.step h4 { font-size: 0.95rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; }

/* -------------------------------------------------------------------------
   Table (used sparingly, e.g. top-lists comparisons) — modernized, responsive
   ------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.modern-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.modern-table th {
  text-align: left; font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-faint); background: var(--surface-2); padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
table.modern-table td { padding: 16px 18px; border-bottom: 1px solid var(--border-soft); font-size: 0.9rem; color: var(--text); }
table.modern-table tr:last-child td { border-bottom: none; }
table.modern-table tr:hover td { background: rgba(255,255,255,0.015); }
.cell-casino { display: flex; align-items: center; gap: 12px; font-weight: 700; }

/* -------------------------------------------------------------------------
   Callouts / disclosure / responsible gambling banner
   ------------------------------------------------------------------------- */
.callout {
  display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.callout .icon { font-size: 1.4rem; flex-shrink: 0; }
.callout p { margin: 0; font-size: 0.88rem; }
.callout-strip {
  background: var(--surface-2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  padding: 14px 0; font-size: 0.82rem; color: var(--text-faint); text-align: center;
}
.callout-strip strong { color: var(--emerald-soft); }
.rg-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.rg-badge { border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 0.75rem; color: var(--text-dim); }

/* -------------------------------------------------------------------------
   Trust bar (licensing / security / payment method signals)
   ------------------------------------------------------------------------- */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  padding: 28px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.trust-item {
  display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); padding: 9px 16px; border-radius: 999px;
}
.trust-item .ico { font-size: 1rem; }
.trust-item strong { color: var(--text); font-weight: 700; }
.payment-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px;
}
.payment-chip {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: var(--text-faint);
  border: 1px solid var(--border-soft); padding: 5px 12px; border-radius: 6px;
}

/* -------------------------------------------------------------------------
   FAQ (details/summary — accessible, no JS needed)
   ------------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item { border-bottom: 1px solid var(--border-soft); padding: 18px 0; }
.faq-item summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding-top: 12px; font-size: 0.92rem; }

/* -------------------------------------------------------------------------
   Review detail page
   ------------------------------------------------------------------------- */
.review-banner {
  margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.review-banner img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.review-banner-caption {
  margin: 0; padding: 10px 16px; background: var(--surface-2); font-size: 0.76rem; color: var(--text-faint);
}
.review-hero {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-card); margin-bottom: 40px;
}
@media (max-width: 760px) { .review-hero { grid-template-columns: 1fr; text-align: center; } .review-hero .rank-cta { margin: 0 auto; } }
.review-hero .casino-avatar { width: 84px; height: 84px; font-size: 1.5rem; border-radius: 18px; }
.breadcrumbs { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--gold-soft); }
.review-body { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .review-body { grid-template-columns: 1fr; } }
.review-article h2 { font-size: 1.35rem; margin-top: 40px; }
.review-article h2:first-child { margin-top: 0; }
.review-article h3 { font-size: 1.05rem; color: var(--gold-soft); margin: 22px 0 8px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons .box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.pros-cons .box h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.pros-cons .pros h4 { color: var(--emerald-soft); }
.pros-cons .cons h4 { color: var(--red-flag); }
.pros-cons ul li { font-size: 0.88rem; padding: 6px 0; padding-left: 20px; position: relative; color: var(--text-dim); }
.pros-cons .pros li::before { content: "\2713"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.pros-cons .cons li::before { content: "\2715"; position: absolute; left: 0; color: var(--red-flag); font-weight: 700; }

.plain-list li { font-size: 0.92rem; padding: 8px 0 8px 22px; position: relative; color: var(--text-dim); border-bottom: 1px solid var(--border-soft); }
.plain-list li:last-child { border-bottom: none; }
.plain-list li::before { content: "\26A0"; position: absolute; left: 0; color: var(--gold); font-size: 0.8rem; }

.promo-list { margin: 0 0 20px; padding-left: 0; }
.promo-list li { font-size: 0.92rem; padding: 10px 0 10px 24px; position: relative; color: var(--text-dim); border-bottom: 1px solid var(--border-soft); }
.promo-list li:last-child { border-bottom: none; }
.promo-list li::before { content: "\1F381"; position: absolute; left: 0; font-size: 0.85rem; }
.promo-list li strong { color: var(--text); }

.spec-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 18px; font-size: 0.88rem; border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--text-faint); }
.spec-row span:last-child { font-weight: 700; }

.sticky-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border-soft); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { font-size: 0.88rem; color: var(--text-dim); }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-about p { font-size: 0.88rem; max-width: 320px; }
.footer-disclosure {
  border-top: 1px solid var(--border-soft); padding: 22px 0; font-size: 0.78rem; color: var(--text-faint);
}
.footer-disclosure p { font-size: 0.78rem; color: var(--text-faint); }
.footer-bottom {
  border-top: 1px solid var(--border-soft); padding: 20px 0 30px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-faint);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center; font-size: 0.85rem;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 6px; font-family: var(--font-head); font-weight: 800;
  font-size: 0.75rem; color: var(--red-flag);
}

/* -------------------------------------------------------------------------
   Page header (for interior pages)
   ------------------------------------------------------------------------- */
.page-header { padding: 56px 0 40px; background: var(--gradient-hero); border-bottom: 1px solid var(--border-soft); }
.page-header h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-header .lead { max-width: 640px; font-size: 1.05rem; }

/* -------------------------------------------------------------------------
   Nav — three tiers:
   > 1250px  desktop: full nav row, hover-revealed dropdowns, no scrolling.
   701-1250px "tablet": logo/nav/CTA are fixed-width (none shrink or wrap),
     so the nav's natural content width no longer fits — instead of a hidden
     hamburger panel (which tested as unintuitive at these wider, non-phone
     widths), the nav row scrolls horizontally and stays visible at all times.
     Dropdowns switch to JS-computed `position:fixed` when opened here (see
     main.js) because `overflow-x:auto` on the scroll container would also
     clip anything that overflows vertically — a `position:absolute` dropdown
     popover included — per how browsers coerce `overflow-y` once `overflow-x`
     is scrollable. Fixed positioning escapes that clipping entirely.
   <= 700px  phone: standard slide-out hamburger panel.
   Re-measure both thresholds if top-level nav items are ever added/removed.
   ------------------------------------------------------------------------- */
@media (max-width: 1250px) {
  .header-inner { gap: 10px; }
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo .mark { width: 32px; height: 32px; }
  .logo .mark svg { width: 18px; height: 18px; }
  .logo .brand-sub { display: none; }
  .header-cta .btn-primary { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
}

/* Tablet / small-laptop tier: 701px-1250px — horizontal-scroll nav, no hamburger */
@media (min-width: 701px) and (max-width: 1250px) {
  .main-nav {
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav > ul { flex-shrink: 0; }
  .main-nav > ul > li { flex-shrink: 0; }
  .menu-toggle { display: none; }
  .dropdown { max-width: calc(100vw - 24px); }
  .dropdown-cols { min-width: 0; max-width: 100%; }
}

/* Phone tier: <= 700px — hamburger + slide-out panel */
@media (max-width: 700px) {
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--border-soft);
    flex-direction: column; align-items: stretch; padding: 18px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.2s ease; z-index: 90;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    border: none; background: var(--surface); box-shadow: none; margin: 4px 0 4px 10px; min-width: 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown-cols { grid-template-columns: 1fr; min-width: 0; }
  .menu-toggle { display: block; }
}

/* -------------------------------------------------------------------------
   Cookie consent banner + preferences modal (GDPR / CCPA)
   ------------------------------------------------------------------------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 760px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); padding: 20px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; font-size: 0.85rem; color: var(--text-dim); flex: 1 1 320px; }
.consent-banner p a { color: var(--gold-soft); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }

.consent-overlay {
  position: fixed; inset: 0; z-index: 310; background: rgba(4, 5, 8, 0.7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.consent-overlay[hidden] { display: none; }
.consent-modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); max-width: 520px; width: 100%; padding: 28px; max-height: 85vh; overflow-y: auto;
}
.consent-modal h3 { font-size: 1.2rem; margin-bottom: 6px; }
.consent-modal > p { font-size: 0.88rem; }
.consent-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border-soft);
}
.consent-row:last-of-type { border-bottom: none; }
.consent-row h4 { font-size: 0.92rem; margin-bottom: 4px; }
.consent-row p { font-size: 0.8rem; margin: 0; color: var(--text-faint); }
.consent-modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider {
  position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: background 0.15s;
}
.toggle-switch .slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%;
  background: var(--text); transition: transform 0.15s;
}
.toggle-switch input:checked + .slider { background: var(--emerald); }
.toggle-switch input:checked + .slider::before { transform: translateX(18px); background: #08150f; }
.toggle-switch input:disabled + .slider { opacity: 0.5; cursor: not-allowed; }

/* -------------------------------------------------------------------------
   Newsletter band (Kit/ConvertKit embed) — sits above the footer on every page
   ------------------------------------------------------------------------- */
.newsletter-band {
  background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  padding: 44px 0; text-align: center;
}
.newsletter-form-wrap { max-width: 640px; margin: 14px auto 0; }
.newsletter-form-wrap .formkit-form { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
