/* Custom styles for Grace Beauty & Threading Studio */

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

/* Selection color */
::selection {
    background-color: rgba(68, 122, 83, 0.2);
    color: #1c3123;
}

/* Navbar transition states */
nav.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(44, 77, 53, 0.08);
}

nav.scrolled .nav-logo {
    color: #1c3123;
}

nav.scrolled .nav-subtitle {
    color: #447a53;
}

nav.scrolled .nav-logo a {
    color: #1c3123;
}

/* Mobile menu active state */
.mobile-menu-open #menuIcon #bar1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-open #menuIcon #bar2 {
    opacity: 0;
}

.mobile-menu-open #menuIcon #bar3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 1;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    img {
        transition: none;
    }

    .group:hover img {
        transform: none;
    }
}

/* Staggered reveal delays */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }
.reveal:nth-child(5) { transition-delay: 400ms; }
.reveal:nth-child(6) { transition-delay: 500ms; }

/* Image hover zoom */
.group:hover img,
.reveal img {
    transition: transform 0.7s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fb898;
}

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

/* Print styles */
@media print {
    nav, #contactForm, .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .bg-forest-900, .bg-forest-950 {
        background: #fff !important;
        color: #000 !important;
    }
}
