/* ========================================
   Norwegian Wood Ranch — Custom Styles
   ======================================== */

/* Custom scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #052e16;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* ========================================
   Section Labels
   ======================================== */
.section-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #16a34a;
}

.section-label-dark {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.section-label-dark::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #4ade80;
}

/* ========================================
   Hero Stat Cards
   ======================================== */
.stat-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFloatIn 0.6s ease forwards;
}
.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.35s; }
.stat-card:nth-child(3) { animation-delay: 0.5s; }
.stat-card:nth-child(4) { animation-delay: 0.65s; }

@keyframes cardFloatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Room Cards
   ======================================== */
.room-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}
.room-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.room-card:nth-child(1).revealed { transition-delay: 0.1s; }
.room-card:nth-child(2).revealed { transition-delay: 0.2s; }
.room-card:nth-child(3).revealed { transition-delay: 0.3s; }

/* ========================================
   Experience Section Cards
   ======================================== */
.experience-card {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.experience-card.revealed {
    opacity: 1;
    transform: translateX(0);
}
.experience-card:nth-child(1).revealed { transition-delay: 0.1s; }
.experience-card:nth-child(2).revealed { transition-delay: 0.2s; }
.experience-card:nth-child(3).revealed { transition-delay: 0.3s; }

/* ========================================
   Location Cards
   ======================================== */
.location-card {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.location-card.revealed {
    opacity: 1;
    transform: translateX(0);
}
.location-card:nth-child(1).revealed { transition-delay: 0.1s; }
.location-card:nth-child(2).revealed { transition-delay: 0.2s; }
.location-card:nth-child(3).revealed { transition-delay: 0.3s; }

/* ========================================
   Navbar Transitions
   ======================================== */
.nav-scrolled #navbar {
    background: rgba(5, 46, 22, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled #nav-logo-text,
.nav-scrolled #nav-link-1,
.nav-scrolled #nav-link-2,
.nav-scrolled #nav-link-3,
.nav-scrolled #nav-link-4 {
    color: #fdfcf8;
}

/* ========================================
   Mobile Menu Animations
   ======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    position: relative;
}
.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #4ade80;
    transition: width 0.3s ease;
}
.mobile-nav-link:hover::after {
    width: 100%;
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .room-card,
    .experience-card,
    .location-card {
        opacity: 1;
        transform: none;
    }
    .stat-card {
        opacity: 1;
        transform: none;
    }
}

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

/* ========================================
   Print Styles
   ======================================== */
@media print {
    nav, #mobile-menu, button, .stat-card {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    section {
        page-break-inside: avoid;
    }
}
