/* ── Custom styles for River Rock CDL Training ── */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f7f1;
}
::-webkit-scrollbar-thumb {
    background: #7fb88e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #529d65;
}

/* Scroll reveal base — always visible by default for accessibility */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal with JS enhancement (progressive) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition states */
#nav-inner.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(17, 43, 25, 0.08);
}

#nav-inner.transparent {
    background: transparent;
    box-shadow: none;
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #347a48;
    border-radius: 1px;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

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

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

/* FAQ items */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-content:not(.hidden) {
    max-height: 300px;
}

.faq-content p {
    padding-top: 0.5rem;
}

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

/* Header height for scroll offset */
#main-content {
    scroll-margin-top: 80px;
}

/* Ensure hero is full height on all screens */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Subtle pattern for CTA section */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Print styles */
@media print {
    #site-header, #mobile-menu, .scroll-reveal {
        display: block !important;
        opacity: 1 !important;
    }
    body {
        color: #112b19;
        background: white;
    }
}
