/* Custom styles for Major League Barbershop */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Custom selection color */
::selection {
    background-color: #d4a853;
    color: #0a1128;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
aspect-ratio {
    overflow: hidden;
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    #mobile-overlay {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}

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

/* 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;
    }
}

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

::-webkit-scrollbar-track {
    background: #0a1128;
}

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

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

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 17, 40, 0.15);
}

/* Gold underline animation */
.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a853;
    transition: width 0.3s ease;
}

.gold-underline:hover::after {
    width: 100%;
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Gallery image hover */
.aspect-square img {
    transition: transform 0.5s ease;
}

.aspect-square:hover img {
    transform: scale(1.05);
}

/* Navigation background on scroll */
nav.scrolled {
    background-color: rgba(10, 17, 40, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #d4a853 !important;
}

/* Button hover effects */
.bg-gold-400:hover {
    background-color: #c49b3e !important;
}

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