/* ── Demo banner ── */
.demo-banner {
  position: relative;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #ff941e 0%, #ff6b00 100%);
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.demo-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}
.demo-banner-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: demo-pulse 1.6s ease-in-out infinite;
}
@keyframes demo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
@media (max-width: 600px) {
  .demo-banner { font-size: 0.72rem; padding: 7px 12px; }
}

/* ── Custom properties ── */
:root {
  --bg: #0b1018;
  --surface: #141d2c;
  --surface-2: #1a2638;
  --text: #f0f3f7;
  --muted: #aeb8c7;
  --accent: #d4ab75;
  --line: rgba(212, 171, 117, 0.26);
  --line-soft: rgba(212, 171, 117, 0.16);
  --radius: 14px;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.33);
  --wa-green: #25d366;
  --wa-green-dark: #1ebe5d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(900px 460px at 14% 5%, rgba(201, 58, 24, 0.35), transparent 62%),
    radial-gradient(780px 420px at 84% 0%, rgba(244, 122, 41, 0.3), transparent 65%),
    linear-gradient(145deg, #060606 0%, #2b0f0a 42%, #a63f1f 68%, #e56b2d 82%, #090909 100%);
  position: relative;
  /* Bottom padding for mobile sticky CTA on small screens */
  padding-bottom: 0;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 86px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 86px);
  opacity: 0.38;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1, h2, h3, .brand {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.02em;
}

a, button { color: inherit; }
a { text-decoration: none; }
button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* ── Header ── */
.site-header {
  width: min(1080px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 21, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0.8rem;
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.back-link:hover {
  background: rgba(212, 171, 117, 0.1);
  border-color: var(--accent);
}

.brand {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  color: #f6e7d1;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.4rem, 1.2vw, 0.95rem);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a, .site-footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.main-nav a:hover, .site-footer a:hover { color: var(--text); }

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.lang-btn {
  border-radius: 999px;
  padding: 0.26rem 0.52rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
  min-width: 28px;
  min-height: 28px;
}
.lang-btn.active {
  background: var(--accent);
  color: #1f1710;
  font-weight: 700;
}

.reserve-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.46rem 0.85rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f6e7d1;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}
.reserve-link:hover { background: rgba(212, 171, 117, 0.12); }

/* ── Main layout ── */
main {
  width: min(1080px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
}

section { margin-top: clamp(2.5rem, 5.1vw, 4.7rem); }

.kicker {
  margin: 0;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--accent);
}

.section-head {
  margin-bottom: 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.9vw, 2.7rem);
  line-height: 0.96;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1rem;
  align-items: center;
}

.hero-copy h1 {
  margin-top: 0.45rem;
  font-size: clamp(2.2rem, 5.4vw, 4.3rem);
  line-height: 0.88;
}
.hero-copy > p {
  max-width: 49ch;
  color: var(--muted);
}
.hero-actions {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.66rem 1.1rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.btn:hover { opacity: 0.85; }

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #1d1510;
  font-weight: 700;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
}
.btn-wa {
  background: var(--wa-green);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  gap: 0.42rem;
}
.btn-wa:hover { background: var(--wa-green-dark); opacity: 1; }

.hero-image { min-height: 360px; }
.hero-image img { object-position: center 44%; }

/* ── Highlights ── */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.tile {
  margin: 0;
  min-height: 210px;
  position: relative;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 10, 15, 0.85) 100%);
}
.tile figcaption {
  position: absolute;
  left: 0.72rem;
  bottom: 0.62rem;
  z-index: 1;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f6e6d0;
}

/* ── Locale ── */
.locale-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.8rem;
}
.locale-main {
  margin: 0;
  min-height: 450px;
  position: relative;
}
.locale-main::after, .locale-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 10, 15, 0.86) 100%);
}
.locale-main figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1rem;
}
.locale-main h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 0.2rem;
}
.locale-main p {
  margin: 0;
  color: #d2d9e4;
  max-width: 48ch;
  font-size: 0.9rem;
}
.locale-stack { display: grid; gap: 0.8rem; }
.locale-side {
  margin: 0;
  min-height: 220px;
  position: relative;
}
.locale-side figcaption {
  position: absolute;
  left: 0.72rem;
  bottom: 0.68rem;
  z-index: 1;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: #f2e3cf;
}

/* ── Biography ── */
.bio-card {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
}
.bio-photo { margin: 0; min-height: 460px; }
.bio-photo img { object-position: center 30%; }
.bio-copy { padding: 1.1rem; }
.bio-copy h2 {
  margin-top: 0.22rem;
  font-size: clamp(1.9rem, 3.9vw, 2.8rem);
}
.bio-copy p { color: var(--muted); }
.bio-list {
  margin: 0.72rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
}
.bio-list li {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.56rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  color: #dde5f0;
  font-size: 0.85rem;
}

/* ── Story ── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.story-card {
  padding: 1rem;
  background: linear-gradient(150deg, #121d2e 0%, #162236 100%);
}
.story-card h3 { font-size: 1.5rem; }
.story-card p {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Book menu ── */
.book-shell { padding: 0.9rem; }

.book-toolbar {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.book-nav {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.9rem;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  min-width: 60px;
  min-height: 36px;
  transition: background 0.18s ease;
}
.book-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); }
.book-nav:disabled { opacity: 0.35; cursor: not-allowed; }

.page-indicator {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.book-pages {
  position: relative;
  height: 500px;
  border-radius: 10px;
  border: 1px solid rgba(19, 26, 38, 0.12);
  background: #ece2d2;
  cursor: ew-resize;
  perspective: 2200px;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
}
.book-pages::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 12%,
    rgba(255, 241, 224, 0.34) 47%,
    rgba(78, 42, 22, 0.22) 53%,
    transparent 86%
  );
}

.book-page {
  position: absolute;
  inset: 0;
  padding: 1.35rem 1.15rem 1rem;
  color: #2b2117;
  background: linear-gradient(160deg, #f2e9db 0%, #e9dcc9 100%);
  opacity: 0;
  transform-origin: left center;
  transform: translateX(28px) scale(0.98) rotateY(-8deg);
  filter: blur(1.7px) brightness(0.94);
  transition:
    transform 900ms cubic-bezier(0.2, 0.7, 0.15, 1),
    opacity 700ms ease,
    filter 800ms ease;
}
.book-page header { margin-bottom: 0.82rem; }
.book-page h3 { font-size: 1.95rem; line-height: 0.95; }
.page-kicker {
  margin: 0;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #73604a;
}
.book-page.active {
  opacity: 1;
  transform: translateX(0) scale(1) rotateY(0deg);
  filter: blur(0) brightness(1);
  pointer-events: auto;
}
.book-page.flipped {
  opacity: 0;
  transform: translateX(-62px) scale(0.95) rotateY(22deg);
  filter: blur(2.5px) brightness(0.9);
}
.book-page.upcoming {
  opacity: 0.14;
  transform: translateX(34px) scale(0.97) rotateY(-10deg);
  filter: blur(1.9px) brightness(0.94);
}
.book-page:not(.active) { pointer-events: none; }

.book-pages.turn-forward::before {
  animation: pageShineForward 650ms ease-out;
}
.book-pages.turn-backward::before {
  animation: pageShineBackward 650ms ease-out;
}
@keyframes pageShineForward {
  0% { opacity: 0; transform: translateX(-14%); }
  20% { opacity: 0.65; }
  100% { opacity: 0; transform: translateX(16%); }
}
@keyframes pageShineBackward {
  0% { opacity: 0; transform: translateX(14%) scaleX(-1); }
  20% { opacity: 0.65; }
  100% { opacity: 0; transform: translateX(-16%) scaleX(-1); }
}

.menu-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}
.menu-lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.55rem;
  border-bottom: 1px dotted rgba(51, 38, 25, 0.33);
  padding-bottom: 0.36rem;
}
.menu-lines span {
  max-width: 72%;
  font-size: 0.86rem;
}
.menu-lines strong {
  white-space: nowrap;
  font-size: 0.81rem;
  letter-spacing: 0.05em;
  color: #4f3a27;
}

.book-hint {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.67rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.book-tabs {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.book-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.44rem 0.74rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.18s ease, color 0.18s ease;
  min-height: 34px;
}
.book-tab.active {
  background: var(--accent);
  border-color: transparent;
  color: #20170f;
  font-weight: 700;
}

/* ── Booking ── */
.booking-card, .contact-card, .map-card { padding: 1rem; }

.booking-card h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
}

.booking-grid {
  margin: 0.88rem 0 1.02rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}
.booking-grid h3 { font-size: 1.07rem; }
.booking-grid p, .contact-card p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.booking-grid a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.booking-grid a:hover { color: var(--text); }

.booking-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

/* ── Contacts ── */
.contacts-layout {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 0.8rem;
}
.map-card, .map-card iframe { min-height: 300px; }
.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.88) contrast(1.04);
}

/* ── Footer ── */
.site-footer {
  width: min(1080px, calc(100% - 2rem));
  margin: 2rem auto 2.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile sticky CTA bar ── */
.mobile-cta {
  display: none;
}

/* ── Responsive: 1080px ── */
@media (max-width: 1080px) {
  .site-header { border-radius: 18px; }
  .main-nav { gap: 0.65rem; font-size: 0.68rem; }
}

/* ── Responsive: 1020px ── */
@media (max-width: 1020px) {
  .hero, .locale-grid, .bio-card, .contacts-layout {
    grid-template-columns: 1fr;
  }
  .highlight-grid, .story-grid {
    grid-template-columns: 1fr 1fr;
  }
  .booking-grid {
    grid-template-columns: 1fr 1fr;
  }
  .book-pages { height: 560px; }
  .bio-photo { min-height: 380px; }
  .locale-main { min-height: 380px; }
}

/* ── Responsive: 760px (mobile) ── */
@media (max-width: 760px) {
  body {
    /* Reserve space for sticky bottom bar */
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    grid-template-columns: auto auto 1fr auto;
    padding: 0.65rem;
    gap: 0.5rem;
    border-radius: 14px;
    top: 0.5rem;
  }
  .back-link { padding: 0.28rem 0.55rem 0.28rem 0.44rem; font-size: 0.6rem; gap: 0.28rem; }

  .menu-toggle {
    display: inline-flex;
    justify-self: center;
    min-height: 36px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 14, 22, 0.97);
    backdrop-filter: blur(8px);
    padding: 0.8rem;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    z-index: 50;
  }
  .main-nav.open { display: flex; }

  .header-tools { gap: 0.35rem; }
  .reserve-link { display: none; }

  .hero-image { min-height: 300px; }

  .highlight-grid, .story-grid {
    grid-template-columns: 1fr 1fr;
  }
  .booking-grid, .contacts-layout {
    grid-template-columns: 1fr;
  }

  .book-toolbar { flex-wrap: nowrap; gap: 0.5rem; }
  .book-pages { height: 580px; }
  .book-page { padding: 1.15rem 1rem 0.9rem; }
  .menu-lines span { max-width: 66%; font-size: 0.82rem; }

  .book-hint { display: block; }

  .booking-ctas { flex-direction: column; align-items: stretch; }
  .booking-ctas .btn { text-align: center; justify-content: center; padding: 0.8rem 1rem; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  /* Mobile sticky CTA bar */
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 21, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 0.6rem 1rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    gap: 0.5rem;
    align-items: center;
    justify-content: stretch;
  }
  .mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: center;
    min-height: 40px;
    transition: opacity 0.18s ease;
  }
  .mobile-cta-btn:active { opacity: 0.75; }
  .mobile-cta-call {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
  }
  .mobile-cta-wa {
    background: var(--wa-green);
    border: 1px solid transparent;
    color: #fff;
  }
  .mobile-cta-reserve {
    background: var(--accent);
    border: 1px solid transparent;
    color: #1d1510;
  }
}

/* ── Responsive: 480px (small phones) ── */
@media (max-width: 480px) {
  .highlight-grid { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .tile { min-height: 160px; }
  .book-pages { height: 620px; }
  .book-page h3 { font-size: 1.5rem; }
  .menu-lines span { font-size: 0.78rem; }
  .menu-lines strong { font-size: 0.75rem; }
  .book-tabs { gap: 0.35rem; }
  .book-tab { padding: 0.38rem 0.58rem; font-size: 0.62rem; }
  .hero-copy h1 { font-size: clamp(1.9rem, 8vw, 3rem); }
}
