/* === Custom Styles for MCH for Hair === */

:root {
    --plum-950: #2b1221;
    --plum-900: #502941;
    --plum-800: #5f2e4d;
    --plum-700: #74355c;
    --plum-600: #8e4572;
    --plum-500: #a85f8e;
    --plum-200: #ebd6df;
    --plum-100: #f5ecee;
    --plum-50: #faf5f7;
    --amber-500: #f5a623;
    --amber-400: #ffc945;
}

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

/* Selection color */
::selection {
    background: rgba(245, 166, 35, 0.3);
    color: var(--plum-950);
}

/* === Navbar Scroll Effect === */
#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(43, 18, 33, 0.3);
}

/* === Mobile Menu Animation === */
.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

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

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

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

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* === Back to Top === */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* === Testimonial Cards === */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

/* === Form Focus States === */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 201, 69, 0.15);
}

/* === Print Styles === */
@media print {
    #navbar, #backToTop, .service-card, .gallery-item {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .gallery-item img {
        transition: none;
    }
}

/* === Wide Screens === */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
