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

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

body {
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        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-up {
        transform: translateY(30px);
    }
    
    .reveal-left {
        transform: translateX(-30px);
    }
    
    .reveal-right {
        transform: translateX(30px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Fallback: ensure content is visible if JS is disabled */
:not(.reveal-up):not(.reveal-left):not(.reveal-right) {
    opacity: 1 !important;
    transform: none !important;
}

/* ── Hero Animations ── */
.hero-tag {
    animation: fadeDown 1s 0.3s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-title {
    animation: fadeUp 1s 0.5s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-subtitle {
    animation: fadeUp 1s 0.7s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-cta {
    animation: fadeUp 1s 0.9s both cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ── Section Labels ── */
.section-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #d1411d;
    font-weight: 500;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.1;
    color: #1c1917;
}

/* ── Navigation ── */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.nav-scrolled .nav-logo,
.nav-scrolled .nav-link {
    color: #1c1917 !important;
}

.nav-scrolled #navbar {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-scrolled .nav-link {
    color: #57534e !important;
}

.nav-scrolled .nav-link:hover {
    color: #1c1917 !important;
}

.nav-scrolled .nav-link::after {
    background: #d1411d;
}

.nav-scrolled .mobile-link {
    color: #1c1917 !important;
}

/* ── Amenity Cards ── */
.amenity-card {
    padding: 2.5rem 0;
    border-top: 1px solid #e7e5e4;
    transition: border-color 0.3s ease;
}

.amenity-card:hover {
    border-color: #f0a88a;
}

.amenity-card h3 {
    transition: color 0.3s ease;
}

.amenity-card:hover h3 {
    color: #d1411d;
}

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

.mobile-menu-open body {
    overflow: hidden;
}

/* ── Form Focus States ── */
input:focus,
textarea:focus {
    outline: none;
    border-color: #f0a88a !important;
    box-shadow: 0 0 0 3px rgba(224, 90, 47, 0.08);
}

/* ── Utility ── */
::selection {
    background: #f9d0b8;
    color: #6f2317;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #d4a88a;
    border-radius: 3px;
}

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