/* Custom styles for Tiptonville Family Pharmacy */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 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: -4s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(253, 246, 227, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d96c43;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d96c43;
    border-radius: 5px;
}

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

/* Form input styles */
input::placeholder,
textarea::placeholder {
    color: #a8a29e;
}

/* Button hover glow */
button:hover,
a:hover {
    cursor: pointer;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f5f5f5 0%, #e8e8e8 50%, #f5f5f5 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img.loaded {
    animation: none;
    background: none;
}

/* Ensure all text has proper contrast */
.text-stone-900 {
    color: #1c1917;
}

.text-stone-800 {
    color: #292524;
}

.text-stone-700 {
    color: #44403c;
}

.text-stone-600 {
    color: #57534e;
}

.text-stone-500 {
    color: #78716c;
}

.text-stone-400 {
    color: #a8a29e;
}

.text-stone-300 {
    color: #d6d3d1;
}

.text-stone-200 {
    color: #e7e5e4;
}

.text-stone-100 {
    color: #f5f5f4;
}

/* Ensure hero text is readable */
#hero h1,
#hero p,
#hero span {
    text-shadow: none;
}

/* Ensure all interactive elements are accessible */
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

/* Print styles */
@media print {
    nav,
    #contactForm,
    .hero-geo {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
