/* ============================================
   THE HAIR COLLECTIVE SALON — Custom Styles
   Bold Editorial | Terracotta & Sand
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #C4704B;
    color: #FDF8F3;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF0E6;
}
::-webkit-scrollbar-thumb {
    background: #D4A574;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C4704B;
}

/* --- Navigation --- */
.nav-logo-text {
    color: #1A1A1A;
}
.nav-logo-sub {
    color: #1A1A1A;
}

.navbar-scrolled .nav-logo-text,
.navbar-scrolled .nav-logo-sub {
    color: #1A1A1A;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu active state */
body.menu-open {
    overflow: hidden;
}

.menu-line {
    background-color: #1A1A1A;
}

body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 6px;
}

/* --- Section Labels & Titles --- */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C4704B;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #42362F;
}

/* --- Hero Animations --- */
.hero-tagline {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-headline-line {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-headline-line:nth-child(1) { animation-delay: 0.3s; }
.hero-headline-line:nth-child(2) { animation-delay: 0.45s; }
.hero-headline-line:nth-child(3) { animation-delay: 0.6s; }
.hero-headline-line:nth-child(4) { animation-delay: 0.75s; }

.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.9s;
    opacity: 0;
    transform: translateY(100%);
}

.hero-ctas {
    animation: fadeIn 0.8s ease forwards 1.1s;
    opacity: 0;
}

.hero-stats {
    animation: fadeIn 0.8s ease forwards 1.3s;
    opacity: 0;
}

.hero-image-main {
    animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: scale(0.9);
}

.hero-float-img {
    animation: fadeIn 0.8s ease forwards 1.5s;
    opacity: 0;
}

.hero-scroll {
    animation: fadeIn 0.8s ease forwards 1.8s;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Marquee --- */
.marquee-track {
    animation: marquee 30s linear infinite;
}

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

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C4704B, #E3BE9A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(66, 54, 47, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- Testimonials --- */
.testimonial-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(196, 112, 75, 0.12);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 6rem;
    color: #F5DDD3;
    line-height: 1;
    pointer-events: none;
}

/* --- Section Reveal Animations --- */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.service-card,
.testimonial-card,
.gallery-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.service-card.revealed,
.testimonial-card.revealed,
.gallery-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* About section reveals */
.about-img-main {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.about-img-main.revealed {
    opacity: 1;
    transform: translateX(0);
}

.about-img-float {
    transition: opacity 0.8s ease 0.3s;
}
.about-img-float.revealed {
    opacity: 1;
}

.about-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.about-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

.about-stats {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}
.about-stats.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Button Hover Effects --- */
button, a {
    transition: all 0.3s ease;
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #C4704B !important;
    box-shadow: 0 0 0 4px rgba(196, 112, 75, 0.1) !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-headline-line {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: 10px;
        right: 20px;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

@media (max-width: 640px) {
    .hero-stats {
        gap: 8px !important;
    }
    
    .hero-stats > div:first-child .font-serif {
        font-size: 2rem !important;
    }
}

/* --- 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;
    }
    
    .hero-tagline,
    .hero-headline-line,
    .hero-subtitle,
    .hero-ctas,
    .hero-stats,
    .hero-image-main,
    .hero-float-img,
    .hero-scroll {
        opacity: 1;
        transform: none;
    }
    
    .section-reveal,
    .service-card,
    .testimonial-card,
    .gallery-item,
    .about-img-main,
    .about-img-float,
    .about-content,
    .about-stats {
        opacity: 1;
        transform: none;
    }
    
    .marquee-track {
        animation: none;
    }
    
    .scroll-line {
        animation: none;
        opacity: 0.5;
    }
}
