/* ========== 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 {
    background-color: rgba(232, 100, 74, 0.2);
    color: #1C1C18;
}

/* ========== NAVBAR ========== */
.navbar-text {
    transition: color 0.4s ease;
}

.navbar-link {
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E8644A;
    transition: width 0.3s ease;
}

.navbar-link:hover::after {
    width: 100%;
}

/* Scrolled state */
.navbar-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar-scrolled .navbar-text {
    color: #1C1C18 !important;
}

.navbar-scrolled .navbar-link {
    color: #56564C !important;
}

/* ========== MOBILE MENU ========== */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

/* ========== HERO ========== */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #FDFBF7, transparent);
    pointer-events: none;
}

/* ========== ACCOMMODATIONS ========== */
.accommodation-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* ========== AMENITIES ========== */
.amenity-card {
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

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

/* ========== GALLERY ========== */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger delays */
.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; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .gallery-item img,
    .accommodation-card img,
    .group:hover img {
        transform: none;
        transition: none;
    }
}

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

input::placeholder,
textarea::placeholder {
    color: #A8A89C;
}

/* ========== BUTTONS ========== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* ========== DIVIDER ========== */
.divider-gradient {
    background: linear-gradient(to right, transparent, #D0D0C8, transparent);
}

/* ========== SECTION PADDING ========== */
section {
    position: relative;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDFBF7;
}

::-webkit-scrollbar-thumb {
    background: #D0D0C8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A8A89C;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    #hero::after {
        height: 100px;
    }

    .font-serif {
        line-height: 1.1;
    }
}
