/* ========== CUSTOM STYLES ========== */

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 80px;
}

/* ========== HEADER ========== */
#site-header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#site-header.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(12, 51, 25, 0.08);
}

/* ========== BUTTONS ========== */
.btn-reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-reserve:hover {
    transform: translateY(-1px);
}

.btn-reserve:active {
    transform: translateY(0);
}

/* ========== NAV LINKS ========== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    border-radius: 9999px;
    transition: width 0.25s ease;
    opacity: 0.4;
}

.nav-link:hover::after {
    width: 100%;
    opacity: 1;
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-nav-link {
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    color: #0f4020;
    padding-left: 0.5rem;
}

/* Menu button animation */
.menu-btn-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

.menu-btn-active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* ========== STAY CARDS ========== */
.stay-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stay-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.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; }

/* ========== HERO IMAGE ========== */
#hero img {
    will-change: transform;
}

/* ========== CUSTOM SELECTION ========== */
::selection {
    background-color: #d4a373;
    color: #0c3319;
}

/* ========== FORM STYLES ========== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23135328' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========== FOCUS VISIBLE ========== */
*:focus-visible {
    outline: 2px solid #2d8642;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 72px;
    }
}
