/* Custom styles for Midway Eyecare */

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

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

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

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Burgundy gradient backgrounds */
.bg-burgundy-gradient {
    background: linear-gradient(135deg, #a81838 0%, #73142c 100%);
}

/* Service card hover effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(168, 24, 56, 0.15);
}

/* Button hover effect */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(168, 24, 56, 0.3);
}

/* Image hover effect */
.img-hover {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-hover:hover {
    transform: scale(1.05);
}

/* Gold line decoration */
.gold-line {
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    height: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@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.8s ease, transform 0.8s ease;
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Ensure text readability on all backgrounds */
.bg-black,
[class*="bg-"] {
    color: #f5f5f5;
}

/* High contrast for important text */
.text-white {
    color: #ffffff;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2.25rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav,
    .btn-primary,
    #contact-form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .text-white,
    .text-gray-300,
    .text-gray-400 {
        color: black;
    }
}
