/* ─── Custom Styles for Rockin H Hair Salon ─── */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* ─── Navbar transition ─── */
#navbar.scrolled {
    background: rgba(10, 10, 12, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ─── Mobile menu animations ─── */
#mobileNav.open {
    opacity: 1;
    pointer-events: all;
}

#mobileNav.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileNav.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileNav.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileNav.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileNav.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileNav.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* ─── Service card hover effects ─── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E84F35, #FF8F7A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ─── Geometric accent decorations ─── */
.geo-accent {
    position: absolute;
    pointer-events: none;
}

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

::-webkit-scrollbar-track {
    background: #131316;
}

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

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

/* ─── Select dropdown styling ─── */
select option {
    background: #1C1C1F;
    color: #F5F5F7;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }
    .service-card::before {
        display: none;
    }
}

/* ─── Mobile responsive ─── */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}
