/* Custom styles for Shear Funk Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f0;
}
::-webkit-scrollbar-thumb {
    background: #d4940a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b87608;
}

/* Selection color */
::selection {
    background: rgba(212, 148, 10, 0.2);
    color: #102a43;
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Without JS or reduced motion, all content is visible by default */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll effect */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0cc75 0%, #d4940a 50%, #b87608 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(rgba(212, 148, 10, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu.open {
    max-height: 400px;
}

/* Mobile link hover */
.mobile-link {
    padding: 8px 0;
    border-bottom: 1px solid #f0f4f8;
}
.mobile-link:last-child {
    border-bottom: none;
}

/* Ensure form select has proper styling */
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='%23627d98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover zoom container */
.group img {
    will-change: transform;
}

/* Button focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #d4940a;
    outline-offset: 2px;
}

/* Loading state for form button */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
