/* ===== Custom Styles for Tappahannock Cancer Center ===== */

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

/* ===== Scroll Reveal Animations ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(28px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Hero Badge Animation ===== */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

/* ===== Navbar Transition ===== */
#navbar.scrolled {
    background: rgba(6, 17, 36, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar.scrolled .nav-logo-light {
    display: block;
}

#navbar.scrolled .nav-logo-dark {
    display: none;
}

/* ===== Mobile Menu ===== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-nav-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.08s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.16s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.24s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.32s; }

/* ===== Button Ripple Effect ===== */
button, a {
    position: relative;
    overflow: visible;
}

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

/* ===== Selection Color ===== */
::selection {
    background: rgba(200, 148, 30, 0.25);
    color: #0A1C3D;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #061124;
}
::-webkit-scrollbar-thumb {
    background: #14356F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C8941E;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Print Styles ===== */
@media print {
    #navbar, #mobile-menu-btn, .scroll-reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
