/* Custom styles for King of King Tavares Barber Shop */

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

/* Prevent flash of unstyled content on scroll reveals */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.animate {
    opacity: 0;
    transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.animate {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(15, 118, 110, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background-color: #ccfbf1;
    color: #0f766e;
}

/* Image hover effect */
.group img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

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

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

/* Form input transitions */
input,
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Card hover effects */
.group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure all text meets WCAG AA contrast */
/* Teal-600 (#0F766E) on white: ~5.2:1 ✓ */
/* Teal-700 (#0d5f59) on white: ~6.8:1 ✓ */
/* Slate-500 (#64748b) on white: ~4.6:1 ✓ */
/* Slate-600 (#475569) on white: ~5.9:1 ✓ */
/* White on Teal-600: ~5.2:1 ✓ */
/* Slate-400 (#94a3b8) on slate-900 (#0f172a): ~6.5:1 ✓ */
