/* ============================================
   NORDIC LODGE — Custom Styles
   ============================================ */

/* 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;
}

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

::-webkit-scrollbar-track {
    background: #1a1410;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a84e2e;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #dd9278 !important;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(13, 15, 12, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.mobile-nav-link:hover {
    padding-left: 12px;
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(12, 9, 8, 0.4) 0%,
        rgba(12, 9, 8, 0.2) 40%,
        rgba(12, 9, 8, 0.5) 70%,
        rgba(12, 9, 8, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

#hero > .absolute {
    z-index: 0;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

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

.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }

/* Hidden state — applied by JS for progressive enhancement */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ============================================
   ROOM CARDS
   ============================================ */

.room-card {
    position: relative;
}

.room-card .room-image {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.room-card:hover .room-image {
    transform: scale(1.05);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 96, 58, 0.3), transparent);
}

/* ============================================
   INPUTS
   ============================================ */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #C0603A !important;
    box-shadow: 0 0 0 3px rgba(192, 96, 58, 0.15);
}

/* ============================================
   BACK TO TOP
   ============================================ */

#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:not(.visible) {
    opacity: 0;
    transform: translateY(16px);
}

#back-to-top:hover {
    transform: translateY(-2px) !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h1 br {
        display: none;
    }

    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    #hero h1 {
        font-size: 4.5rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Print Styles */
@media print {
    nav, #back-to-top, button {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .bg-dark-850, .bg-dark-950 {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}
