/* ========================================
   HairStudio 924 — Custom Styles
   Clean Minimalist | Burgundy + Blush
======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #7f2137;
    color: #fff;
}

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(42, 37, 34, 0.06);
}

#navbar.scrolled .menu-line {
    background: #2a2522;
}

/* --- Mobile Menu --- */
.mobile-link {
    transition: opacity 0.3s ease;
}

.mobile-link:hover {
    opacity: 0.7;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Hero Animations --- */
.hero-subtitle {
    animation: fadeSlideUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fadeSlideUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-desc {
    animation: fadeSlideUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: fadeSlideUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.hero-image-wrapper {
    animation: fadeSlideLeft 1s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

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

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

/* --- CTA Buttons --- */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
}

.cta-primary:hover::after {
    height: 100%;
}

.cta-secondary {
    position: relative;
    overflow: hidden;
}

.cta-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: rgba(127, 33, 55, 0.05);
    transition: height 0.3s ease;
}

.cta-secondary:hover::after {
    height: 100%;
}

/* --- Section Labels --- */
.section-label {
    display: block;
}

.section-title {
    position: relative;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-icon {
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(127, 33, 55, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(127, 33, 55, 0.08);
}

/* --- Testimonials --- */
.testimonial-card {
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 50, 79, 0.3);
}

/* --- Contact Inputs --- */
.contact-input {
    border-radius: 0;
}

.contact-input:focus {
    border-width: 1.5px;
}

.contact-input::placeholder {
    color: rgba(42, 37, 34, 0.3);
}

/* --- Submit Button --- */
.submit-btn {
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title span {
        display: inline;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* --- Print --- */
@media print {
    #navbar, .cta-primary, .cta-secondary, .submit-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
