/* ============================================
   LUXX HEALTH - Custom Styles
   Complementary to Tailwind CSS
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Body smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade in up animation for scroll reveal */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger-children .fade-in-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in-up:nth-child(2) { transition-delay: 100ms; }
.stagger-children .fade-in-up:nth-child(3) { transition-delay: 200ms; }
.stagger-children .fade-in-up:nth-child(4) { transition-delay: 300ms; }
.stagger-children .fade-in-up:nth-child(5) { transition-delay: 400ms; }

/* ============================================
   HEADER
   ============================================ */

/* Header scrolled state */
#header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   HERO
   ============================================ */

/* Hero gradient animation */
@keyframes heroGlow {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

#hero .absolute.opacity-10 > div {
    animation: heroGlow 6s ease-in-out infinite;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

/* Product card hover effect */
.group:hover .product-cta {
    transform: scale(1.02);
}

/* Product image placeholder pulse */
@keyframes placeholderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.aspect-square .border-dashed {
    animation: placeholderPulse 3s ease-in-out infinite;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

/* FAQ rotation for open state */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: #2D7A4F;
    background-color: #f0fdf4;
}

/* FAQ content animation */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content.open {
    max-height: 500px;
}

/* ============================================
   CTA BUTTONS
   ============================================ */

/* Pulse animation for main CTAs */
@keyframes ctaPulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 122, 79, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(45, 122, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 122, 79, 0); }
}

.product-cta:hover {
    animation: ctaPulse 1.5s infinite;
}

/* ============================================
   SCROLL BAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2D7A4F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #256B43;
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background-color: #2D7A4F;
    color: white;
}

/* ============================================
   RESPONSIVE FIXES
   ============================================ */

/* Fix for mobile 100vh */
@supports (height: 100dvh) {
    .min-h-screen {
        min-height: 100dvh;
    }
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .product-cta:hover {
        animation: none;
    }

    #hero .absolute.opacity-10 > div {
        animation: none;
    }
}
