/* ============================================
   Hopcreek Hideaway — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base typography */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
  background-color: #ffc107;
  color: #210e1b;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0f7;
}
::-webkit-scrollbar-thumb {
  background: #ba8fb5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9e6291;
}

/* Reveal animations — progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-bounce {
    animation: none;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Navbar transition states */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(59, 28, 49, 0.08);
}

.navbar-scrolled .font-serif {
  color: #3b1c31 !important;
}

.navbar-scrolled a:not(.bg-amber-500) {
  color: #46213a !important;
}

/* Hero parallax-like effect (subtle) */
#hero img {
  will-change: transform;
}

/* Card hover lift */
.group:hover {
  transform: translateY(-2px);
}

.group {
  transition: transform 0.3s ease;
}

/* Amber accent line */
.section-accent {
  position: relative;
  display: inline-block;
}
.section-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ffc107, #e6ac00);
  border-radius: 2px;
}

/* Image lazy-load placeholder */
img {
  background: linear-gradient(135deg, #e8dce9 0%, #f5f0f7 100%);
}
