/* Crowngreen Casino — bespoke stylesheet. One file, CSS custom-property tokens. */

:root {
  --bg: #051413;
  --bg-soft: #05221e;
  --panel: #00302a;
  --panel-2: #004e44;
  --line: rgba(255, 207, 115, 0.16);
  --line-strong: rgba(255, 207, 115, 0.32);
  --gold: #ffcf73;
  --gold-pale: #f4e38b;
  --gold-mid: #f4dd62;
  --bronze: #b27f2a;
  --ink: #f5f1e6;
  --ink-soft: #c3d3cd;
  --ink-mute: #85998f;
  --danger: #ff8f6b;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 34, 30, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand .crown-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-pale), var(--bronze));
  color: var(--bg); font-size: 15px; flex-shrink: 0;
}
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
  font-size: 14px; letter-spacing: 0.02em; color: var(--ink-soft);
  padding: 8px 2px; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  color: var(--gold); border-color: var(--bronze);
}
.header-cta { display: flex; align-items: center; gap: 12px; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.burger span { width: 20px; height: 2px; background: var(--gold); display: block; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 72px 0 0 0; z-index: 39;
  background: var(--bg-soft);
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 28px 24px 40px;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  display: block; padding: 16px 4px; font-size: 18px;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-nav .btn { margin-top: 24px; width: 100%; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  letter-spacing: 0.01em; white-space: nowrap; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(160deg, var(--gold-pale), var(--gold) 45%, var(--bronze));
  color: #201400; box-shadow: 0 10px 26px rgba(255, 207, 115, 0.22);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(255, 207, 115, 0.32); }
.btn-ghost {
  background: transparent; color: var(--gold); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding: 88px 0 56px;
  background:
    linear-gradient(100deg, rgba(5,20,19,.96) 8%, rgba(5,20,19,.72) 46%, rgba(5,20,19,.4) 78%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5,20,19,.55) 22%, transparent 60%),
    url("images/img-006.webp");
  background-size: cover, cover, cover;
  background-position: center, center, right center;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-mid); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 14px; margin: 0 0 22px;
}
.hero-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08;
  margin: 0 0 16px; color: var(--ink);
}
.hero-title em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 16.5px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

/* Promo-week strip: ritual weekly rhythm */
.promo-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  max-width: 560px; margin: 0 0 14px;
}
.promo-week li {
  background: rgba(0, 48, 42, 0.65); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 4px; text-align: center;
}
.promo-week .day {
  display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 6px;
}
.promo-week .badge { display: block; font-size: 11.5px; color: var(--gold-pale); font-weight: 600; }
.promo-week .badge .num { color: var(--gold); }
.promo-caption { font-size: 13.5px; color: var(--ink-mute); max-width: 46ch; }
.promo-caption a { color: var(--gold-mid); border-bottom: 1px dotted currentColor; }

/* Page hero (inner pages) */
.page-hero {
  padding: 44px 0 34px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.breadcrumbs { font-size: 13px; color: var(--ink-mute); margin-bottom: 16px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 6px; color: var(--bronze); }
.page-hero .hero-title { font-size: clamp(28px, 4.4vw, 40px); margin-bottom: 12px; }
.page-hero .hero-sub { margin-bottom: 22px; }

/* ---------- Promo rail ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); margin: 0 0 8px; }
.section-title { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); margin: 0; color: var(--ink); }
.section-note { font-size: 14px; color: var(--ink-mute); max-width: 42ch; margin: 0; }

.promo-rail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.promo-card {
  background: linear-gradient(165deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
}
.promo-card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(160deg, var(--gold-pale), var(--bronze));
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  color: #201400;
}
.card-title { font-weight: 700; font-size: 16.5px; margin: 0; color: var(--ink); }
.card-text { font-size: 13.8px; color: var(--ink-soft); margin: 0; flex-grow: 1; }
.card-link { font-size: 13px; color: var(--gold-mid); font-weight: 600; margin-top: 4px; }
.card-link::after { content: " →"; }

/* ---------- Games grid ---------- */
.chip-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 13px; color: var(--ink-soft); background: transparent;
}
.chip[aria-pressed="true"] {
  background: linear-gradient(160deg, var(--gold-pale), var(--bronze)); color: #201400; border-color: transparent; font-weight: 700;
}
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
}
.game-tile img { width: 100%; height: auto; aspect-ratio: 427 / 575; object-fit: cover; }
.tile-cat {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(5, 20, 19, 0.78); color: var(--gold-mid);
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
}
.tile-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; background: var(--panel);
}
.tile-cap { font-size: 12.5px; color: var(--ink-soft); margin: 0; line-height: 1.35; }
.tile-cap strong { display: block; color: var(--ink); font-size: 13.5px; }
.game-tile[hidden] { display: none; }

/* ---------- Facts band ---------- */
.facts-band {
  background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; padding: 40px 0;
}
.facts-grid > div { border-left: 2px solid var(--bronze); padding-left: 14px; }
.facts-grid dt {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px;
}
.facts-grid dd { margin: 0; font-size: 14.5px; color: var(--ink); font-weight: 600; }

/* ---------- SEO article ---------- */
.article-section { padding: 60px 0 20px; }
.seo-article {
  max-width: 780px; margin: 0 auto; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px clamp(20px, 4vw, 56px) 48px;
}
.seo-article h1 {
  font-family: var(--font-serif); font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18; color: var(--ink); margin: 0 0 20px;
}
.seo-article h2 {
  font-family: var(--font-serif); font-size: clamp(20px, 2.6vw, 25px);
  color: var(--gold-pale); margin: 40px 0 14px; padding-top: 20px; border-top: 1px solid var(--line);
}
.seo-article h1 + p, .seo-article h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.seo-article h3 { font-size: 17px; color: var(--gold-mid); margin: 24px 0 10px; }
.seo-article p { color: var(--ink-soft); margin: 0 0 16px; font-size: 15.5px; }
.seo-article a { color: var(--gold); border-bottom: 1px solid var(--bronze); }
.seo-article a:hover { color: var(--gold-pale); }
.seo-article ul, .seo-article ol { margin: 0 0 18px; padding-left: 22px; list-style: disc; color: var(--ink-soft); }
.seo-article ol { list-style: decimal; }
.seo-article li { margin-bottom: 8px; font-size: 15.5px; }
.seo-article strong { color: var(--ink); }

.seo-article table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  margin: 8px 0 24px; font-size: 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
}
.seo-article th, .seo-article td {
  padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere; vertical-align: top;
}
.seo-article th {
  background: var(--panel); color: var(--gold-pale); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.04em; width: 32%;
}
.seo-article tr:last-child td, .seo-article tr:last-child th { border-bottom: 0; }

/* FAQ accordion (built by script.js around h3/p pairs after the FAQ h2) */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; padding: 16px 2px; cursor: pointer; background: none; border: 0;
}
.faq-item h3.faq-q { margin: 0; font-size: 16px; color: var(--gold-mid); }
.faq-q .chev { flex-shrink: 0; color: var(--bronze); transition: transform .2s ease; font-size: 14px; }
.faq-item[data-open="true"] .faq-q .chev { transform: rotate(180deg); color: var(--gold); }
.faq-item .faq-a { overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.faq-item[data-open="true"] .faq-a { max-height: 400px; }
.faq-item .faq-a p { padding-bottom: 16px; margin: 0; }

/* ---------- Responsible gambling / trust strip ---------- */
.trust-strip { padding: 34px 0; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center;
  color: var(--ink-mute); font-size: 12.5px;
}
.trust-row span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--ink-mute); max-width: 34ch; }
.footer-col p.col-title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bronze); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.payment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-list span {
  font-size: 11.5px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 10px; color: var(--ink-soft);
}
.legal-block {
  border-top: 1px solid var(--line); padding-top: 24px; font-size: 12px; color: var(--ink-mute); line-height: 1.7;
}
.legal-block p { margin: 0 0 10px; }
.rg-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink-soft); }
.rg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--bronze);
  color: var(--gold-mid); font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.copyright { margin-top: 16px; font-size: 11.5px; color: var(--ink-mute); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  background: linear-gradient(165deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
}
.blog-date {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bronze); margin: 0;
}
.blog-card .card-title a { color: inherit; }
.blog-card .card-title a:hover { color: var(--gold); }
.blog-meta { font-size: 13px; color: var(--ink-mute); margin: 0 0 18px; }
.blog-back { display: inline-block; font-size: 13px; color: var(--gold-mid); margin-bottom: 18px; }
.blog-back:hover { color: var(--gold); }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.error-page .hero-title { font-size: clamp(30px, 6vw, 56px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .promo-rail { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 640px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-week { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 40px; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .seo-article table, .seo-article th, .seo-article td { font-size: 12.5px; }
  .seo-article th, .seo-article td { padding: 8px 9px; }
  .promo-rail { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .seo-article { padding: 28px 16px 34px; }
}
@media (max-width: 380px) {
  .promo-week { grid-template-columns: repeat(3, 1fr); }
}
