/* ========================================================================
   Variables
   ======================================================================== */
:root {
  /* Colors - Nightlife Luxury Palette */
  --color-bg: #05060a; /* Deep near-black */
  --color-bg-elevated: #0d0f16;
  --color-bg-soft: #151826;

  --color-text: #f7f7fb;
  --color-text-muted: #b3b6c8;

  --color-primary: #e4b657; /* Warm gold */
  --color-primary-soft: rgba(228, 182, 87, 0.16);
  --color-primary-dark: #b18a35;

  --color-accent: #b42c3d; /* Burgundy red */
  --color-accent-soft: rgba(180, 44, 61, 0.14);

  --color-info: #3f7edb; /* Night blue */
  --color-success: #3bbf7a;
  --color-warning: #f2b950;
  --color-danger: #f05252;

  /* Neutral grays for borders & UI */
  --color-gray-50: #f9fafb;
  --color-gray-100: #edf0f4;
  --color-gray-200: #dde1ea;
  --color-gray-300: #c4cad8;
  --color-gray-400: #9aa1b7;
  --color-gray-500: #6c738b;
  --color-gray-600: #4d5568;
  --color-gray-700: #363c4b;
  --color-gray-800: #232736;
  --color-gray-900: #151826;

  /* Semantic surface / border colors */
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-shadow-soft: rgba(0, 0, 0, 0.45);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  --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: 3rem;     /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;

  /* Spacing scale (px values, used via rem for consistency) */
  --space-0: 0;
  --space-1: 0.125rem;  /* 2px */
  --space-2: 0.25rem;   /* 4px */
  --space-3: 0.375rem;  /* 6px */
  --space-4: 0.5rem;    /* 8px */
  --space-5: 0.625rem;  /* 10px */
  --space-6: 0.75rem;   /* 12px */
  --space-8: 1rem;      /* 16px */
  --space-10: 1.25rem;  /* 20px */
  --space-12: 1.5rem;   /* 24px */
  --space-16: 2rem;     /* 32px */
  --space-20: 2.5rem;   /* 40px */
  --space-24: 3rem;     /* 48px */
  --space-32: 4rem;     /* 64px */
  --space-40: 5rem;     /* 80px */
  --space-48: 6rem;     /* 96px */

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

  /* Shadows (subtle but luxurious, for dark UI) */
  --shadow-soft: 0 10px 30px var(--color-shadow-soft);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.7);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease-out;

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

/* ========================================================================
   Reset / Normalize
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

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

body {
  min-height: 100vh;
}

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

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

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

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

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

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-snug);
  color: #ffffff;
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-8);
}

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

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

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

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

strong {
  font-weight: 600;
}

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

a {
  transition: color var(--transition-base),
    opacity var(--transition-fast),
    text-shadow var(--transition-fast);
}

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

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

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

::selection {
  background-color: rgba(228, 182, 87, 0.3);
  color: #ffffff;
}

/* ========================================================================
   Accessibility & Reduced Motion
   ======================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

/* ========================================================================
   Layout Utilities
   ======================================================================== */
.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);
}

.section {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.section--alt {
  background: radial-gradient(circle at top left, rgba(228, 182, 87, 0.06), transparent 55%),
    radial-gradient(circle at bottom right, rgba(180, 44, 61, 0.16), transparent 60%),
    var(--color-bg-elevated);
}

/* Flex helpers */
.d-flex {
  display: flex;
}

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

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

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

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

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

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

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

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

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

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

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

/* Grid helpers */
.grid {
  display: grid;
}

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

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

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

/* Spacing utilities (limited core set) */
.mt-0 { margin-top: 0 !important; }
.mt-xs { margin-top: var(--space-4) !important; }
.mt-sm { margin-top: var(--space-8) !important; }
.mt-md { margin-top: var(--space-12) !important; }
.mt-lg { margin-top: var(--space-16) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-4) !important; }
.mb-sm { margin-bottom: var(--space-8) !important; }
.mb-md { margin-bottom: var(--space-12) !important; }
.mb-lg { margin-bottom: var(--space-16) !important; }

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

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

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

/* ========================================================================
   Components - Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  will-change: transform, box-shadow;
}

.btn-primary {
  background: linear-gradient(135deg, #f1d188, var(--color-primary));
  color: #130f02;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, #ffe3a8, #f0c46a);
}

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

.btn-outline {
  background-color: transparent;
  border-color: rgba(228, 182, 87, 0.6);
  color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.btn-outline:hover {
  background-color: rgba(228, 182, 87, 0.12);
  border-color: var(--color-primary);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
}

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

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

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

/* ========================================================================
   Components - Form Elements
   ======================================================================== */
label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(8, 9, 14, 0.95);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-gray-500);
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(228, 182, 87, 0.5), 0 0 0 8px rgba(228, 182, 87, 0.12);
  background-color: #070812;
}

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

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

.form-help {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-2);
}

/* ========================================================================
   Components - Card
   ======================================================================== */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  background: radial-gradient(circle at top right, rgba(228, 182, 87, 0.12), transparent 55%),
    radial-gradient(circle at bottom left, rgba(63, 126, 219, 0.16), transparent 60%),
    var(--color-bg-soft);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card--accent {
  border-color: rgba(228, 182, 87, 0.35);
}

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

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

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

/* ========================================================================
   Components - Hero & Section Headings (generic)
   ======================================================================== */
.hero {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
  background:
    radial-gradient(circle at 10% 0%, rgba(228, 182, 87, 0.18), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(180, 44, 61, 0.24), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(63, 126, 219, 0.18), transparent 60%),
    linear-gradient(145deg, #030308 0%, #05060a 35%, #05060a 65%, #04050c 100%);
  color: #ffffff;
}

.hero-eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  max-width: 34rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-heading-eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-heading-title {
  font-size: var(--font-size-3xl);
}

.section-heading-subtitle {
  max-width: 40rem;
  margin: 0.75rem auto 0;
  color: var(--color-text-muted);
}

/* ========================================================================
   Misc Utilities for Premium Nightlife Feel
   ======================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(228, 182, 87, 0.4);
  background-color: rgba(5, 6, 10, 0.8);
  color: var(--color-primary);
}

.badge--success {
  border-color: rgba(59, 191, 122, 0.6);
  color: var(--color-success);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.6rem;
  font-size: var(--font-size-xs);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

.text-gold {
  color: var(--color-primary);
}

.bg-soft {
  background-color: var(--color-bg-soft);
}

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

/* ========================================================================
   Responsive refinements
   ======================================================================== */
@media (max-width: 768px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }

  .hero {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
  }

  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }
}
