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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(123, 45, 59, 0.15);
    color: #4e0f1d;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #7B2D3B 0%,
        #c11f3c 25%,
        #df3d58 45%,
        #f0456e 60%,
        #ff6b88 75%,
        #ffb8c6 90%,
        #ffd9e3 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ── Contact Gradient ── */
.contact-gradient {
    background: linear-gradient(
        135deg,
        #28060c 0%,
        #4e0f1d 20%,
        #7B2D3B 45%,
        #c11f3c 70%,
        #f0456e 100%
    );
}

/* ── Navigation ── */
.nav-scrolled {
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-scrolled .nav-link {
    color: #6e4938;
}

.nav-scrolled .scroll-indicator {
    opacity: 0;
}

/* ── Hero Animations ── */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.hero-desc {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

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

.hero-deco {
    animation: float 8s ease-in-out infinite;
}

.hero-deco:nth-child(3) { animation-delay: -2s; animation-duration: 10s; }
.hero-deco:nth-child(4) { animation-delay: -4s; animation-duration: 14s; }
.hero-deco:nth-child(5) { animation-delay: -1s; animation-duration: 11s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -15px) scale(1.02); }
    50% { transform: translate(-5px, -25px) scale(0.98); }
    75% { transform: translate(15px, -10px) scale(1.01); }
}

.hero-leaf {
    animation: drift 6s ease-in-out infinite;
}

.hero-leaf:nth-child(6) { animation-delay: -2s; animation-duration: 8s; }
.hero-leaf:nth-child(7) { animation-delay: -4s; animation-duration: 7s; }

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-20px) rotate(calc(var(--r, 0deg) + 10deg)); }
}

.scroll-indicator {
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #7B2D3B;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    background: #fff5f7;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.35);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.btn-submit {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.btn-submit:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

/* ── Stay Cards ── */
.stay-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stay-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stay-card:hover img {
    transform: scale(1.05);
}

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

.mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

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

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ── Menu Lines ── */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Amenity Items ── */
.amenity-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.amenity-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ── Form ── */
#contact-form.transitioning {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-title span {
        display: block;
        margin-top: 0.25rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-desc {
        font-size: 1rem;
    }
}
