/* Custom styles for Evelyn's Unisex Hair Salon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5edd9;
}
::-webkit-scrollbar-thumb {
    background: #a0c192;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #78a366;
}

/* Selection color */
::selection {
    background: #c7dbbe;
    color: #111b0e;
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is available via media query gate */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .scroll-reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal[data-reveal],
    .scroll-reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Hero parallax-like subtle effect */
#hero {
    background-attachment: fixed;
}

@media (prefers-reduced-motion: reduce) {
    #hero {
        background-attachment: scroll;
    }
}

/* Mobile menu animation */
.mobile-link {
    opacity: 1;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(33, 52, 28, 0.08);
}

/* Button hover lift effect */
a:hover {
    transition: all 0.3s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #558244;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Form input focus */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(85, 130, 68, 0.15);
}

/* Print styles */
@media print {
    nav, #contactForm, #successMessage {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
