@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@400;700&display=swap');

:root {
  /* 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;

  /* Color palette (P666 brand) */
  --color-primary: #D4AF37;       /* gold */
  --color-secondary: #B22222;     /* crimson */
  --color-accent: #B22222;        /* crimson accent */
  --color-bg: #0A0A0A;             /* deep black base */
  --color-bg-alt: #121212;
  --color-bg-card: #FFFFFF;         /* card background defaults to white (premium) */
  --color-text: #F7F4F0;            /* light text on dark */
  --color-text-muted: #C5B8A6;
  --color-text-on-primary: #0A0A0A;
  --color-border: rgba(255,255,255,0.15);
  --color-shadow: rgba(0,0,0,0.6);

  /* Elevation / radius */
  --radius: 12px;
  --shadow-1: 0 4px 6px rgba(0,0,0,0.25);
  --shadow-2: 0 10px 15px rgba(0,0,0,0.15);
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family-body, 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --font-family-body: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-family-heading: 'Playfair Display', serif;
}

/* Base layout utilities */
.container {
  width: 100%;
  margin: 0 auto; /* required across all breakpoints */
  padding: 0 1rem;
  max-width: 100%;
}

.section {
  padding: 2rem 0;
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl);
  margin: 0 0 .75rem;
  color: #fff;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #0A0A0A 0%, #111 60%, #B22222 100%);
  color: #fff;
  position: relative;
}
.hero h1 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-hero);
  line-height: var(--line-height-tight);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero p { font-size: var(--font-size-lg); opacity: 0.95; }

.card {
  display: flex;
  flex-direction: column; /* mandatory per spec */
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1), var(--shadow-2);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.28), 0 20px 28px rgba(0,0,0,0.18);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-body {
  padding: 1rem;
}
.card-title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-lg);
  margin: 0 0 .25rem;
}
.card-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}
.card-cta {
  margin-top: auto;
  padding-top: 0.75rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* responsive grid */
  gap: 1.25rem;
}

/* Header / navigation: casino brand rules */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: 64px; /* not a fixed height; content dictates height */
  overflow: visible;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem; /* mobile padding */
}

.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, no larger than 52px overall constraint */
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;           /* mandatory to prevent rendering glitches */
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.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;
}

/* Mobile nav panel (hidden by default) */
.site-nav {
  display: none; /* mobile hidden until checkbox checked */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 500;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.nav-toggle-input:checked ~ .site-nav {
  display: block;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm); /* tablet/desktop fallback; overridden in breakpoints */
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.nav-item { }

.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.75rem 1rem;
  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,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:hover {
  background: var(--color-bg-alt);
}
@media (min-width: 768px) {
  /* Tablet: ensure container centers content; nav visible horizontally; hamburger hidden; nav utilities */
  .container { max-width: 960px; padding: 0 1.5rem; margin: 0 auto; }
  .nav-toggle-label { display: none; } /* hide hamburger on tablet+ */
  .site-nav {
    display: flex !important; /* tablet/desktop: always visible */
    position: static;
    width: auto;
    background: transparent;
    border-top: none;
    box-shadow: none;
  }
  .nav-list {
    display: flex !important;
    flex-direction: row !important; /* must be horizontal on tablet/desktop */
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
  }
  .nav-link {
    font-size: var(--font-size-sm); /* tablet/desktop: small text */
    padding: 0.4rem 0.75rem;
    border-bottom: none;
    white-space: nowrap;
  }
  .nav-dropdown-menu {
    min-width: 200px;
  }
}
@media (min-width: 1024px) {
  /* Desktop refinements */
  .container { max-width: 1200px; padding: 0 2rem; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: var(--font-size-hero); }
  .section { padding: 4rem 0; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .nav-link { font-size: var(--font-size-sm); }
}
@media (max-width: 767px) {
  /* Mobile specifics: vertical nav and mobile typography sizing */
  .container { max-width: 100%; padding: 0 1rem; margin: 0 auto; }
  .site-nav { /* mobile panel width already set to 100% by default */ }
  .nav-list { flex-direction: column; padding: 0.25rem 0; }
  .nav-link { font-size: var(--font-size-xs); padding: 0.65rem 1rem; }
  .nav-dropdown-menu { position: static; display: none; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: calc(var(--font-size-hero) * 0.9); }
  .card-grid { grid-template-columns: 1fr; }
}
.text-center { text-align: center; }
.mr-auto { margin-right: auto; }

/* Form elements (general styling) */
input,
textarea,
select {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  color: #111;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.25);
}
label { display: block; font-size: var(--font-size-sm); margin-bottom: 0.25rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem; border-bottom: 1px solid var(--color-border); }

/* Utility spacing (mt-1..mt-4) */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

/* Footer */
.site-footer {
  background: #000;
  color: #e9e9e9;
  padding: 2rem 0;
}
.footer-inner {
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
}
@media (max-width: 767px) {
  .footer-inner { flex-direction: column; text-align: center; }
} 

/* Accessibility helpers */
[hidden] { display: none !important; }