/* ========================================
   Artesian Cabins — Custom Styles
   ======================================== */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5e8;
}
::-webkit-scrollbar-thumb {
    background: #d4ab52;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4903e;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(44, 31, 20, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #f2b4a3;
}

#navbar:not(.scrolled) .nav-link::after {
    background: #f2b4a3;
}

/* Mobile Menu */
#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(100%);
}

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

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu Icon Animation */
#menuBtn.active #menuIcon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active #menuIcon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menuBtn.active #menuIcon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ========================================
   Hero Section
   ======================================== */
#hero {
    position: relative;
}

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

/* ========================================
   Cabin Cards
   ======================================== */
.cabin-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cabin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(44, 31, 20, 0.12);
}

/* ========================================
   Amenities Cards
   ======================================== */
.amenity-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* ========================================
   Scroll Reveal Animations
   (progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.from-left {
        transform: translateX(0);
    }
    
    .reveal.from-right {
        transform: translateX(0);
    }
}

/* ========================================
   Form Styles
   ======================================== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23972d18' 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;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    #hero::after {
        height: 60px;
    }
    
    .font-serif {
        line-height: 1.15;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #2c1f14;
        background: white;
    }
    
    section {
        padding: 2rem 0;
    }
}
