/* Oak and Ocean — Custom Styles */

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

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

body {
    overflow-x: hidden;
}

/* Navbar Scroll State */
#navbar {
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(130, 28, 47, 0.08), 0 4px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-logo-text {
    color: #821c2f;
}

#navbar.scrolled .nav-link {
    color: #1a1a2e;
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

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

/* Room Cards */
.room-card {
    will-change: transform;
}

/* Amenity Cards */
.amenity-card {
    will-change: transform;
}

/* Scroll Reveal Animations — Progressive Enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger delays */
    .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; }
}

/* Reduced motion — ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .room-card,
    .amenity-card {
        transition: none;
    }

    .room-card:hover,
    .amenity-card:hover {
        transform: none;
    }
}

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

/* Selection color */
::selection {
    background-color: #fce7eb;
    color: #6d1828;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c22d4a;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .amenity-card,
    .room-card {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #821c2f;
    }
}
