/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }

/* ── Navigation ─────────────────────────────────── */
.nav-fixed {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav-fixed.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}
.nav-nav-text { color: #0a1628; }
.nav-link {
  color: #4a5568;
  transition: color 0.3s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #34d4a8;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #0a1628; }
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link {
  color: #4a5568;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-link:hover { color: #0a1628; padding-left: 0.5rem; }

/* ── Hero ───────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(
    135deg,
    #050d1a 0%,
    #0a1628 30%,
    #0d1f3c 55%,
    #0f2744 75%,
    #0a1628 100%
  );
}
.hero-pattern {
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-orb { pointer-events: none; }

/* Hero text animations — only on first load via JS */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
.hero-eyebrow { transform: translateY(12px); }
.hero-title { transform: translateY(20px); }
.hero-subtitle { transform: translateY(16px); }
.hero-cta { transform: translateY(16px); }

/* ── Scroll Reveal (progressive enhancement) ───── */
/* Default: all content is visible (no JS required) */
.reveal-section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
/* When JS enhances, add hidden state below-fold */
.js .reveal-section:not(.revealed) {
  opacity: 1; /* Keep visible by default — JS will add the animation */
}
/* Only animate if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-section.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js .reveal-section.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Amenity Cards ──────────────────────────────── */
.amenity-card {
  transition: background-color 0.4s ease, transform 0.3s ease;
}
.amenity-card:hover {
  transform: translateY(-2px);
}

/* ── Contact Form ───────────────────────────────── */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(52, 212, 168, 0.1);
}

/* ── Subtle line decorations ────────────────────── */
.section-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, #34d4a8, transparent);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 767px) {
  .hero-title { font-size: 2.5rem; }
  @media (min-width: 768px) {
    .hero-title { font-size: 3.5rem; }
  }
  @media (min-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
  }
}

/* ── Selection ──────────────────────────────────── */
::selection {
  background: rgba(52, 212, 168, 0.2);
  color: #0a1628;
}

/* ── Focus visible ──────────────────────────────── */
:focus-visible {
  outline: 2px solid #34d4a8;
  outline-offset: 2px;
}

/* ── Print ──────────────────────────────────────── */
@media print {
  .nav-fixed, .hero-orb, .contact-orb { display: none; }
  body { color: #000; background: #fff; }
}
