/* ══════════════════════════════════════════════════════════
   HAVEN HOUSE OF METROPOLIS — Custom Styles
   Palette: Emerald Green (#0B4F3C) + Cream (#F5F0E8)
   Fonts: Cormorant Garamond (serif) + Lato (sans)
   ══════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ─── Navbar ─── */
#navbar {
    color: #F5F0E8;
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(3, 26, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(245, 240, 232, 0.08);
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu a {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
#mobile-menu.open a:nth-child(2) { transition-delay: 0.14s; }
#mobile-menu.open a:nth-child(3) { transition-delay: 0.20s; }
#mobile-menu.open a:nth-child(4) { transition-delay: 0.26s; }
#mobile-menu.open a:nth-child(5) { transition-delay: 0.32s; }
#mobile-menu.open a:nth-child(6) { transition-delay: 0.38s; }

/* ─── Menu Toggle Animation ─── */
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* ─── Room Cards ─── */
.room-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(3, 26, 18, 0.25);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .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; }
}

/* ─── Input Date Icons (webkit) ─── */
input[type="date"] {
    color-scheme: light;
}

/* ─── Selection ─── */
::selection {
    background-color: #0B4F3C;
    color: #F5F0E8;
}

/* ─── Focus Visible ─── */
:focus-visible {
    outline: 2px solid #0B4F3C;
    outline-offset: 2px;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
    background: #89b996;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0B4F3C;
}
