/* === Custom Styles for Barnes Beautiful Hair === */

/* Section label */
.section-label {
    letter-spacing: 0.25em;
}

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

/* Navbar transition states */
.nav-scrolled {
    background: rgba(251, 249, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(20, 35, 20, 0.08);
}

.nav-scrolled #nav-logo-text,
.nav-scrolled .nav-link {
    color: #1c321c !important;
}

.nav-scrolled #nav-logo-icon {
    color: #2d522d !important;
}

.nav-scrolled #nav-logo-sub {
    color: #618e61 !important;
}

/* Mobile menu active state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.menu-open {
    overflow: hidden;
}

/* Hamburger animation */
.menu-open #bar1 {
    transform: translateY(6px) rotate(45deg);
}

.menu-open #bar2 {
    opacity: 0;
}

.menu-open #bar3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 35, 20, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Scroll reveal base (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .gallery-item img {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 82, 45, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8aad8a;
}

/* Selection color */
::selection {
    background: #2d522d;
    color: #fbf9f5;
}

/* Print styles */
@media print {
    nav, .gallery, #contact, footer {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .service-card {
        break-inside: avoid;
    }
}
