/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Navigation ── */
.nav-fixed {
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav-scrolled {
    background-color: rgba(42, 28, 14, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F08050;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
.mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }
.line1.open { transform: rotate(45deg) translate(4px, 4px); }
.line2.open { opacity: 0; }
.line3.open { transform: rotate(-45deg) translate(4px, -4px); width: 24px; margin: 0; }

/* ── Hero ── */
.hero {
    position: relative;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero-loaded .hero-img {
    transform: scale(1);
}
.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(42, 28, 14, 0.65) 0%,
        rgba(42, 28, 14, 0.45) 50%,
        rgba(42, 28, 14, 0.75) 100%
    );
}
.hero-shape-1 { animation: float1 8s ease-in-out infinite; }
.hero-shape-2 { animation: float2 10s ease-in-out infinite; }
.hero-shape-3 { animation: pulse 3s ease-in-out infinite; }
.hero-shape-4 { animation: pulse 4s ease-in-out infinite 1s; }
.hero-shape-5 { animation: pulse 5s ease-in-out infinite 2s; }

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.05); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.08); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Site Cards ── */
.site-card {
    will-change: transform;
}
.site-card:hover {
    transform: translateY(-4px);
}

/* ── Amenity Cards ── */
.amenity-card {
    will-change: transform;
}
.amenity-card:hover {
    transform: translateY(-4px);
}

/* ── Contact Form ── */
.contact-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-input:focus {
    border-color: #C0603A;
    box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.15);
}
.contact-submit {
    position: relative;
    overflow: hidden;
}
.contact-submit::before {
    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;
}
.contact-submit:hover::before {
    left: 100%;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #C0603A, #F08050);
    z-index: 100;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem !important;
    }
    @media (min-width: 640px) {
        .hero-headline {
            font-size: 3.5rem !important;
        }
    }
    @media (min-width: 768px) {
        .hero-headline {
            font-size: 4.5rem !important;
        }
    }
}

/* ── 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; }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
