/* Custom styles for Smart Scripts Pharmacy */

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

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

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

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

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #F97066;
    outline-offset: 2px;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Ensure proper contrast for all text */
.text-charcoal-900 {
    color: #1A1A22;
}

.text-charcoal-800 {
    color: #2D2D35;
}

.text-charcoal-700 {
    color: #3D3D47;
}

.text-charcoal-600 {
    color: #4A4A56;
}

.text-charcoal-500 {
    color: #5C5C6B;
}

.text-charcoal-400 {
    color: #7B7B8E;
}

.text-charcoal-300 {
    color: #A9A9B8;
}

/* Ensure hero text is readable */
#hero h1 {
    color: #1A1A22;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Service card hover effects */
.group:hover .group-hover\:bg-coral-400 {
    background-color: #F97066;
}

.group:hover .group-hover\:text-white {
    color: #ffffff;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .floating {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .floating {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
