/* ===================================
   Bear's Den — Custom Styles
   Classic & Elegant | Plum + Amber
   =================================== */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #D4A84B;
    color: #1A0B15;
}

/* ===================================
   Navigation
   =================================== */
#nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 29, 58, 0.08);
}

#nav.scrolled .menu-line {
    background: #4A1D3A;
}

#nav.scrolled a:not(.bg-plum-800) {
    color: #4A1D3A !important;
}

/* ===================================
   Mobile Menu
   =================================== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

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

#mobileMenu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

body.menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

/* ===================================
   Hero Floating Cards
   =================================== */
.stat-card {
    animation: floatCard1 6s ease-in-out infinite;
    transform: translateY(0);
}

.stat-card-2 {
    animation: floatCard2 7s ease-in-out infinite;
    transform: translateY(0);
}

.stat-card-3 {
    animation: floatCard3 5.5s ease-in-out infinite;
    transform: translateY(0);
}

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

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

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

/* ===================================
   Room Cards
   =================================== */
.room-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

/* ===================================
   Feature Cards
   =================================== */
.feature-card {
    transform: translateY(0);
    transition: transform 0.5s ease, background 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* ===================================
   Scroll Animations
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================================
   Buttons
   =================================== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

button, [type="text"], [type="email"], [type="tel"], textarea {
    font-family: inherit;
}

/* ===================================
   Focus Styles
   =================================== */
:focus-visible {
    outline: 2px solid #D4A84B;
    outline-offset: 2px;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 767px) {
    .stat-card,
    .stat-card-2,
    .stat-card-3 {
        display: none;
    }

    #hero h1 {
        font-size: 2.75rem !important;
    }

    #hero h1 span:not(.text-2xl) {
        font-size: 2.25rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .stat-card,
    .stat-card-2,
    .stat-card-3 {
        display: none;
    }
}

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

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