/* Custom styles for Auburn Luxury Barbershop */

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

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

::-webkit-scrollbar-track {
    background: #1a1b1e;
}

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

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

/* Selection color */
::selection {
    background: rgba(255, 107, 63, 0.3);
    color: #f6f6f7;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar styles */
.navbar-scrolled {
    background: rgba(15, 16, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(75, 78, 87, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1b1e inset !important;
    -webkit-text-fill-color: #f6f6f7 !important;
}

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

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

/* Print styles */
@media print {
    nav, .reveal, #contactForm, iframe {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .bg-coral-500 {
        background-color: LinkText !important;
    }
    
    .text-coral-400 {
        color: LinkText !important;
    }
}
