@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Radius */
  --radius: 12px;

  /* Typography scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --font-size-hero: 3.5rem;
  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Palette (D666 Casino branding) */
  --color-bg: #12082B;            /* royal indigo base */
  --color-primary: #8B5CF6;         /* bright violet */
  --color-accent: #F59E0B;          /* gold */
  --color-bg-alt: #1A0F32;           /* deeper indigo for contrasts */
  --color-bg-card: #FFFFFF;          /* white card surface (light) */
  --color-card: #FFFFFF;             /* card background */
  --color-text: #F9F7FF;             /* text on dark surface (high contrast) */
  --color-text-muted: #D6C9FF;       /* muted text */
  --color-text-on-primary: #FFFFFF;  /* text on primary surfaces */
  --color-border: #2A2140;           /* borders */
  --color-shadow: rgba(0,0,0,0.35);   /* elevated shadow */
  --color-shadow-soft: rgba(0,0,0,0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: linear-gradient(135deg, #12082B 0%, #1A0F32 60%, #0B0B1E 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 3. CSS reset/base */
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }

/* 4. Typography (H1-H4, p, a, strong, em, lists) */
h1, h2, h3, h4 { margin: 0 0 .5rem 0; font-weight: var(--font-weight-bold); color: var(--color-text); }
h1 { font-size: var(--font-size-3xl); line-height: var(--line-height-tight); }
h2 { font-size: var(--font-size-2xl); line-height: var(--line-height-tight); }
h3 { font-size: var(--font-size-xl); line-height: var(--line-height-tight); }
h4 { font-size: var(--font-size-md); line-height: var(--line-height-tight); font-weight: var(--font-weight-medium); }

p { margin: 0 0 1rem 0; color: var(--color-text); }

a { color: #ef0e0e; text-decoration: none; }

strong { font-weight: var(--font-weight-bold); }

em { font-style: italic; opacity: 0.95; }

/* Lists */
ul, ol { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: 0.25rem 0; }

/* 5. Layout utilities (container, section) */
.container {
  width: 100%;
  margin: 0 auto; /* required: always center */
  padding: 0 1rem;
}
.section { padding: 2rem 0; }

/* 6. Class names to style (mandatory set) */
.site-header {
  position: sticky;
  top: 0;
  min-height: 64px; /* no fixed height, per requirement */
  width: 100%;
  overflow: visible;
  background: rgba(18,8,43,0.92);
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.5rem 1rem; /* mobile padding; content centered vertically */
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
  text-decoration: none;
}
.site-logo img {
  height: 44px;            /* mandatory: height 44px, width:auto */
  width: auto;
  max-width: 160px;        /* mandatory: max-width 160px */
  object-fit: contain;     /* mandatory: contain */
  display: block;            /* mandatory: block */
}

.nav-toggle-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;                /* hidden but not removed from layout */
  pointer-events: none;
}
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 0.4rem 0.6rem;
  z-index: 200;
  border-radius: 6px;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff; /* mandatory: white bars */
  border-radius: 2px;
  transition: 0.2s ease;
}

.site-nav {
  display: none;                /* mobile: collapsed by default */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 500;
}
.site-nav .nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.site-nav .nav-item { width: 100%; }
.site-nav .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  background: rgba(255,255,255,0.04);
}
.site-nav .nav-link:last-child {
  border-bottom: none;
}
.nav-toggle-input:checked ~ .site-nav { display: block; }

/* Dropdown navigation (mobile & desktop) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  white-space: nowrap;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.5rem 1.25rem;
  width: 100%;
  border-bottom: none;
}
.nav-dropdown-menu .nav-link:last-child { border-bottom: none; }

/* Hover/keyboard open on mobile too (accessibility) */
@media (min-width: 768px) {
  .nav-dropdown-menu { position: absolute; top: 100%; left: 0; }
  .nav-dropdown:hover > .nav-dropdown-menu,
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .nav-list { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; justify-content: flex-end; padding: 0; margin: 0; list-style: none; }
  .nav-link { font-size: var(--font-size-sm); padding: 0.4rem 0.75rem; border-bottom: none; white-space: nowrap; }
  .nav-toggle-label { display: none !important; } /* hide hamburger on tablet/desktop */
	.site-nav { display: flex !important; position: static; width: auto; background: transparent; border-top: none; box-shadow: none; }
	.site-header .container { gap: 0.75rem; padding: 0 1rem; }
	.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; }
	.nav-dropdown:hover > .nav-dropdown-menu, .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
}
@media (min-width: 1280px) {
  .container { max-width: 1200px; padding: 0 2rem; }
  .site-header { min-height: 64px; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 767px) {
  /* Mobile defaults (base) */
  .container { padding: 0 1rem; }
  .site-nav { /* mobile panel adjustments handled above */ }
  .nav-dropdown-menu { position: static; padding-left: 1rem; display: none; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: none; } /* keyboard open only on desktop/tablet with hover/focus */
  .hero { min-height: 50vh; padding: 2rem 0; }
  .hero h1 { font-size: 2.0rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* 7. Forms (input, textarea, select, label, button[type=submit]) */
label { display: block; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold, 600); margin-bottom: 0.25rem; color: var(--color-text); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,.25);
}
button[type="submit"] {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--color-primary), #5a2bd4);
  color: #fff;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
button[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

/* 8. Tables (table, th, td) */
table { width: 100%; border-collapse: collapse; border-spacing: 0; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); text-align: left; }
th { font-weight: var(--font-weight-bold); }

/* 9. Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none !important; }

/* 10. Responsive requirements (covered above) – ensure mobile-first behavior */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.18) 0%, rgba(18,8,43,0.65) 60%), linear-gradient(135deg, #12082B 0%, #1A0F32 60%, #0B0B1E 100%);
  border-radius: 0;
}
.hero h1 { margin: 0 0 1rem 0; color: var(--color-text); }

.card {
  display: flex;
  flex-direction: column;  /* mandatory */
  background: var(--color-card);
  background-image: linear-gradient(135deg, rgba(139,92,246,.08), rgba(18,8,43,.08)),
                    linear-gradient(#e70d0d, #ffffff);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px var(--color-shadow), 0 10px 15px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,.25), 0 14px 20px rgba(0,0,0,.15);
}
.card img {
  width: 100%;
  aspect-ratio: 16/9;        /* mandatory: 16/9 rectangle */
  object-fit: cover;          /* mandatory: cover */
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-content {
  padding: 1rem;
}
.card-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); margin: 0 0 .25rem 0; color: var(--color-text); }
.card-text { font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* .card-grid: grid of cards (auto-fill) */
.card-grid {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
}

/* 6. Dropdown hover/use (already handled in navigation section) - ensure card grid responsive hints */
@media (min-width: 768px) {
  .hero h1 { font-size: var(--font-size-3xl); }
}
@media (max-width: 767px) {
  .nav-link { font-size: var(--font-size-xs); }
}
@media (min-width: 768px) {
  .nav-link { font-size: var(--font-size-sm); }
}