/* 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 */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #faf9f6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #021a0e;
}
::-webkit-scrollbar-thumb {
    background: #0f450f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a5c1a;
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(2, 26, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.08);
}

/* Hero stat cards */
.stat-card {
    transform: translateY(0);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 168, 83, 0.1);
}

/* Room cards */
.room-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 168, 83, 0.15);
}

/* Amenity cards */
.amenity-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    .reveal-up {
        animation: revealUp 0.7s ease forwards;
    }

    .reveal-left {
        animation: revealLeft 0.7s ease forwards;
    }

    .reveal-right {
        animation: revealRight 0.7s ease forwards;
    }

    /* Staggered delays */
    .reveal-up:nth-child(1) { animation-delay: 0.05s; }
    .reveal-up:nth-child(2) { animation-delay: 0.12s; }
    .reveal-up:nth-child(3) { animation-delay: 0.19s; }
    .reveal-up:nth-child(4) { animation-delay: 0.26s; }
    .reveal-up:nth-child(5) { animation-delay: 0.33s; }
    .reveal-up:nth-child(6) { animation-delay: 0.40s; }
    .reveal-up:nth-child(7) { animation-delay: 0.47s; }
    .reveal-up:nth-child(8) { animation-delay: 0.54s; }

    .room-card:nth-child(1) { animation-delay: 0.1s; }
    .room-card:nth-child(2) { animation-delay: 0.2s; }
    .room-card:nth-child(3) { animation-delay: 0.3s; }

    .amenity-card:nth-child(1) { animation-delay: 0.05s; }
    .amenity-card:nth-child(2) { animation-delay: 0.1s; }
    .amenity-card:nth-child(3) { animation-delay: 0.15s; }
    .amenity-card:nth-child(4) { animation-delay: 0.2s; }
    .amenity-card:nth-child(5) { animation-delay: 0.25s; }
    .amenity-card:nth-child(6) { animation-delay: 0.3s; }
    .amenity-card:nth-child(7) { animation-delay: 0.35s; }
    .amenity-card:nth-child(8) { animation-delay: 0.4s; }
}

/* Scroll-reveal classes (applied by JS for below-fold elements) */
.reveal-up.is-hidden,
.reveal-left.is-hidden,
.reveal-right.is-hidden {
    opacity: 0;
}

.reveal-up.is-hidden {
    transform: translateY(30px);
}

.reveal-left.is-hidden {
    transform: translateX(-30px);
}

.reveal-right.is-hidden {
    transform: translateX(30px);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Gold shimmer effect on hover for CTA buttons */
a[href^="tel:"] {
    position: relative;
    overflow: hidden;
}

a[href^="tel:"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

a[href^="tel:"]:hover::after {
    left: 100%;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(212, 168, 83, 0.6);
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* Form focus states */
input:focus,
textarea:focus {
    background: rgba(6, 78, 59, 0.15);
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(135deg, #0a330a 0%, #064e3b 100%);
}
