/* Custom styles for John Day Lock and Dam website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff8f7;
}
::-webkit-scrollbar-thumb {
    background: #f5a8b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b9304a;
}

/* Selection color */
::selection {
    background: #f5a8b8;
    color: #3a0c12;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 248, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(150, 34, 56, 0.08);
}

/* 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;
    }
    .float-slow, .float-medium, .float-fast, .float-subtle {
        animation: none !important;
    }
    .gradient-animate {
        animation: none !important;
        background: linear-gradient(135deg, #fff8f7 0%, #fce7eb 50%, #fdf2f4 100%) !important;
    }
}

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

/* Mobile menu overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(58, 12, 18, 0.5);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #mobile-toggle, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
