/* ============================================================
   Rates & Booking — Tyler Fecteau
   Dark mystic: warm near-black surfaces, gold accent, cream text
   Fonts: Boska (display) + Satoshi (body) via Fontshare
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Color — warm dark surfaces, gold accent */
  --color-bg: #15120e;
  --color-surface: #1d1914;
  --color-surface-2: #241f18;
  --color-divider: oklch(from #ece5d8 l c h / 0.1);
  --color-border: oklch(from #ece5d8 l c h / 0.14);
  --color-text: #ece5d8;
  --color-text-muted: #a89f8d;
  --color-text-faint: #6f6858;
  --color-gold: #d9a441;
  --color-gold-bright: #f0c26a;
  --color-gold-deep: #8a6420;
  --color-purple: #b49af5;
  --color-purple-soft: #8f76d4;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Shadows — tone-matched to warm dark */
  --shadow-sm: 0 1px 2px oklch(0.1 0.02 80 / 0.4);
  --shadow-md: 0 4px 16px oklch(0.1 0.02 80 / 0.5);
  --shadow-lg: 0 12px 40px oklch(0.08 0.02 80 / 0.6);

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Boska', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1020px;

  /* Header height for scroll offset */
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
  line-height: 1.15;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: oklch(from var(--color-gold) l c h / 0.35);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--color-gold);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container-narrow {
  max-width: var(--content-narrow);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-right: auto;
}

.brand-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-gold);
}

.brand-name {
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.site-header nav {
  display: none;
}

@media (min-width: 720px) {
  .site-header nav {
    display: flex;
    gap: var(--space-6);
  }
}

.nav-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.nav-link:hover {
  color: var(--color-text);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid transparent;
}

.button-solid {
  background: var(--color-gold);
  color: #1c1408;
  font-weight: 700;
}
.button-solid:hover {
  background: var(--color-gold-bright);
}

.button-outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.button-outline:hover {
  background: oklch(from var(--color-gold) l c h / 0.12);
}

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

.button:active {
  transform: translateY(1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 14vw, var(--space-24)) clamp(var(--space-12), 10vw, var(--space-20));
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(45% 55% at 50% 30%, oklch(from var(--color-gold) l c h / 0.11), transparent 70%),
    radial-gradient(38% 45% at 82% 8%, oklch(from var(--color-purple) l c h / 0.09), transparent 72%),
    radial-gradient(30% 40% at 12% 45%, oklch(from var(--color-purple) l c h / 0.05), transparent 70%);
  pointer-events: none;
}

.sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.spark {
  fill: var(--color-gold);
  opacity: 0.5;
}

.spark-purple {
  fill: var(--color-purple);
  opacity: 0.55;
}

.hero-inner {
  position: relative;
}

.kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: var(--space-6);
}

.hero-title em {
  font-style: italic;
  color: var(--color-gold);
}

.hero-sub {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
}

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

.section-head {
  margin-bottom: var(--space-10);
}

.section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.section-note {
  color: var(--color-text-muted);
  max-width: 52ch;
}

/* ---------- Campus subsections ---------- */
.campus-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (min-width: 820px) {
  .campus-blocks {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.campus-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.campus-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--color-purple);
}

.campus-tag {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ---------- Menu rows (magic + NFC pricing) ---------- */
.menu-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.menu-row:first-child {
  border-top: 1px solid var(--color-divider);
}

.menu-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.menu-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 48ch;
}

.menu-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-unit {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-footnote {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ---------- Event cards ---------- */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-card-wide {
    grid-column: span 2;
  }
}

.event-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}

.event-card:hover {
  border-color: oklch(from var(--color-gold) l c h / 0.45);
  transform: translateY(-2px);
}

.event-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.event-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
}

.event-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  white-space: nowrap;
}

.event-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- NFC ---------- */
.nfc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .nfc-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
  }
}

.nfc-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  background:
    radial-gradient(60% 60% at 50% 40%, oklch(from var(--color-gold) l c h / 0.1), transparent 75%),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.nfc-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.nfc-icon {
  width: 72px;
  height: 72px;
  color: var(--color-gold);
}

.nfc-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- Booking steps ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-gold);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.step-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.book-note {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  max-width: 60ch;
}

/* ---------- Deal callout ---------- */
.deal {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid oklch(from var(--color-purple) l c h / 0.45);
  border-radius: var(--radius-md);
  background: oklch(from var(--color-purple) l c h / 0.08);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.deal strong {
  color: var(--color-purple);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--color-divider);
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-lg);
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-gold);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  padding-bottom: var(--space-5);
  max-width: 56ch;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
  padding-bottom: calc(var(--space-10) + 4.5rem); /* room for mobile sticky bar */
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-right: auto;
}

.footer-links {
  display: flex;
  gap: var(--space-5);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-links a:hover {
  color: var(--color-gold);
}

.footer-fine {
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- Mobile sticky booking bar ---------- */
.sticky-book {
  position: fixed;
  inset-inline: var(--space-4);
  bottom: var(--space-4);
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(140%);
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-book.is-active {
  opacity: 1;
  transform: none;
}

.sticky-book-button {
  pointer-events: none;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.sticky-book.is-active .sticky-book-button {
  pointer-events: auto;
}

@media (min-width: 720px) {
  .sticky-book {
    display: none;
  }
  .site-footer {
    padding-bottom: var(--space-10);
  }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
