/*
 * Call to action above the footer (resources/views/blue/sections/prefooter-cta.blade.php)
 * Dark band: text and buttons on the left, a QR code card with two notes on the right.
 */

.prefooter-cta {
    --pfc-bg: #071c2b;
    --pfc-green: #11876a;
    --pfc-green-hover: #0e7259;
    --pfc-mint: #5fd3a8;

    position: relative;
    overflow: hidden;
    /* space to the page content above (it often ends with a button) */
    margin-top: 6rem;
    padding: 6rem 0;
    color: #fff;
    background:
        radial-gradient(700px 420px at 80% 50%, rgba(17, 135, 106, 0.38), transparent 62%),
        var(--pfc-bg);
}

/* the dark band sits directly on the footer */
.prefooter-cta ~ .layout-gap {
    display: none;
}

.prefooter-cta * {
    box-sizing: border-box;
}

.prefooter-cta .pfc-in {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
    align-items: center;
}

.prefooter-cta .pfc-eyebrow {
    display: inline-block;
    margin-bottom: 0.875rem;
    color: var(--pfc-mint);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

html body .prefooter-cta h2.pfc-title {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 2.4vw + 12px, 44px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.prefooter-cta .pfc-sub {
    margin: 0.875rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.125rem;
    line-height: 1.55;
}

.prefooter-cta .pfc-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.prefooter-cta .pfc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.375rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.prefooter-cta .pfc-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.prefooter-cta .pfc-primary {
    border: 1px solid var(--pfc-green);
    background-color: var(--pfc-green);
    color: #fff;
}

.prefooter-cta .pfc-primary:hover {
    border-color: var(--pfc-green-hover);
    background-color: var(--pfc-green-hover);
    color: #fff;
}

.prefooter-cta .pfc-ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background-color: transparent;
    color: #fff;
}

.prefooter-cta .pfc-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.prefooter-cta .pfc-btn:focus-visible {
    outline: 2px solid var(--pfc-mint);
    outline-offset: 2px;
}

/* QR code card with two notes */
.prefooter-cta .pfc-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
}

.prefooter-cta .pfc-qr {
    width: 220px;
    padding: 18px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    transform: rotate(-4deg);
}

.prefooter-cta .pfc-qr img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.prefooter-cta .pfc-qr span {
    display: block;
    margin-top: 0.75rem;
    color: #022335;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
}

.prefooter-cta .pfc-chip {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 2px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background-color: #0e2b3c;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.prefooter-cta .pfc-chip small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.prefooter-cta .pfc-chip b {
    color: #fff;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.prefooter-cta .pfc-chip-target b {
    font-size: 0.9375rem;
}

.prefooter-cta .pfc-chip em {
    color: var(--pfc-mint);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 600;
}

.prefooter-cta .pfc-chip-scans {
    top: 18px;
    right: 6%;
}

.prefooter-cta .pfc-chip-target {
    bottom: -4px;
    left: 0;
}

@media (max-width: 900px) {
    .prefooter-cta {
        margin-top: 4rem;
        padding: 4rem 0;
    }

    .prefooter-cta .pfc-in {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .prefooter-cta {
        margin-top: 3rem;
    }

    .prefooter-cta .pfc-sub {
        font-size: 1rem;
    }

    .prefooter-cta .pfc-visual {
        min-height: 300px;
    }

    .prefooter-cta .pfc-qr {
        width: 160px;
        padding: 14px;
    }

    .prefooter-cta .pfc-chip {
        padding: 0.625rem 0.75rem;
    }

    .prefooter-cta .pfc-chip b {
        font-size: 1.0625rem;
    }

    .prefooter-cta .pfc-chip-scans {
        top: 0;
        right: 0;
    }

    .prefooter-cta .pfc-chip-target {
        bottom: 0;
        left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .prefooter-cta .pfc-btn {
        transition: none;
    }
}
