/* ============================================
   Beauty By Renae — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #941a3c;
    color: #FDF8F5;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F5;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #941a3c;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — hidden state is
   visible by default; JS adds the animation.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    /* Stagger children */
    .service-card {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    }

    .service-card.animated {
        opacity: 0;
        transform: translateY(24px);
    }

    .service-card.animated.animated-done {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ============================================
   Header States
   ============================================ */
#site-header.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

#site-header.scrolled .font-serif {
    color: #7b1a38;
}

/* ============================================
   Mobile Menu Button Animation
   ============================================ */
.menu-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #2C2426;
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Service Card (no-reveal fallback)
   ============================================ */
.service-card {
    opacity: 1;
    transform: none;
}

/* ============================================
   Input Focus Ring (subtle burgundy)
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 26, 60, 0.1);
}

/* ============================================
   Smooth anchor offset for fixed header
   ============================================ */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   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;
    }
}
