/* Custom styles for Natural Essence Dominican */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0A08;
}
::-webkit-scrollbar-thumb {
    background: #3d2a10;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A84C;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(8, 6, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

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

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile menu close button */
#mobileMenu .mobile-link:nth-child(6) a {
    margin-top: 1rem;
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS doesn't run */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Hero entrance animations */
@media (prefers-reduced-motion: no-preference) {
    #hero-badge {
        animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
        opacity: 0;
    }
    #hero-title {
        animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
        opacity: 0;
    }
    #hero-subtitle {
        animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
        opacity: 0;
    }
    #hero-cta {
        animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
        opacity: 0;
    }
}

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

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

/* Gold shimmer effect on hover */
a[href="tel:+13015038716"].group:hover .group-hover\:text-dark-950,
.group:hover .group-hover\:scale-110 {
    transition: all 0.3s ease;
}

/* Service card hover glow */
.group:hover {
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.05);
}

/* Image lazy load transition */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

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

/* Testimonial card hover */
.reveal:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Gallery image overlay */
.group .opacity-0 {
    transition: opacity 0.5s ease;
}

/* Form input focus transitions */
input:focus,
select:focus,
textarea:focus {
    background-color: rgba(13, 10, 8, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav, #mobileMenu, .reveal { display: none; }
    body { background: white; color: black; }
}
