/* Safe Crossing — style.css
   Brand: casino-index (see /brands/casino-index.json). Reset below is the
   shared portfolio reset (shared/templates/reset.css), inlined per project convention. */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; text-rendering: optimizeSpeed; line-height: 1.5; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Brand tokens ---------- */
:root {
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --primary: #1F6F54;
  --primary-dk: #154A38;
  --primary-ink: #FFFFFF;
  --secondary: #D97706;
  --secondary-text: #A65804; /* darker amber for small/normal text on light backgrounds — WCAG AA */
  --text: #1C2321;
  --muted: #63706A;
  --border: #E6DFCB;
  --radius: 10px;
  --radius-sm: 8px;
  --header-offset: 96px;
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Public Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --card-shadow: 0 6px 18px -8px rgba(28, 35, 33, 0.22);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: var(--space-8); margin-bottom: var(--space-4); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-top: var(--space-6); margin-bottom: var(--space-3); }
p { margin-bottom: var(--space-4); color: var(--text); }
.lead { font-size: 1.15rem; color: var(--muted); }

a { text-decoration: none; }
a.inline-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a.inline-link:hover { color: var(--secondary-text); }

:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-dk);
  background: color-mix(in srgb, var(--primary) 12%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, white);
  padding: 3px 10px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000918;
  
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: var(--space-4);
}
.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo img { height: 68px; width: auto; max-width: 190px; object-fit: contain; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__box span, .burger__box::before, .burger__box::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--text); border-radius: 2px;
}
.burger__box::before { top: 0; }
.burger__box span { top: 6px; }
.burger__box::after { top: 12px; }
.burger[aria-expanded="true"] .burger__box::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span { opacity: 0; }
.burger[aria-expanded="true"] .burger__box::after { transform: translateY(-6px) rotate(-45deg); }

.nav-primary__list { display: flex; align-items: center; gap: var(--space-5); }
.nav-primary a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: #dffff4;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-primary a:hover, .nav-primary a[aria-current="page"] { border-bottom-color: var(--secondary); color: #dffff4 }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav-primary {
    position: fixed;
    inset: 66px 0 0 0;
    background: var(--bg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow-y: auto;
    padding: var(--space-6) var(--space-5);
    border-top: 1px solid var(--border);
  }
  .nav-primary.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-primary__list { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .nav-primary a { font-size: 1.1rem; }
}

/* ---------- Hero (full-width 1400x900 background per §06B/§14.1) ---------- */
.hero {
  width: 100%;
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(3,7,9,0.96) 0%, rgba(3,7,9,0.82) 34%, rgba(3,7,9,0.22) 62%, rgba(3,7,9,0.02) 100%),
    url('assets/images/hero/hero-master-1400x900.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero__inner {
  min-height: 680px;
  display: flex;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.hero__copy { max-width: 610px; position: relative; z-index: 1; }
.hero__eyebrow { margin-bottom: var(--space-4); }
.hero h1 {
  margin-bottom: var(--space-4);
  color: #fff;
  font-size: clamp(2.6rem, 4.4vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__value { max-width: 56ch; margin-bottom: var(--space-5); color: rgba(255,255,255,0.92); font-size: 1.06rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero__note {
  margin-top: var(--space-4);
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #23312c;
  max-width: 54ch;
  background: rgba(255,255,255,0.95);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

@media (max-width: 1100px) {
  .hero { background-position: 58% center; }
  .hero__copy { max-width: 560px; }
  .hero h1 { font-size: clamp(2.35rem, 5vw, 3.6rem); }
}

@media (max-width: 900px) {
  .site-logo img { height: 54px; max-width: 165px; }
  .hero {
    background-position: 64% center;
    background-image:
      linear-gradient(90deg, rgba(3,7,9,0.95) 0%, rgba(3,7,9,0.83) 52%, rgba(3,7,9,0.30) 100%),
      url('assets/images/hero/hero-master-1400x900.webp');
  }
  .hero__inner { min-height: 620px; padding-top: var(--space-7); padding-bottom: var(--space-7); }
}

@media (max-width: 640px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .site-logo img { height: 46px; max-width: 145px; }
  .hero { background-position: 69% center; }
  .hero__inner { min-height: 650px; align-items: flex-end; padding-top: 120px; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .hero__value { font-size: 1rem; }
  .hero__note { max-width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(31,111,84,0.55); }
.btn--primary:hover { background: var(--primary-dk); }
.btn--outline { background: var(--surface); color: var(--text); border-color: var(--secondary); }
.btn--outline:hover { background: color-mix(in srgb, var(--secondary) 10%, white); }
.btn__micro {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 500;
}

/* ---------- Sections / cards ---------- */
.section {scroll-margin-top: var(--header-offset); }
.section--tight { padding: var(--space-6) 0; }
.section__head { max-width: 62ch; margin-bottom: var(--space-6); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  position: relative;
  border-left: 4px solid var(--secondary);
  box-shadow: var(--card-shadow);
}
.q-card__tag { margin-bottom: var(--space-3); }
.q-card h3 { margin-top: 0; margin-bottom: var(--space-2); font-size: 1.1rem; }
.q-card p { color: var(--muted); margin-bottom: var(--space-4); font-size: 0.96rem; }
.q-card a.card-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-dk);
  font-size: 0.92rem;
}
.q-card a.card-link::after { content: " \2192"; }

/* ---------- Table of Contents ---------- */
.table-of-contents {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin: var(--space-6) 0 var(--space-7);
  box-shadow: var(--card-shadow);
}
.table-of-contents h2 {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}
.table-of-contents ol { counter-reset: toc; display: grid; gap: 8px; list-style: none; padding: 0; }
.table-of-contents li { counter-increment: toc; }
.table-of-contents a {
  display: flex;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  padding: 4px 0;
}
.table-of-contents a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--secondary-text);
  font-size: 0.85rem;
}
.table-of-contents a:hover, .table-of-contents a[aria-current] { color: var(--primary-dk); }

/* ---------- Article prose ---------- */
.article { max-width: 76ch; }
.article--wide { max-width: 100%; }
article :is(h2, h3)[id] { scroll-margin-top: var(--header-offset); }
.article ul, .article ol { padding-left: 1.25em; list-style: disc; margin-bottom: var(--space-4); }
.article ol { list-style: decimal; }
.article .table-of-contents ol, .article .checklist { padding-left: 0; list-style: none; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--text); }

.note-box {
  background: color-mix(in srgb, var(--primary) 6%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, white);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  font-size: 0.95rem;
}
.note-box--warn {
  background: #FFF6EA;
  border-color: #F0D19E;
}
.note-box p:last-child { margin-bottom: 0; }
.note-box__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-text);
  display: block;
  margin-bottom: 6px;
}

/* ---------- Editorial figures (real <img> per §14.2) ---------- */
.editorial-figure {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: var(--space-6) 0;
  box-shadow: var(--card-shadow);
}
.editorial-figure img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--bg); }
.editorial-figure figcaption { padding: var(--space-3) var(--space-5) var(--space-4); font-size: 0.9rem; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: var(--space-5) 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
table.data-table caption { text-align: left; font-size: 0.85rem; color: var(--muted); padding: var(--space-3) var(--space-4) 0; caption-side: top; }
table.data-table thead th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.82rem;
  padding: 12px 16px;
}
table.data-table tbody th, table.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.data-table tbody tr:nth-child(even) { background: #F6F2E6; }
table.data-table tbody th { font-weight: 700; }

/* ---------- FAQ / accordion ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-4) var(--space-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.accordion__trigger .plusminus { position: relative; width: 18px; height: 18px; flex: none; }
.accordion__trigger .plusminus::before, .accordion__trigger .plusminus::after {
  content: ""; position: absolute; background: var(--primary); border-radius: 2px;
}
.accordion__trigger .plusminus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.accordion__trigger .plusminus::after { top: 0; left: 8px; width: 2px; height: 18px; transition: transform 0.15s ease; }
.accordion__trigger[aria-expanded="true"] .plusminus::after { transform: scaleY(0); }
.accordion__panel { padding: 0 var(--space-2) var(--space-4); color: var(--muted); max-width: 68ch; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 10px; margin: var(--space-4) 0 var(--space-5); list-style: none; padding: 0; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  border: 2px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, white);
}

/* ---------- Framework list (five-point verification framework) ---------- */
.framework-list { display: grid; gap: var(--space-4); margin: var(--space-5) 0; list-style: none; padding: 0; counter-reset: fw; }
.framework-list li {
  counter-increment: fw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--card-shadow);
  position: relative;
  padding-left: 60px;
}
.framework-list li::before {
  content: counter(fw);
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.framework-list h3 { margin-top: 0; margin-bottom: 4px; font-size: 1.02rem; }
.framework-list p { margin-bottom: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Responsible gambling / disclosure strips ---------- */
.disclosure-strip {
  background: var(--primary-dk);
  color: #EAF3EE;
  font-size: 0.85rem;
  padding: var(--space-4) 0;
}
.disclosure-strip .container { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; }
.disclosure-strip a { text-decoration: underline; text-underline-offset: 2px; }
.age-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 6px; padding: 4px 10px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: var(--space-8) 0 var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: var(--space-3); }
.footer-grid ul { display: grid; gap: 8px; list-style: none; padding: 0; }
.footer-grid a { color: var(--text); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--primary-dk); }
.footer-brand p { color: var(--muted); font-size: 0.88rem; max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--muted);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 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;
}
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-4) 0; }

/* Production image pass 2026-08-25 */
.hero {
  min-height: 650px;
  background-size: cover;
  background-position: center center;
  background-color: #0b1427;
}
.hero::before {
  content: ""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(90deg, rgba(5,13,28,.93) 0%, rgba(5,13,28,.80) 38%, rgba(5,13,28,.24) 68%, rgba(5,13,28,.08) 100%);
}
.hero { position:relative; }
.hero__inner { position:relative; z-index:1; min-height:650px; display:flex; align-items:center; }
.site-logo img { width:auto; height:64px; max-width:280px; }
@media (max-width: 860px) {
  .hero { background-image:url('assets/images/hero/hero-mobile.webp'); background-position:62% center; }
  .hero::before { background:linear-gradient(180deg, rgba(5,13,28,.35) 0%, rgba(5,13,28,.82) 52%, rgba(5,13,28,.96) 100%); }
  .hero__inner { min-height:720px; align-items:flex-end; padding-bottom:48px; }
  .site-logo img { height:54px; max-width:230px; }
}
@media (max-width: 520px) { .site-logo img { height:46px; max-width:195px; } }

/* Production image pass 2026-08-25 */
.hero {
  min-height: 650px;
  background-size: cover;
  background-position: center center;
  background-color: #0b1427;
}
.hero::before {
  content: ""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(90deg, rgba(5,13,28,.93) 0%, rgba(5,13,28,.80) 38%, rgba(5,13,28,.24) 68%, rgba(5,13,28,.08) 100%);
}
.hero { position:relative; }
.hero__inner { position:relative; z-index:1; min-height:650px; display:flex; align-items:center; }
.site-logo img { width:auto; height:64px; max-width:280px; }
@media (max-width: 860px) {
  .hero { background-image:url('assets/images/hero/hero-mobile.webp'); background-position:62% center; }
  .hero::before { background:linear-gradient(180deg, rgba(5,13,28,.35) 0%, rgba(5,13,28,.82) 52%, rgba(5,13,28,.96) 100%); }
  .hero__inner { min-height:720px; align-items:flex-end; padding-bottom:48px; }
  .site-logo img { height:54px; max-width:230px; }
}
@media (max-width: 520px) { .site-logo img { height:46px; max-width:195px; } }
