/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
  --primary-blue: #9bc1d9;
  /* Baby blue */
  --primary-mid: #b8d4e8;
  /* Slightly lighter blue */
  --primary-light: #ddeef7;
  /* Very light baby blue for backgrounds */
  --primary-section: #cce3f1;
  /* Section backgrounds */
  --accent-neon: #ffecd2;
  /* Neon warmth */
  --text-dark: #1a3a52;
  /* Dark blue-toned text (not pure black) */
  --text-mid: #2e5f7e;
  /* Mid-tone text */
  --text-light: #f8fafc;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 8px 32px 0 rgba(26, 58, 82, 0.1);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Reset & Base Setup
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Offsets anchor links so the glass header doesn't cover the title */
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

#main-content {
  position: relative;
  isolation: isolate;
}

::selection {
  background: rgba(155, 193, 217, 0.75);
  color: var(--text-dark);
}


.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--primary-blue);
  will-change: transform;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button,
  .hero-thumb,
  .cat-btn,
  .liquid-submit-btn,
  .overlay-close,
  .footer-legal-btn {
    cursor: none;
  }

  .custom-cursor {
    display: block;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 250, 253, 0.9);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  z-index: 1000;
  box-shadow: var(--glass-shadow);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: var(--text-dark);
  text-decoration: none;
  cursor: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a:not(.glow-btn) {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.3s;
  cursor: none;
}
.nav-links a:not(.glow-btn):hover {
  opacity: 0.7;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  z-index: 1002; /* Above mobile-nav */
}
.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(221, 238, 247, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  cursor: none;
}
.mobile-reserve.glow-btn {
  font-size: 1.5rem;
  padding: 12px 36px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

.glow-btn {
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-weight: 500;
  border: 1px solid var(--text-dark);
  padding: 8px 24px;
  border-radius: 30px;
  cursor: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.glow-btn:hover {
  background: var(--text-dark);
  color: var(--primary-light);
  box-shadow: 0 0 15px var(--primary-blue);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  height: 100vh;
  width: 100vw;
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 0;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Add scale to prevent clipping during distortion */
  transform: scale(1.05);
}

.hero-bg-img,
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  will-change: transform;
}

.hero-bg-img {
  z-index: 0;
}

.hero-bg-video {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-bg-video.is-loaded {
  opacity: 1;
}

/* Fake water effect using CSS mix-blend-mode & animated gradients. 
   We will enhance this with JS too. */
.water-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 50%, rgba(155, 193, 217, 0.2), transparent);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 10;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.34s ease, transform 0.34s ease;
  will-change: opacity, transform;
}

.hero-content.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(0.985);
}

.wave-text {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 13vw, 8rem);
  font-weight: 200;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  /* The GSAP script will animate characters individually */
}

#hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 3.5vw, 0.85rem);
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 40px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* Glassmorphism pill for readability */
  display: inline-block;
  background: rgba(10, 18, 30, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  /* Mobile constraints so it doesn't hit the screen edges */
  max-width: 90%;
  box-sizing: border-box;
  line-height: 1.5;
}

.neo-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: 50px;
  cursor: none;
  font-family: var(--font-display);
  font-weight: 400;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.neo-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.neo-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 30px rgba(155, 193, 217, 0.6);
}

.neo-btn:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Spaces Section (Glassmorphism Cards)
   ========================================================================== */
.spaces {
  padding: 120px 5%;
  min-height: 100vh;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 80px;
  color: var(--text-dark);
}

.cards-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  perspective: 1000px;
  /* For 3D tilt */
}

.glass-card {
  width: 350px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--glass-shadow);
  transform-style: preserve-3d;
  transition: transform 0.1s;
  /* GSAP updates transform smoothly */
  cursor: none;
}

.card-img-wrapper {
  width: 100%;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  transform: translateZ(30px);
  /* Pops out in 3D space */
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.glass-card:hover .card-img-wrapper img {
  transform: scale(1.08);
  /* Internal zoom */
}

.card-info {
  transform: translateZ(40px);
  /* Text pops out further */
}

.card-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.card-info p {
  color: #445;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================================================
   Live Menu Section
   ========================================================================== */
.theater-section {
  min-height: 185vh;
  padding: 12vh 5% 24vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.theater-sheet {
  position: sticky;
  top: 98px;
  width: min(1120px, calc(100vw - 40px));
  min-height: min(860px, calc(100vh - 130px));
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 35px 90px rgba(10, 18, 30, 0.34),
    0 8px 24px rgba(10, 18, 30, 0.16);
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
}

.theater-sheet-content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 78px);
}

.menu-section {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.7), transparent 30%),
    linear-gradient(180deg, #edf7fc 0%, var(--primary-section) 52%, #b6d8eb 100%);
  color: var(--text-dark);
}

.section-ocean-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-ocean-wave {
  position: absolute;
  left: 50%;
  width: max(180vw, 1600px);
  height: max(180vw, 1600px);
  translate: -50% 0;
  transform-origin: 50% 48%;
  pointer-events: none;
}

.section-ocean-container .wave-back {
  bottom: min(-120vw, -1150px);
  border-radius: 43%;
  background: rgba(255, 255, 255, 0.2);
  animation: driftWobble 26s infinite linear;
}

.section-ocean-container .wave-mid {
  bottom: min(-124vw, -1200px);
  border-radius: 40%;
  background: rgba(113, 175, 213, 0.22);
  animation: driftWobble 34s infinite linear reverse;
}

.section-ocean-container .wave-front {
  bottom: min(-128vw, -1240px);
  border-radius: 46%;
  background: rgba(255, 255, 255, 0.18);
  animation: driftWobble 42s infinite linear;
}

.menu-section.theater-section {
  min-height: auto;
  padding-top: 10vh;
  padding-bottom: 12vh;
}

.menu-section .theater-sheet {
  z-index: 1;
}

.menu-section .theater-sheet,
.reservation-section .theater-sheet {
  min-height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
}

.menu-section .theater-sheet {
  width: min(1040px, calc(100vw - 40px));
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 30px;
  box-shadow: 0 25px 70px rgba(26, 58, 82, 0.18);
  overflow: hidden;
}

.menu-sheet {
  min-height: auto;
  height: auto;
  background: rgba(245, 251, 255, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.menu-sheet .theater-sheet-content {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.menu-sheet .section-title,
.menu-sheet .category-filters-wrapper {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .hero {
    position: relative;
  }

  .theater-section {
    min-height: auto;
    padding: 64px 14px 78px;
  }

  .theater-sheet {
    position: relative;
    top: auto;
    width: 100%;
    min-height: auto;
    border-radius: 28px;
  }

  .theater-sheet-content {
    padding: 38px 18px;
  }

  .menu-sheet {
    height: auto;
    min-height: auto;
  }

  .menu-section.theater-section {
    min-height: auto;
    padding: 64px 14px 78px;
  }

  .reservation-sheet {
    padding: 18px;
  }
}

/* Beautiful Animated Ocean Layer */
.ocean-container {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  background: linear-gradient(180deg, var(--primary-light) 0%, rgba(162, 203, 227, 0.5) 100%);
}

.menu-sheet .ocean-container {
  display: none;
}

.ocean-wave {
  position: absolute;
  left: 50%;
  width: 250vw;
  height: 250vw;
  margin-left: -125vw;
  transform-origin: 50% 48%; /* Slight off-center for a natural wobble */
}

.wave-back {
  bottom: -210vw;
  border-radius: 43%;
  background: rgba(255, 255, 255, 0.15);
  animation: driftWobble 24s infinite linear;
}

.wave-mid {
  bottom: -215vw;
  border-radius: 40%;
  background: rgba(160, 203, 230, 0.4);
  animation: driftWobble 30s infinite linear reverse;
}

.wave-front {
  bottom: -220vw;
  border-radius: 46%;
  background: rgba(255, 255, 255, 0.25);
  animation: driftWobble 36s infinite linear;
}

@keyframes driftWobble {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.text-light {
  color: var(--text-dark) !important;
}

.category-filters-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: -24px;
  color: var(--text-mid);
  font-size: 0.7rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  pointer-events: none;
  transition: opacity 0.4s;
}

.scroll-hint-right {
  right: 5px;
  animation: driftRight 2.5s infinite ease-in-out;
}

.scroll-hint-left {
  left: 5px;
  animation: driftLeft 2.5s infinite ease-in-out;
}

.scroll-hint.hidden {
  opacity: 0;
}

@keyframes driftRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes driftLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

.category-filters {
  display: flex;
  justify-content: flex-start; /* Fixes mobile scroll lockout */
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  max-width: 100%;
  position: relative;
  padding: 5px 10px; /* Slight padding to allow shadow breathing room */
}

@media (min-width: 769px) {
  .category-filters {
    justify-content: center; /* Center them perfectly on desktop */
  }
}

.category-filters::-webkit-scrollbar {
  display: none; /* Hide scrollbar WebKit */
}

.cat-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-mid);
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0.7;
  position: relative;
  z-index: 2; /* Sit cleanly above the sliding glass pill */
}

.cat-btn:hover {
  opacity: 1;
  color: var(--text-dark);
}

.cat-btn.active {
  color: var(--text-dark);
  font-weight: 500;
  opacity: 1;
}

.active-category-pill {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2); /* Softened liquid glass base */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35); /* Softer glint */
  box-shadow: 0 4px 20px rgba(26, 58, 82, 0.05);
  border-radius: 30px;
  z-index: 1; /* Below the text */
  pointer-events: none; /* Let clicks pass to buttons */
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), width 0.35s ease, height 0.35s ease;
}

.menu-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  flex: 0 1 auto;
  min-height: 0;
  max-height: max(280px, calc(100vh - 430px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 10px 12px 0;
}

.menu-container::-webkit-scrollbar {
  width: 8px;
}

.menu-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.menu-container::-webkit-scrollbar-thumb {
  background: rgba(26, 58, 82, 0.24);
  border-radius: 999px;
}

.menu-container::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 58, 82, 0.36);
}


.menu-row {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 30px 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(26, 58, 82, 0.05);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.menu-row:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(155, 193, 217, 0.3);
  border-color: rgba(255, 255, 255, 0.9);
}

.row-thumb-wrapper {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 58, 82, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.row-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.menu-row:hover .row-thumb-wrapper img {
  transform: scale(1.1);
}

.row-content {
  flex-grow: 1;
  min-width: 0;
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(26, 58, 82, 0.15); /* elegant separator */
}

.row-title-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.row-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.12;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.row-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-dark);
  flex-shrink: 0;
}

.row-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.row-ingredients {
  font-size: 0.9rem;
  color: var(--text-mid);
  opacity: 0.8;
  margin-bottom: 15px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.row-ingredients em {
  font-style: normal;
  font-weight: 600;
  opacity: 0.7;
}

.row-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.row-tag {
  background: transparent;
  border: 1px solid rgba(26, 58, 82, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.row-badge {
  background: var(--accent-neon);
  color: #a87b41; 
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 236, 210, 0.6);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .category-filters {
     gap: 20px;
     margin-bottom: 30px;
  }

  .cat-btn {
     font-size: 0.95rem; /* Smaller, cleaner text for massive lists */
     padding: 8px 2px;
  }
  .menu-row {
     flex-direction: column;
     align-items: stretch;
     gap: 20px;
     padding: 25px 20px;
  }
  .row-header {
     flex-direction: column;
     gap: 10px;
     align-items: flex-start;
  }
  .row-thumb-wrapper {
     width: 100%;
     height: 200px; /* Expansive elegant photo banner on mobile */
     border-radius: 12px;
  }
  .row-title {
     font-size: 1.4rem;
  }
  .row-price {
     font-size: 1.35rem;
  }
  .menu-container {
     max-height: max(300px, calc(100vh - 340px));
  }
}

.loading-state {
  text-align: center;
  font-family: var(--font-body);
  color: var(--text-mid);
  width: 100%;
  opacity: 0.7;
}

.menu-image-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 250px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  /* Liquid distortion trick via webkit-mask */
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="50"/></svg>');
  -webkit-mask-size: cover;
}

.menu-image-follower img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Reservation Section
   ========================================================================== */
.reservation-section {
  background:
    linear-gradient(rgba(12, 31, 45, 0.5), rgba(12, 31, 45, 0.34)),
    url('reservation_background.webp') center/cover no-repeat,
    var(--text-dark);
}

.reservation-section.theater-section {
  min-height: 100vh;
  padding: 12vh 5%;
  align-items: center;
}

.reservation-sheet {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.glass-form-container {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .glass-form-container {
    padding: 32px 20px;
    border-radius: 20px;
  }
}

.glass-form-container .section-title {
  margin-bottom: 40px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.input-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.input-group.full-width {
  flex: 100%;
}

.input-group label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(10, 25, 47, 0.1);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  cursor: auto;
}

.input-group input,
.input-group select {
  min-height: 54px;
  height: 54px;
  box-sizing: border-box;
  line-height: 1.25;
}

.input-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-dark) 50%),
    linear-gradient(135deg, var(--text-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-blue);
  box-shadow: 0 0 15px rgba(155, 193, 217, 0.6);
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    margin-bottom: 12px;
    gap: 0;
  }
  .input-group {
    width: 100%;
    min-width: 0;
    margin-bottom: 12px; /* Replace gap with robust margin for stacking */
  }
  .input-group label {
    margin-bottom: 4px;
    font-size: 0.85rem;
  }
  .input-group input,
  .input-group select,
  .input-group textarea {
    padding: 12px 10px; /* Slimmer horizontal padding saves precious pixels */
    max-width: 100%;
    min-width: 0;
    width: 100%; /* Force obedience */
    box-sizing: border-box;
  }
  /* Explicit Webkit hack to crush iOS Date Picker stubborn minimum bounds */
  .input-group input[type="date"] {
    font-size: 0.9rem;
    letter-spacing: -0.02em;
    appearance: none;
    -webkit-appearance: none;
    display: block;
  }
}

.reservation-payment-terms {
  margin: -5px 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(10, 25, 47, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.45;
}

.reservation-payment-terms-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
}

.reservation-payment-terms p {
  margin: 0;
}

.reservation-payment-terms ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.reservation-payment-terms li + li {
  margin-top: 5px;
}

.reservation-payment-terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
}

.reservation-payment-terms-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--primary-blue);
}

.liquid-submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.liquid-submit-btn {
  width: 100%;
  padding: 18px;
  border-radius: 50px;
  border: 1.5px solid var(--primary-blue);
  background: var(--primary-blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: none;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  transition: all 0.3s;
}

.liquid-submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(155, 193, 217, 0.5);
  background: var(--primary-mid);
}

.liquid-submit-btn .btn-text {
  position: relative;
  z-index: 2;
}

.liquid-submit-btn .liquid-fill {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1;
  transition: top 2s cubic-bezier(0.19, 1, 0.22, 1);
}

.liquid-submit-btn.loading .liquid-fill {
  top: 0;
}

.liquid-submit-btn.loading .btn-text {
  color: var(--primary-blue);
}

.form-success-msg {
  display: none;
  background: rgba(155, 193, 217, 0.2);
  border: 1px solid var(--primary-blue);
  color: var(--text-dark);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  margin-top: 20px;
}

.form-success-msg strong {
  display: block;
  margin-bottom: 8px;
}

.form-success-msg div + div {
  margin-top: 6px;
}

.form-error-msg {
  display: none;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #b91c1c;
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-top: 15px;
}

/* Menu item richer layout – flex wrapper, thumbnail, tags */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(155, 193, 217, 0.35);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(26, 58, 82, 0.06);
  gap: 16px;
}

.menu-item .item-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.menu-item .item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(155, 193, 217, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.menu-item:hover .item-thumb img {
  transform: scale(1.08);
}

.menu-item .item-thumb.no-photo {
  font-size: 1.8rem;
}

.menu-item .item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.popular-badge {
  font-size: 0.72rem;
  background: rgba(155, 193, 217, 0.25);
  color: var(--text-mid);
  border: 1px solid rgba(155, 193, 217, 0.5);
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 6px;
  white-space: nowrap;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.item-tag {
  font-size: 0.72rem;
  background: rgba(155, 193, 217, 0.15);
  border: 1px solid rgba(155, 193, 217, 0.35);
  border-radius: 20px;
  padding: 2px 8px;
  color: var(--text-mid);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.immersive-footer {
  background: linear-gradient(160deg, var(--primary-blue) 0%, var(--primary-mid) 100%);
  color: #fff;
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

.immersive-footer.theater-section {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(61, 128, 163, 0.96) 0%, rgba(135, 185, 212, 0.92) 48%, rgba(25, 72, 102, 0.98) 100%);
  padding: 12vh 5% 24vh;
  overflow: visible;
}

.footer-sheet {
  min-height: min(680px, calc(100vh - 130px));
  padding: clamp(44px, 6vw, 78px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(92, 157, 190, 0.9) 0%, rgba(155, 193, 217, 0.84) 48%, rgba(46, 95, 126, 0.92) 100%);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-sheet .footer-content {
  width: 100%;
}

.immersive-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.immersive-footer.theater-section::before {
  display: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Aligns columns to top for editorial layout */
  flex-wrap: wrap;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.footer-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-map {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.footer-map iframe {
  display: block;
  max-width: 100%;
  pointer-events: auto;
}

.footer-info {
  margin-top: 15px;
  position: relative;
  z-index: 2;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.footer-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 5px;
}

/* Neutralize iOS Safari Auto-Linking (Data Detectors) */
.footer-info a,
a[x-apple-data-detectors],
a[href^="tel"] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: auto; /* Ensure they remain clickable */
}

.footer-legal-btn {
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: none;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-legal-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10, 18, 30, 0.2);
}

.footer-legal-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.footer-hours {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-width: 200px;
}

.footer-hours h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.footer-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

.footer-hours li:last-child {
  border-bottom: none;
}

.footer-socials a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-family: var(--font-display);
  transition: all 0.3s;
  cursor: none;
  opacity: 0.8;
}

.footer-socials a:hover {
  opacity: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Language Switcher (DE | EN | TR)
   ========================================================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 4px 3px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease, color 0.2s ease, font-weight 0.1s;
  line-height: 1;
}

.lang-btn:hover {
  opacity: 0.85;
  color: var(--text-dark);
}

.lang-btn.active {
  opacity: 1;
  color: var(--text-dark);
  font-weight: 700;
  cursor: default;
}

.lang-divider {
  color: var(--primary-blue);
  opacity: 0.5;
  font-size: 0.7rem;
  user-select: none;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .immersive-footer.theater-section {
    min-height: auto;
    padding: 64px 14px 78px;
  }

  .footer-sheet {
    padding: 38px 20px;
    min-height: auto;
  }

  .lang-switcher {
    gap: 4px;
  }
  .lang-btn {
    font-size: 0.72rem;
    padding: 3px 2px;
  }
}

/* ==========================================================================
   Hero Thumbnail Cards
   ========================================================================== */
.hero-cards {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 10;
  /* prevent overflow clipping during entrance animation */
  padding: 10px 4px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.34s ease, transform 0.34s ease;
  will-change: opacity, transform;
}

.hero-cards.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.96);
}

.hero-thumb {
  width: 128px;
  height: 94px;
  border-radius: 16px;
  overflow: hidden;
  cursor: none;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38),
              0 2px 8px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  padding: 0;
  background: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

.hero-thumb:hover {
  transform: translateY(-7px) scale(1.05);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52),
              0 4px 12px rgba(0, 0, 0, 0.22);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.6s ease;
}

.hero-thumb:hover img {
  transform: scale(1.08);
}

.hero-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-cards {
    bottom: 30px;
    gap: 10px;
  }
  .hero-thumb {
    width: 96px;
    height: 72px;
    border-radius: 12px;
  }
  .hero-thumb-label {
    font-size: 0.62rem;
    padding: 22px 7px 6px;
  }
  
  /* Footer Mobile Restructure */
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-title-row {
    flex-direction: column;
    gap: 12px;
  }
  .footer-map iframe {
    width: 100% !important;
    max-width: 320px;
    height: 160px !important;
  }
  .footer-hours {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================================================================
   Space Card Expanded Overlay
   ========================================================================== */
.space-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 18, 30, 0);
  pointer-events: none;
}

.space-overlay.active {
  pointer-events: all;
}

/* The animating card — position is entirely controlled by GSAP */
.overlay-card {
  position: fixed;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  /* glass base */
  background: rgba(230, 242, 250, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 32px 80px rgba(10, 18, 30, 0.55),
              0 8px 24px rgba(10, 18, 30, 0.25);
  /* children are absolutely positioned so layout never fights GSAP */
}

.overlay-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.overlay-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Gradient from transparent → dark so the full image stays visible */
  padding: 72px 30px 28px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 18, 30, 0.72) 55%,
    rgba(10, 18, 30, 0.90) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
}

.overlay-card-info h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.overlay-card-info p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 1rem;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
  transition: background 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overlay-close:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: scale(1.12) rotate(90deg);
}

/* Legal Modal (Impressum) - Center Popup */
#impressum-overlay {
  transition: background-color 0.4s ease;
}

#impressum-overlay.active {
  background-color: rgba(10, 15, 25, 0.4);
}

.impressum-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 500px;
  max-height: min(80vh, 640px);
  overflow-y: auto;
  background: rgba(16, 28, 48, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.4s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

#impressum-overlay.active .impressum-card {
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
  opacity: 1;
  visibility: visible;
}

.impressum-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.impressum-text p {
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
