/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Colors */
  --color-background: #FAF7F2; /* warm ivory */
  --color-background-secondary: #F1E9DD; /* soft beige */
  --color-surface: #FFFFFF; /* cards / blocks */
  --color-text: #2A2A2A; /* primary text - charcoal black */
  --color-heading: #5A4A42; /* deep taupe */
  --color-primary: #C47A5A; /* muted terracotta */
  --color-primary-soft: #d89a7f;
  --color-primary-strong: #a15e40;
  --color-accent: #8A9A8B; /* sage green */
  --color-success: #2E7D32;
  --color-warning: #ED6C02;
  --color-danger: #D32F2F;
  --color-neutral-50: #F7F4EF;
  --color-neutral-100: #E6E0D7;
  --color-neutral-200: #D3C8BA;
  --color-neutral-300: #B7A79A;
  --color-neutral-400: #9A8778;
  --color-neutral-500: #7E6A5B;
  --color-neutral-600: #635046;
  --color-neutral-700: #4A3A32;
  --color-neutral-800: #332722;
  --color-neutral-900: #1F1713;

  --color-age-banner-bg: #D60000; /* fixed 21+ banner */
  --color-age-banner-text: #FFFFFF;

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

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 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 */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* 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-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows – subtle luxury, no harsh blur */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 220ms ease-out;
  --transition-slow: 340ms ease-out;
}

/* 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,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol,
button,
fieldset,
legend {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

ul,
ol {
  list-style: none;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
}

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

textarea {
  resize: vertical;
}

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-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
}

main {
  display: block;
}

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

h1 {
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.4rem, 1.4vw + 1rem, 1.8rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

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

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

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

strong,
b {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

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

/* Subtle editorial-style underline on hover */
a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--transition-fast);
}

a:not(.btn):hover::after,
a:not(.btn):focus-visible::after {
  width: 100%;
}

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

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

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

/* =========================================================
   Layout Utilities
   ========================================================= */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-4);
  max-width: 1120px;
}

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

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

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

.section--alt {
  background-color: var(--color-background-secondary);
}

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

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

.gap-2 {
  gap: var(--space-2);
}

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

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

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

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

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

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

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

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

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

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

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

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

/* =========================================================
   Fixed 21+ Age Banner (Global)
   ========================================================= */
.age-banner {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 9999;
  background-color: var(--color-age-banner-bg);
  color: var(--color-age-banner-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.age-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-block: 0.4rem;
}

.age-banner__label {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.age-banner__text {
  opacity: 0.9;
}

.age-banner__link {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Ensure page content starts below the banner.
   Adjust this value in layout if banner height changes. */
.has-age-banner {
  padding-top: 40px;
}

/* =========================================================
   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);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  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);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--color-heading);
  border-color: var(--color-neutral-400);
}

.btn-outline:hover {
  border-color: var(--color-heading);
  background-color: rgba(250, 247, 242, 0.8);
}

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

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

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

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

/* Inputs & Form Controls */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-200);
  background-color: #FFFFFF;
  font-size: var(--font-size-md);
  line-height: 1.4;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-neutral-400);
}

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

.input[disabled],
.select[disabled],
.textarea[disabled] {
  background-color: var(--color-neutral-50);
  color: var(--color-neutral-400);
  cursor: not-allowed;
}

.label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-heading);
}

.field-hint {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-neutral-500);
}

.field-error {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Cards – used for event types, venues, etc. */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(154, 135, 120, 0.16);
}

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

.card__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-neutral-500);
  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-sm);
  color: var(--color-neutral-500);
}

/* Hero image slider wrapper (structure-only, no JS) */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.hero-slider__slide {
  position: relative;
  min-height: 320px;
}

.hero-slider__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
}

/* Timeline storytelling layout */
.timeline {
  position: relative;
  padding-left: 1.75rem;
  border-left: 1px solid rgba(154, 135, 120, 0.4);
}

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

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -0.5rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196, 122, 90, 0.26);
}

.timeline__label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-neutral-500);
  margin-bottom: 0.25rem;
}

/* Gallery base styling */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

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

.gallery-grid__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.gallery-grid__item:hover .gallery-grid__image {
  transform: scale(1.03);
}

/* =========================================================
   Page-specific helpers (Responsible Gaming, etc.)
   ========================================================= */
.responsible-banner {
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(120deg, var(--color-background-secondary), #ffffff);
  border: 1px solid rgba(138, 154, 139, 0.4);
}

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

.responsible-banner__phone {
  font-weight: 600;
  color: var(--color-heading);
}

.responsible-note {
  font-size: var(--font-size-sm);
  color: var(--color-neutral-500);
}

/* =========================================================
   Misc helpers
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(154, 135, 120, 0.4);
  color: var(--color-neutral-600);
  background-color: rgba(250, 247, 242, 0.8);
}

.tag-tertiary {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  background-color: rgba(138, 154, 139, 0.1);
  color: var(--color-accent);
}

.hr-soft {
  border: 0;
  border-top: 1px solid rgba(154, 135, 120, 0.26);
  margin-block: var(--space-6);
}
