/* ==========================================================================
   INTERO FINAL CTA BLOCK — style.css
   ========================================================================== */

.intero-final-cta {
    position: relative;
    background: var(--color-dark-alt);
    padding: 100px 0 80px;
    overflow: hidden;
    text-align: center;
}

/* Logo gradient top border */
.intero-final-cta__border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-logo);
    z-index: 1;
}

/* Radial teal glow — centered */
.intero-final-cta__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(46,196,182,0.1) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* CSS grid line background */
.intero-final-cta__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46,196,182,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,196,182,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.intero-final-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.intero-final-cta__headline {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: var(--color-bg);
    line-height: var(--line-height-heading);
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

.intero-final-cta__sub {
    font-size: clamp(16px, 1.4vw, 18px);
    color: rgba(255,255,255,0.6);
    line-height: var(--line-height-base);
    margin: 0 0 48px;
}

/* CTA button wrapper */
.intero-final-cta__ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .intero-final-cta__ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .intero-final-cta__ctas .intero-btn {
        justify-content: center;
        width: 100%;
    }
}

/* CTA buttons */

.intero-final-cta__cta-phone {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: rgba(255,255,255,0.85) !important;
    border: 2px solid rgba(255,255,255,0.35);
    font-family: var(--font-primary); font-size: var(--font-size-sm);
    font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none; padding: 16px 32px; border-radius: var(--radius-sm);
    transition: all 0.25s ease; cursor: pointer; white-space: nowrap;
}
.intero-final-cta__cta-phone:hover {
    border-color: var(--color-secondary); color: var(--color-secondary) !important;
    box-shadow: 0 0 0 3px rgba(46,196,182,0.2), 0 0 20px rgba(46,196,182,0.25);
    transform: translateY(-2px);
}
.intero-final-cta__cta-phone svg { stroke: currentColor; width: 16px; height: 16px; fill: none; stroke-width: 2.5; transition: transform 0.2s; }
.intero-final-cta__cta-phone:hover svg { transform: translateX(3px); }

/* Trust badges */
.intero-final-cta__badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.intero-final-cta__badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary);
    border: 1px solid rgba(46,196,182,0.3);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .intero-final-cta { padding: 60px 0; }
    .intero-final-cta__actions { flex-direction: column; align-items: stretch; }
    .intero-final-cta__actions .intero-btn { justify-content: center; }
}
/* ============================================================================
   Override .prose typography rules when this block is rendered inside the
   article body (single.html now puts it inside <article class="prose">).
   .prose h2 / .prose p win against the block's own classes by specificity, so
   re-assert the navy-CTA colors here.
   ============================================================================ */
.prose .intero-final-cta__headline,
.intero-final-cta .intero-final-cta__headline {
    color: var(--color-bg) !important;
}
.prose .intero-final-cta__sub,
.intero-final-cta .intero-final-cta__sub {
    color: rgba(255, 255, 255, 0.7) !important;
}
.prose .intero-final-cta__sub p,
.intero-final-cta .intero-final-cta__sub p {
    color: inherit;
}

/* When rendered inside the blog article column (single.html), give the CTA
   breathing room from the last paragraph of body copy above it. */
.prose .intero-final-cta,
.prose section.intero-final-cta {
    margin-top: 64px;
}
