/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* SITE FOOTER */

.site-footer {
    background: var(--white);
    color: var(--blue-dk);
}

.site-footer a {
    color: inherit;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* TOP: brand + nav + social */

.site-footer__top {
    padding: 84px 0;
    background: var(--white);
}

.site-footer__top .container {
    display: grid;
    grid-template-columns: minmax(280px, auto) 1fr auto;
    gap: 20px;
    align-items: center;
}

/* brand */

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer__logo {
    width: 83px;
    height: auto;
}

.site-footer__name {
    margin: 0;
    color: var(--blue-dk);
}

/* nav */

.site-footer__nav {
    align-self: start; /* tops line up with the Follow Us column; the brand stays centered via the container */
    margin-left: 60px;
    margin-right: 20px;
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    gap: 30px 50px;
}

.site-footer__menu .menu-item {
    line-height: 1;
}

.site-footer__menu .menu-item a {
    font-family: "Cachet";
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--blue-dk);
}

.site-footer__menu .menu-item a:hover {
    color: var(--purple-dk);
}

/* social */

.site-footer__social {
    align-self: start;
    min-width: 0; /* lets the grid track shrink below the app-store badges' content width instead of overflowing */
}

.site-footer__social-label {
    margin: 0 0 12px;
    color: var(--blue-dk);
}

.site-footer__social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer a.site-footer__social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 50%;
    background: var(--blue-dk);
    color: var(--white);
    transition: background 0.2s ease;
}

.site-footer a.site-footer__social-link:hover {
    background: var(--purple-dk);
    color: var(--white);
}

/* app — download badges, folded into the social column */

.site-footer__social-app {
    margin-top: 20px;
}

.site-footer__social-app-label {
    margin: 0 0 12px;
    color: var(--blue-dk);
}

.site-footer__social-app-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer__social-app-badge {
    display: inline-block;
}

.site-footer__social-app-badge-img {
    height: 48px;
    width: auto;
    display: block;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* APP BANNER */

.site-footer__app {
    padding: 35px 0;
    margin: 16px;
    margin-bottom: 24px;
    background: var(--blue-background-gradient);
    color: var(--white);
    border-radius: 12px;
}

.site-footer__app .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.site-footer__app-title {
    margin: 0 0 6px;
}

.site-footer__app-subtitle {
    margin: 0;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 0;
}

.site-footer__app-stores {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.site-footer__app-badge {
    display: inline-block;
}

.site-footer__app-badge img {
    height: 48px;
    width: auto;
    display: block;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* BOTTOM BAR */

.site-footer__bottom {
    padding: 24px 0;
    background: var(--blue-dk);
    color: var(--white);
}

.site-footer__bottom a {
    color: var(--white);
}

.site-footer__bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

.site-footer__bottom .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

/* pillars */

.site-footer__pillars {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__pillars li {
    font-family: "Cachet";
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* legal */

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.site-footer__legal,
.site-footer__legal a {
    font-family: "Verdana";
    font-weight: 300;
    font-size: 16px;
    letter-spacing: -0.4px;
    line-height: 20px;
}

.site-footer__lang {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

/* accreditation */

/* max-width keeps the logo the same size whatever file is picked in Site Settings */
.site-footer__accreditation {
    justify-self: end;
    min-height: 48px;
    min-width: 160px;
    max-width: 200px;
}

.site-footer__accreditation-link {
    display: block;
}

.site-footer__accreditation img {
    width: 100%;
    height: auto;
}

/*gtranslate*/

.site-footer .site-footer__lang {
    position: relative;
}

.site-footer .site-footer__lang .gt_switcher .gt_selected {
    border-radius: var(--box-border-radius-sm);
}
.site-footer .site-footer__lang .gt_switcher .gt_selected a {
    width: calc(100% - 26px);

    padding: 10px 12px;
    border-radius: var(--box-border-radius-sm);

    font-weight: 400;
}

.site-footer .site-footer__lang .gtranslate_wrapper .gt_option {
    position: absolute !important;
    top: -200px;
    width: 150px;

    padding: 10px;
    border: none !important;
    border-radius: var(--box-border-radius-sm);
}
.site-footer .site-footer__lang .gtranslate_wrapper .gt_option a {
    border-radius: var(--box-border-radius-sm);
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* TRACKING PIXELS */

/* GTM appends Custom HTML tags to the end of <body>, after #page, so a pixel <img> without its own
   display:none sat under the footer as a broken-image icon. Hidden images still load, so the hit still counts. */
body > img {
    display: none;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* RESPONSIVE */

@media (max-width: 992px) {
    .site-footer__top {
        padding: 48px 0;
    }

    .site-footer__top .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .site-footer__brand {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__nav {
        margin-left: 0;
        margin-right: 0;
    }

    .site-footer__menu {
        gap: 16px 40px;
    }

    .site-footer__app .container {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__bottom .container {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .site-footer__pillars,
    .site-footer__accreditation {
        justify-self: center;
    }
}

@media (max-width: 576px) {
    .site-footer__top {
        padding: 32px 0;
    }

    .site-footer__menu {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: none;
        gap: 25px;

        text-align: center;
    }

    .site-footer__app-badge img {
        height: 40px;
    }

    .site-footer__social-label {
        text-align: center;
        margin-bottom: 20px;
    }

    .site-footer__social-list {
        justify-content: center;
    }

    .site-footer__social-app-label {
        text-align: center;
    }

    .site-footer__social-app-stores {
        justify-content: center;
    }

    li.site-footer__social-item {
        flex: 0 0 25%;

        display: flex;
        justify-content: center;
    }
    .site-footer a.site-footer__social-link {
        width: 60px;
        height: 60px;

        font-size: 32px;
    }
}
