/* ============================================
   JESSICA MARIE SALON STUDIO — CUSTOM STYLES
   ============================================ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: #a1223e;
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
    background: #d94f6e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c23251;
}

/* ---------- Blob animation ---------- */
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 50px) scale(1.05); }
}

.animate-blob {
    animation: blob 8s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ---------- Float animation ---------- */
@keyframes float {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-15px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animation-delay-1500 {
    animation-delay: 1.5s;
}

/* ---------- Marquee ---------- */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-text {
    flex-shrink: 0;
}

/* ---------- Scroll Reveal ---------- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.26s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.33s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
}

#mobile-menu.collapsed {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.expanded {
    max-height: 500px;
    opacity: 1;
}

.mobile-nav-link {
    transition: all 0.2s ease;
}

/* ---------- Header states ---------- */
#main-header.scrolled {
    background: rgba(255, 248, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(161, 34, 62, 0.08);
}

#main-header.scrolled .font-display,
#main-header.scrolled .font-body {
    color: #6e1c32;
}

#main-header.scrolled a:not([class*="bg-"]):not([class*="text-white"]) {
    color: #841f38;
}

/* ---------- Button focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #a1223e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Select dropdown ---------- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1223e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ---------- Print ---------- */
@media print {
    header, .marquee-track, #contact-form, .scroll-reveal { display: none; }
    body { background: white; color: black; }
    a { color: black; }
}
