/* ===== Custom Styles for Adorn Salon & Boutique ===== */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background-color: #2d4a20;
    color: #FAFAF7;
}

/* ===== Hero Animations ===== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }
.hero-anim:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Scroll Reveal Animations ===== */
.section-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.grid > .section-anim:nth-child(1) { transition-delay: 0.05s; }
.grid > .section-anim:nth-child(2) { transition-delay: 0.1s; }
.grid > .section-anim:nth-child(3) { transition-delay: 0.15s; }
.grid > .section-anim:nth-child(4) { transition-delay: 0.2s; }
.grid > .section-anim:nth-child(5) { transition-delay: 0.25s; }
.grid > .section-anim:nth-child(6) { transition-delay: 0.3s; }

/* ===== Navbar ===== */
#navbar {
    background-color: rgba(250, 250, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(45, 74, 32, 0.1);
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: mobileLinkIn 0.4s ease forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes mobileLinkIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger */
.menu-btn.active .menu-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .menu-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ===== Smooth image loading ===== */
img {
    background-color: #e3edde;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c5dbb8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9abc88;
}

/* ===== Form focus states ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #4d7c36;
}

/* ===== Print styles ===== */
@media print {
    nav, #contact-form, .section-anim {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        color: #1a1a1a;
        background: white;
    }
}
