/* Sylvan Lodge — Custom Styles */

/* Base resets */
*, *::before, *after { box-sizing: border-box; }

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #3a2b23;
    background: #faf6f3;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #e06b22;
    color: #fff;
}

/* Typography scale */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
}

/* Image handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e06b22;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Hero asymmetric layout adjustments */
@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-grid > div:first-child {
        order: 2;
        padding: 6rem 1.5rem 4rem;
    }
    
    .hero-grid > div:last-child {
        order: 1;
        min-height: 50vh;
    }
    
    .hero-grid h1 {
        font-size: 2.75rem;
    }
}

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

#navbar.nav-scrolled {
    background: rgba(250, 246, 243, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(160, 100, 60, 0.08);
}

/* Mobile menu animation */
.burger-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .burger-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .burger-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Mobile menu links */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Room card image aspect ratio */
.room-card .relative {
    aspect-ratio: 5 / 4;
}

/* CTA strip gradient */
.cta-strip {
    background: linear-gradient(135deg, #a16348 0%, #d4752a 50%, #e06b22 100%);
}

/* Amenity icons */
.w-14.h-14 {
    transition: transform 0.3s ease;
}

/* Fade-up animation (progressive enhancement) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }
.fade-up:nth-child(7) { transition-delay: 0.6s; }
.fade-up:nth-child(8) { transition-delay: 0.7s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .room-card:hover {
        transform: none;
    }
    
    .room-card .relative img {
        transition: none;
    }
    
    #navbar {
        transition: none;
    }
    
    .mobile-menu {
        transition: none;
    }
}

/* Print styles */
@media print {
    #navbar, #mobileMenu, .cta-strip { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
