/* Custom styles for Charm salon website */

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(173, 48, 27, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Hero animations - above the fold, no hidden state */
.hero-eyebrow {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-subtext {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations - below the fold only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Default visible state for all reveal elements */
.reveal-section .reveal {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Mobile nav links */
.mobile-nav-link {
    opacity: 1;
}

/* Service card stagger */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Image hover effects */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Selection color */
::selection {
    background: rgba(229, 85, 51, 0.2);
    color: inherit;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .reveal-section .reveal,
    .hero-eyebrow,
    .hero-headline,
    .hero-subtext,
    .hero-ctas,
    .service-card,
    .rounded-2xl.overflow-hidden img {
        animation: none;
        transition: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf9ee;
}
::-webkit-scrollbar-thumb {
    background: #e55533;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d13f22;
}
