/* ===== Custom Styles for ValleyView Lodge ===== */

:root {
  --color-forest-950: #0a1f14;
  --color-forest-800: #1a3a2a;
  --color-gold-500: #c9a84c;
  --color-gold-400: #d4b96a;
  --color-cream-50: #faf8f4;
  --color-cream-200: #ebe4d6;
}

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

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

body {
  overflow-x: hidden;
}

/* ===== Gold Button ===== */
.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #c9a84c 0%, #a8872e 100%);
  color: #0a1f14;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gold-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d4b96a 0%, #c9a84c 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gold-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
}

.gold-btn:hover::before {
  opacity: 1;
}

.gold-btn span,
.gold-btn svg {
  position: relative;
  z-index: 1;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    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; }
}

/* ===== Scroll Dot Animation ===== */
@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.animate-scroll-dot {
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* ===== Navbar Scroll State ===== */
.nav-scrolled {
  background: rgba(10, 31, 20, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
  color: rgba(235, 228, 214, 0.8) !important;
}

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

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

::-webkit-scrollbar-track {
  background: #0a1f14;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #234d37;
}

/* ===== Selection ===== */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #faf8f4;
}

/* ===== Image placeholder fallback ===== */
img {
  background: linear-gradient(135deg, #1a3a2a 0%, #0d2818 100%);
}

/* ===== Focus Styles ===== */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* ===== Smooth transitions for interactive elements ===== */
a, button {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .font-serif {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

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