/* Custom styles for Hair by Judith & Barber Shop */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(240, 90, 40, 0.3);
    color: white;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #f05a28;
    outline-offset: 2px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Better select dropdown styling */
select option {
    background: #1a2332;
    color: white;
}

/* Subtle entrance for above-the-fold (only if JS loads) */
@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        animation: slideDown 0.6s ease-out both;
    }
    .hero-title {
        animation: slideUp 0.7s ease-out 0.15s both;
    }
    .hero-text {
        animation: slideUp 0.7s ease-out 0.3s both;
    }
    .hero-ctas {
        animation: slideUp 0.7s ease-out 0.45s both;
    }
    .hero-trust {
        animation: slideUp 0.7s ease-out 0.6s both;
    }
}

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

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile menu backdrop blur */
.mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    z-index: -1;
}

/* Ensure mobile menu is visible */
#mobileMenu {
    z-index: 50;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contactForm, button { display: none !important; }
    body { background: white; color: black; }
    .hero-overlay { background: rgba(0,0,0,0.5) !important; }
}
