/* Creative Color & Hair by Lauri — Custom Styles */

/* Smooth scrolling is handled inline in HTML */

/* Prevent flash of unstyled content */
html {
    opacity: 1;
}

/* Ensure hero renders immediately */
.hero-grid {
    opacity: 1;
}

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(154, 38, 67, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Reduced motion */
@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;
    }
    
    .cta-pulse {
        animation: none;
    }
}

/* Print styles */
@media print {
    .navbar, .mobile-menu, #menuOverlay {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-grid {
        min-height: auto;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card {
        border: 1px solid ButtonText;
    }
    
    .cta-btn {
        border: 2px solid ButtonText;
    }
}

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

/* Selection color */
::selection {
    background-color: #9a2643;
    color: white;
}

/* Loading state for form */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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