/* Custom styles for Valley Optical */

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid #F05248;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(240, 82, 72, 0.15);
    color: #1E1E24;
}

/* Nav link underline on scroll */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #F05248;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(240, 82, 72, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Image hover zoom container */
.hero-img-wrap img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-img-wrap:hover img {
    transform: scale(1.03);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .service-card:hover { transform: none; }
    .hero-img-wrap img { transform: none; }
    .animate-float, .animate-float-delay { animation: none; }
}

/* Print styles */
@media print {
    nav, #mobile-toggle, #mobile-menu, .reveal, .blob, .animate-float, .animate-float-delay { display: none !important; }
    body { color: #000; background: #fff; }
    .hero-img-wrap img, section img { max-height: 200px; }
}
