/* ── Base & Utilities ───────────────────────────────────────── */
:root {
  --color-navy-950: #091526;
  --color-navy-900: #0d1f3d;
  --color-navy-700: #1e3c72;
  --color-gold-500: #d4a330;
  --color-gold-400: #eabd50;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

/* ── Section Padding ─────────────────────────────────────────── */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* ── Reveal Tags ─────────────────────────────────────────────── */
.reveal-tag {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(9, 21, 38, 0.88) 0%,
    rgba(13, 31, 61, 0.80) 40%,
    rgba(30, 60, 114, 0.65) 100%
  );
}

.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(212, 163, 48, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(212, 163, 48, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  will-change: opacity, transform;
}

.hero-title {
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  line-height: 1.7;
}

/* ── Scroll Indicator ────────────────────────────────────────── */
.hero-scroll {
  pointer-events: none;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  box-shadow: 0 4px 20px rgba(212, 163, 48, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(212, 163, 48, 0.45);
}

.btn-secondary {
  backdrop-filter: blur(8px);
}

/* ── Room Cards ──────────────────────────────────────────────── */
.room-img-wrap {
  position: relative;
  overflow: hidden;
}

.room-img {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

/* ── Experience Cards ────────────────────────────────────────── */
.experience-card {
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30, 60, 114, 0.1);
}

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 21, 38, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

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

/* ── Testimonial Cards ───────────────────────────────────────── */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(212, 163, 48, 0.15);
  pointer-events: none;
}

/* ── Mobile Menu ─────────────────────────────────────────────── */
.mobile-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* ── Scroll Reveal (progressive enhancement) ─────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal-up {
    transform: translateY(32px);
  }

  .reveal-left {
    transform: translateX(-32px);
  }

  .reveal-right {
    transform: translateX(32px);
  }

  .reveal-visible {
    opacity: 1;
    transform: translate(0, 0) !important;
  }

  .reveal-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .reveal-card.reveal-visible {
    opacity: 1;
    transform: translateY(0) !important;
  }

  /* Hero entrance (runs once on load, above the fold) */
  .hero-badge {
    animation: heroFadeUp 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }
  .hero-title {
    animation: heroFadeUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }
  .hero-subtitle {
    animation: heroFadeUp 0.8s 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }
  .hero-actions {
    animation: heroFadeUp 0.8s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }
  .hero-scroll {
    animation: heroFadeUp 0.8s 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  @keyframes heroFadeUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ── Header States ───────────────────────────────────────────── */
.header-scrolled {
  background: rgba(9, 21, 38, 0.95) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ── Mobile Menu Transitions ─────────────────────────────────── */
#mobile-menu.menu-open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.menu-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  @media (min-width: 560px) {
    .hero-title {
      font-size: 3.5rem;
    }
  }
}

/* ── Focus Styles ────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .hero { min-height: auto; padding: 2rem 0; }
  #site-header, #mobile-menu, .hero-scroll { display: none; }
  body { color: #000; background: #fff; }
}
