/* ===== Self-hosted fonts (Phase 2 — DSGVO / no Google Fonts CDN) ===== */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-400italic.woff2') format('woff2');
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-500italic.woff2') format('woff2');
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-700.woff2') format('woff2');
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/jost-300.woff2') format('woff2');
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jost-400.woff2') format('woff2');
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jost-500.woff2') format('woff2');
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jost-600.woff2') format('woff2');
}

/* ===== Design tokens — Maikhoi dark elegant restaurant theme ===== */
:root {
  --bg: #0b1315;
  --bg-deep: #080f11;
  --bg-panel: #0f1d22;
  --bg-panel-2: #12191c;
  --bg-card: #101a1d;
  --teal-line: #193039;
  --gold: #efc9a4;
  --gold-deep: #e5a666;
  --text: #f5f5f5;
  --text-muted: #999999;
  --text-dim: #c8c9cb;
  --border: rgba(245, 245, 245, 0.12);
  --border-soft: rgba(245, 245, 245, 0.07);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-label: "Jost", sans-serif;
  --font-body: "Jost", system-ui, sans-serif;

  --maxw: 1304px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 52px;
}

.section {
  padding: 120px 0;
}

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-deep);
  opacity: 0.6;
}

.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-deep);
  opacity: 0.6;
}

.heading {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.4px;
  color: var(--text);
}

.heading-xl {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
}

.heading-lg {
  font-size: clamp(2.2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.heading .accent {
  color: var(--gold);
  font-style: italic;
}

.lead {
  color: var(--text-dim);
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 560px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 64px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  padding: 16px 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: #1a1208;
}

.btn-gold:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== Accessibility ===== */
a, button, input, select, textarea {
  touch-action: manipulation;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--gold);
  color: #1a1208;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-label);
  font-size: 0.8rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ===== Scroll-reveal =====
   Driven by IntersectionObserver adding .is-visible (see animations.js).
   Transition runs on the compositor (opacity + transform only) → no scroll jank.
   Reveal is one-shot: element is unobserved after first entry, so scrolling
   back up/down never re-triggers. */
.reveal-armed [data-reveal] {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-armed [data-reveal="up"] {
  transform: translateY(38px);
}
.reveal-armed [data-reveal="scale"] {
  transform: scale(0.94);
}
.reveal-armed [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 22px;
  }
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-armed [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Page loader / transitions ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0s;
}
/* Page fully loaded → fade the loader out, then drop it from the a11y tree */
body.page-loaded .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
/* Leaving for another internal page → bring the loader back quickly */
body.page-leaving .page-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.25s ease-in;
}

.page-loader__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.page-loader__logo i {
  font-size: 2.6rem;
  color: var(--gold);
  animation: loaderFlame 1.2s var(--ease) infinite;
}
.page-loader__logo span {
  font-family: var(--font-label);
  letter-spacing: 0.32em;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  padding-left: 0.32em; /* optical centering against letter-spacing */
}
.page-loader__bar {
  position: relative;
  width: 120px;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.page-loader__bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: var(--gold);
  animation: loaderBar 1.1s var(--ease) infinite;
}
@keyframes loaderFlame {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-4px) scale(1.08); opacity: 0.85; }
}
@keyframes loaderBar {
  0% { left: -40%; }
  100% { left: 100%; }
}
