/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Colors */
  --color-bg: #050608; /* near black, cinematic */
  --color-bg-elevated: #0c0f14;
  --color-bg-soft: #141821;

  --color-text: #f5f2ea; /* soft ivory */
  --color-text-muted: #b2a89a;

  --color-primary: #d2a753; /* champagne gold */
  --color-primary-soft: rgba(210, 167, 83, 0.15);

  --color-accent-red: #7b1e2b; /* deep wine red */
  --color-accent-amber: #ffb85c; /* warm amber */

  --color-success: #46c28a;
  --color-warning: #ffb347;
  --color-danger: #e35757;

  --color-border-subtle: rgba(255, 255, 255, 0.07);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  --color-overlay: rgba(0, 0, 0, 0.72);

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-serif-display: "Playfair Display", "Bodoni MT", "Didot", "Times New Roman", serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.875rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;

  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Shadows - cinematic, soft */
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.85);
  --shadow-outline: 0 0 0 1px rgba(210, 167, 83, 0.35), 0 0 0 4px rgba(210, 167, 83, 0.18);

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

  /* Layout */
  --container-max-width: 1160px;
  --container-padding-x: 20px;
}

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

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

body {
  margin: 0;
}

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

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

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

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

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body, html {
  min-height: 100%;
}

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

/* ==================================================================
   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;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

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

h1 {
  font-size: clamp(2.5rem, 4vw, var(--font-size-4xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.875rem, 3vw, var(--font-size-3xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 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-snug);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

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

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

p:last-child {
  margin-bottom: 0;
}

a {
  position: relative;
  transition: color var(--transition-normal);
}

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

strong {
  font-weight: 600;
}

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

/* ==================================================================
   Focus & Accessibility
   ================================================================== */
:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-outline);
}

/* 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 {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

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

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

.section--flush-top {
  padding-top: 0;
}

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

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

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

/* Flex 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-column {
  display: flex;
  flex-direction: column;
}

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

.gap-xs { gap: var(--space-2); }
.gap-sm { gap: var(--space-3); }
.gap-md { gap: var(--space-4); }
.gap-lg { gap: var(--space-6); }
.gap-xl { gap: var(--space-8); }

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

/* Layout helpers */
.mx-auto {
  margin-inline: auto;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-4); }
.mt-lg { margin-top: var(--space-6); }
.mt-xl { margin-top: var(--space-10); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-3); }
.mb-md { margin-bottom: var(--space-4); }
.mb-lg { margin-bottom: var(--space-6); }
.mb-xl { margin-bottom: var(--space-10); }

.pt-lg { padding-top: var(--space-6); }
.pb-lg { padding-bottom: var(--space-6); }

/* Background utilities */
.bg-elevated {
  background-color: var(--color-bg-elevated);
}

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

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

/* Text utilities */
.text-gold {
  color: var(--color-primary);
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent-amber));
  color: #1a1307 !important;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
  backdrop-filter: blur(10px);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
}

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

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

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-pill);
}

/* Inputs & form elements */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(10, 12, 17, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal);
}

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

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-outline);
  background-color: rgba(10, 12, 17, 1);
}

.input[disabled],
.select[disabled],
.textarea[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.form-row {
  display: grid;
  gap: var(--space-4);
}

/* Card */
.card {
  position: relative;
  background: radial-gradient(circle at top left, rgba(210, 167, 83, 0.06), transparent 55%),
              linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 40%, transparent 60%, rgba(210, 167, 83, 0.06));
  opacity: 0.9;
}

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

.card--soft {
  background: rgba(10, 12, 17, 0.96);
  box-shadow: var(--shadow-soft);
}

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

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

/* Age verification overlay (18+) */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: radial-gradient(circle at top, rgba(123, 30, 43, 0.7), transparent 65%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.98));
}

.age-gate-modal {
  width: 100%;
  max-width: 480px;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 14, 0.98);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.age-gate-title {
  font-family: var(--font-serif-display);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-3);
}

.age-gate-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Hero utilities (cinematic) */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16);
}

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

.hero-title {
  font-family: var(--font-serif-display);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

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

/* Media overlays */
.media-overlay-gradient {
  position: relative;
}

.media-overlay-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(210, 167, 83, 0.23), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.95));
}

/* Tag / pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(6, 8, 12, 0.85);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.tag--gold {
  border-color: rgba(210, 167, 83, 0.7);
  color: var(--color-primary);
}

/* Badges for statuses (programs, events) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
}

.badge-success {
  background-color: rgba(70, 194, 138, 0.12);
  color: var(--color-success);
}

.badge-warning {
  background-color: rgba(255, 179, 71, 0.12);
  color: var(--color-warning);
}

.badge-danger {
  background-color: rgba(227, 87, 87, 0.15);
  color: var(--color-danger);
}

/* Simple timeline for event highlights */
.timeline {
  position: relative;
  padding-left: var(--space-6);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(210, 167, 83, 0.7), rgba(210, 167, 83, 0));
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2px;
  top: 0.25rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary), var(--color-accent-red));
  box-shadow: 0 0 0 4px rgba(210, 167, 83, 0.25);
}

/* Image styles */
.img-rounded {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.img-border-gold {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(210, 167, 83, 0.5);
}

/* Navigation shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.98), rgba(5, 6, 8, 0.7));
  border-bottom: 1px solid var(--color-border-subtle);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-nav a {
  position: relative;
  padding-block: 0.2rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-amber));
  transition: width var(--transition-normal);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  width: 100%;
}

@media (max-width: 900px) {
  .site-nav {
    gap: var(--space-4);
    font-size: var(--font-size-xs);
  }
}

/* Footer shell */
.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  background: radial-gradient(circle at top, rgba(123, 30, 43, 0.3), transparent 55%),
              #050608;
  padding-block: var(--space-10);
  font-size: var(--font-size-sm);
}

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