/* Custom styles for Wesley Chapel Eyecare */

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

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

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

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

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

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e85d2b, #f4ad87);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Navbar scroll effect */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

/* Mobile link hover */
.mobile-link {
    display: block;
    padding-left: 0.5rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-link:hover {
    border-left-color: #e85d2b;
    padding-left: 1rem;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 93, 43, 0.15);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card::before {
        transition: none;
    }
    
    #back-to-top {
        transition: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    nav, #back-to-top, .service-card::before {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
