/* Custom styles for BK'S Hotels & Lodging */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Header scroll state */
#site-header {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#site-header.scrolled {
    background-color: rgba(15, 28, 11, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #a0c282;
    transition: width 0.25s ease;
}

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

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(248, 247, 242, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Hero image parallax-like feel */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(15, 28, 11, 0.3) 0%,
        rgba(15, 28, 11, 0.1) 40%,
        rgba(15, 28, 11, 0.6) 80%,
        rgba(15, 28, 11, 0.9) 100%
    );
}

/* Selection color */
::selection {
    background-color: #78a356;
    color: #0f1c0b;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #78a356;
    outline-offset: 2px;
}

/* Subtle image hover zoom */
img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    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-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

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

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

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

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    img {
        transition: none;
    }
}
