/* ========== BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #385e23;
    color: #F5F2EB;
}

/* ========== NAVIGATION ========== */
#nav {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
    background: rgba(245, 242, 235, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(31, 49, 19, 0.08);
}

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Hamburger */
#menuBtn.open .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menuBtn.open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.open .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* ========== HERO GEOMETRIC SHAPES ========== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 94, 35, 0.06) 0%, transparent 70%);
    top: -100px;
    left: -150px;
    border-radius: 50%;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    border-radius: 50%;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(56, 94, 35, 0.05);
    border: 2px solid rgba(56, 94, 35, 0.1);
    top: 25%;
    right: 3%;
    border-radius: 24px;
    transform: rotate(15deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(232, 168, 56, 0.08);
    top: 40%;
    left: 2%;
    transform: rotate(-20deg);
}

.shape-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(56, 94, 35, 0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    bottom: 20%;
    right: 15%;
    border-radius: 12px;
    transform: rotate(10deg);
}

.shape-stripe {
    width: 200px;
    height: 6px;
    background: repeating-linear-gradient(90deg, rgba(232, 168, 56, 0.2) 0px, rgba(232, 168, 56, 0.2) 8px, transparent 8px, transparent 16px);
    bottom: 30%;
    left: 8%;
    transform: rotate(-5deg);
}

/* ========== FLOATING CARDS ========== */
.floating-card {
    z-index: 20;
}

.card-float-1 {
    animation: float1 4s ease-in-out infinite;
}

.card-float-2 {
    animation: float2 5s ease-in-out infinite;
}

.card-float-3 {
    animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ========== SCROLL INDICATOR ========== */
.scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    50% { top: calc(100% - 12px); opacity: 0.5; }
    100% { top: 0; opacity: 1; }
}

/* ========== ROOM CARDS ========== */
.room-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.room-card:nth-child(2) { transition-delay: 0.15s; }
.room-card:nth-child(3) { transition-delay: 0.3s; }

/* ========== AMENITY CARDS ========== */
.amenity-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.amenity-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.amenity-card:nth-child(1) { transition-delay: 0s; }
.amenity-card:nth-child(2) { transition-delay: 0.1s; }
.amenity-card:nth-child(3) { transition-delay: 0.2s; }
.amenity-card:nth-child(4) { transition-delay: 0.3s; }

/* ========== SECTION REVEALS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== FORM STYLES ========== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }

    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }

    .shape-triangle {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(232, 168, 56, 0.08);
    }

    .floating-card {
        display: none;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .room-card, .amenity-card, .reveal {
        opacity: 1;
        transform: none;
    }
}
