/* ============================================================
   MCW Casino – style.css
   Charcoal / Sunrise palette, mobile-first
   ============================================================ */

/* ------------------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  --base:    #22242B;
  --deep:    #141519;
  --accent:  #FF9F1C;
  --accent2: #2EC4B6;
  --surface: #F5F5F3;
  --ink:     #1A1B20;
  --muted:   #63666F;

  --radius:  4px;
  --max-w:   1200px;

  --font-head: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  --font-body: Verdana, Geneva, 'DejaVu Sans', sans-serif;
}

/* ------------------------------------------------------------
   Reset / Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--ink);
}

h1 {
  font-size: 2.25rem;
  text-transform: uppercase;
  color: var(--base);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  margin-top: 2rem;
  color: var(--base);
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--base);
}

p {
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------
   Container
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn-cta {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.65rem 1.4rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid var(--accent);
  white-space: nowrap;
}

/* Outlined variant – header */
.btn-outlined {
  background: transparent;
  color: var(--accent);
}

.btn-outlined:hover,
.btn-outlined:focus-visible {
  background: var(--accent);
  color: var(--deep);
  text-decoration: none;
}

.btn-outlined:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Filled variant – banners */
.btn-filled {
  background: var(--accent);
  color: var(--deep);
  border-color: var(--accent);
}

.btn-filled:hover,
.btn-filled:focus-visible {
  background: transparent;
  color: var(--accent);
  text-decoration: none;
}

.btn-filled:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Logo Wordmark
   ------------------------------------------------------------ */
.logo-wordmark {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

.logo-m {
  color: var(--accent);
}

.logo-c {
  color: #fff;
}

.logo-w {
  color: var(--accent2);
}

/* Footer logo adjusts colours for readability */
.logo-footer .logo-c {
  color: var(--surface);
}

/* ------------------------------------------------------------
   Site Header
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.main-nav {
  display: none; /* hidden on small screens */
  gap: 1.25rem;
}

.main-nav a {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.main-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ------------------------------------------------------------
   Bonus Banner
   ------------------------------------------------------------ */
.bonus-banner {
  background: var(--deep);
  padding-block: 2.5rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}

.banner-top {
  border-top: 3px solid var(--accent);
}

.banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.banner-eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent2);
  margin-bottom: 0;
}

.banner-headline {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0;
}

.banner-fine {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 520px;
}

/* ------------------------------------------------------------
   Intro / Review Section
   ------------------------------------------------------------ */
.intro-section {
  padding-block: 2.5rem;
}

/* ------------------------------------------------------------
   Games Section
   ------------------------------------------------------------ */
.games-section {
  padding-block: 2.5rem;
  background: #fff;
}

/* ------------------------------------------------------------
   Payments Section
   ------------------------------------------------------------ */
.payments-section {
  padding-block: 2.5rem;
}

/* ------------------------------------------------------------
   Support Section
   ------------------------------------------------------------ */
.support-section {
  padding-block: 2.5rem;
  background: #fff;
}

/* ------------------------------------------------------------
   Tables
   ------------------------------------------------------------ */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 1.5rem;
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead tr {
  border-bottom: 2px solid var(--accent);
}

thead th {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  text-align: left;
  padding: 0.65rem 0.9rem;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--muted);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody td {
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  vertical-align: top;
}

/* ------------------------------------------------------------
   Cards Section
   ------------------------------------------------------------ */
.cards-section {
  padding-block: 2.5rem;
  background: var(--surface);
}

.cards-section h2 {
  text-align: center;
  margin-bottom: 1.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.review-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 0 2px 12px rgba(34, 36, 43, 0.10), 0 1px 3px rgba(34, 36, 43, 0.07);
  border: 1px solid rgba(99, 102, 111, 0.15);
}

.review-card h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.6rem;
  padding-right: 1rem;
  font-size: 1rem;
}

.review-card p {
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 0;
}

/* Circled numeral */
.card-numeral {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -0.85rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--deep);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(255, 159, 28, 0.45);
}

/* ------------------------------------------------------------
   FAQ Accordion – CSS-only hidden checkbox technique
   ------------------------------------------------------------ */
.faq-section {
  padding-block: 2.5rem;
  background: #fff;
}

.faq-section h2 {
  margin-bottom: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--muted);
}

.faq-item {
  border-bottom: 1px solid var(--muted);
}

/* Hide the checkbox */
.faq-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Question label */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--base);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

/* Focus ring on label when checkbox is focused */
.faq-toggle:focus-visible + .faq-question {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Plus/minus icon drawn in CSS */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

/* Horizontal bar (always visible) */
.faq-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.55rem;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Vertical bar (visible when closed = plus, hidden when open = minus) */
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 0.55rem;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* When checked: vertical bar collapses → minus sign */
.faq-toggle:checked + .faq-question .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--ink);
  padding-bottom: 1rem;
  margin-bottom: 0;
}

/* Open state */
.faq-toggle:checked ~ .faq-answer {
  max-height: 600px;
}

/* ------------------------------------------------------------
   Site Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--base);
  border-top: 3px solid var(--accent);
  padding-block: 2.5rem 1.75rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-disclaimer p {
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.72rem;
  margin-bottom: 0;
  color: var(--muted);
}

/* ============================================================
   BREAKPOINT: 640px
   ============================================================ */
@media (min-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .banner-headline {
    font-size: 2.1rem;
  }

  .container {
    padding-inline: 1.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-brand {
    flex: 0 0 auto;
    max-width: 220px;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 0 auto;
  }

  .footer-disclaimer {
    flex: 1 1 100%;
  }

  .intro-section,
  .games-section,
  .payments-section,
  .support-section,
  .cards-section,
  .faq-section {
    padding-block: 3rem;
  }

  .bonus-banner {
    padding-block: 3rem 2.5rem;
  }
}

/* ============================================================
   BREAKPOINT: 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }

  /* Header */
  .main-nav {
    display: flex;
    align-items: center;
  }

  .header-inner {
    gap: 1.5rem;
  }

  /* Typography */
  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .banner-headline {
    font-size: 2.5rem;
  }

  /* Sections */
  .intro-section,
  .games-section,
  .payments-section,
  .support-section,
  .cards-section,
  .faq-section {
    padding-block: 4rem;
  }

  .bonus-banner {
    padding-block: 3.5rem 3rem;
  }

  /* Card grid – 2 columns at 1024 (4 cards fit in 2×2) */
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Footer */
  .footer-inner {
    flex-wrap: nowrap;
    gap: 2.5rem;
    align-items: flex-start;
  }

  .footer-brand {
    flex: 0 0 220px;
  }

  .footer-links {
    flex: 0 0 auto;
  }

  .footer-disclaimer {
    flex: 1 1 auto;
  }

  /* FAQ */
  .faq-question {
    font-size: 1rem;
    padding: 1rem 0.5rem;
  }
}

/* ============================================================
   BREAKPOINT: 1280px  (optional polish)
   ============================================================ */
@media (min-width: 1280px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}