/* ==========================================================================
   Footer CTA Banner Section
   ========================================================================== */

.footer-banner {
    position: relative;
    overflow-x: clip;
}

/* ---------- Top half ---------- */

.footer-banner__top {
    position: relative;
    background-color: #fff;
    padding: 8rem 4rem 0;
    overflow: visible;
    text-align: center;
}

/* Decorative photos */
.footer-banner__photos {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.footer-banner__photo {
    position: absolute;
    z-index: 3;
}

.footer-banner__photo img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-banner__photo--left {
    top: -5.5rem;
    left: -3rem;
    width: min(31vw, 420px);
}

.footer-banner__photo--right {
    bottom: -3rem;
    right: -3rem;
    width: min(31vw, 420px);
}

.footer-banner__plus {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(42vw, 560px);
    margin: 0 auto;
    transform: translateY(-5rem);
}

.footer-banner__plus img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-banner__tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 1.5rem;
    line-height: 1.4;
    background: linear-gradient(to left, #f5a962, #fc7a62, #e84a3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-banner__subtitle {
    font-size: 0.875rem;
    color: #555;
    margin: 0;
    line-height: 1.8;
}

/* U-shape arc */
.footer-banner__arc {
    position: relative;
    line-height: 0;
    margin: 0 -4rem;
    z-index: 0;
    top: -1px;
}

.footer-banner__arc svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ---------- Bottom half ---------- */

.footer-banner__bottom {
    position: relative;
    z-index: 1;
    background-color: #fc7a62;
    margin-top: -2px;
    padding: 0 4rem 5rem;
}

/* Subtitle with line */
.footer-banner__bottom-subtitle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
}

.footer-banner__bottom-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.footer-banner__bottom-text {
    font-size: 0.8125rem;
    color: #fff;
    margin: 0;
    line-height: 1.6;
}

.footer-banner__cards {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-banner__cards-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-evenly;
}

/* ---------- Card base ---------- */

.footer-banner__card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease;
}

.footer-banner__card--entry:hover .footer-banner__card-image::before,
.footer-banner__card--entry:focus-within .footer-banner__card-image::before {
    opacity: 1;
}

.footer-banner__card--entry:hover .footer-banner__card-image img,
.footer-banner__card--entry:focus-within .footer-banner__card-image img {
    transform: scale(1.08);
}

/* Card image with white border */
.footer-banner__card-image {
    position: absolute;
    inset: 0;
    border: 0.5rem solid #fff;
    border-radius: 8px;
    overflow: hidden;
}

.footer-banner__card-image img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.footer-banner__card--entry .footer-banner__card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 100% 100%,
        rgba(252, 122, 98, 0.55) 0%,
        rgba(252, 122, 98, 0.3) 26%,
        transparent 58%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Card overlay for readability */
.footer-banner__card--entry {
    min-height: 280px;
    background-color: rgba(0, 0, 0, 0.3);
}

.footer-banner__card--blue {
    min-height: 130px;
    background-color: #4875be;
}

.footer-banner__card--blue .footer-banner__card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(72, 117, 190, 0.85);
    z-index: 0;
    transition: background-color 0.3s ease;
}

.footer-banner__card--teal {
    min-height: 130px;
    background-color: #36B7C4;
}

.footer-banner__card--teal .footer-banner__card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(74, 156, 168, 0.85);
    z-index: 0;
    transition: background-color 0.3s ease;
}

.footer-banner__card--blue:hover .footer-banner__card-image::after,
.footer-banner__card--blue:focus-within .footer-banner__card-image::after {
    background-color: #79A0E0;
}

.footer-banner__card--teal:hover .footer-banner__card-image::after,
.footer-banner__card--teal:focus-within .footer-banner__card-image::after {
    background-color: #82CED6;
}

/* Card label */
.footer-banner__card-label {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    z-index: 1;
}

/* Card title */
.footer-banner__card-title {
    position: absolute;
    bottom: 1.25rem;
    right: 60px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    z-index: 1;
}

/* Arrow button: white square notch in bottom-right corner */
.footer-banner__card-arrow {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 8px 0 8px 0;
    font-size: 1.125rem;
    color: #fc7a62;
    z-index: 1;
}

.footer-banner__card-arrow-icon {
    display: inline-block;
    transition: transform 0.25s ease;
}

.footer-banner__card:hover .footer-banner__card-arrow-icon,
.footer-banner__card:focus-within .footer-banner__card-arrow-icon {
    transform: translateX(-4px);
}

/* ---------- Small cards label positioning ---------- */

.footer-banner__card--small .footer-banner__card-label {
    font-size: 0.7rem;
    top: 1rem;
    left: 1.25rem;
    transform: none;
}

.footer-banner__card--small .footer-banner__card-title {
    font-size: 1rem;
    bottom: auto;
    right: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .footer-banner__top {
        padding: 4rem 2rem 0;
    }

    .footer-banner__photo--left {
        top: -3.5rem;
        left: -2rem;
        width: min(32vw, 300px);
    }

    .footer-banner__photo--right {
        bottom: -2rem;
        right: -1.5rem;
        width: min(32vw, 300px);
    }

    .footer-banner__plus {
        width: min(48vw, 420px);
    }

    .footer-banner__arc {
        top: -1px;
        margin: 0 -2rem;
    }

    .footer-banner__bottom {
        padding: 0 2rem 4rem;
    }
}

@media (max-width: 768px) {
    .footer-banner__cards {
        grid-template-columns: 1fr;
    }

    .footer-banner__photos {
        opacity: 0.45;
    }

    .footer-banner__photo--left {
        top: -1rem;
        left: -1rem;
        width: min(42vw, 180px);
    }

    .footer-banner__photo--right {
        bottom: -0.5rem;
        right: -1rem;
        width: min(42vw, 180px);
    }

    .footer-banner__plus {
        width: min(62vw, 260px);
    }
}
