/* Sixty One Salon & Beauty Boutique — Custom Styles */

/* === Base & Typography === */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(219, 181, 82, 0.3);
    color: #fdfbf7;
}

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

::-webkit-scrollbar-track {
    background: #0a0806;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 184, 122, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 184, 122, 0.5);
}

/* === Navigation === */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4b87a, #c79d3e);
    transition: width 0.3s ease;
}

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

/* === Navbar Scroll State === */
#navbar.scrolled {
    background: rgba(10, 8, 6, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 184, 122, 0.1);
}

#navbar.scrolled .nav-link {
    color: rgba(253, 251, 247, 0.7);
}

/* === Mobile Menu === */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

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

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

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

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 184, 122, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card img,
    .gallery-grid img {
        transition: none;
    }
}

/* === Form Styles === */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(212, 184, 122, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: rgba(212, 184, 122, 0.2);
}

/* === Button Hover Effects === */
button[type="submit"]:hover {
    letter-spacing: 0.22em;
}

button[type="submit"] {
    transition: letter-spacing 0.3s ease;
}

/* === Gold Gradient Text === */
.gold-gradient {
    background: linear-gradient(135deg, #d4b87a 0%, #c79d3e 50%, #e4c87a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Decorative Divider === */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 184, 122, 0.3) 50%, transparent 100%);
}

/* === Image Hover === */
.service-card img,
.gallery-grid img {
    will-change: transform;
}

/* === Loading State for Form === */
button[type="submit"].loading {
    opacity: 0.7;
    pointer-events: none;
}

/* === Active Nav Link === */
.nav-link.active {
    color: #d4b87a !important;
}

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

/* === Smooth Image Loading === */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* === Mobile Optimizations === */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 0;
    }
}

/* === Print Styles === */
@media print {
    header, footer, #contactForm, #successMessage {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
