/* HealthERP Custom Styles */

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* Alpine.js collapse transition */
[x-collapse] {
    overflow: hidden;
}

[x-collapse].collapsing {
    transition: height 0.2s ease-out;
}

/* Animated gradient for CTA backgrounds */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Pulse animation for live indicators */
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-live-pulse {
    animation: livePulse 2s ease-in-out infinite;
}

/* Focus visible styles for accessibility */
*:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to main content link (accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #16a34a;
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion preferences */
@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;
    }
}

/* Card hover effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* FAQ accordion smooth open/close */
.faq-answer {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.faq-answer.open {
    max-height: 500px;
    opacity: 1;
}

/* Trust badge glow effect */
.trust-glow {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.trust-glow:hover {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.25);
}

/* Testimonial card quote styling */
.testimonial-quote::before {
    content: '\201C';
    font-size: 4rem;
    line-height: 1;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    color: #dcfce7;
    font-family: Georgia, serif;
}

.dark .testimonial-quote::before {
    color: #14532d;
}

/* Step connector line (How It Works) */
.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #dcfce7);
}

/* Newsletter input focus glow */
.newsletter-input:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Print styles */
@media print {
    .no-print, header, footer, .scroll-to-top {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    a {
        text-decoration: underline;
        color: #000;
    }
    section {
        page-break-inside: avoid;
    }
}
