/* ========================================
   Hostal Bahia Verde — Custom Styles
   Classic & Elegant · Plum + Amber
======================================== */

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

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

/* Selection color */
::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: #fdf4f8;
}

/* ========================================
   Navbar
======================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(42, 26, 36, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(251, 191, 36, 0.1);
}

/* ========================================
   Hero
======================================== */
#hero {
    background-attachment: fixed;
}

@media (max-width: 767px) {
    #hero {
        background-attachment: scroll;
    }
}

/* ========================================
   Room Cards
======================================== */
.room-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

/* ========================================
   Buttons & Links
======================================== */
a {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   Scroll-reveal (progressive enhancement)
   Content is visible by default; JS adds
   the animated state only when enabled.
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal-animate {
        opacity: 0;
        transform: translateY(24px);
        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-animate.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-animate.delay-1 { transition-delay: 0.1s; }
    .reveal-animate.delay-2 { transition-delay: 0.2s; }
    .reveal-animate.delay-3 { transition-delay: 0.3s; }
    .reveal-animate.delay-4 { transition-delay: 0.4s; }
}

/* ========================================
   Form Inputs
======================================== */
input::placeholder,
textarea::placeholder {
    color: rgba(212, 160, 185, 0.4);
}

input:focus,
textarea:focus {
    background-color: rgba(61, 37, 52, 0.6);
}

/* ========================================
   Mobile Menu Transition
======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* ========================================
   Print Styles
======================================== */
@media print {
    #navbar,
    #mobile-menu-btn,
    .reveal-animate {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    body {
        background: white;
        color: #1a1a2e;
    }
}
