/* Custom styles for More Than Just Kutz */

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

/* Ensure navbar doesn't overlap content */
#hero {
    padding-top: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fef7ed;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Selection color */
::selection {
    background: #fde68a;
    color: #102a43;
}

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

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(254, 247, 237, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays for grid items */
    .reveal:nth-child(1) { transition-delay: 0.05s; }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.15s; }
    .reveal:nth-child(4) { transition-delay: 0.2s; }
    .reveal:nth-child(5) { transition-delay: 0.25s; }
    .reveal:nth-child(6) { transition-delay: 0.3s; }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Menu lines animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    margin-right: 0;
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s 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; }

/* Back to top button */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

#backToTop:hover {
    transform: translateY(-2px);
}

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

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

/* Ensure all text meets contrast requirements */
.text-navy-900 { color: #102a43; }
.text-navy-800 { color: #243b53; }
.text-navy-700 { color: #334e68; }
.text-navy-600 { color: #486581; }
.text-navy-500 { color: #627d98; }
.text-navy-400 { color: #829ab1; }
.text-navy-300 { color: #9fb3c8; }
.text-navy-200 { color: #bcccdc; }
.text-navy-100 { color: #d9e2ec; }

.text-gold-900 { color: #422006; }
.text-gold-800 { color: #854d0e; }
.text-gold-700 { color: #a16207; }
.text-gold-600 { color: #ca8a04; }
.text-gold-500 { color: #eab308; }
.text-gold-400 { color: #facc15; }
.text-gold-300 { color: #fde047; }
.text-gold-200 { color: #fef08a; }
.text-gold-100 { color: #fef9c3; }

/* Print styles */
@media print {
    nav, #backToTop, #contactForm, button { display: none; }
    body { color: #000; background: #fff; }
    .reveal { opacity: 1; transform: none; }
}
