/* Custom styles for Jenny Beauty and Wig */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle gradient overlay for hero section */
#top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(10, 41, 22, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4fbf8;
}
::-webkit-scrollbar-thumb {
    background: #6fd08f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #45ba6f;
}

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

/* Selection color */
::selection {
    background: #ccefd5;
    color: #1b3268;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Service card hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Ensure all images have smooth rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent layout shift for aspect-ratio images */
.aspect-\[4\/5\],
.aspect-\[3\/4\],
.aspect-\[4\/3\],
.aspect-square {
    contain: layout;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    img:hover,
    .hover\:scale-105:hover {
        transform: none;
    }
}
