/* ===== CUSTOM STYLES FOR WOODS AND WAVES ===== */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #B8543A;
  color: #FDF8F0;
}

/* --- Navbar --- */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(16, 42, 67, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B8543A;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

#navbar.scrolled .nav-link {
  color: #243b53;
}

#navbar.scrolled .nav-link:hover {
  color: #B8543A;
}

#navbar.scrolled .font-display {
  color: #102a43;
}

#navbar.scrolled .text-terra-600 {
  color: #B8543A;
}

/* --- Mobile Menu --- */
.mobile-link {
  position: relative;
}

#mobile-menu.show {
  animation: slideDown 0.3s ease forwards;
}

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

/* --- Hero Animations --- */
.hero-eyebrow {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.hero-headline {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero-sub {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.hero-ctas {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

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

/* --- Floating Stat Cards --- */
.stat-card {
  animation: floatCard 0.8s ease forwards;
  opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 1s; }
.stat-card:nth-child(2) { animation-delay: 1.2s; }
.stat-card:nth-child(3) { animation-delay: 1.4s; }

@keyframes floatCard {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-float-1 {
  animation: float1 6s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-float-2 {
  animation: float2 7s ease-in-out infinite;
  animation-delay: 1.2s;
}

.animate-float-3 {
  animation: float3 5.5s ease-in-out infinite;
  animation-delay: 1.4s;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* --- Scroll Indicator --- */
.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

@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; }
}

/* --- Section Styles --- */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #B8543A;
  margin-bottom: 12px;
  position: relative;
  padding-left: 40px;
}

.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 2px;
  background: #B8543A;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #102a43;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: #486581;
  line-height: 1.7;
}

/* --- Room Cards --- */
.room-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(16, 42, 67, 0.15);
}

.room-img-wrap {
  box-shadow: 0 4px 20px rgba(16, 42, 67, 0.08);
  transition: box-shadow 0.4s ease;
}

.room-card:hover .room-img-wrap {
  box-shadow: 0 12px 40px rgba(16, 42, 67, 0.15);
}

/* --- Experience Items --- */
.experience-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.experience-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Amenity Cards --- */
.amenity-card {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.amenity-card:hover {
  transform: translateY(-4px);
}

/* --- Input Fields --- */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d9e2ec;
  border-radius: 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #102a43;
  background: #fdf8f0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  outline: none;
  appearance: none;
}

.input-field::placeholder {
  color: #9fb3c8;
}

.input-field:hover {
  border-color: #c4b4a4;
  background: #fff;
}

.input-field:focus {
  border-color: #B8543A;
  box-shadow: 0 0 0 4px rgba(184, 84, 58, 0.1);
  background: #fff;
}

select.input-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23627d98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* --- Primary Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #B8543A;
  color: #FDF8F0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(184, 84, 58, 0.3);
}

.btn-primary:hover {
  background: #a0442e;
  box-shadow: 0 8px 30px rgba(184, 84, 58, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  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; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .stat-card {
    display: none;
  }

  #hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* --- 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;
  }
}
