/* ==========================================================================
   FOOTER — Pre-footer CTA + Dark footer with 5-column layout
   ========================================================================== */

/* ── Pre-footer CTA ────────────────────────────────────────────────────── */
.pre-footer-cta {
    padding: clamp(40px, 6vw, 80px) var(--gutter);
    background: var(--clr-footer-bg);
}

.cta-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1c78a5 0%, #27a9e9 50%, #52baed 100%);
    overflow: hidden;
}

/* Decorative grid pattern */
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Soft radial glow center */
.cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255,255,255,.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card__inner {
    position: relative;
    z-index: 1;
}

.cta-card .badge--white {
    margin-bottom: 24px;
}

.cta-card h2 {
    font-size: clamp(28px, 4.5vw, 50px);
    font-weight: var(--fw-extrabold);
    color: var(--clr-white);
    margin-bottom: 16px;
    line-height: 1.12;
}

.cta-card p {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(255,255,255,.85);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ── Main footer ───────────────────────────────────────────────────────── */
.site-footer {
    background: var(--clr-footer-bg);
    color: rgba(255,255,255,.75);
    padding-bottom: 0;
}

.footer-top {
    padding: 64px var(--gutter) 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.6fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}

/* Col 1 — brand */
.footer-brand {}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}
.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-tagline {
    font-size: .875rem;
    line-height: 1.75;
    color: rgba(255,255,255,.55);
    max-width: 280px;
}

/* Col 2–3–5 — link columns */
.footer-col h4 {
    font-size: .8125rem;
    font-weight: var(--fw-semibold);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--clr-white);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: .875rem;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
.footer-col ul li a:hover { color: var(--clr-white); }

/* Col 4 — contact information */
.footer-contact h4 {
    font-size: .8125rem;
    font-weight: var(--fw-semibold);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--clr-white);
    margin-bottom: 20px;
}

.footer-contact-block {
    margin-bottom: 24px;
}
.footer-contact-block:last-child { margin-bottom: 0; }

.footer-contact-block strong {
    display: block;
    font-size: .8125rem;
    font-weight: var(--fw-semibold);
    color: var(--clr-white);
    margin-bottom: 8px;
}

.footer-contact-block p,
.footer-contact-block a {
    font-size: .8125rem;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    text-decoration: none;
    display: block;
    transition: color var(--duration) var(--ease);
}
.footer-contact-block a:hover { color: var(--clr-p300); }

/* ── Footer bottom bar ─────────────────────────────────────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px var(--gutter);
    text-align: center;
}

.footer-bottom p {
    font-size: .8125rem;
    color: rgba(255,255,255,.35);
    margin: 0;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-contact { grid-column: 1 / 3; }
}

@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-col:last-child { grid-column: 1 / -1; }

    .cta-card {
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
