/* ═══════════════════════════════════════════
   Bout Time — The Ahlers Family Cabin
   Custom styles & overrides
   ═══════════════════════════════════════════ */

/* ─── Smooth scrolling ─── */
html {
    scroll-behavior: smooth;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F6F6F7;
}
::-webkit-scrollbar-thumb {
    background: #D1D1D6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ADADB8;
}

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

/* ─── Hero ─── */
.hero {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.hero-content {
    animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: heroFadeIn 1s ease 0.15s forwards;
    opacity: 0;
}

.hero-headline {
    animation: heroFadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: heroFadeIn 1s ease 0.45s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: heroFadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: heroFadeIn 1s ease 0.9s forwards;
    opacity: 0;
}

/* ─── Navbar ─── */
.nav {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
    background: rgba(19, 20, 24, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav.scrolled .nav-logo-text {
    color: #fff;
}

/* ─── Mobile menu ─── */
#mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

#mobile-menu.closed {
    max-height: 0;
    opacity: 0;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.2s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 5rem;
}

/* ─── Amenity cards ─── */
.amenity-card {
    transform: translateY(0);
}

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

/* ─── Gallery images ─── */
.gallery-img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ─── Button focus states ─── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E8735A;
    outline-offset: 2px;
}

/* ─── 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;
    }
    .hero-img {
        animation: none;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
