/* ========================================
   Bless Your Hair by Mindy — Custom Styles
   ======================================== */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Navigation states */
.nav-dark .nav-link {
    color: rgb(68, 86, 72);
}

.nav-dark .nav-link:hover {
    color: rgb(95, 150, 114);
}

.nav-dark .nav-light {
    color: rgba(255, 255, 255, 0.8);
}

.nav-dark .nav-dark {
    color: rgb(68, 86, 72);
}

.nav-light .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-light .nav-link:hover {
    color: white;
}

.nav-light .nav-light {
    color: rgba(255, 255, 255, 0.8);
}

.nav-light .nav-dark {
    color: rgb(68, 86, 72);
}

/* Hero Animations */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s ease forwards 0.3s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal 0.8s ease forwards 0.1s;
}

.hero-desc {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s ease forwards 0.5s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s ease forwards 0.7s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Base — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .about-image-wrapper,
    .about-content,
    .gallery-item,
    .contact-info,
    .contact-form-wrapper,
    .cta-label,
    .cta-title,
    .cta-desc,
    .cta-buttons {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Scroll reveal — applied by JS only */
.js-enabled .service-card,
.js-enabled .about-image-wrapper,
.js-enabled .about-content,
.js-enabled .gallery-item,
.js-enabled .contact-info,
.js-enabled .contact-form-wrapper,
.js-enabled .cta-label,
.js-enabled .cta-title,
.js-enabled .cta-desc,
.js-enabled .cta-buttons {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .service-card.revealed,
.js-enabled .about-image-wrapper.revealed,
.js-enabled .about-content.revealed,
.js-enabled .gallery-item.revealed,
.js-enabled .contact-info.revealed,
.js-enabled .contact-form-wrapper.revealed,
.js-enabled .cta-label.revealed,
.js-enabled .cta-title.revealed,
.js-enabled .cta-desc.revealed,
.js-enabled .cta-buttons.revealed {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/* Service card hover */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card .service-icon {
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Gallery hover */
.gallery-item {
    overflow: hidden;
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgb(95, 150, 114) !important;
}

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

::-webkit-scrollbar-track {
    background: rgb(250, 249, 246);
}

::-webkit-scrollbar-thumb {
    background: rgb(190, 212, 196);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(143, 184, 158);
}

/* Selection */
::selection {
    background: rgb(220, 231, 223);
    color: rgb(45, 90, 61);
}
