/* ==================================================================
   Variables
   ================================================================== */

:root {
  /* Colors - Core Palette */
  --color-bg-dark: #121212;           /* primary dark background */
  --color-bg-light: #F7F2E8;          /* secondary light background */
  --color-text-on-dark: #F5F1E8;      /* primary text on dark */
  --color-text-on-light: #1E1E1E;     /* primary text on light */

  --color-heading-navy: #316ec9;      /* headings / corporate accents */
  --color-heading-burgundy: #6E1F2A;  /* headings / festive accents */

  --color-primary: #C8A45A;           /* CTAs, key accents (antique gold) */
  --color-primary-hover: #7A5A3A;     /* hover state for CTAs (dark bronze) */

  --color-accent-emerald: #1E5E4F;    /* separators, interactive accents */

  /* Semantic Status Colors (neutral grays + states) */
  --color-success: #1E7F4F;
  --color-warning: #C47A1B;
  --color-danger: #B33232;

  --color-gray-50: #FAF7F0;
  --color-gray-100: #F0E7DA;
  --color-gray-200: #DED2C1;
  --color-gray-300: #BBAA92;
  --color-gray-400: #9A8A75;
  --color-gray-500: #7A6C5A;
  --color-gray-600: #5C5144;
  --color-gray-700: #423A31;
  --color-gray-800: #27221D;
  --color-gray-900: #15120F;

  /* Overlays / Effects */
  --color-overlay-strong: rgba(0, 0, 0, 0.65);
  --color-overlay-soft: rgba(0, 0, 0, 0.35);

  /* Typography - Families */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Georgia", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Typography - Sizes (desktop base, responsive via clamp where used) */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  /* Typography - Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing Scale (0–96px, 4px step) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-9: 2.25rem;  /* 36px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-14: 3.5rem;  /* 56px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radii */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows - cinematic but subtle by default */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-medium: 0 16px 40px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 250ms ease-out;
  --transition-slow: 400ms ease-out;

  /* Layout */
  --container-max-width: 1200px;
  --container-padding-x: var(--space-4);

  /* Focus styles */
  --focus-ring-color: rgba(200, 164, 90, 0.85);
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
}

/* Reduced motion preferences ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==================================================================
   Reset / Normalize
   ================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  margin: 0;
  list-style: none;
}

body {
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

textarea {
  resize: vertical;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==================================================================
   Base Styles
   ================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings - cinematic, responsive scale */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-heading-navy);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  margin-bottom: var(--space-4);
  }

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

code,
pre {
  font-family: var(--font-mono);
}

/* Links - premium, understated default */

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast),
              opacity var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

a:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Sections */

section {
  padding-block: var(--space-12);
}

/* Background context helpers for contrasting text */

body.is-light-context,
.bg-light {
  background-color: var(--color-bg-light);
  color: var(--color-text-on-light);
}

.bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.bg-ivory {
  background-color: var(--color-bg-light);
  color: var(--color-text-on-light);
}

.bg-night {
  background-color: #050609;
  color: var(--color-text-on-dark);
}

/* ==================================================================
   Accessibility & Focus
   ================================================================== */

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Screen reader only */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ==================================================================
   Utilities
   ================================================================== */

/* Layout: Container */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

/* Flex utilities */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-row {
  flex-direction: row;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-sm {
  gap: var(--space-3);
}

.gap-md {
  gap: var(--space-4);
}

.gap-lg {
  gap: var(--space-6);
}

/* Grid utilities */

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Text alignment */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

/* Spacing utilities (margin / padding) */

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.pt-8 { padding-top: var(--space-8); }
.pb-8 { padding-bottom: var(--space-8); }
.pt-12 { padding-top: var(--space-12); }
.pb-12 { padding-bottom: var(--space-12); }

/* Width helpers */

.w-full {
  width: 100%;
}

/* Visual utilities */

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-medium {
  box-shadow: var(--shadow-medium);
}

.shadow-strong {
  box-shadow: var(--shadow-strong);
}

/* Accent borders / separators */

.border-emerald {
  border: 1px solid var(--color-accent-emerald);
}

.hr-emerald {
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-accent-emerald),
    transparent
  );
}

/* Cinematic overlay for hero sections */

.hero-overlay {
  position: relative;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(200, 164, 90, 0.2), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(30, 94, 79, 0.3), transparent 55%),
              var(--color-overlay-strong);
  pointer-events: none;
}

/* ==================================================================
   Components
   ================================================================== */

/* Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding-inline: var(--space-5);
  padding-block: var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background-color: var(--color-primary);
  color: #111;
  box-shadow: var(--shadow-soft);
  transition: background-color var(--transition-normal),
              color var(--transition-fast),
              box-shadow var(--transition-normal),
              transform var(--transition-fast),
              border-color var(--transition-fast);
}

.btn:hover {
  background-color: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(200, 164, 90, 0.1);
  color: var(--color-primary-hover);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-text-on-dark);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Inputs & Form Controls ------------------------------------------- */

.input,
.select,
.textarea {
  width: 100%;
  padding-inline: var(--space-3);
  padding-block: var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(0, 0, 0, 0.35);
  color: var(--color-text-on-dark);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(245, 241, 232, 0.55);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  background-color: rgba(0, 0, 0, 0.55);
}

.input--light,
.select--light,
.textarea--light {
  background-color: #fff;
  color: var(--color-text-on-light);
  border-color: rgba(0, 0, 0, 0.16);
}

.input--light::placeholder,
.textarea--light::placeholder {
  color: rgba(30, 30, 30, 0.55);
}

.input--error,
.textarea--error {
  border-color: var(--color-danger);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-1);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--color-gray-300);
  margin-top: var(--space-1);
}

/* Card -------------------------------------------------------------- */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background-color: rgba(15, 15, 15, 0.96);
  color: var(--color-text-on-dark);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--transition-normal),
              box-shadow var(--transition-normal),
              background-color var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card--light {
  background-color: #fff;
  color: var(--color-text-on-light);
}

.card__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-emerald);
  margin-bottom: var(--space-2);
}

.card__title {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

.card__meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gray-300);
}

/* Hero-specific helpers -------------------------------------------- */

.hero-fullscreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--color-text-on-dark);
}

.hero-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.hero-fullscreen > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: var(--font-size-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.78);
  margin-bottom: var(--space-3);
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.4vw, 3.75rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  max-width: 40rem;
  color: rgba(245, 241, 232, 0.86);
}

/* Timeline / story line accent ------------------------------------- */

.timeline-line {
  position: relative;
  padding-left: var(--space-6);
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.75rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent-emerald), transparent);
}

.timeline-dot {
  position: relative;
  margin-left: -0.25rem;
}

.timeline-dot::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background-color: #000;
  box-shadow: 0 0 0 4px rgba(200, 164, 90, 0.25);
}

/* Tag / pill for formats ------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-3);
  padding-block: 0.35rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
}

.tag--corporate {
  border-color: var(--color-heading-navy);
  color: var(--color-heading-navy);
  background: rgba(247, 242, 232, 0.8);
}

.tag--casino {
  border-color: var(--color-primary);
  background: rgba(200, 164, 90, 0.12);
}

.tag--private {
  border-color: var(--color-heading-burgundy);
  background: rgba(110, 31, 42, 0.15);
}

/* Badges for statuses ---------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding-inline: 0.5rem;
  padding-block: 0.15rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
}

.badge-success {
  background-color: rgba(30, 127, 79, 0.15);
  color: #9ef2c3;
}

.badge-warning {
  background-color: rgba(196, 122, 27, 0.15);
  color: #ffd699;
}

.badge-danger {
  background-color: rgba(179, 50, 50, 0.15);
  color: #ffb3b3;
}

/* Media query tweaks for small screens ----------------------------- */

@media (max-width: 600px) {
  body {
    font-size: 0.9375rem;
  }

  section {
    padding-block: var(--space-10);
  }

  .card {
    padding: var(--space-4);
  }

  .hero-heading {
    font-size: clamp(2.1rem, 8vw, 2.6rem);
  }
}
