/* Custom styles for Marcia Divas Boutique */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5e8;
}
::-webkit-scrollbar-thumb {
    background: #d4a068;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c44110;
}

/* Hero animations */
.hero-eyebrow {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.hero-headline {
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtext {
    animation: slideInLeft 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-ctas {
    animation: slideInLeft 0.8s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-scroll {
    animation: fadeIn 1s ease-out 1.2s forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section reveal animations */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Staggered reveal for grid items */
.section-reveal:nth-child(1) { transition-delay: 0.1s; }
.section-reveal:nth-child(2) { transition-delay: 0.2s; }
.section-reveal:nth-child(3) { transition-delay: 0.3s; }
.section-reveal:nth-child(4) { transition-delay: 0.4s; }

/* Navbar transitions */
.nav-logo-text {
    transition: color 0.5s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c44110;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animations */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* Mobile menu button animation */
.mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active .mobile-menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Image hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .section-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    .hero-scroll,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-trust-900 {
        background: #fff !important;
        color: #000 !important;
    }
}
