/* ============================================
   Hair Plus — Custom Styles
   Bold editorial · Midnight blue + Mint
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(94, 196, 142, 0.3);
    color: #0e2138;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* --- Hero Animations --- */
@media (prefers-reduced-motion: no-preference) {
    .hero-tag {
        animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
    }
    
    .hero-headline {
        animation: slideInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
    }
    
    .hero-sub {
        animation: slideInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
    }
    
    .hero-cta {
        animation: slideInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
    }
    
    .hero-deco {
        animation: float 6s ease-in-out infinite;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* --- Scroll Indicator --- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* --- Navbar --- */
.nav-text {
    transition: color 0.3s ease;
}

.nav-subtext {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #5ec48e;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

/* --- Buttons --- */
button, a {
    cursor: pointer;
}

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

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #a3b8d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7696c2;
}

/* --- Image placeholder fallback --- */
img {
    background-color: #d0dae6;
}

/* --- Select styling --- */
select option {
    background-color: #f0f4f8;
    color: #0e2138;
}

/* --- Print styles --- */
@media print {
    nav, #contactForm, .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
