/**
 * Footer Styles
 *
 * Migrated from wp_snippets:
 * - Snippet #42: "Footer styles" (site-css) — .footer-awards-section
 * - Snippet #44: "Child theme css codes" (site-css) — .footer__* BEM styles
 *
 * @since 2026-02-14
 */

/* ──────────────────────────────────────────
   Legacy: Awards Section (Snippet #42)
   ────────────────────────────────────────── */
.footer-awards-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}

.footer-awards-section .image a img {
    filter: grayscale(100%) brightness(0%) invert(100%);
}

/* ──────────────────────────────────────────
   Footer Base (from Snippet #44)
   ────────────────────────────────────────── */
.footer {
    background: #00788a;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

/* 1) Constrain & center the inner container explicitly */
.footer__inner.container,
.footer .container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 16px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover:not(.footer__social a) {
    text-decoration: underline;
}

.footer__social a:hover {
    text-decoration: none;
}

.footer__copyright .container {
    text-align: center;
    padding: 0 0 50px 0;
    background: #00788a;
    width: 100vw;
    color: #dfe1e7;
    font-size: 16px;
    line-height: 1.5;
}

/* ──────────────────────────────────────────
   Footer Grid
   ────────────────────────────────────────── */
.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 48px;
}

.footer h2.footer__hd {
    font-size: 18px;
    line-height: 1.5;
    color: #dfe1e7 !important;
    margin: 0 0 12px;
}

.footer__list {
    list-style: none;
    color: #dfe1e7 !important;
    margin: unset;
    font-size: 16px;
}

.footer__list li {
    margin: 8px 0;
    color: #dfe1e7;
    line-height: 150%;
}

/* ──────────────────────────────────────────
   Footer Badges
   ────────────────────────────────────────── */
.footer__badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 22px 0;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}

.footer__badge {
    width: 110px;
    height: 110px;
    background: transparent;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.footer__badge:hover {
    transform: translateY(-3px);
}

.footer__badge img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ──────────────────────────────────────────
   Footer Rating & Social
   ────────────────────────────────────────── */
.footer__rating {
    text-align: center;
    margin: 8px 0 18px 0;
    color: #dfe1e7;
    font-size: 16px;
    line-height: 1.5;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 18px;
    padding-top: 10px;
    padding-bottom: 32px;
}

.footer__social a {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
}

/* ──────────────────────────────────────────
   Footer Illustration & Copyright
   ────────────────────────────────────────── */
.footer__illustration {
    width: 100%;
    background: #334155 url(https://visa-indonesia.com/wp-content/uploads/footer-illustration.svg) no-repeat center top;
    background-size: cover;
    height: calc(100vw * 429 / 1440);
    min-height: 180px;
    max-height: 500px;
}

.footer__copyright {
    position: absolute;
    bottom: -70px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #a9c0de;
    font-size: 12px;
    background: #00788a;
}

@media screen and (min-width: 1920px) {
    .footer__copyright {
        bottom: inherit;
        padding-top: 56px;
    }
}

/* ──────────────────────────────────────────
   Responsive
   ────────────────────────────────────────── */

/* Tablet down */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .footer__badges {
        max-width: 420px;
    }
}

@media (max-width: 700px) {
    .footer .container {
        padding: 32px 16px;
    }

    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .footer__illustration {
        height: 160px;
    }
}

@media (max-width: 640px) {
    .footer__badges {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .footer__badges {
        flex-wrap: wrap;
        gap: 8px;
        max-width: 300px;
    }

    .footer__badge {
        width: 72px;
        height: 72px;
    }

    .footer__illustration {
        height: 140px;
    }
}

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