/* ==========================================================================
   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(100%, 1010px);
    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: 3.75rem 0 2rem;
}

.footer-banner__bottom-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.footer-banner__bottom-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    line-height: normal;
}

.footer-banner__cards {
    display: grid;
    grid-template-columns: minmax(0, 860fr) minmax(0, 408fr);
    gap: 0.75rem;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-banner__cards-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ---------- 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 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.625rem 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: linear-gradient(
        175.7deg,
        rgba(252, 122, 98, 0) 40.8%,
        #fc7a62 90.3%
    );
    pointer-events: none;
    z-index: 1;
}

/* Card overlay for readability */
.footer-banner__card--entry {
    min-height: 320px;
    background-color: rgba(0, 0, 0, 0.3);
}

.footer-banner__card--entry .footer-banner__card-label {
    left: 1.625rem;
    font-size: 3.75rem;
    letter-spacing: 0.2em;
}

.footer-banner__card--entry .footer-banner__card-title {
    right: 5.75rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.footer-banner__card--blue {
    min-height: 154px;
    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: 154px;
    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;
    width: 16.707px;
    height: 12.707px;
    font-size: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16.707' height='12.707' viewBox='0 0 16.707 12.707'%3E%3Cg transform='translate(-1015 -1541.646)'%3E%3Cpath d='M1013.576 1548h16' transform='translate(1.425)' fill='none' stroke='%23000' stroke-width='1'/%3E%3Cpath d='m1032 1533.638 6 6-6 6' transform='translate(-7 8.362)' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16.707' height='12.707' viewBox='0 0 16.707 12.707'%3E%3Cg transform='translate(-1015 -1541.646)'%3E%3Cpath d='M1013.576 1548h16' transform='translate(1.425)' fill='none' stroke='%23000' stroke-width='1'/%3E%3Cpath d='m1032 1533.638 6 6-6 6' transform='translate(-7 8.362)' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transition: transform 0.25s ease;
}

.footer-banner__card--entry .footer-banner__card-arrow {
    right: 0.625rem;
    bottom: 0.625rem;
    width: 55px;
    height: 55px;
    border-radius: 8px 0 0;
}

.footer-banner__card--small .footer-banner__card-arrow {
    width: 50px;
    height: 50px;
}

.footer-banner__card--blue .footer-banner__card-arrow {
    color: #4875be;
}

.footer-banner__card--teal .footer-banner__card-arrow {
    color: #35b8c4;
}

.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.75rem;
    letter-spacing: 0.2em;
    top: 1rem;
    left: 1.25rem;
    transform: none;
}

.footer-banner__card--small .footer-banner__card-title {
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    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;
    }

    .footer-banner__bottom-subtitle {
        padding-top: 3.5rem;
    }
}

@media (max-width: 768px) {
    .footer-banner__bottom {
        padding-right: 1.5rem;
        padding-bottom: 5.75rem;
        padding-left: 1.5rem;
    }

    .footer-banner__bottom-subtitle {
        display: block;
        padding: 3.5rem 0 1.75rem;
    }

    .footer-banner__bottom-text {
        font-size: clamp(1rem, 2.25vw, 1.125rem);
        line-height: 2;
    }

    .footer-banner__bottom-line {
        display: none;
    }

    .footer-banner__cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-banner__cards-right {
        gap: 1.25rem;
    }

    .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);
    }

    .footer-banner__card--entry .footer-banner__card-label {
        left: 1.25rem;
        font-size: clamp(2.5rem, 7vw, 3.75rem);
    }

    .footer-banner__card--entry .footer-banner__card-title {
        right: auto;
        left: 1.625rem;
        font-size: clamp(1.25rem, 4vw, 2rem);
    }

    .footer-banner__card--entry {
        min-height: 320px;
    }

    .footer-banner__card--blue,
    .footer-banner__card--teal {
        min-height: 140px;
    }

    .footer-banner__card--small .footer-banner__card-title {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
    }
}
