/* Custom styles for Flaire Fashion and Fun */

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

/* Navbar transition states */
.nav-scrolled {
    background: rgba(245, 240, 232, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

.nav-scrolled .nav-logo-text {
    color: #047857 !important;
}

.nav-scrolled .nav-link {
    color: #064e3b !important;
}

.nav-scrolled .menu-line {
    background: #047857 !important;
}

.nav-scrolled .mobile-link {
    color: #064e3b !important;
}

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

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
}

/* Reveal animations - BELOW FOLD ONLY */
.reveal-inline {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-block {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delays */
.reveal-inline:nth-child(2),
.reveal-block:nth-child(2) { transition-delay: 0.1s; }

.reveal-inline:nth-child(3),
.reveal-block:nth-child(3) { transition-delay: 0.2s; }

.reveal-inline:nth-child(4),
.reveal-block:nth-child(4) { transition-delay: 0.3s; }

/* Hero content is always visible (above the fold) */
#hero h1,
#hero p,
#hero a,
#hero .inline-flex {
    opacity: 1 !important;
    transform: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-inline,
    .reveal-block {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .reveal-inline,
    .reveal-block {
        opacity: 1 !important;
        transform: none !important;
    }
    .group:hover .group-hover\:scale-110 {
        transform: none !important;
    }
    .group:hover .group-hover\:rotate-12 {
        transform: none !important;
    }
}

/* Selection color */
::selection {
    background: #047857;
    color: #F5F0E8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
    background: #047857;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}
