/* Ivory Sage Salon — Custom Styles */

/* Base */
*, *::before, *::after { box-sizing: border-box; }

/* Selection */
::selection {
    background: rgba(201, 153, 26, 0.3);
    color: #0a1423;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a1423; }
::-webkit-scrollbar-thumb { background: #33538c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c9991a; }

/* Smooth focus */
*:focus-visible {
    outline: 2px solid rgba(201, 153, 26, 0.6);
    outline-offset: 2px;
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9991a;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
body.menu-open .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
}
body.menu-open .menu-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d070, #c9991a, #a37610);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover zoom */
img {
    max-width: 100%;
    height: auto;
}

/* 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; }
}

/* Print */
@media print {
    .hero-bg, #navbar, #menu-btn, #mobile-menu { display: none !important; }
    body { background: white; color: black; }
}
