/* =========================================================================
   maxim88casino.vip — main.css
   Plain CSS with custom properties. Mobile-first. No preprocessor needed.
   ========================================================================= */

/* --- 1. Design tokens ---------------------------------------------------- */
:root {
  --color-green-900: #0E5A2B;
  --color-green-700: #1B7A3E;
  --color-green-500: #30B05B;
  --color-green-100: #E8F5EE;
  --color-black:     #0B0B0B;
  --color-gray-600:  #4A4A4A;
  --color-gray-200:  #E5E5E5;
  --color-white:     #FFFFFF;
  --color-gold:      #F5BC44;

  --font-heading: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius: 10px;
  --container: 1200px;
  --shadow-soft: 0 4px 20px rgba(27, 122, 62, 0.08);
  --shadow-hover: 0 8px 28px rgba(27, 122, 62, 0.16);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;

  --sticky-cta-offset: 64px;
}

/* --- 2. Reset ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-green-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-green-900); }

/* Focus-visible — WCAG 2.4.7 + 2.4.11 */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-green-700);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.final-cta :focus-visible,
.sticky-cta:focus-visible {
  outline-color: var(--color-white);
}

/* --- 3. Typography ------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; color: var(--color-black); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: var(--space-3); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: var(--space-8) 0 var(--space-3); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: var(--space-4) 0 var(--space-2); }
p  { margin-bottom: var(--space-2); color: var(--color-gray-600); }
ul, ol { margin: 0 0 var(--space-2) var(--space-3); color: var(--color-gray-600); }
li { margin-bottom: var(--space-1); }

/* --- 4. Container + layout ----------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-3); }
section { padding: var(--space-8) 0; }
@media (min-width: 768px) { section { padding: var(--space-12) 0; } }
.section-alt { background: var(--color-green-100); }
.section-dark { background: var(--color-green-900); color: var(--color-white); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--color-white); }

/* --- 5. Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  cursor: pointer; border: none;
}
.btn-primary   { background: var(--color-green-700); color: var(--color-white); }
.btn-primary:hover   { background: var(--color-green-900); transform: translateY(-1px); box-shadow: var(--shadow-hover); color: var(--color-white); }
.btn-secondary { background: transparent; color: var(--color-white); border: 2px solid var(--color-white); }
.btn-secondary:hover { background: var(--color-white); color: var(--color-green-700); }
.btn-ghost     { background: transparent; color: var(--color-green-700); border: 2px solid var(--color-green-700); }
.btn-ghost:hover     { background: var(--color-green-700); color: var(--color-white); }
.btn-block     { width: 100%; }

/* --- 6. Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-2); }
.site-header .logo img { height: 36px; width: auto; }
.site-nav ul { display: none; list-style: none; gap: var(--space-3); margin: 0; }
@media (min-width: 900px) { .site-nav ul { display: flex; } }
.site-nav a { color: var(--color-black); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--color-green-700); }
.nav-cta { display: inline-flex; gap: var(--space-1); align-items: center; }
.nav-cta .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--color-gray-200); background: var(--color-white);
  border-radius: var(--radius); cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.mobile-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 80%; max-width: 320px;
  background: var(--color-white); padding: var(--space-6) var(--space-3);
  transform: translateX(100%); transition: transform .25s ease; z-index: 50;
  box-shadow: var(--shadow-hover);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer li { border-bottom: 1px solid var(--color-gray-200); }
.mobile-drawer a { display: block; padding: var(--space-2) 0; color: var(--color-black); text-decoration: none; font-weight: 600; }
.drawer-close {
  position: absolute; top: var(--space-2); right: var(--space-2);
  background: transparent; border: 0; font-size: 2rem; cursor: pointer; color: var(--color-black);
}
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(11,11,11,0.5); opacity: 0; pointer-events: none;
  transition: opacity .25s ease; z-index: 45;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, var(--color-green-900) 0%, var(--color-green-700) 100%);
  color: var(--color-white);
  padding: var(--space-8) 0;
}
@media (min-width: 768px) { .hero { padding: var(--space-12) 0; } }
.hero h1 { color: var(--color-white); }
.hero p  { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 620px; margin-bottom: var(--space-4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 1fr; } }
.hero-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); }

/* --- 8. Trust bar -------------------------------------------------------- */
.trust-bar {
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  padding: var(--space-3) 0;
}
.trust-bar ul {
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.trust-bar li {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: 0.95rem; color: var(--color-gray-600); font-weight: 600; margin: 0;
}
.trust-bar .badge { color: var(--color-green-700); font-weight: 800; }

/* --- 9. Game grid -------------------------------------------------------- */
.game-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 600px)  { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .game-grid { grid-template-columns: repeat(5, 1fr); } }
.game-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.game-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.game-card-body { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.game-card h3 { margin: 0; font-size: 1.15rem; }
.game-card p  { margin: 0; font-size: 0.95rem; }
.game-card .btn { margin-top: auto; }

/* --- 10. Evo Club showcase ---------------------------------------------- */
.evo-showcase { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 768px) { .evo-showcase { grid-template-columns: repeat(3, 1fr); } }
.evo-tile {
  background: var(--color-green-900); color: var(--color-white);
  border-radius: var(--radius); padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.evo-tile h3 { color: var(--color-white); margin: 0; }
.evo-tile p  { color: rgba(255,255,255,0.88); margin: 0; }

/* --- 11. How-it-works --------------------------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-4); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 68px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-green-700); color: var(--color-white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem;
}
.step h3 { margin-top: 0; }

/* --- 12. Payment methods + providers badges ----------------------------- */
.badges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
@media (min-width: 600px)  { .badges-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px)  { .badges-grid { grid-template-columns: repeat(6, 1fr); } }
.badge-card {
  background: var(--color-white); border: 1px solid var(--color-gray-200);
  border-radius: var(--radius); padding: var(--space-2);
  display: flex; align-items: center; justify-content: center; min-height: 64px;
  font-weight: 600; color: var(--color-gray-600); text-align: center;
}

/* --- 13. FAQ accordion (uses <details>) --------------------------------- */
.faq details {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
}
.faq summary {
  font-weight: 700; font-family: var(--font-heading); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-1) 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ''; }
.faq summary::after {
  content: '+'; font-size: 1.5rem; color: var(--color-green-700); font-weight: 300; line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: var(--space-2); }

/* --- 14. Ambassador ----------------------------------------------------- */
.ambassador {
  display: grid; grid-template-columns: 1fr; gap: var(--space-3);
  background: var(--color-green-100); padding: var(--space-4); border-radius: var(--radius);
}
@media (min-width: 768px) { .ambassador { grid-template-columns: 1fr 2fr; align-items: center; } }
.ambassador img { border-radius: var(--radius); }

/* --- 15. VIP tiers ------------------------------------------------------ */
.vip-tiers { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 768px) { .vip-tiers { grid-template-columns: repeat(3, 1fr); } }
.vip-tier {
  border: 2px solid var(--color-green-500); border-radius: var(--radius);
  padding: var(--space-4); background: var(--color-white);
}
.vip-tier h3 { color: var(--color-green-700); }

/* --- 16. Breadcrumbs ---------------------------------------------------- */
.breadcrumbs { font-size: 0.9rem; color: var(--color-gray-600); margin-bottom: var(--space-2); }
.breadcrumbs a { color: var(--color-gray-600); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-green-700); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 var(--space-1); }

/* --- 17. Related pages -------------------------------------------------- */
.related-pages { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
@media (min-width: 768px) { .related-pages { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  background: var(--color-white); border: 1px solid var(--color-gray-200);
  border-radius: var(--radius); padding: var(--space-3);
  text-decoration: none; color: var(--color-black);
  transition: transform .15s ease, box-shadow .15s ease;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); color: var(--color-green-700); }
.related-card h3 { font-size: 1rem; margin: 0 0 var(--space-1); }
.related-card p  { font-size: 0.9rem; margin: 0; }

/* --- 18. Final CTA ------------------------------------------------------ */
.final-cta {
  background: linear-gradient(120deg, var(--color-green-900), var(--color-green-700));
  color: var(--color-white); text-align: center;
  padding: var(--space-12) var(--space-3);
}
.final-cta h2 { color: var(--color-white); margin-top: 0; }
.final-cta p  { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 640px; margin: 0 auto var(--space-4); }
.final-cta .btn-primary { background: var(--color-white); color: var(--color-green-700); }
.final-cta .btn-primary:hover { background: var(--color-green-100); color: var(--color-green-900); }

/* --- 19. Sticky mobile CTA ---------------------------------------------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--color-green-700); color: var(--color-white);
  text-align: center; padding: 0.9rem; font-weight: 700; text-decoration: none;
  z-index: 30; box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  display: block;
}
.sticky-cta:hover { background: var(--color-green-900); color: var(--color-white); }
@media (min-width: 768px) { .sticky-cta { display: none; } }
@media (max-width: 767px) { body { padding-bottom: var(--sticky-cta-offset); } }

/* --- 20. Footer --------------------------------------------------------- */
.site-footer {
  background: var(--color-green-900); color: var(--color-white);
  padding: var(--space-8) 0 var(--space-4);
  font-size: 0.95rem;
}
.site-footer a { color: var(--color-white); text-decoration: none; }
.site-footer a:hover { color: var(--color-green-100); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid h3 { color: var(--color-white); font-size: 1rem; margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--space-1); }
.footer-bottom {
  margin-top: var(--space-6); padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex; flex-direction: column; gap: var(--space-2);
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 2px solid var(--color-gold); border-radius: 50%;
  color: var(--color-gold); font-weight: 800; font-size: 0.85rem;
}
.alt-access {
  background: rgba(0,0,0,0.2); padding: var(--space-3); border-radius: var(--radius);
  margin-top: var(--space-4);
}
.alt-access h3 { margin-top: 0; color: var(--color-white); }
.alt-access ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.alt-access li { margin: 0; }
.alt-access a {
  display: inline-block; padding: 0.5rem 1rem;
  background: var(--color-green-700); color: var(--color-white);
  border-radius: var(--radius); font-size: 0.85rem; font-weight: 600;
}
.alt-access a:hover { background: var(--color-green-900); color: var(--color-white); }

/* --- 21. Utilities ------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; white-space: nowrap;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  border: 0;
}
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--color-gray-600); max-width: 720px; margin-bottom: var(--space-4); }

/* --- 22. Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
