/* ========================================
   Little Springs Airbnb Hidaway
   Classic & Elegant Style System
   ======================================== */

/* 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 */
::selection {
    background: #781F2E;
    color: #FDFCFA;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #781F2E;
}

/* ========================================
   Navigation Transitions
   ======================================== */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(120, 31, 46, 0.08);
}

#navbar.scrolled #nav-logo-text,
#navbar.scrolled .nav-link {
    color: #4C141D;
}

#navbar.scrolled #nav-subtitle {
    color: #B83242;
}

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

#mobile-menu.active .mobile-nav-link {
    animation: fadeInUp 0.4s ease forwards;
}

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

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

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

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

/* ========================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-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);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Keyframes
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========================================
   Typography Enhancements
   ======================================== */
.font-serif {
    letter-spacing: -0.01em;
}

.font-serif em,
.font-serif i {
    font-style: italic;
}

/* ========================================
   Button Interactions
   ======================================== */
button, a {
    cursor: pointer;
}

/* ========================================
   Focus States (Accessibility)
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #781F2E;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   Image Loading
   ======================================== */
img {
    display: block;
    max-width: 100%;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    .font-serif {
        letter-spacing: 0;
    }
    
    section {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

@media (min-width: 768px) {
    section {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}
