/* Custom styles for Southwest Urgent Care */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 100px;
}

/* Selection color */
::selection {
    background-color: #3a6128;
    color: #faf9f6;
}

/* Navbar transitions */
.nav-text-color {
    transition: color 0.4s ease;
}

.nav-sub-text {
    transition: color 0.4s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a7a34;
    transition: width 0.3s ease;
}

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

.nav-btn-hover {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-icon {
    transition: color 0.3s ease;
}

/* Hero scroll indicator */
.hero-scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

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

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

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Mobile menu */
#mobile-menu {
    backdrop-filter: blur(20px);
}

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

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

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Service card hover - image zoom effect */
.group img {
    transition: transform 0.6s ease;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4a7a34;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4a7a34;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    header, #mobile-menu, .reveal {
        display: none !important;
    }

    body {
        color: #1f3315;
        background: white;
    }

    section {
        page-break-inside: avoid;
    }
}
