/* ============================================
   Hair Republic MN — Custom Styles
   Classic & Elegant | Burgundy + Blush
   ============================================ */

:root {
    --burgundy-700: #8a2525;
    --burgundy-800: #711e1e;
    --burgundy-900: #5e1818;
    --blush-500: #ed8165;
    --blush-600: #e05f3e;
    --cream-50: #faf9f7;
    --cream-200: #eae4d8;
    --charcoal: #2C2C2C;
    --gold: #C9A96E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible by default,
   JS adds the animated state for enhanced users.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

/* ============================================
   Hero Animations
   Only for above-the-fold — these use overflow:hidden
   containers that reveal on load, not JS-dependent visibility
   ============================================ */
.hero-anim {
    transform: translateY(25px);
    opacity: 0;
    animation: heroReveal 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }
.hero-anim:nth-child(5) { animation-delay: 1.0s; }

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

/* ============================================
   Scroll Line Animation
   ============================================ */
@keyframes scrollLine {
    0% { top: -12px; }
    100% { top: 44px; }
}

.animate-scroll-line {
    animation: scrollLine 1.4s ease-in-out infinite;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(138, 37, 37, 0.08);
}

#navbar.scrolled .font-serif {
    color: var(--burgundy-700) !important;
}

#navbar.scrolled svg {
    color: var(--burgundy-700) !important;
}

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

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

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

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

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

/* ============================================
   Mobile Menu Button
   ============================================ */
#mobile-menu-btn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #bar2 {
    opacity: 0;
}

#mobile-menu-btn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ============================================
   Image Hover Effects
   ============================================ */
.group:hover img {
    transform: scale(1.05);
}

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--burgundy-700) !important;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background-color: var(--burgundy-700);
    color: white;
}

/* ============================================
   Smooth Image Loading
   ============================================ */
img {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

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

    html {
        scroll-behavior: auto;
    }

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