/* Custom styles for Hermit Barber Shop */

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

/* Subtle fade-in for scroll sections (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible without JS */
@supports not (selector(&.is-visible)) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Custom focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6fa071;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: #c5dfc8;
    color: #1f3221;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 8px rgba(31, 50, 33, 0.08);
}

/* Hero image hover effect */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.02);
}

/* Subtle pattern overlay for dark sections */
.bg-pattern-dark::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: 24px 24px;
    pointer-events: none;
}
