/* ─── BASE & RESET ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

/* ─── SECTION LABELS & TITLES ─── */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4a7c4a;
    background: linear-gradient(135deg, rgba(27,67,50,0.06), rgba(27,67,50,0.02));
    border: 1px solid rgba(27,67,50,0.12);
    padding: 0.4rem 1rem;
    border-radius: 100px;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: #143022;
}

/* ─── NAVBAR ─── */
#navbar {
    background: rgba(253, 252, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.06);
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #1B4332;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ─── MOBILE MENU ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 1;
}

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

.room-card:hover {
    transform: translateY(-4px);
}

/* ─── FEATURE CARDS ─── */
.feature-card {
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion: no animation needed, content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .room-card, .feature-card {
        transform: none !important;
    }
    .room-card:hover, .feature-card:hover {
        transform: none;
    }
    img {
        transition: none !important;
    }
}

/* ─── FOCUS STYLES ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4a7c4a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── FORM STYLES ─── */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(74, 124, 74, 0.1);
}

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