/**
 * Custom Style Extensions for B-Tax Advisors
 * Executive Chartered Accountants Design System
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@layer utilities {
    .glass-nav {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    }

    .glass-card {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(226, 232, 240, 0.9);
    }

    .gradient-hero {
        background: radial-gradient(120% 120% at 50% 0%, #f8fafc 0%, #f1f5f9 60%, #e2e8f0 100%);
    }

    .gradient-dark {
        background: radial-gradient(120% 120% at 50% 0%, #0f172a 0%, #020617 100%);
    }

    .gradient-text {
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .gradient-gold {
        background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Header & Navigation Fixes */
.nav-link {
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #2563eb;
    background-color: #f1f5f9;
}

/* Pulse Animations for CTAs */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

.pulse-primary {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseWa {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.pulse-whatsapp {
    animation: pulseWa 2s infinite;
}

/* Native Accessible FAQ Accordion */
details.faq-item {
    transition: all 0.25s ease-in-out;
}

details.faq-item summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary .faq-icon {
    transition: transform 0.25s ease;
}

details.faq-item[open] summary .faq-icon {
    transform: rotate(180deg);
}

details.faq-item[open] {
    border-color: #93c5fd;
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

/* Continuous Horizontal Review Carousel Animation */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.review-marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
}

.review-marquee-container::before,
.review-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4rem;
    z-index: 10;
    pointer-events: none;
}

.review-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.review-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.review-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marqueeScroll 45s linear infinite;
}

.review-track:hover {
    animation-play-state: paused;
}

/* Testimonial & Quote Cards */
.testimonial-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
    border-color: #93c5fd;
}

/* Mobile Sticky Conversion Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    z-index: 40;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
    .mobile-sticky-bar {
        display: none !important;
    }
}
