/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ─── Nav scroll state ─── */
nav.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(94, 234, 212, 0.08);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

/* ─── Nav links ─── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ─── Room cards ─── */
.room-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}
.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(94, 234, 212, 0.1);
}

/* ─── Scroll reveal (below fold only, progressive enhancement) ─── */
.reveal {
    opacity: 1;
    transform: none;
    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: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(32px);
    }
    .reveal[data-reveal="left"] {
        transform: translateX(-32px);
    }
    .reveal[data-reveal="right"] {
        transform: translateX(32px);
    }
    .reveal[data-reveal="scale"] {
        transform: scale(0.96);
    }
}

/* ─── Input focus styles ─── */
input:focus, textarea:focus {
    outline: none;
}

/* ─── Selection ─── */
::selection {
    background: rgba(94, 234, 212, 0.2);
    color: #f0fdf9;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a1628; }
::-webkit-scrollbar-thumb { background: #1b3a5e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5eead4; }

/* ─── Mobile menu animation ─── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ─── Form success ─── */
#form-success {
    animation: fadeInUp 0.4s ease forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Button ripple on press ─── */
button:active, a:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* ─── Map filter override for light mode fallback ─── */
@media (prefers-color-scheme: light) {
    iframe[src*="google.com/maps"] {
        filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1) !important;
    }
}
