/* Custom styles for Cohocton Hook & Ladder Co. */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4fbf8;
}
::-webkit-scrollbar-thumb {
    background: #95d9c4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5ec0a4;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0A2342;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 100;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Navigation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5ec0a4;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Header scroll state */
#site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 35, 66, 0.08);
}

/* Mobile menu */
#mobile-menu.open {
    pointer-events: auto;
    opacity: 1;
}
#mobile-menu.open #menu-panel {
    transform: translateX(0);
}
#mobile-menu.open #menu-icon #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu.open #menu-icon #bar2 {
    opacity: 0;
}
#mobile-menu.open #menu-icon #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: #c5ebdb;
    color: #0A2342;
}

/* Print styles */
@media print {
    #site-header, #back-to-top, #mobile-menu {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a {
        color: #000;
    }
}
