/* Custom styles for Family First Pharmacy */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF5;
}
::-webkit-scrollbar-thumb {
    background: #93be88;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a7c42;
}

/* Hero geometric animations */
.hero-geo {
    animation: float 6s ease-in-out infinite;
}
.hero-geo:nth-child(2) { animation-delay: -2s; animation-duration: 8s; }
.hero-geo:nth-child(3) { animation-delay: -1s; animation-duration: 5s; }
.hero-geo:nth-child(4) { animation-delay: -3s; animation-duration: 7s; }
.hero-geo:nth-child(5) { animation-delay: -4s; animation-duration: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(2deg); }
    66% { transform: translateY(6px) rotate(-1deg); }
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(45, 78, 41, 0.3);
}

/* Testimonial card animations */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 78, 41, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

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

/* Selection color */
::selection {
    background: #93be88;
    color: #1e3429;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #dce8d8 0%, #bcd5b4 100%);
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .hero-geo, footer {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    section {
        page-break-inside: avoid;
    }
}
