/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Colors - Core Palette */
  --color-bg: #050608; /* near-black, cinematic */
  --color-bg-elevated: #101218;
  --color-bg-soft: #181b22;

  --color-text: #f5f1e6; /* warm ivory */
  --color-text-muted: #b5b0a4;
  --color-border-subtle: #2f333b;

  --color-primary: #d4a44a; /* royal gold */
  --color-primary-soft: rgba(212, 164, 74, 0.12);

  --color-success: #1f8f5f; /* deep emerald accent */
  --color-warning: #f0b354; /* warm highlight */
  --color-danger: #b3263a; /* crimson red */

  /* Neutral grays (for subtle structure) */
  --gray-50: #f7f7f7;
  --gray-100: #e3e3e6;
  --gray-200: #c6c7cd;
  --gray-300: #a1a4ad;
  --gray-400: #7a7f8b;
  --gray-500: #555b68;
  --gray-600: #3f4551;
  --gray-700: #2b3038;
  --gray-800: #191c23;
  --gray-900: #0c0e12;

  /* Status backgrounds */
  --bg-success-soft: rgba(31, 143, 95, 0.12);
  --bg-warning-soft: rgba(240, 179, 84, 0.16);
  --bg-danger-soft: rgba(179, 38, 58, 0.18);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  /* Font sizes (clamp for responsive scaling) */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --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: clamp(2.75rem, 4vw, 3.5rem); /* hero heading */

  /* Line heights */
  --line-height-tight: 1.15;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --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.5rem;   /* 40px */
  --space-10: 3rem;    /* 48px */
  --space-11: 3.5rem;  /* 56px */
  --space-12: 4rem;    /* 64px */
  --space-14: 4.5rem;  /* 72px */
  --space-16: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Shadows (cinematic, soft) */
  --shadow-xs: 0 4px 10px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 22px 60px rgba(0, 0, 0, 0.55);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms cubic-bezier(0.19, 1, 0.22, 1); /* cinematic ease-out */
  --transition-slow: 320ms cubic-bezier(0.19, 1, 0.22, 1);

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 1.5rem;
}

@media (min-width: 1200px) {
  :root {
    --container-max-width: 1240px;
  }
}

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

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

img,
video {
  height: auto;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

/* Remove tap highlight on mobile */
button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   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);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-1);
}

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-1);
  color: var(--color-text-muted);
}

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

strong,
b {
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: var(--font-size-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: #f0c562;
}

a:active {
  color: #b9892f;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-8) 0;
}

/* =========================================================
   Accessibility & Motion
   ========================================================= */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 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;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

/* Layout helpers */
.flex {
  display: flex;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.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-7);
}

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

/* Spacing utilities (subset, extend as needed) */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.w-full { width: 100% !important; }

/* Cinematic overlay helpers for hero / gallery */
.overlay-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0) 0%, rgba(5, 6, 8, 0.9) 80%, #050608 100%);
}

.overlay-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background-color: var(--color-primary);
  color: #151515 !important;
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    border-color var(--transition-base);
}

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

.btn:active {
  background-color: #b9892f;
  box-shadow: var(--shadow-xs);
  transform: translateY(0);
}

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

.btn-outline {
  background: rgba(5, 6, 8, 0.6);
  color: var(--color-primary) !important;
  border-color: var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-xs);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text) !important;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Form controls */
.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(15, 17, 24, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

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

textarea {
  min-height: 140px;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

/* Card - for event programs, kasino highlights, testimonials */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(212, 164, 74, 0.08), transparent 45%),
              radial-gradient(circle at bottom right, rgba(31, 143, 95, 0.16), transparent 55%),
              var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.card:hover::after {
  opacity: 1;
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.card-body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Tag / pill for kasina / kasino labels */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 220, 167, 0.3);
  background: rgba(10, 10, 12, 0.9);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Timeline base (for interactive event timelines) */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.75rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(212, 164, 74, 0.3), rgba(179, 38, 58, 0.6));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.15rem;
  top: 0.2rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--color-bg);
  background: radial-gradient(circle, #ffffff 0%, #f5f1e6 30%, #d4a44a 100%);
  box-shadow: 0 0 0 4px rgba(212, 164, 74, 0.26);
}

/* Gallery grid foundation */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 40%);
  opacity: 0.65;
  transition: opacity var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.2) contrast(1.1);
}

.gallery-item:hover::after {
  opacity: 0.35;
}

/* Testimonial base */
.testimonial {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(13, 16, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.testimonial-meta {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Hero base (fullscreen cinematic sections) */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-text);
  overflow: hidden;
}

.hero-fullscreen::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 10% 10%, rgba(212, 164, 74, 0.22), transparent 55%),
              radial-gradient(circle at 90% 90%, rgba(179, 38, 58, 0.4), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0.65;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  font-size: var(--font-size-md);
  max-width: 36rem;
  color: var(--color-text-muted);
}

/* Booking-focused layout base */
.booking-panel {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: linear-gradient(145deg, rgba(31, 143, 95, 0.18), rgba(5, 6, 8, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.booking-panel-header {
  margin-bottom: var(--space-4);
}

.booking-panel-title {
  font-size: var(--font-size-2xl);
}

/* Alert-style ribbons for success/warning/danger states */
.ribbon-success {
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  background: var(--bg-success-soft);
  color: var(--color-success);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ribbon-warning {
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  background: var(--bg-warning-soft);
  color: var(--color-warning);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ribbon-danger {
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  background: var(--bg-danger-soft);
  color: var(--color-danger);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* End of base.css */
