/**
 * Agency FAQ & Objection Buster Stylesheet - Reference Image Clone (Zero-Wonkiness)
 *
 * Design System Specifications:
 * - 100vh Viewport Section Layout with Clean Narrow Side Brand Gradients
 * - Wide Floating Rounded White Card Canvas (Matches Reference Image)
 * - 40% Blurry Emerald Ambient Glow Surging Upwards from Bottom of Card
 * - Signature Blinking Emerald Dot Eyebrow (Matches Website Design System)
 * - Constant Padding & Margin (Eliminates all jump, lag, and wonkiness)
 * - Ultra-Soft Pure CSS Grid GPU Expansion (60fps buttery smooth)
 * - STRICT ANTI-BLUE: Total suppression of theme button focus/hover colors
 * - Space Grotesk 700 Headings & Inter Body
 *
 * @package AgencyCore
 */

/* ── Section Wrapper (Luminous White Canvas with Dreamy Emerald Blurry Gradients) ── */
.faq-section.faq-reference-clone {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 24px !important;
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    overflow: hidden;
    box-sizing: border-box;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.faq-section.faq-reference-clone *,
.faq-section.faq-reference-clone *::before,
.faq-section.faq-reference-clone *::after {
    box-sizing: border-box;
}

/* ── Ambient Side Lighting Layers (Preserved Dreamy Blurry Color) ── */
.faq-ambient-side {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}

.faq-ambient-side--left {
    top: 20%;
    left: -100px;
    background: radial-gradient(circle, rgba(20, 184, 102, 0.35) 0%, rgba(16, 185, 129, 0.15) 55%, transparent 75%);
}

.faq-ambient-side--right {
    top: 25%;
    right: -100px;
    background: radial-gradient(circle, rgba(20, 184, 102, 0.30) 0%, rgba(5, 150, 105, 0.15) 55%, transparent 75%);
}

/* ── Central Canvas Wrapper ── */
.faq-canvas-wrapper {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ── Floating White Card Canvas (Elevated Pristine White Surface) ── */
.faq-card-canvas {
    position: relative;
    background: #FFFFFF;
    border-radius: 30px;
    padding: 64px 60px 100px;
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 65px -15px rgba(15, 23, 42, 0.06),
                0 0 40px -10px rgba(20, 184, 102, 0.10);
    overflow: hidden;
    isolation: isolate;
}

/* ── Blurry Emerald Gradient Surging Across Lower ~40% of the Card ── */
.faq-bottom-blur-gradient {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translate3d(-50%, 0, 0) !important;
    width: 115%;
    height: 560px;
    background: radial-gradient(ellipse 85% 75% at 50% 100%, 
                rgba(20, 184, 102, 0.52) 0%, 
                rgba(16, 185, 129, 0.35) 30%, 
                rgba(52, 211, 153, 0.18) 60%, 
                rgba(255, 255, 255, 0) 95%);
    filter: blur(75px);
    -webkit-filter: blur(75px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
    will-change: transform;
    contain: strict;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ── Card Header & Signature Blinking Dot Eyebrow ── */
.faq-card-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 52px;
    position: relative;
    z-index: 2;
}

.faq-eyebrow-container {
    margin-bottom: 18px;
}

.faq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(20, 184, 102, 0.08);
    border: 1px solid rgba(20, 184, 102, 0.25);
    color: #14B866;
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.faq-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #14B866;
    box-shadow: 0 0 8px rgba(20, 184, 102, 0.85);
    animation: faqPulse 2s infinite ease-in-out;
}

@keyframes faqPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.85);
    }
}

.faq-card-title {
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(34px, 4.2vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #090E1A;
    margin: 0 0 14px;
}

.faq-card-subtitle {
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15.5px;
    line-height: 1.62;
    color: #64748B;
    margin: 0 auto;
}

/* ── 2-Column Grid Layout ── */
/* ── 2-Column Grid Layout (Align Start isolates columns and prevents cross-stretching) ── */
.faq-2col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 52px;
    align-items: start !important;
    position: relative;
    z-index: 2;
}

.faq-grid-col {
    display: flex;
    flex-direction: column;
    align-self: flex-start !important;
}

/* ═════════════════════════════════════════════════════════════
   ACCORDION ITEMS: ZERO-WONKINESS CONSTANT PADDING & MARGIN
   ═════════════════════════════════════════════════════════════ */

/* Default Inactive Card Row (Constant 1.5px border and containment eliminate all layout jumping) */
.faq-item {
    position: relative;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 14px;
    background: #FFFFFF;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
    box-sizing: border-box;
    contain: layout style;
}

.faq-item:hover {
    border-color: #CBD5E1 !important;
}

/* Active Open Card: Only border-color and soft green aura change */
.faq-item.is-open {
    border: 1.5px solid #14B866 !important;
    border-color: #14B866 !important;
    box-shadow: 0 10px 24px -6px rgba(20, 184, 102, 0.12),
                0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
}

/* ── Trigger Row (Strict Anti-Blue Button Overrides) ── */
.faq-item-trigger,
.faq-item-trigger:hover,
.faq-item-trigger:focus,
.faq-item-trigger:active,
.faq-section .faq-item-trigger,
.faq-section .faq-item-trigger:hover,
.faq-section .faq-item-trigger:focus,
.faq-section .faq-item-trigger:active {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    text-align: left !important;
    user-select: none !important;
    gap: 16px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.faq-item-question {
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    line-height: 1.38 !important;
    letter-spacing: -0.015em !important;
    color: #0F172A !important;
    transition: color 0.2s ease !important;
    margin: 0 !important;
}

.faq-item-trigger:hover .faq-item-question {
    color: #14B866 !important;
}

.faq-item.is-open .faq-item-question {
    color: #0F172A !important;
}

/* ── Plus / Times Toggle Indicator ── */
.faq-item-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    will-change: transform;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease;
}

.faq-toggle-bar {
    position: absolute;
    background-color: #0F172A;
    border-radius: 2px;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease;
}

.faq-toggle-bar--h {
    width: 14px;
    height: 1.8px;
}

.faq-toggle-bar--v {
    width: 1.8px;
    height: 14px;
}

/* Active State: Rotates to Times (x) and Glows Emerald Green */
.faq-item.is-open .faq-item-toggle {
    transform: rotate(45deg);
    background-color: rgba(20, 184, 102, 0.1);
}

.faq-item.is-open .faq-toggle-bar {
    background-color: #14B866 !important;
}

.faq-item-trigger:hover .faq-toggle-bar {
    background-color: #14B866;
}

/* ── Accordion Content: Butter-Smooth GPU-Composited Height Expansion (Zero Lag) ── */
.faq-item-content {
    overflow: hidden !important;
    height: 0;
    opacity: 0;
    transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease !important;
    will-change: height, opacity !important;
    box-sizing: border-box !important;
    display: block !important;
    max-height: none !important;
}

.faq-item.is-open .faq-item-content {
    height: auto;
    opacity: 1;
}

.faq-item-inner {
    padding-top: 10px !important;
    padding-bottom: 2px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.faq-item-answer {
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.68 !important;
    color: #475569 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── "Didn't find your question? Ask us directly" Box ── */
.faq-inquiry-box {
    margin-top: 36px !important;
    padding: 14px 16px 0 16px !important;
    font-family: 'Helvetica', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 15px !important;
    color: #475569 !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

.faq-inquiry-prefix {
    color: #334155 !important;
    font-weight: 500 !important;
}

.faq-inquiry-anchor {
    color: #14B866 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    text-decoration-thickness: 1.5px !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
}

.faq-inquiry-anchor:hover {
    color: #0F9953 !important;
    opacity: 0.85 !important;
}

@media (max-width: 767px) {
    .faq-inquiry-box {
        margin-top: 28px !important;
        font-size: 14px !important;
        padding-top: 10px !important;
    }
}

/* ═════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .faq-section.faq-reference-clone {
        padding: 55px 20px !important;
        min-height: auto;
    }

    .faq-card-canvas {
        padding: 48px 36px 70px;
        border-radius: 24px;
    }

    .faq-2col-grid {
        gap: 0 36px;
    }
}

@media (max-width: 767px) {
    .faq-section.faq-reference-clone {
        padding: 48px 12px !important;
    }

    .faq-card-canvas {
        padding: 32px 16px 44px !important;
        border-radius: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .faq-card-header {
        margin-bottom: 32px;
    }

    .faq-2col-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-item {
        padding: 14px 16px;
    }

    .faq-item-question {
        font-size: 15.5px !important;
    }

    .faq-inquiry-box {
        margin-top: 20px;
        padding-left: 6px;
        margin-bottom: 20px;
    }
}