/* Scoped to the public footer; respects the site's configured theme colors. */
.site-footer {
    background-image: linear-gradient(135deg, color-mix(in srgb, var(--footer-link-color, #2563eb) 3%, transparent), transparent 55%);
}
.site-footer .footer-main { padding-block: 56px; }
.site-footer .footer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
}
.site-footer .footer-layout > * { min-width: 0; }
.site-footer .footer-brand { max-width: 360px; }
.site-footer .footer-brand > div:first-child { margin-bottom: 24px; }
.site-footer .footer-brand img { height: 76px; width: auto; max-width: 100%; object-fit: contain; }
.site-footer .footer-brand p { line-height: 1.8; }
.site-footer .footer-layout p,
.site-footer .footer-layout li a,
.site-footer .footer-contact-link {
    color: color-mix(in srgb, var(--footer-text-color) 70%, var(--footer-heading-color) 30%) !important;
}
.site-footer .footer-layout h4 {
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.5;
}
.site-footer .footer-menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.site-footer .footer-menu-grid ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.site-footer .footer-menu-grid li { margin: 0; padding: 0; line-height: 22px; }
.site-footer .footer-menu-grid a { line-height: 22px; padding-bottom: 0; }
.site-footer .footer-menu-grid h4 { margin-bottom: 18px; }
.site-footer .footer-support {
    padding: 14px;
    border-radius: 16px;
    border-left-color: var(--footer-border-color) !important;
    box-shadow: 0 4px 16px rgb(15 23 42 / 3%);
    flex-wrap: wrap;
}
.site-footer .footer-support > div:first-child { flex-shrink: 1; min-width: 0; }
.site-footer .footer-support p { line-height: 1.5; }
.site-footer .footer-support > div:last-child { margin-inline-start: auto; }
.site-footer .footer-contact-details { display: grid; gap: 8px; }
.site-footer .footer-contact-details > div { margin-top: 0; }
.site-footer .footer-contact-details > div.flex { gap: 12px; }
.site-footer .footer-contact-link > .material-symbols-outlined {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 17px;
    color: var(--footer-link-color, #2563eb);
    background: color-mix(in srgb, var(--footer-link-color, #2563eb) 7%, var(--footer-background));
}
.site-footer .footer-contact-details > div > p { padding-top: 3px; }
.site-footer .footer-contact a { overflow-wrap: anywhere; }
.site-footer .footer-contact-details > .border-t > .flex { flex-wrap: wrap; }
.site-footer .footer-contact a.rounded-full { border-radius: 12px; }
.site-footer a:focus-visible { outline: 2px solid var(--footer-link-color, #2563eb); outline-offset: 4px; border-radius: 4px; }
.site-footer .footer-layout a:hover { color: var(--footer-link-color, #2563eb) !important; }
.site-footer .footer-layout a.rounded-full:hover { color: white !important; }
@media (min-width: 640px) {
    .site-footer .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
    .site-footer .footer-brand { grid-column: 1 / -1; max-width: 400px; }
}
@media (min-width: 1024px) {
    .site-footer .footer-main { padding-block: 64px 56px; }
    .site-footer .footer-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(36px, 4vw, 64px); }
    .site-footer .footer-brand { grid-column: auto; max-width: 360px; }
    .site-footer .footer-navigation { padding-inline-start: 12px; }
}
@media (max-width: 639px) {
    .site-footer .footer-main { padding-block: 36px; }
    .site-footer .footer-brand { max-width: none; }
    .site-footer .footer-contact { border-top: 1px solid var(--footer-border-color); padding-top: 28px; }
}

.site-footer .footer-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
    border-radius: 9px;
    transition: color .2s ease, background-color .2s ease;
}
.site-footer .footer-contact-link > .material-symbols-outlined { flex-shrink: 0; }
.site-footer .footer-contact-link > span:last-child { min-width: 0; }
.site-footer .footer-address { align-items: flex-start; padding-block: 3px; }
.site-footer .footer-address > span:last-child { padding-top: 3px; }
.site-footer .footer-contact-link:hover { background-color: color-mix(in srgb, var(--footer-link-color, #2563eb) 4%, transparent); }

.site-footer .footer-description { text-align: justify; text-align-last: start; }

@media (max-width: 767px) {
    .site-footer .footer-brand > div:first-child > div:first-child > a {
        justify-content: center;
    }
}

/* Mobile footer replacement with a raised central flight shortcut. */
.mobile-bottom-nav { display: none; }
@media (max-width: 767px) {
    body:has(.mobile-bottom-nav) { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
    body:has(.mobile-bottom-nav) .site-footer { display: none; }
    .mobile-bottom-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 35;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        direction: ltr;
        min-height: 56px;
        padding: 3px 12px calc(3px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #e6edf4;
        border-radius: 18px 18px 0 0;
        background: #fff;
        box-shadow: 0 -5px 24px rgb(15 35 60 / 9%);
    }
    .mobile-bottom-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 48px;
        color: #627084;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-bottom-link[aria-current="page"], .mobile-bottom-link:hover { color: #0074bd; }
    .mobile-bottom-link:focus-visible { outline: 2px solid #0074bd; outline-offset: 2px; }
    .mobile-bottom-flight { color: #0074bd; margin-top: -25px; gap: 4px; }
    .mobile-bottom-flight-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border: 5px solid #fff;
        border-radius: 50%;
        background: #0074bd;
        color: #fff;
        box-shadow: 0 3px 12px rgb(0 116 189 / 24%);
    }
    @media (max-height: 450px) {
        body:has(input:focus, textarea:focus) .mobile-bottom-nav { display: none; }
    }
}
