
/* ==========================================
   INSIDE INVOMIZE — GLOBAL FOOTER
========================================== */

.iv-footer,
.iv-footer * {
    box-sizing: border-box;
}

/* ==========================================
   FOOTER BASE
========================================== */

.iv-footer {
    --iv-footer-dark: #16232B;
    --iv-footer-yellow: #F5C842;
    --iv-page-background: #F5F8FA;

    width: 100%;
    min-height: 250px;

    padding: 38px 24px 36px;

    border: 0;

    background: var(--iv-footer-dark);
    color: #FFFFFF;

    position: relative;
    z-index: 1;

    margin: 0;
    box-shadow: none;

    background-clip: border-box;
}

/* ==========================================
   FOOTER INNER CONTAINER
========================================== */

.iv-footer__inner {
    max-width: 1425px;
    width: 100%;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 2.15fr)
        minmax(0, 1.3fr)
        minmax(0, 0.65fr)
        minmax(0, 0.45fr);

    align-items: start;

    gap: clamp(18px, 2.6vw, 42px);
}

/* ==========================================
   BRAND COLUMN
========================================== */

.iv-footer__brand-column {
    min-width: 0;
}

.iv-footer__brand {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    min-height: 33px;
    max-width: 100%;

    text-decoration: none;
}

/* Logo icon */

.iv-footer__logo-icon {
    display: block;

    width: 33px;
    height: 33px;

    flex: 0 0 33px;

    object-fit: contain;
}

/* Logo text */

.iv-footer__logo-text {
    display: block;

    width: 140px;
    max-width: 100%;
    height: 17px;

    object-fit: contain;
    object-position: left center;
}

/* ==========================================
   GROW WITH US HEADING
========================================== */

.iv-footer__tagline {
    margin: 12px 0 0;

    font-family: 'SF Pro Display', Arial, sans-serif;

    font-size: clamp(38px, 4.2vw, 60px);
    font-weight: 500;
    font-style: normal;

    line-height: 1;
    letter-spacing: -0.03em;

    color: var(--iv-footer-yellow);

    white-space: nowrap;
}

/* ==========================================
   FOOTER COLUMNS
========================================== */

.iv-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

/* ==========================================
   COLUMN HEADINGS
========================================== */

.iv-footer__heading {
    margin: 0 0 14px;

    font-family: 'Inter', Arial, sans-serif;

    font-size: 16px;
    font-weight: 500;
    font-style: normal;

    line-height: 26px;
    letter-spacing: -0.04em;

    color: #FFFFFF;
}

/* ==========================================
   LINKS AND LOCATION TYPOGRAPHY
========================================== */

.iv-footer__column > a,
.iv-footer__column > span,
.iv-footer__location-name,
.iv-footer__location address {
    font-family: 'Inter', Arial, sans-serif;

    font-size: 14px;
    font-weight: 400;
    font-style: normal;

    line-height: 26px;
    letter-spacing: -0.04em;
}

.iv-footer__column > a,
.iv-footer__column > span,
.iv-footer__location address {
    color: #A5A5A5;
}

/* ==========================================
   FOOTER LINKS
========================================== */

.iv-footer__column > a {
    text-decoration: none;

    transition: color 200ms ease;
}

.iv-footer__column > a:hover {
    color: var(--iv-footer-yellow);
}

/* Keyboard accessibility */

.iv-footer__column > a:focus-visible,
.iv-footer__brand:focus-visible {
    outline: 2px solid var(--iv-footer-yellow);
    outline-offset: 5px;
}

/* ==========================================
   OFFICE LOCATIONS
========================================== */

.iv-footer__location {
    margin: 0 0 7px;
}

.iv-footer__location-name {
    margin: 0;
    color: #FFFFFF;
}

.iv-footer__location-name strong {
    font-weight: 500;
}

.iv-footer__location-name span {
    font-weight: 400;
    color: #A5A5A5;
}

.iv-footer__location address {
    max-width: 270px;

    font-style: normal;
    line-height: 22px;
}

/* ==========================================
   FOOTER CURTAIN — BACKGROUND FIX
========================================== */

/*
 * Important:
 *
 * The body must remain light because the
 * floating header has side/top spacing.
 *
 * The dark footer has its own background.
 *
 * This prevents the whole page background
 * from appearing dark around the header.
 */

html {
    background: #F5F8FA;
}

body.iv-footer-curtain-active {
    background: #F5F8FA !important;
}

/* ==========================================
   HOMEPAGE ABOVE FOOTER
========================================== */

/*
 * Main page stays above the footer.
 *
 * The last WhatsApp section naturally
 * scrolls away and uncovers the footer.
 */

body.iv-footer-curtain-active #invomize-home {
    position: relative;

    z-index: 1;

    isolation: isolate;

    margin-bottom: 0;
    padding-bottom: 0;

    border-bottom: none;
    box-shadow: none;
}

/* ==========================================
   FIXED FOOTER UNDER HOMEPAGE
========================================== */

body.iv-footer-curtain-active
.iv-footer--curtain {
    position: fixed;

    bottom: 0;
    left: 0;
    right: 0;

    width: 100%;
    margin: 0;

    z-index: 0;

    /* Footer remains dark */
    background: #16232B !important;

    /* No divider */
    border: 0 !important;
    border-top: 0 !important;

    box-shadow: none !important;

    /* Footer remains stationary */
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;

    /* No fade-up effect */
    animation: none !important;
    transition: none !important;
}

/* ==========================================
   INVISIBLE FOOTER SCROLL SPACER
========================================== */

/*
 * footer.js dynamically sets the height
 * of this spacer to match the footer.
 *
 * This allows the footer to be revealed
 * progressively while scrolling.
 */

.iv-footer-curtain-spacer {
    display: block;

    width: 100%;
    height: 0;

    margin: 0;
    padding: 0;

    border: 0;
    box-shadow: none;

    pointer-events: none;

    background: transparent;
}

/* ==========================================
   WHATSAPP — FINAL SECTION
========================================== */

body.iv-footer-curtain-active .iv-apply {
    position: relative;

    margin-bottom: 0;

    border: 0;
    border-bottom: none;

    box-shadow: none;
}

body.iv-footer-curtain-active
.iv-apply__inner {
    border-bottom: none;
}

/* ==========================================
   TABLET / SMALL DESKTOP
========================================== */

@media (max-width: 1000px) and (min-width: 701px) {

    .iv-footer__inner {
        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(0, 1.4fr)
            minmax(0, 0.7fr)
            minmax(0, 0.6fr);

        gap: 16px;
    }

    .iv-footer__tagline {
        font-size: clamp(32px, 4vw, 48px);
    }

    .iv-footer__column > a,
    .iv-footer__column > span,
    .iv-footer__location-name,
    .iv-footer__location address {
        font-size: 12px;
        line-height: 21px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .iv-footer {
        min-height: 290px;

        padding: 23px 16px 28px;

        border: 0;
    }

    /* Three mobile columns */

    .iv-footer__inner {
        grid-template-columns:
            minmax(0, 1.55fr)
            minmax(0, 0.86fr)
            minmax(0, 0.68fr);

        gap: 16px 14px;
    }

    /* Centered branding */

    .iv-footer__brand-column {
        grid-column: 1 / -1;
        text-align: center;
    }

    .iv-footer__brand {
        justify-content: center;

        min-height: 22px;
        gap: 3px;
    }

    .iv-footer__logo-icon {
        width: 22px;
        height: 22px;

        flex: 0 0 22px;
    }

    .iv-footer__logo-text {
        width: 93px;
        height: 14px;
    }

    /* Mobile heading */

    .iv-footer__tagline {
        margin: 10px 0 12px;

        font-size: 30px;
        font-weight: 500;
        line-height: 1;
        letter-spacing: -0.03em;

        color: var(--iv-footer-yellow);
    }

    /* Column headings */

    .iv-footer__heading {
        margin-bottom: 7px;

        font-size: 12px;
        line-height: 26px;
    }

    /* Mobile text */

    .iv-footer__column > a,
    .iv-footer__column > span,
    .iv-footer__location-name,
    .iv-footer__location address {
        font-size: 10px;
        line-height: 20px;
        letter-spacing: -0.04em;
    }

    .iv-footer__location {
        margin-bottom: 9px;
    }

    .iv-footer__location address {
        line-height: 17px;
    }
}

/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (max-width: 360px) {

    .iv-footer {
        padding-inline: 12px;
    }

    .iv-footer__inner {
        column-gap: 8px;
    }

    .iv-footer__tagline {
        font-size: 28px;
    }

    .iv-footer__column > a,
    .iv-footer__column > span,
    .iv-footer__location-name,
    .iv-footer__location address {
        font-size: 9px;
    }
}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    .iv-footer *,
    .iv-footer *::before,
    .iv-footer *::after {
        transition: none !important;
        animation: none !important;
    }
}
