/* =====================================================================
   Stake-Bet.ca — Design System
   Premium dark betting/casino theme. Navy base, blue (#1475e1) accent.
   Mobile-first. WordPress-style structure.
   ===================================================================== */

:root {
  /* Color tokens — dark navy base, electric-blue accent */
  --c-base:      #0e2230;
  --c-base-2:    #0a1a25;
  --c-surface:   #142c3c;
  --c-raised:    #1b384b;
  --c-raised-2:  #214559;
  --c-line:      rgba(255, 255, 255, .09);
  --c-line-soft: rgba(255, 255, 255, .05);

  --c-text:      #eaf1f7;
  --c-muted:     #9bb0c0;
  --c-faint:     #6c8395;

  --c-primary:   #1475e1;
  --c-primary-2: #0f5fc0;
  --c-primary-glow: #2f8bf5;
  --c-primary-soft: #4f9bf0;
  --c-gold:      #f3c14b;   /* reserved for age / caution accents only */
  --c-gold-2:    #e3a92f;

  --grad-cta:    linear-gradient(135deg, #2f8bf5 0%, #1475e1 100%);
  --grad-gold:   linear-gradient(135deg, #f6cf6a 0%, #e3a92f 100%);
  --grad-panel:  linear-gradient(160deg, #1b384b 0%, #0f2532 100%);

  /* Spacing & shape */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: 1180px;
  --gutter:    20px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .28);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, .42);
  --shadow-cta: 0 10px 26px rgba(20, 117, 225, .38);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--c-base);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-soft); text-decoration: none; transition: color .15s ease; }
a:hover { color: #79b4f5; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.4rem); }
h3 { font-size: clamp(1.18rem, 1rem + .6vw, 1.45rem); }
h4 { font-size: 1.02rem; letter-spacing: .02em; }
p { margin: 0 0 1rem; color: var(--c-text); }
strong { color: #fff; font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: 64px 0; }
.section--alt { background: var(--c-base-2); }
.section--tight { padding: 44px 0; }
.mt-2 { margin-top: .75rem; } .mb-0 { margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-primary-glow); margin-bottom: .6rem;
}
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--c-muted); font-size: 1.06rem; }
.lead { font-size: 1.18rem; color: var(--c-muted); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Disclosure top bar ---------- */
.topbar {
  background: var(--c-base-2);
  color: var(--c-muted);
  font-size: .82rem;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--c-line-soft);
}
.topbar strong { color: var(--c-primary-soft); }

/* ---------- Buttons ---------- */
.btn, .cta-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; font-family: inherit; cursor: pointer;
  border-radius: 999px; border: 1px solid transparent;
  padding: 12px 24px; font-size: .98rem; line-height: 1;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.cta-button {
  background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-cta);
}
.cta-button:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 32px rgba(20, 117, 225, .5); }
.btn-ghost {
  background: transparent; color: var(--c-text); border-color: var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-primary); color: #fff; }
.btn-gold { background: var(--grad-gold); color: #2a1d00; }
.btn-gold:hover { transform: translateY(-2px); color: #2a1d00; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 34, 48, .85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s ease;
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.site-branding { display: flex; align-items: center; }
.site-branding img { height: 30px; width: auto; }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; gap: 4px; list-style: none; align-items: center; }
.main-navigation a {
  display: block; padding: 9px 13px; border-radius: 8px;
  color: var(--c-muted); font-weight: 600; font-size: .94rem;
}
.main-navigation a:hover, .main-navigation a[aria-current="page"] {
  color: #fff; background: var(--c-raised);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; background: var(--c-raised); border: 1px solid var(--c-line);
  color: var(--c-text); width: 42px; height: 42px; border-radius: 10px;
  cursor: pointer; padding: 9px;
}
.menu-toggle svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero-section {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(20, 117, 225, .30), transparent 60%),
    radial-gradient(700px 360px at 0% 0%, rgba(47, 139, 245, .14), transparent 55%),
    var(--c-base);
  padding: 72px 0 76px;
  border-bottom: 1px solid var(--c-line-soft);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-content h1 { margin-bottom: .35em; }
.hero-content h1 span { color: var(--c-primary-glow); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--c-muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--c-primary-glow); }
.hero-media img {
  border-radius: var(--radius-lg); border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md), 0 0 60px rgba(20, 117, 225, .18); width: 100%;
}

/* ---------- Chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  background: var(--c-raised); border: 1px solid var(--c-line);
  color: var(--c-text); font-weight: 600; font-size: .9rem;
}
.chip:hover { border-color: var(--c-primary); color: #fff; box-shadow: 0 0 0 1px rgba(20,117,225,.4); }

/* ---------- Cards ---------- */
.card {
  background: var(--grad-panel); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { color: #fff; }
.feature-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 26px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  color: var(--c-text);
}
a.feature-card:hover, .feature-card:hover { transform: translateY(-3px); border-color: rgba(20, 117, 225, .5); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.feature-card h3 { color: #fff; }
.feature-card p { color: var(--c-muted); margin-bottom: 0; }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 117, 225, .16); margin-bottom: 16px;
}
.feature-card .icon svg { width: 24px; height: 24px; color: var(--c-primary-glow); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; max-width: 820px; margin-inline: auto; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; background: var(--grad-cta); color: #fff;
}
.step h3 { margin-bottom: .25em; color: #fff; }
.step p { margin-bottom: 0; color: var(--c-muted); }

/* ---------- Promo / code box ---------- */
.promo-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
  background: var(--grad-panel); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 40px;
  position: relative; overflow: hidden;
}
.promo-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 100% 0%, rgba(20, 117, 225, .22), transparent 60%);
  pointer-events: none;
}
.promo-card > * { position: relative; z-index: 1; }
.promo-card h2 { color: #fff; }
.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--c-base); border: 1px dashed rgba(20, 117, 225, .65);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: inset 0 0 30px rgba(20, 117, 225, .08);
}
.code-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-faint); }
.code-value { font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; color: var(--c-primary-glow); font-family: "Inter", monospace; text-shadow: 0 0 22px rgba(20,117,225,.5); }
.copy-btn {
  font-family: inherit; font-weight: 700; cursor: pointer;
  background: var(--grad-cta); color: #fff; border: none;
  border-radius: 10px; padding: 12px 18px; font-size: .92rem; transition: transform .12s ease, box-shadow .15s ease;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(20,117,225,.34);
}
.copy-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20,117,225,.5); }
.copy-btn.copied { background: var(--grad-gold); color: #2a1d00; box-shadow: none; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 12px; margin: 1rem 0; }
.checklist li { position: relative; padding-left: 32px; color: var(--c-muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(20, 117, 225, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8bf5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; }
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--c-primary-glow); line-height: 1.1; }
.stat .lbl { font-size: .82rem; color: var(--c-muted); margin-top: 4px; }

/* ---------- Prose (article body) ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; color: #fff; }
.prose ul { padding-left: 1.2em; margin: 0 0 1rem; }
.prose li { margin-bottom: .4em; color: var(--c-text); }
.prose p { color: #cdd9e3; }
.prose img { border-radius: var(--radius); border: 1px solid var(--c-line); margin: 1.4em 0; box-shadow: var(--shadow-sm); }

/* ---------- Banner / CTA section ---------- */
.cta-section {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(20, 117, 225, .26), transparent 60%),
    var(--c-base-2);
}
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-inner .hero-cta { justify-content: center; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  padding: 56px 0 40px;
  background: radial-gradient(820px 380px at 78% -20%, rgba(20, 117, 225, .24), transparent 60%), var(--c-base);
  border-bottom: 1px solid var(--c-line-soft);
}
.page-hero h1 { max-width: 880px; }
.page-hero .lead { max-width: 760px; }
.page-hero .hero-cta { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--c-faint); margin-bottom: 14px; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs span { margin: 0 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1.04rem; color: var(--c-text);
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-question .ico { color: var(--c-primary-glow); transition: transform .3s cubic-bezier(.4, 0, .2, 1); flex-shrink: 0; }
.faq-item.open .faq-question .ico { transform: rotate(135deg); }
/* Smooth expand/collapse: animate to true content height via grid rows (no fixed max-height, no jump) */
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.4, 0, .2, 1); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  min-height: 0; overflow: hidden;
  padding: 0 20px; color: var(--c-muted);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .28s ease, transform .28s ease, padding .3s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.open .faq-answer-inner { padding: 16px 20px 18px; opacity: 1; transform: translateY(0); }
.faq-answer-inner a { color: var(--c-primary-soft); }

/* ---------- Notes ---------- */
.rg-note { font-size: .88rem; color: var(--c-faint); }
.note-box {
  background: rgba(243, 193, 75, .08); border: 1px solid rgba(243, 193, 75, .28);
  border-radius: var(--radius-sm); padding: 16px 18px; color: #e9d9b0; font-size: .95rem;
}
.note-box strong { color: var(--c-gold); }
.note-box p:last-child { margin-bottom: 0; }
.note-box a { color: var(--c-primary-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-base-2); border-top: 1px solid var(--c-line); padding-top: 56px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand img { height: 28px; margin-bottom: 14px; }
.footer-brand p { color: var(--c-muted); font-size: .94rem; max-width: 320px; }
.footer-badges { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.badge-19 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; font-weight: 800; font-size: .85rem;
  border: 2px solid var(--c-gold); color: var(--c-gold);
}
.footer-col h4 { margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--c-faint); }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--c-muted); font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-disclaimer { border-top: 1px solid var(--c-line); padding: 22px 0; }
.footer-disclaimer p { color: var(--c-faint); font-size: .82rem; margin: 0; }
.footer-bottom {
  border-top: 1px solid var(--c-line); padding: 18px 0 30px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--c-faint); font-size: .82rem;
}

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.divider { height: 1px; background: var(--c-line); border: 0; margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-grid a { word-break: break-word; }

/* ---------- Quick-answer callout ---------- */
.callout {
  background: linear-gradient(160deg, rgba(20,117,225,.16), rgba(20,117,225,.03));
  border: 1px solid rgba(20,117,225,.34); border-left: 3px solid var(--c-primary);
  border-radius: var(--radius); padding: 20px 24px; margin: 0 0 1.4em;
}
.callout .callout-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary-glow); font-weight: 700; }
.callout p { margin: .35rem 0 0; color: #cdd9e3; }

/* ---------- Data / comparison tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.data-table thead th {
  background: var(--c-raised); color: #fff; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.data-table td:first-child { color: #fff; font-weight: 600; }
.data-table .hl { color: var(--c-primary-glow); font-weight: 700; letter-spacing: .04em; }
.data-table .row-feature td:first-child { color: var(--c-primary-soft); }
.data-table caption { caption-side: bottom; padding: 12px 4px 0; font-size: .82rem; color: var(--c-faint); text-align: left; }

/* ---------- Pros / cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pc-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.pc-card h3 { display: flex; align-items: center; gap: 9px; color: #fff; margin-bottom: 6px; }
.pc-card .pc-icon { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pc-pros .pc-icon { background: rgba(20,117,225,.18); color: var(--c-primary-glow); }
.pc-cons .pc-icon { background: rgba(243,193,75,.16); color: var(--c-gold); }
.pc-card ul { list-style: none; display: grid; gap: 11px; margin: 8px 0 0; }
.pc-card li { position: relative; padding-left: 26px; color: var(--c-muted); }
.pc-card li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background-repeat: no-repeat; background-position: center; background-size: contain; }
.pc-pros li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8bf5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.pc-cons li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3c14b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); }

/* ---------- 404 ---------- */
.error-hero { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.error-hero .code-404 { font-size: clamp(4rem, 2rem + 12vw, 9rem); font-weight: 800; line-height: 1; color: var(--c-primary-glow); letter-spacing: -.04em; text-shadow: 0 0 50px rgba(20,117,225,.5); }

/* ---------- Media figures & bands ---------- */
.media-figure { margin: 0; }
.media-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 117, 225, .38);
  box-shadow: var(--shadow-md), 0 0 50px rgba(20, 117, 225, .18);
}
.media-figure figcaption { margin-top: 12px; font-size: .84rem; color: var(--c-faint); text-align: center; }
.media-wide { max-width: 940px; margin-inline: auto; }
.media-narrow { max-width: 520px; margin-inline: auto; }

.media-band { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.media-band .media-figure img { border-radius: var(--radius-lg); }
.media-band .media-copy h2 { margin-top: 0; }
.media-band--reverse .media-figure { order: -1; }

/* ---------- WordPress-style theme structure classes (layout-neutral) ---------- */
.content-area { display: block; }
.entry-content > *:first-child { margin-top: 0; }
.page-header { position: relative; }
.wp-block-group { position: relative; }
.wp-block-columns { /* column layout handled by .grid utilities */ }
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }
.footer-widgets { /* widget layout handled by .footer-cols */ }
.widget-area { position: relative; }
.widget { min-width: 0; }

/* ---------- Language switcher (EN / FR) ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-switch a { padding: 7px 11px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--c-muted); line-height: 1; }
.lang-switch a + a { border-left: 1px solid var(--c-line); }
.lang-switch a.active { background: var(--c-primary); color: #fff; }
.lang-switch a:hover:not(.active) { color: #fff; background: var(--c-raised); }
@media (max-width: 480px) { .lang-switch a { padding: 6px 9px; font-size: .74rem; } }
