/* Custom Styles for Mathis Hair Works */

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

body {
    font-family: 'Lato', sans-serif;
    color: #1e293b;
    background-color: #fafaf9; /* stone-50 */
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll Reveal Utility */
.reveal-on-scroll {
    opacity: 1; /* Default visible for accessibility/SEO */
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar Transition */
.nav-scrolled {
    background-color: rgba(17, 58, 55, 0.95); /* teal-900 with opacity */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 80px;
}

.nav-not-scrolled {
    background-color: transparent;
    height: 96px;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Image Aspect Ratios */
img {
    max-width: 100%;
    height: auto;
}

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

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

::-webkit-scrollbar-thumb {
    background: #134e4a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f3d38;
}
