/* ============================================
   PURE VANITY SALON — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #C46A4A;
    color: #FDF8F0;
}

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

#navbar.scrolled {
    background-color: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(26, 20, 16, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #1A1410;
}

#navbar.scrolled .nav-logo-text {
    color: #1A1410;
}

.nav-link {
    color: rgba(26, 20, 16, 0.7);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: #1A1410;
}

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

/* --- Mobile Menu --- */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

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

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

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

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

/* --- Service Cards --- */
.service-card {
    will-change: transform;
}

/* --- Scroll Reveal --- */
.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);
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(40px);
}

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

/* Stagger children */
.js-enabled .reveal:nth-child(1) { transition-delay: 0ms; }
.js-enabled .reveal:nth-child(2) { transition-delay: 100ms; }
.js-enabled .reveal:nth-child(3) { transition-delay: 200ms; }
.js-enabled .reveal:nth-child(4) { transition-delay: 300ms; }
.js-enabled .reveal:nth-child(5) { transition-delay: 400ms; }
.js-enabled .reveal:nth-child(6) { transition-delay: 500ms; }

/* --- Back to Top --- */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:not(.visible) {
    transform: translateY(10px);
}

.back-to-top:hover {
    box-shadow: 0 8px 25px rgba(196, 106, 74, 0.4);
}

/* --- Gallery Hover --- */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* --- Form Focus --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .marquee-track {
        animation: none;
    }
    
    .service-card,
    .group:hover .group-hover\:scale-110 {
        transition: none !important;
    }
    
    .back-to-top {
        transition: none !important;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
