/* Custom styles for Plunk's Barbershop */

:root {
    --font-playfair: 'Playfair Display', serif;
    --font-inter: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-inter);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-playfair {
    font-family: var(--font-playfair);
}

.font-inter {
    font-family: var(--font-inter);
}

/* Custom color tokens via Tailwind extension */
.bg-off-white {
    background-color: #f8f7f4;
}

.text-off-white {
    color: #f8f7f4;
}

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

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

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 12px rgba(40, 64, 43, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* Smooth image loading */
img {
    loading: lazy;
}

/* Selection color */
::selection {
    background-color: #3d6340;
    color: #f8f7f4;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4d7d50;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button ripple-like scale on active */
button:active,
a:active {
    transform: scale(0.98);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6fa071;
}
