/* =====================================================================
   Baccarat Boulevard — main stylesheet
   Theme: midnight navy + crimson, simple one-page layout
   Fonts: Marcellus (headings) + Jost (text)
   ===================================================================== */

/* ---------- 1. Theme tokens (change colors/fonts here) ---------- */
:root {
  --bg: #090c24;          /* page background */
  --bg-alt: #0f1433;      /* alternate section background */
  --bg-deep: #05071a;     /* footer */
  --card: #141a3f;        /* cards */
  --accent: #d42a45;      /* crimson */
  --accent-light: #ee4a63;
  --rose: #f5c8c2;
  --heading: #eef0f7;
  --text: #bcc2db;
  --muted: #8a90b0;
  --line: rgba(238, 240, 247, 0.12);

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Jost", "Century Gothic", system-ui, sans-serif;

  --container: 1100px;
  --radius: 8px;
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.age-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--rose); }
a:hover { color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 780px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 44px;
  font: 600 1rem/1 var(--font-body);
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius); border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn--bonus {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-light), var(--accent) 60%, #a9182f);
  box-shadow: 0 10px 28px rgba(212, 42, 69, 0.4);
}
.btn--bonus:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(212, 42, 69, 0.55); }
.btn--ghost { color: var(--heading); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--rose); }

.fineprint { display: block; margin-top: 14px; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- 4. Hero ---------- */
.hero {
  text-align: center;
  padding-block: 70px 100px;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(5,7,26,.78) 0%, rgba(5,7,26,.42) 38%, rgba(5,7,26,.38) 70%, var(--bg) 100%),
    url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center 65%;
}
.hero__logo { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 44px; text-decoration: none; color: var(--heading); }
.hero__logo svg { width: 64px; height: 64px; }
.hero__logo span { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.06em; }
.hero h1 { max-width: 900px; margin-inline: auto; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero h1 em { font-style: normal; color: var(--rose); }
.hero__sub { max-width: 600px; margin: 0 auto 34px; font-size: 1.1rem; color: #d6dbef; }
.hero .fineprint { color: #a9afcb; }

/* ---------- 5. Sections ---------- */
.section { padding-block: 84px; }
.section--alt { background: var(--bg-alt); }
.section h2 { text-align: center; margin-bottom: 40px; }
.section .lead { max-width: 760px; margin: -20px auto 40px; text-align: center; color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px 24px; border-top: 3px solid var(--accent); }
.step__num { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent-light); line-height: 1; margin-bottom: 12px; }
.step p { margin: 0; font-size: 0.95rem; }

/* Two columns */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cols h2 { text-align: left; margin-bottom: 20px; }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.list li { position: relative; padding-left: 26px; }
.list li::before { content: "♦"; position: absolute; left: 0; color: var(--accent-light); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature p { margin: 0; font-size: 0.96rem; }

/* Getting started */
.start { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 14px; counter-reset: s; }
.start li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 16px 20px; }
.start li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 1.25rem;
}
.start li > span { min-width: 0; }

/* Responsible 21+ */
.age { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; max-width: 860px; margin-inline: auto; }
.age h2 { text-align: left; margin-bottom: 14px; }
.age p:last-child { margin-bottom: 0; }

/* Support cards */
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.support-card { display: flex; flex-direction: column; padding: 28px 24px; background: var(--card); border-radius: var(--radius); text-decoration: none; color: var(--text); border: 1px solid transparent; transition: border-color .2s ease; }
.support-card:hover { color: var(--text); border-color: var(--accent); }
.support-card p { flex: 1; font-size: 0.95rem; }
.support-card__more { font-size: 0.85rem; font-weight: 600; color: var(--accent-light); }

/* Closing */
.closing { text-align: center; }
.closing p { max-width: 720px; margin: 0 auto 30px; }

/* ---------- 6. Footer (same structure as the example) ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 48px 28px; text-align: center; font-size: 0.9rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 30px; }
.footer__links a { color: var(--text); text-decoration: none; }
.footer__links a:hover { color: #fff; }

.footer__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-bottom: 36px; }
.footer__logos .badges { display: contents; }
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 8px 14px;
  background: #fff; border-radius: var(--radius);
  text-decoration: none; transition: transform .2s ease;
}
.logo-chip:hover { transform: translateY(-2px); }
.logo-chip img { height: 40px; width: auto; display: block; }
.logo-chip__text { color: #111; font-size: 0.8rem; font-weight: 600; }
.age-icon { display: inline-block; line-height: 0; }
.age-icon img { width: 56px; height: 56px; display: block; background: #fff; border-radius: 50%; }

.footer__rg { max-width: 900px; margin-inline: auto; padding-top: 30px; border-top: 1px solid var(--line); }
.footer__rg h2 { font-size: 1.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 18px; }
.footer__rg .age-icon img { width: 80px; height: 80px; margin: 0 auto 14px; }
.footer__age { font-size: 1.1rem; color: var(--heading); margin-bottom: 26px; }
.footer__info { text-align: left; font-size: 0.85rem; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.footer__info strong { color: var(--heading); font-weight: 600; }
.footer__info p:last-child { margin-bottom: 0; }
.footer__copy { margin: 26px 0 0; color: var(--muted); font-size: 0.82rem; }

/* ---------- 7. Inner (legal) pages ---------- */
.page-top {
  text-align: center; padding-block: 44px 56px;
  background-color: var(--bg-deep);
  background-image: linear-gradient(180deg, rgba(5,7,26,.9), var(--bg)), url("../img/hero-bg.jpg");
  background-size: cover; background-position: center 75%;
}
.page-top .hero__logo { margin-bottom: 30px; }
.page-top .hero__logo svg { width: 48px; height: 48px; }
.page-top .hero__logo span { font-size: 1.3rem; }
.page-top p { color: var(--muted); margin: 0; }
.prose { max-width: 800px; margin-inline: auto; padding-block: 56px 84px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent-light); }
.prose .callout { background: var(--card); border-left: 3px solid var(--accent); padding: 18px 22px; border-radius: var(--radius); }
.back-home { display: inline-block; margin-top: 10px; }

/* ---------- 8. Age check overlay ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(5, 7, 26, 0.94);
  backdrop-filter: blur(6px);
}
.age-gate__box { width: min(100%, 480px); text-align: center; background: var(--bg-alt); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 34px 28px; }
.age-gate__box img { display: block; margin: 0 auto 16px; background: #fff; border-radius: 50%; }
.age-gate__box p { font-size: 0.95rem; }
.age-gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.age-gate__actions .btn { padding: 14px 24px; letter-spacing: 0.1em; font-size: 0.9rem; }

/* ---------- 9. Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .features, .support { grid-template-columns: 1fr; }
  .section { padding-block: 64px; }
  .hero { padding-block: 50px 80px; background-position: center 85%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .age { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .age h2 { text-align: center; }
  .btn { padding: 15px 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
