:root {
  --cn-black: #FFFFFF;
  --cn-charcoal: #F4F7FB;
  --cn-red: #1D6FBF;
  --cn-red-deep: #155A9C;
  --cn-red-glow: #3B8DD6;
  --cn-ivory: #122033;
  --cn-warm-white: #0B1524;
  --cn-muted: #5B6B7C;
  --cn-line: rgba(15, 36, 61, 0.10);
}

body {
  background-color: #FFFFFF;
  color: var(--cn-ivory);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-inner {
  padding-top: 4.5rem;
}

#main-nav {
  z-index: 60;
}

.nav-brand-title {
  font-size: clamp(0.82rem, 3.6vw, 1.5rem);
  letter-spacing: 0.14em;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: calc(5.25rem + env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-inner {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100dvh - 6.5rem);
}
body.menu-open {
  overflow: hidden;
}
body.menu-open #floatingWhatsApp {
  display: none !important;
}

@media (min-width: 1024px) {
  .mobile-drawer,
  .mobile-drawer.is-open {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

#hero-image-wrapper {
  transform: translateZ(0);
}
#hero-main-image {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

#main-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cn-line);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  box-shadow: 0 12px 32px -20px rgba(15, 36, 61, 0.28);
}

.glow-aura {
  background: radial-gradient(circle, rgba(29, 111, 191, 0.12) 0%, rgba(21, 90, 156, 0.06) 45%, transparent 70%);
}

.glow-pod {
  background: radial-gradient(ellipse at center, rgba(59, 141, 214, 0.16) 0%, rgba(29, 111, 191, 0.08) 50%, transparent 75%);
}

.red-glow-line {
  box-shadow: 0 0 15px rgba(29, 111, 191, 0.35);
}

.cn-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 36, 61, 0.08);
}

.cn-glass-red {
  background: linear-gradient(135deg, rgba(29, 111, 191, 0.08), rgba(255, 255, 255, 0.94));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(29, 111, 191, 0.18);
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #FFFFFF; }
::-webkit-scrollbar-thumb { background: #C5D3E0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1D6FBF; }

#reservationForm input,
#reservationForm select,
#reservationForm textarea {
  background-color: #F4F7FB;
  color: #122033;
}

.btn-luxury {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: all 0.6s ease;
}
.btn-luxury:hover::before { left: 100%; }

.faq-content {
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 !important;
  margin: 0 !important;
}
.faq-content.open {
  max-height: 2400px;
  opacity: 1;
}

.program-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.program-card:hover {
  border-color: rgba(29, 111, 191, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(29, 111, 191, 0.16);
}

.gallery-item video { object-fit: cover; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.88);
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 960px; width: 100%; position: relative; }
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

@media (max-width: 1023px) {
  .page-inner {
    padding-top: 4.25rem;
  }
}

@media (max-width: 640px) {
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #hero {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }
  #hero-headline {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
    word-break: break-word;
  }
  .lightbox {
    padding: 3.5rem 1rem 1rem;
  }
  .lightbox-close {
    top: 0.85rem;
    right: 1rem;
    position: fixed;
    min-width: 44px;
    min-height: 44px;
  }
  .program-card {
    padding: 1.25rem;
  }
}

.footer-map-wrap {
  background: #F4F7FB;
}
.footer-map {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}
@media (min-width: 640px) {
  .footer-map { height: 340px; }
}
@media (min-width: 1024px) {
  .footer-map { height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
