/* ============================================
   AFB Casino — shared design tokens & styles
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Anybody:wght@400;500;600;700;800&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700;800&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  /* Brand colors */
  --bg-deep:        #1a0522;
  --bg-purple:      #200a27;
  --bg-purple-2:    #2d1735;
  --bg-purple-3:    #330045;
  --bg-purple-card: rgba(45, 23, 53, 0.6);
  --bg-purple-card-2: rgba(45, 23, 53, 0.4);
  --bg-overlay:     rgba(255, 255, 255, 0.05);

  --accent-purple:  #9810fa;
  --accent-pink:    #e60076;
  --accent-magenta: #ff23fe;
  --accent-gold:    #e9c349;
  --accent-red:     #d80027;

  --text-lilac:     #eeb1ff;
  --text-lilac-2:   #dab2ff;
  --text-lilac-3:   #f9d8ff;
  --text-purple:    #c27aff;
  --text-mute:      #d0c2d0;
  --text-grey:      #364153;

  --border-purple:  rgba(110, 17, 176, 0.3);
  --border-lilac:   rgba(238, 177, 255, 0.2);
  --border-lilac-3: rgba(238, 177, 255, 0.3);
  --border-gold:    rgba(233, 195, 73, 0.3);

  --shadow-glow-purple: 0 4px 6px -4px rgba(173, 70, 255, 0.5), 0 10px 15px -3px rgba(173, 70, 255, 0.5);
  --shadow-card:        0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --grad-primary:   linear-gradient(135deg, #9810fa 0%, #e60076 100%);
  --grad-hero:      radial-gradient(ellipse at top, #330045 0%, #200a27 60%, #1a0522 100%);
  --grad-fade:      linear-gradient(180deg, rgba(74,14,96,0.2) 0%, rgba(74,14,96,0) 100%);
  --grad-text-fade: linear-gradient(90deg, rgba(238,177,255,0.3) 0%, rgba(238,177,255,0) 100%);
  --grad-gold-line: linear-gradient(90deg, rgba(233,195,73,0) 0%, rgba(233,195,73,1) 50%, rgba(233,195,73,0) 100%);
  --grad-lilac-line:linear-gradient(90deg, rgba(238,177,255,0) 0%, rgba(238,177,255,1) 50%, rgba(238,177,255,0) 100%);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 14px;

  --font-display: "Anybody", "Montserrat", sans-serif;
  --font-headline: "Montserrat", sans-serif;
  --font-body: "Hanken Grotesk", "Inter", sans-serif;
  --font-ui: "Inter", sans-serif;
  --font-mono: "Space Grotesk", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-purple);
  color: var(--text-lilac);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-purple);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border-purple);
}
.site-header__logo img {
  height: 56px;
  width: auto;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search */
.search {
  position: relative;
  width: 256px;
}
.search input {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(130, 0, 219, 0.5);
  background: rgba(89, 22, 139, 0.5);
  color: var(--text-purple);
  font-family: var(--font-ui);
  font-size: 16px;
  padding: 0 16px 0 40px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search input:focus {
  border-color: var(--accent-purple);
  background: rgba(89, 22, 139, 0.7);
}
.search input::placeholder { color: var(--text-purple); opacity: 0.85; }
.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-purple);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  padding: 10px 20px;
  letter-spacing: -0.3px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad-primary);
  box-shadow: var(--shadow-glow-purple);
}
.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 10px -4px rgba(173,70,255,0.6), 0 14px 20px -3px rgba(173,70,255,0.7);
}
.btn--gold {
  background: linear-gradient(135deg, #f1d35a 0%, #c89a25 100%);
  color: #3c2f00;
  box-shadow: 0 4px 12px rgba(233, 195, 73, 0.35);
}
.btn--gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-lilac);
  backdrop-filter: blur(16px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* Locale selector */
.locale-wrap { position: relative; }
.locale {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: #3a0d57;
  border: 1px solid rgba(152, 16, 250, 0.5);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.locale:hover { background: #4a1170; }
.locale-wrap.is-open .locale { background: #4a1170; border-color: rgba(173, 70, 255, 0.8); }
.locale-wrap.is-open .locale svg.locale__chev { transform: rotate(180deg); }
.locale__chev { transition: transform 0.2s ease; }
.locale__label {
  font-weight: 600;
  letter-spacing: 0.5px;
}
.locale__flag {
  width: 22px; height: 16px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
  display: inline-block;
}
.locale__flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Dropdown menu */
.locale__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(42, 14, 60, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(152, 16, 250, 0.5);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  list-style: none;
  margin: 0;
  display: none;
  z-index: 200;
  animation: locale-pop 0.16s ease-out;
}
@keyframes locale-pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.locale-wrap.is-open .locale__menu { display: block; }
.locale__menu li { display: block; }
.locale__menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-lilac-2);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.locale__menu button:hover {
  background: rgba(152, 16, 250, 0.28);
  color: #fff;
}
.locale__menu button.is-active {
  background: rgba(152, 16, 250, 0.4);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(218, 178, 255, 0.3);
}
.locale__menu .locale__flag { width: 22px; height: 16px; }
.locale__menu .locale__name { flex: 1; }
.locale__menu .locale__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-purple);
  opacity: 0.9;
}

/* Primary nav */
.site-nav {
  border-bottom: 1px solid var(--border-purple);
}
.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 12px 32px;
}
.site-nav__link {
  position: relative;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.15px;
  color: var(--text-lilac-2);
  padding: 4px 0;
  transition: color 0.2s;
}
.site-nav__link:hover { color: var(--text-lilac-3); }
.site-nav__link.is-active {
  color: #ff00ca;
}
.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  background: linear-gradient(90deg, #ad46ff 0%, #f6339a 100%);
  border-radius: 1px;
}

/* Hamburger */
.nav-toggle { display: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.section { padding: 64px 0; }
.section--lg { padding: 96px 0; }

/* ---------- Glass card ---------- */
.glass {
  background: var(--bg-purple-card);
  border: 1px solid var(--border-lilac);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}

/* ---------- Section heading ---------- */
.heading-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.heading-row__title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.4px;
  color: var(--text-lilac);
  text-shadow: 0 0 10px rgba(189, 0, 255, 0.4);
  white-space: nowrap;
  margin: 0;
  text-transform: uppercase;
}
.heading-row__divider {
  flex: 1;
  height: 1px;
  background: var(--grad-text-fade);
}

/* H1, H2 section titles */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent-gold);
  text-transform: uppercase;
}
.h1-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-lilac);
  margin: 0;
}
.h2-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: var(--accent-gold);
  margin: 0;
}
.h2-section--lilac { color: var(--text-lilac); }
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--text-lilac-3);
  margin: 0;
}
.lead {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0;
}
.body-copy {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.625;
  color: var(--text-mute);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid #4d444f;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 48px;
  padding: 64px 80px;
  align-items: flex-start;
}
.site-footer img { height: 56px; }
.footer-col__title {
  font-family: var(--font-headline);
  font-size: 16px;
  letter-spacing: 1.6px;
  color: var(--text-lilac-2);
  margin: 0 0 16px 0;
  font-weight: 500;
}
.footer-col__list { display: flex; flex-direction: column; gap: 12px; }
.footer-col__list a {
  font-family: var(--font-headline);
  font-size: 16px;
  color: var(--text-mute);
  transition: color 0.2s;
}
.footer-col__list a:hover { color: var(--text-lilac-3); }
.footer-col__list a.underline { text-decoration: underline; color: var(--text-lilac-2); }
.footer__copy {
  font-family: var(--font-headline);
  font-size: 16px;
  line-height: 1.625;
  color: var(--text-mute);
  margin: 24px 0 0 0;
  max-width: 380px;
}
.footer__socials {
  display: flex;
  gap: 16px;
}
.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(218, 178, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
  transform: translateY(-2px);
  background: rgba(233, 195, 73, 0.1);
  box-shadow: 0 4px 12px rgba(233, 195, 73, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .site-header__inner { padding: 14px 24px; }
  .search { width: 200px; }
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    padding: 48px 40px;
    gap: 32px;
  }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .site-header__inner {
    flex-wrap: wrap;
    padding: 12px 20px;
    gap: 12px;
  }
  .site-header__actions { gap: 8px; width: 100%; justify-content: flex-end; }
  .search { display: none; }
  .nav-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-lilac);
    align-items: center;
    justify-content: center;
    color: var(--text-lilac-2);
    margin-left: auto;
  }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    border-top: 1px solid var(--border-purple);
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .site-nav__list li { width: 100%; }
  .site-nav__link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-purple);
  }
  .site-nav__link.is-active::after { display: none; }
  .site-nav__link.is-active { background: rgba(173, 70, 255, 0.12); }
  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .site-footer__inner > *:last-child { justify-self: start; }
  .h1-hero { font-size: 44px; letter-spacing: -1px; }
  .h2-section { font-size: 28px; }
}
