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

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

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

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

::selection {
    background: color-mix(in srgb, #1a3a2a 80%, transparent);
    color: #faf8f4;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #bcd3be;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5e9c6e;
}

/* ── Hero Animations (above the fold — always visible) ── */
.hero-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-desc {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

/* ── Scroll Reveal (below the fold only) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
}

/* Fallback: content always visible if JS disabled */
.no-js .reveal,
.js .reveal {
    /* JS will add .revealed class; without JS, content stays at default opacity */
}

/* ── Room Cards ── */
.room-card {
    transition: transform 0.4s ease;
}
.room-card:hover {
    transform: translateY(-2px);
}

/* ── Nav ── */
.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%;
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 58, 42, 0.06);
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
