/* ============================================================
   EDEN POOL & BAR
   Palette: white #FFFFFF · navy #0B3976 (only these two)
   Type: Gotham Book (Montserrat fallback) throughout
   Hero & Location are full-viewport looping-video blocks; every other
   block sits on plain white. No scroll-scrubbing — each clip just plays
   while it's on screen, so there's no seek lag on any device.
   ============================================================ */

/* ---- Gotham Book if installed locally; otherwise Montserrat ---- */
@font-face {
  font-family: "Gotham Book";
  src: local("Gotham Book"), local("Gotham-Book"), local("Gotham");
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-cyr.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-lat.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
  --navy: #0B3976;
  --white: #FFFFFF;

  /* navy at alpha — still "only navy", just transparent */
  --navy-90: rgba(11, 57, 118, 0.90);
  --navy-70: rgba(11, 57, 118, 0.70);
  --navy-55: rgba(11, 57, 118, 0.55);
  --navy-40: rgba(11, 57, 118, 0.40);
  --navy-22: rgba(11, 57, 118, 0.22);
  --navy-12: rgba(11, 57, 118, 0.12);
  --navy-06: rgba(11, 57, 118, 0.06);
  --white-90: rgba(255, 255, 255, 0.90);
  --white-70: rgba(255, 255, 255, 0.70);

  --font: "Gotham Book", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --r-surface: 16px;
  --r-input: 10px;
  --header-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.site-header.over-film :focus-visible,
.film :focus-visible { outline-color: var(--white); }

/* ============================================================
   FULL-VIEWPORT VIDEO BLOCKS (Hero & Location)
   Each .film block holds a short looping clip that plays only while it's on
   screen — normal playback, no scroll-scrubbing, so there's no seek lag on
   any device (desktop or mobile behave identically). Every other block is
   plain white and sits on top.
   ============================================================ */
main { position: relative; z-index: 1; }
.film {
  position: relative; z-index: 1; overflow: hidden;
  min-height: 100svh; min-height: 100dvh;
  background: var(--navy);
}
.plain { position: relative; z-index: 1; background: var(--white); }

/* the looping clip, covering the whole block */
.block-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  background: var(--navy);
}
/* top scrim so the header stays legible over a bright scene */
.film::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 160px;
  z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--navy-55), transparent);
}

.film-inner {
  position: relative; z-index: 2;
  min-height: 100svh; min-height: 100dvh;
  display: flex;
  padding: calc(var(--header-h) + 24px) clamp(24px, 6vw, 96px) clamp(40px, 8vh, 96px);
  color: var(--white);
}
.film-inner.center { align-items: center; justify-content: center; text-align: center; }
.film-inner.end-left { align-items: flex-end; justify-content: flex-start; text-align: left; }

/* per-alignment scrims so text stays legible on bright scenes */
.film-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.film-inner.center::before {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, var(--navy-55), transparent 70%);
}
.film-inner.end-left::before {
  background: linear-gradient(66deg, var(--navy-70) 0%, var(--navy-22) 42%, transparent 66%);
}

.vibe-slot {
  font-weight: 600; letter-spacing: 0.14em; font-size: 0.92rem;
  color: var(--white); margin: 0 0 18px; opacity: 0.95;
  text-shadow: 0 1px 16px rgba(11, 57, 118, 0.55);
}

/* ---- Film typography (white on video) ---- */
.hero-title {
  font-weight: 500;
  font-size: clamp(2.6rem, 1.2rem + 6vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 16ch;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(11, 57, 118, 0.45);
}
.hero-sub {
  margin: clamp(18px, 3vh, 30px) auto 0;
  font-weight: 400;
  font-size: clamp(1rem, 0.85rem + 0.7vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--white-90);
  max-width: 40ch;
  text-shadow: 0 1px 18px rgba(11, 57, 118, 0.5);
}
.location-title {
  font-weight: 500;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  line-height: 1.14; letter-spacing: -0.005em;
  max-width: 20ch;
  text-shadow: 0 2px 30px rgba(11, 57, 118, 0.5);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 38px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--navy-40); }
.btn-light { background: var(--white); color: var(--navy); box-shadow: 0 12px 30px rgba(11,57,118,0.28); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(11,57,118,0.4); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy-40); }
.btn-outline:hover { transform: translateY(-2px); background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-wide { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  display: flex; align-items: center;
  color: var(--white);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.on-light {
  background: var(--white-90);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--navy-12);
  color: var(--navy);
}
.header-inner {
  width: min(1320px, 100% - 48px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
/* Real Eden logo: white version over the film, navy version on white sections. */
.brand-logo { height: 50px; width: auto; display: block; }
.brand-logo--dark { display: none; }
.site-header.on-light .brand-logo--light { display: none; }
.site-header.on-light .brand-logo--dark { display: block; }
.site-footer .brand-logo { height: 60px; }

.header-actions { display: inline-flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.header-phone {
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em;
  color: inherit; white-space: nowrap; transition: opacity 0.2s;
}
.header-phone:hover { opacity: 0.65; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em;
}
.lang-divider { width: 1px; height: 12px; background: currentColor; opacity: 0.45; }
.lang-btn { opacity: 0.55; transition: opacity 0.2s; }
.lang-btn:hover { opacity: 0.85; }
.lang-btn.is-active { opacity: 1; }

/* ============================================================
   BLOCK 5 · EVENTS (white, swipe columns)
   ============================================================ */
.plain { padding: clamp(80px, 12vh, 140px) 0; }
.section-title {
  font-weight: 500;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem);
  line-height: 1.12; letter-spacing: -0.005em; color: var(--navy);
  text-wrap: balance;
}
.title-rule { width: 60px; height: 2px; background: var(--navy); margin-top: 22px; border-radius: 2px; }

.events-viewport { margin-top: 44px; }
.events-row {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(24px, (100vw - 1180px) / 2) 30px;
  scrollbar-width: none;
}
.events-row::-webkit-scrollbar { display: none; }
/* Cards match the poster (story) ratio and show the full artwork — no crop
   zoom, since the name and details are part of the poster design. */
.event-card {
  position: relative; flex: 0 0 clamp(240px, 26vw, 330px);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-surface); overflow: hidden;
  scroll-snap-align: start; isolation: isolate;
  background: var(--navy-06);
  box-shadow: 0 16px 40px var(--navy-12);
}
.event-img { position: absolute; inset: 0; }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, var(--navy-70) 0%, var(--navy-22) 42%, transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.event-card:hover .event-veil,
.event-card:focus-within .event-veil { opacity: 1; }
.event-book {
  position: absolute; z-index: 3; left: 50%; bottom: 22px;
  padding: 12px 30px; opacity: 0; transform: translate(-50%, 14px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
.event-card:hover .event-book,
.event-card:focus-within .event-book { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) {
  .event-veil { opacity: 1; }
  .event-book { opacity: 1; transform: translate(-50%, 0); }
}

.events-nav { display: flex; gap: 12px; margin-top: 26px; }
.swipe-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--navy-40); color: var(--navy);
  display: grid; place-items: center;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.swipe-arrow svg { width: 20px; height: 20px; }
.swipe-arrow:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ============================================================
   BLOCK 7 · RESERVATION (white, premium)
   ============================================================ */
.reserve-wrap { max-width: 620px; margin-inline: auto; text-align: center; }
.reserve-head { display: flex; flex-direction: column; align-items: center; }
.reserve-head .title-rule { margin-inline: auto; }
.reserve-form {
  margin-top: clamp(34px, 5vh, 56px);
  display: flex; flex-direction: column; gap: 26px; text-align: left;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy-70);
}
.field input {
  font: inherit; color: var(--navy);
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--navy-22);
  border-radius: 0; padding: 12px 2px;
  transition: border-color 0.25s;
}
.field input::placeholder { color: var(--navy-40); }
.field input:focus { outline: none; border-bottom-color: var(--navy); }
.field.has-error input { border-bottom-color: #B00020; }
.field-hint { font-size: 0.8rem; color: var(--navy-55); }
.reserve-form .btn-wide, .modal-form .btn-wide { margin-top: 14px; }
.form-fine { font-size: 0.76rem; color: var(--navy-55); text-align: center; letter-spacing: 0.02em; }
.form-success {
  display: flex; justify-content: center; padding: 20px 0 4px; color: var(--navy);
}
.form-success[hidden] { display: none; }
.form-success svg { width: 52px; height: 52px; }
.reserve-form.is-done .field,
.reserve-form.is-done > .btn,
.reserve-form.is-done .form-fine,
.modal-form.is-done .field,
.modal-form.is-done > .btn,
.modal-form.is-done .form-fine { display: none; }

.site-footer {
  border-top: 1px solid var(--navy-12);
  margin-top: clamp(60px, 9vh, 110px);
  padding-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  color: var(--navy);
}
.footer-phone {
  font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--navy);
  transition: opacity 0.2s;
}
.footer-phone:hover { opacity: 0.6; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: var(--navy-70);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.35s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: min(440px, 100%);
  max-height: calc(100dvh - 48px); overflow-y: auto;
  background: var(--white); color: var(--navy);
  border-radius: var(--r-surface); padding: clamp(28px, 5vw, 40px);
  box-shadow: 0 30px 80px var(--navy-40);
  opacity: 0; transform: translateY(24px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.modal.is-open .modal-card { opacity: 1; transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 50%; display: grid; place-items: center; color: var(--navy-70);
  transition: background-color 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--navy-06); color: var(--navy); }
.modal-close svg { width: 18px; height: 18px; }
.modal-title { font-weight: 600; font-size: 1.5rem; letter-spacing: 0.02em; }
.modal-event { margin-top: 6px; color: var(--navy-70); font-weight: 600; letter-spacing: 0.04em; }
.modal-form { margin-top: 24px; display: flex; flex-direction: column; gap: 22px; }
body.modal-open { overflow: hidden; }

/* ============================================================
   REVEAL
   ============================================================ */
html.js .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   WHITE CONTENT BLOCKS (Philosophy · Vibe · Culinary)
   These sit between the two video blocks and use the same navy-on-white
   treatment at every width.
   ============================================================ */
.section-sub { max-width: 60ch; margin-top: 16px; color: var(--navy-70); font-size: 1.02rem; line-height: 1.6; }

/* Philosophy · centred statement */
.block-philosophy .container { display: flex; justify-content: center; }
.phil-copy { max-width: 760px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phil-copy .title-rule { margin-top: 22px; }
.phil-text {
  margin-top: 26px; color: var(--navy-70);
  font-size: clamp(1.05rem, 0.97rem + 0.5vw, 1.32rem); line-height: 1.72;
}

/* Vibe · two columns (day / night) */
.vibe-cols { display: flex; gap: clamp(14px, 4vw, 22px); margin-top: 32px; }
.vibe-col { flex: 1 1 0; min-width: 0; }
.vibe-col-media {
  aspect-ratio: 3 / 4; border-radius: var(--r-surface); overflow: hidden;
  background: var(--navy-06); box-shadow: 0 14px 34px var(--navy-12);
}
.col-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vibe-slot--dark { color: var(--navy); text-shadow: none; margin: 16px 0 8px; font-size: 0.82rem; }
.vibe-col-text { color: var(--navy-70); font-size: 0.9rem; line-height: 1.55; }

/* Menu · Alcha-style category cards */
.menu-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 34px; }
.menu-card {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border-radius: var(--r-surface); overflow: hidden; background: var(--navy);
  box-shadow: 0 14px 34px var(--navy-12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px var(--navy-22); }
.menu-card[hidden] { display: none; }
.menu-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.menu-veil { position: absolute; inset: 0; background: linear-gradient(118deg, var(--navy-70) 0%, var(--navy-22) 46%, transparent 82%); }
.menu-name {
  position: absolute; left: 22px; top: 18px; z-index: 1;
  color: var(--white); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.01em;
}
.menu-cards.expanded .menu-extra[hidden] { display: block; }
.menu-more { margin: 28px auto 0; }

/* Desktop: wider screens get a landscape vibe pair and a menu grid. */
@media (min-width: 720px) {
  .vibe-cols { gap: clamp(22px, 3vw, 40px); margin-top: 40px; }
  .vibe-col-media { aspect-ratio: 16 / 10; }
  .vibe-slot--dark { font-size: 0.9rem; margin-top: 20px; }
  .vibe-col-text { font-size: 1rem; line-height: 1.6; max-width: 44ch; }
  .menu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .menu-name { font-size: 1.6rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 32px); gap: 12px; }
  /* keep the logo, phone and switcher on one comfortable row */
  .brand-logo { height: 42px; }
  .header-actions { gap: 10px; }
  .header-phone { font-size: 0.78rem; letter-spacing: 0; }
  .lang-switch { padding: 7px 11px; gap: 8px; font-size: 0.7rem; }
  .film-inner { padding-left: 24px; padding-right: 24px; }
  .events-row { gap: 16px; padding-inline: 24px; }
  .event-card { flex-basis: 74vw; }
  .events-nav { display: none; }
  .hero-sub { max-width: 30ch; }
}

/* ============================================================
   REDUCED MOTION — no reveal transitions, static first frames
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html.js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
}
