/* ==========================================================================
   Stake Originals Canada — independent affiliate site
   style.css  (reusable, mobile-first, dark premium iGaming theme)
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  --bg:        #0f141c;
  --bg-2:      #131a24;
  --panel:     #171f2c;
  --panel-2:   #1d2735;
  --border:    #273242;
  --text:      #e7edf5;
  --muted:     #9fb0c3;
  --accent:    #1475e1;   /* primary CTA (brand blue) */
  --accent-d:  #0f5fc4;
  --accent-2:  #4f8cff;   /* secondary highlight */
  --warn:      #ffb74d;
  --good:      #1475e1;
  --bad:       #ff6b6b;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.25);
  --maxw:      1140px;
  --gap:       22px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----- Reset ----- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.25; color: #fff; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.95rem); margin-top: .2em; }
h3 { font-size: clamp(1.12rem, 2.4vw, 1.3rem); }
p { margin: 0 0 1rem; }
ul,ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .3rem 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
section { padding: 46px 0; }
.section-tight { padding: 30px 0; }
.lead { font-size: 1.08rem; color: var(--muted); }
.center { text-align: center; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(20,117,225,.28); }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(15,20,28,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--text); padding: 9px 13px; border-radius: 8px;
  font-weight: 600; font-size: .96rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--panel-2); color: #fff; text-decoration: none;
}
.lang-switch {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; font-size: .82rem; font-weight: 700;
}
.lang-switch a { padding: 7px 12px; color: var(--muted); }
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a.active { background: var(--panel-2); color: #fff; }
.header-cta { white-space: nowrap; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  border-radius: 8px; width: 42px; height: 40px; cursor: pointer; padding: 0;
  position: relative; z-index: 1002; pointer-events: auto;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--text);
  margin: 0 auto; position: relative; transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
.nav-open .nav-toggle span::after  { transform: rotate(-45deg); top: 0; }

/* ----- Hero ----- */
.hero-section {
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(79,140,255,.20), transparent 60%),
    radial-gradient(900px 420px at 8% 8%, rgba(20,117,225,.13), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center;
  padding: 54px 0;
}
.hero-copy h1 { margin-bottom: .35em; }
.hero-copy .lead { font-size: 1.14rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.badge {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.badge b { color: var(--accent); }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-figcap { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* Centered hero (used when there is no hero image) */
.hero-centered { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-centered .code-box { margin-left: auto; margin-right: auto; }
.hero-centered .hero-cta-row { justify-content: center; }

/* Wide promo banner block */
.promo-visual-wide { margin: 0 auto; max-width: 1040px; }
.promo-visual-wide img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* ----- Cards & grids ----- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.content-card, .promo-card, .trust-box, .cta-panel, .quick-answer, .feature-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.feature-card { padding: 20px; }
.feature-card .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(20,117,225,.12); color: var(--accent); font-size: 1.25rem; margin-bottom: 12px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: .35em; }
.feature-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Quick answer box */
.quick-answer {
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, rgba(20,117,225,.06), var(--panel));
}
.quick-answer h2, .quick-answer h3 { margin-top: 0; }
.quick-answer .q-label {
  display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 800; margin-bottom: 6px;
}

/* Promo / code box */
.promo-card { background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.code-box {
  display: flex; align-items: stretch; gap: 0; margin: 14px 0 8px;
  border: 1px dashed var(--accent); border-radius: 12px; overflow: hidden; max-width: 420px;
}
.code-box .code {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: .14em; font-size: 1.3rem; color: #fff;
  background: rgba(20,117,225,.08); padding: 14px 16px;
}
.code-box button {
  border: 0; background: var(--accent); color: #fff; font-weight: 800;
  padding: 0 20px; cursor: pointer; font-size: .95rem;
}
.code-box button:hover { background: var(--accent-d); }
.copy-note { font-size: .82rem; color: var(--muted); min-height: 1.1em; }

/* Pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.proscons .content-card h3 { display: flex; align-items: center; gap: 8px; }
.list-check, .list-x { list-style: none; padding: 0; margin: 0; }
.list-check li, .list-x li { position: relative; padding-left: 28px; margin: .5rem 0; color: var(--text); }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.list-x li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }

/* Trust / disclaimer box */
.trust-box { border-left: 4px solid var(--accent-2); }
.trust-box.disclaimer { border-left-color: #ffd166; }
.trust-box.rg { border-left-color: #ff8fab; }
.trust-box h3 { margin-top: 0; font-size: 1.08rem; }
.trust-box p { color: var(--muted); margin-bottom: 0; }

/* CTA panel */
.cta-panel {
  text-align: center; background: linear-gradient(160deg, rgba(20,117,225,.10), var(--panel-2));
  border-color: rgba(20,117,225,.4);
}
.cta-panel h2 { margin-top: 0; }
.cta-panel p { color: var(--muted); max-width: 640px; margin: 0 auto 18px; }

/* ----- Tables ----- */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data {
  width: 100%; border-collapse: collapse; background: var(--panel); min-width: 520px;
}
table.data caption { caption-side: top; text-align: left; color: var(--muted); font-size: .85rem; padding: 10px 14px; }
table.data th, table.data td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--panel-2); color: #fff; font-size: .92rem; }
table.data tr:last-child td { border-bottom: 0; }
table.data td { color: var(--muted); font-size: .96rem; }
table.data td strong { color: var(--text); }

/* ----- Breadcrumbs ----- */
.breadcrumb-nav { padding: 16px 0 0; font-size: .86rem; }
.breadcrumb-nav ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb-nav li { color: var(--muted); }
.breadcrumb-nav li + li::before { content: "›"; margin-right: 6px; color: var(--border); }
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav [aria-current="page"] { color: var(--text); }

/* ----- FAQ accordion ----- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; color: #fff;
  font-weight: 600; font-size: 1.04rem; padding: 17px 50px 17px 18px; cursor: pointer; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); transition: transform .25s ease;
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 18px 18px; color: var(--muted); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ----- Section heading helper ----- */
.sec-head { max-width: 760px; margin-bottom: 26px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 8px; }

/* ----- Footer ----- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 40px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: .95rem; color: #fff; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: var(--muted); font-size: .94rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand img { height: 28px; margin-bottom: 12px; }
.footer-disclaimer { color: var(--muted); font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 26px; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .84rem; color: var(--muted);
}
.age-pill { border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; font-weight: 700; color: var(--text); }

/* ----- Misc ----- */
.note-inline { font-size: .88rem; color: var(--muted); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.bg-alt { background: var(--bg-2); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--muted); }

/* ----- Game cards ----- */
.game-grid { gap: 16px; }
.game-card {
  display: block; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform .14s ease, border-color .2s ease, box-shadow .2s ease;
}
.game-card:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: var(--accent); box-shadow: 0 10px 26px rgba(20,117,225,.20);
}
.game-card h3 { font-size: 1.12rem; margin: 10px 0 .3em; }
.game-card p { color: var(--muted); margin: 0; font-size: .94rem; }
.game-ico {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 12px; font-size: 1.5rem;
  background: rgba(20,117,225,.12); color: var(--accent);
  border: 1px solid rgba(20,117,225,.35);
}

/* Quick facts card (definition grid) */
.facts-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px; box-shadow: var(--shadow-sm); }
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .92rem; margin: 0; }
.facts dd { color: var(--text); font-weight: 600; font-size: .94rem; margin: 0; text-align: right; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-media { order: -1; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 66px 0 auto 0; background: var(--bg-2);
    border-bottom: 1px solid var(--border); transform: translateY(-130%);
    transition: transform .28s ease; padding: 10px 0 18px; z-index: 999;
    max-height: calc(100vh - 66px); overflow-y: auto;
    visibility: hidden;
  }
  .nav-open .main-nav { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; padding: 0 14px; }
  .main-nav a { display: block; padding: 13px 12px; font-size: 1.02rem; }
  .header-cta { display: none; }
  .grid-2, .grid-3, .grid-4, .proscons { grid-template-columns: 1fr; }
  section { padding: 36px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
}

/* ----- Game hero (two-column with visual) ----- */
.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: 6px 0 2px;
}
.game-hero-main { min-width: 0; }
.game-hero-main .facts-card { margin-top: 18px; }
.game-hero-visual {
  background: linear-gradient(145deg, rgba(20,117,225,.16), rgba(15,23,42,.72));
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 24px;
  padding: clamp(16px, 2.5vw, 28px);
  box-shadow: 0 24px 70px rgba(0,0,0,.35), 0 0 40px rgba(20,117,225,.12);
}
.game-hero-visual img { display: block; width: 100%; height: auto; border-radius: 16px; }
@media (max-width: 768px) {
  .game-hero { grid-template-columns: 1fr; gap: 22px; }
  .game-hero-main { order: 1; }
  .game-hero-visual { order: 2; padding: 16px; border-radius: 20px; }
}

/* ----- Nav "Games" dropdown ----- */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
  color: var(--text); font-weight: 600; font-size: .96rem;
  padding: 9px 13px; border-radius: 8px;
}
.dropdown-toggle:hover, .has-dropdown.open .dropdown-toggle { background: var(--panel-2); color: #fff; }
.dropdown-toggle .caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .2s ease;
}
.has-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; gap: 2px; min-width: 340px; z-index: 1001;
  grid-template-columns: 1fr 1fr;
}
.dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 8px; white-space: nowrap;
  color: var(--text); font-weight: 600; font-size: .94rem;
}
.dropdown-menu a:hover { background: var(--panel-2); color: #fff; text-decoration: none; }
.nav-cta-li { display: none; }
@media (min-width: 761px) {
  .has-dropdown:hover .dropdown-menu, .has-dropdown.open .dropdown-menu { display: grid; }
}
@media (max-width: 760px) {
  .has-dropdown { width: 100%; }
  .dropdown-toggle { width: 100%; justify-content: space-between; font-size: 1.02rem; padding: 13px 12px; }
  .dropdown-menu {
    position: static; box-shadow: none; border: 0; background: transparent;
    padding: 2px 0 6px 8px; min-width: 0; gap: 0;
  }
  .has-dropdown.open .dropdown-menu { display: grid; grid-template-columns: 1fr 1fr; }
  .dropdown-menu a { padding: 11px 10px; }
  .nav-cta-li { display: block; padding: 12px 14px 4px; }
  .nav-cta-li .btn { width: 100%; justify-content: center; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
