/* ============================================
   Wildflower Inn — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #C4572A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a84823;
}

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

#navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #fdfcfa, transparent);
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   Room Cards
   ============================================ */
.room-card {
    transform: translateY(0);
}

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

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

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

/* ============================================
   Scroll Reveal Animations
   Only activate when user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ============================================
   Buttons
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 640px) {
    .font-display {
        word-spacing: -0.02em;
    }
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background-color: rgba(196, 87, 42, 0.3);
    color: #0f172a;
}
