/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --burgundy: #8B1A4D;
  --burgundy-light: #a82060;
  --blush: #ff9db5;
  --cream: #fefdf8;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(139, 26, 77, 0.08);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* ========== BUTTONS ========== */
.btn-primary {
  background: var(--burgundy);
  color: #fff !important;
  border: 2px solid var(--burgundy);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  background: var(--burgundy-light);
  border-color: var(--burgundy-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 26, 77, 0.3);
}
.btn-secondary {
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* ========== INPUTS ========== */
.input-field {
  border: 1.5px solid #e8e0e4;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #333;
  background: #fefdf8;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}
.input-field:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(139, 26, 77, 0.08);
  background: #fff;
}
.input-field::placeholder { color: #b0a0a8; }

/* ========== SECTION LABELS ========== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: rgba(139, 26, 77, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 50px;
}
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: #1a1a1a;
}

/* ========== HERO ========== */
.hero-bg {
  will-change: transform;
}
.hero-img {
  transition: transform 8s ease;
}
.hero-bg.active .hero-img {
  transform: scale(1.05);
}
.hero-title {
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1s 0.3s forwards;
}
.hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s 0.6s forwards;
}
.hero-ctas {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s 0.9s forwards;
}
.hero-badge {
  opacity: 0;
  animation: heroReveal 0.8s forwards;
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== FLOATING DECO ========== */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes float-delay {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.03); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: float-delay 7s ease-in-out infinite 1s; }

/* ========== SCROLL LINE ========== */
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* ========== AMENITY CARDS ========== */
.amenity-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.amenity-card:hover {
  transform: translateY(-6px);
}

/* ========== GALLERY ========== */
.gallery-item {
  cursor: pointer;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  transition: all 0.3s ease;
}
.mobile-link:hover {
  transform: scale(1.05);
}

/* ========== STAT NUMBERS ========== */
.stat-number {
  display: block;
  line-height: 1;
}
.stat-label {
  font-family: 'Outfit', sans-serif;
}

/* ========== MOBILE ========== */
@media (max-width: 767px) {
  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
}

/* ========== FOCUS VISIBLE ========== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}
