/* Custom styles for Major Image Hair Lounge */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar transitions */
.nav-text {
    color: #1a3a5c;
}

header.scrolled .nav-text {
    color: #1a3a5c;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 58, 92, 0.08);
}

/* Mobile menu */
.mobile-link {
    position: relative;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #059669;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    transition: width 0.2s ease;
}

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state for scroll-reveal elements — always visible */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Hero text glow */
h1 em {
    text-shadow: 0 0 40px rgba(74, 222, 128, 0.3);
}

/* Button hover effects */
a[href^="tel:"],
a[href^="mailto:"] {
    text-decoration: none;
}

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

/* Subtle pattern overlay for dark sections */
section.bg-midnight-700::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f4f8;
}

::-webkit-scrollbar-thumb {
    background: #a3b8d6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7695c4;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery hover */
.rounded-2xl.overflow-hidden {
    overflow: hidden;
}

.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s ease;
}

/* Print styles */
@media print {
    header, #mobileMenu, button {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
    }
}
