/* ===== DEEP CREEK RANCH — CUSTOM STYLES ===== */

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #D4A84B;
  color: #2C4A3E;
}

/* --- Header --- */
#site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
}

#site-header.scrolled {
  background: rgba(253, 252, 248, 0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(44, 74, 62, 0.1);
  box-shadow: 0 1px 20px rgba(44, 74, 62, 0.06);
}

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

#mobile-menu.open .mobile-link {
  animation: fadeUp 0.4s ease forwards;
  opacity: 1;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Mobile menu button animation */
.menu-btn-active .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-btn-active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-btn-active .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 1.25rem;
}

/* --- Hero Animations --- */
.hero-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-anim:nth-child(1) { transition-delay: 0.2s; }
.hero-anim:nth-child(2) { transition-delay: 0.4s; }
.hero-anim:nth-child(3) { transition-delay: 0.6s; }
.hero-anim:nth-child(4) { transition-delay: 0.8s; }

/* --- Room Cards --- */
.room-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.5s ease;
}

.room-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.room-card:nth-child(1) { transition-delay: 0.1s; }
.room-card:nth-child(2) { transition-delay: 0.25s; }
.room-card:nth-child(3) { transition-delay: 0.4s; }

/* --- Feature Items --- */
.feature-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-item:nth-child(1) { transition-delay: 0.1s; }
.feature-item:nth-child(2) { transition-delay: 0.2s; }
.feature-item:nth-child(3) { transition-delay: 0.3s; }
.feature-item:nth-child(4) { transition-delay: 0.4s; }

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

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

/* --- Nav link underline --- */
.nav-link {
  position: relative;
}

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

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

/* --- Form focus glow --- */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.12);
}

/* --- Subtle image grain overlay on hero --- */
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 74, 62, 0.95) 0%,
    rgba(36, 61, 50, 0.9) 50%,
    rgba(29, 48, 40, 0.95) 100%
  );
  z-index: 0;
}

.hero-left > * {
  position: relative;
  z-index: 1;
}

/* --- Button ripple on click --- */
button:active,
a:active {
  transform: scale(0.985);
  transition: transform 0.1s ease;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FAF8F2;
}

::-webkit-scrollbar-thumb {
  background: #b9cfb8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8fb58c;
}

/* --- Responsive tweaks --- */
@media (max-width: 767px) {
  .hero-left {
    padding: 6rem 1.5rem 4rem !important;
  }

  #hero {
    min-height: auto;
  }

  .hero-right {
    min-height: 50vh;
  }
}
