/* Penny's Family Hair Care — Custom Styles */

/* Base overrides and enhancements */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f6f6f7;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(13, 14, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

nav.scrolled .menu-line {
    background: #e2e3e5;
}

/* Mobile menu active state */
#mobile-menu.active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.active .menu-line:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Custom select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b7e87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover zoom container */
.group img {
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover img {
    transform: scale(1.05);
}

/* Gold gradient divider */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a843, transparent);
}

/* Input autofill override for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #e2e3e5;
    -webkit-box-shadow: 0 0 0px 1000px #1a1b1e inset;
    transition: background-color 5000s ease-in-out 0s;
}
