/* ===== Parothdhideaway — Custom Styles ===== */

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(45, 31, 22, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #f8c4b2;
  border-radius: 1px;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.mobile-nav-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
  padding-left: 8px;
  color: #f8c4b2;
}

/* ===== HERO ===== */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s ease forwards 0.3s;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== GALLERY HOVER ===== */
.rounded-2xl overflow-hidden img {
  display: block;
}

/* ===== FORM STYLES ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(193, 105, 79, 0.15);
}

/* ===== SMOOTH SCROLL OFFSET ===== */
section[id] {
  scroll-margin-top: 80px;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ROOM CARD HOVER ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ===== ACCESSIBILITY ===== */
@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 {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
  .font-display {
    line-height: 1.15;
  }
}
