/* Custom Styles for Cullman Cardiovascular */

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(92, 132, 53, 0.1);
}

.navbar-scrolled .nav-logo-text {
    color: #263519 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #5c8435 !important;
}

.navbar-scrolled a:not(.bg-forest-700):not(.bg-white) {
    color: #2d401d !important;
}

.navbar-scrolled .mobile-link {
    color: #2d401d !important;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        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);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF9F6;
}

::-webkit-scrollbar-thumb {
    background: #c7dbb2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a2c280;
}

/* Selection color */
::selection {
    background: #c7dbb2;
    color: #263519;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #5c8435;
    outline-offset: 2px;
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}

/* Button focus ring */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #5c8435;
    outline-offset: 2px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure form selects have proper styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c8435' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
