/* =========================================
   Camps Bouw & Techniek — Custom Styles
   ========================================= */

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4c4c4; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #75b948; }

.dark ::-webkit-scrollbar-thumb { background: #333; }
.dark ::-webkit-scrollbar-thumb:hover { background: #75b948; }

/* --- Nav link underline --- */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #75b948;
    border-radius: 1px;
    transition: width 0.25s ease, left 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    left: 20%;
}

/* --- Scroll-triggered fade-in --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header shrink on scroll --- */
#site-header.scrolled {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* --- Hamburger animation --- */
#mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
#mobile-toggle.active .hamburger-line:nth-child(3) {
    width: 1.25rem;
    transform: translateY(-7px) rotate(-45deg);
    margin-left: 0;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Light mode card depth --- */
:root:not(.dark) .card-light {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* --- Focus visible --- */
*:focus-visible {
    outline: 2px solid #75b948;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Selection color --- */
::selection {
    background: rgba(117, 185, 72, 0.2);
    color: inherit;
}
