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

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

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

/* Fixed Background Geometric Shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 122, 51, 0.06) 0%, transparent 70%);
    top: 20%;
    right: -80px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 122, 51, 0.05) 0%, transparent 70%);
    bottom: 30%;
    left: -60px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(77, 122, 51, 0.04);
    top: 50%;
    left: 5%;
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.square-1 {
    width: 80px;
    height: 80px;
    background: rgba(77, 122, 51, 0.04);
    border-radius: 12px;
    top: 70%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 122, 51, 0.04) 0%, transparent 70%);
    top: 10%;
    left: 15%;
    animation: float-slow 17s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* Hero Geometric Shapes */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.geo-hex-1 {
    width: 200px;
    height: 200px;
    background: rgba(254, 253, 248, 0.04);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 15%;
    left: 5%;
    animation: float-slow 25s ease-in-out infinite;
}

.geo-circle-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(254, 253, 248, 0.08);
    border-radius: 50%;
    top: 25%;
    right: 10%;
    animation: float-slow 12s ease-in-out infinite reverse;
}

.geo-circle-2 {
    width: 80px;
    height: 80px;
    background: rgba(245, 232, 176, 0.06);
    border-radius: 50%;
    bottom: 25%;
    right: 20%;
    animation: float-slow 14s ease-in-out infinite;
}

.geo-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(254, 253, 248, 0.03);
    border-radius: 16px;
    bottom: 20%;
    left: 15%;
    transform: rotate(30deg);
    animation: float-slow 20s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(254, 253, 248, 0.05);
    top: 60%;
    right: 5%;
    transform: rotate(-10deg);
    animation: float-slow 16s ease-in-out infinite;
}

/* Amenities Section Geometric */
.amenity-geo {
    position: absolute;
    pointer-events: none;
}

.geo-amenity-circle-1 {
    width: 400px;
    height: 400px;
    border: 1px solid rgba(254, 253, 248, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 30s ease-in-out infinite;
}

.geo-amenity-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(254, 253, 248, 0.03);
    border-radius: 20px;
    bottom: 50px;
    left: 50px;
    transform: rotate(20deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-amenity-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid rgba(254, 253, 248, 0.04);
    top: 40%;
    left: 8%;
    transform: rotate(-20deg);
    animation: float-slow 18s ease-in-out infinite;
}

/* CTA Section Geometric */
.cta-geo {
    position: absolute;
    pointer-events: none;
}

.geo-cta-circle-1 {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(254, 253, 248, 0.04);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float-slow 28s ease-in-out infinite;
}

.geo-cta-square-1 {
    width: 150px;
    height: 150px;
    background: rgba(254, 253, 248, 0.03);
    border-radius: 24px;
    top: 10%;
    right: 5%;
    transform: rotate(15deg);
    animation: float-slow 19s ease-in-out infinite reverse;
}

/* Room Cards */
.room-card {
    will-change: transform;
}

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

/* Amenity Cards */
.amenity-card {
    will-change: transform;
}

.amenity-card:hover {
    transform: translateY(-2px);
}

/* Scroll Reveal Animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }

    .reveal[data-reveal="left"] {
        transform: translateX(-24px);
    }

    .reveal[data-reveal="right"] {
        transform: translateX(24px);
    }

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(54, 92, 36, 0.1);
}

.nav-scrolled .font-heading {
    color: #28471c !important;
}

.nav-scrolled a:not(.bg-forest-600) {
    color: #365c24 !important;
}

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

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

/* Subtle pattern overlay on cream sections */
.bg-cream-50::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(54, 92, 36, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}
