/* Contact pages (/contact-us/, /contact-us-api/) and /careers/. Values measured on live roc.ai (Divi pages).
   Loaded by their templates only, after style.css and media.css. The rows are .container (80% wide, 1340px
   max, the shared 80% zoom between 1025 and 1500px); the Formidable form keeps its own markup and
   the form snippets that style it. Desktop rules first, then the responsive tiers. */

@font-face { font-family: "Poppins"; font-weight: 400; src: url("../fonts/Poppins-400-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 500; src: url("../fonts/Poppins-500-latin.woff2") format("woff2"); font-display: swap; }

/* the Divi section carries a 1px line under the last row (not on phones) */
.contact-page {
    border-bottom: 1px solid #333;
}

/* ==========================================================================
   TITLE BLOCK (contact-us, contact-us-api)
   ========================================================================== */
.contact-head {
    padding: 128px 0;
}

.contact-head__text {
    margin: 38px 0 13px;
    color: var(--color-ink);
    letter-spacing: 0.5px;
}

.contact-head__title {
    padding-bottom: 10px;
    font-family: var(--font-bold);
    font-size: 87px;
    font-weight: 500;
    line-height: 1;
}

.contact-head__intro,
.contact-mission p {
    font-size: 18px;
    line-height: 1.35;
}

.contact-form {
    padding-bottom: 128px;
}

/* /contact-us/: the form sits 48px closer to the intro, it grew with the room between its rows (Evan, DIGITAL-295). */
.contact-page:not(.contact-page--api) .contact-head {
    padding-bottom: 80px;
}

/* /contact-us-api/: the two line title has descenders ("Age"), so more line height and more room over the intro (Evan, DIGITAL-296). */
.contact-page--api .contact-head__title {
    padding-bottom: 24px;
    line-height: 1.1;
}

/* ==========================================================================
   OFFICES AND CLOSING TEXT (contact-us)
   ========================================================================== */
.contact-offices {
    padding-bottom: 80px;
}

.contact-offices__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-office__photo {
    margin-bottom: 30px;
    line-height: 0;
}

.contact-office__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.contact-office__photo.is-pending img { opacity: 0; }

.contact-office__photo.is-revealed img {
    animation: contact-fade-top 1s cubic-bezier(0.77, 0, 0.175, 1) both;
}

@keyframes contact-fade-top {
    from { opacity: 0; transform: translateY(-10%); }
    to { opacity: 1; transform: none; }
}

.contact-office__city {
    padding-bottom: 10px;
    font-family: var(--font-bold);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.18;
    color: var(--color-ink);
}

.contact-office__role {
    font-size: 18px;
    line-height: 1.33;
    color: var(--color-ink);
}

.contact-mission {
    padding-bottom: 128px;
}

.contact-mission__text {
    margin: 38px 0 13px;
    color: var(--color-ink);
    letter-spacing: 0.5px;
}

.contact-mission__title {
    padding-bottom: 10px;
    font-family: var(--font-medium);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================================
   CAREERS
   ========================================================================== */
/* the header overlays the page: the band starts 280px down (live) */
.careers {
    padding-top: 280px;
}

.careers__band {
    padding: min(3%, 50px) 0;
    background-color: var(--color-white);
}

.careers__row {
    padding-block: min(2%, 33px);
}

.careers__title {
    padding-bottom: 10px;
    font-family: var(--font-regular);
    font-size: 38px;
    font-weight: 500;
    line-height: 47px;
    color: var(--color-ink);
}

/* the ADP job list inherits the Poppins of the live text module */
.careers__row recruitment-current-openings {
    font-family: "Poppins", var(--font-fallback);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* In the 80% zoom band the 2% row padding has no 33px cap (live). */
@media (min-width: 1025px) and (max-width: 1500px) {
    .careers__row { padding-block: 2%; }
}

@media (max-width: 1279px) {
    .contact-head__title { font-size: 68px; }
}

/* Tablets: offices stack, centred in a 550px column. */
@media (max-width: 980px) {
    .contact-offices__list {
        display: block;
    }

    .contact-office {
        max-width: 550px;
        margin: 0 auto;
    }

    /* live text modules are 622px wide on tablets (the title and the closing text wrap at that width) */
    .contact-head__text,
    .contact-mission__text { max-width: 622px; }

    .careers__band { padding-block: 50px; }

    .careers__row { padding-block: 30px; }
}

/* Phones: full width rows with 25px sides, closing text above the offices. */
@media (max-width: 767px) {
    .contact-page { border-bottom: 0; }

    .contact-head,
    .contact-form,
    .contact-offices,
    .contact-mission {
        width: 100%;
        max-width: none;
        padding-inline: 25px;
    }

    .contact-head { padding-block: 96px; }

    .contact-page:not(.contact-page--api) .contact-head { padding-bottom: 56px; }

    .contact-head__text,
    .contact-mission__text {
        max-width: none;
        margin: 0;
    }

    .contact-form { padding-bottom: 96px; }

    .contact-offices {
        padding-bottom: 96px;
        border-bottom: 1px solid var(--color-ink);
    }

    .contact-mission { padding-bottom: 60px; }

    .contact-tail {
        display: flex;
        flex-direction: column-reverse;
    }

    .contact-head__intro,
    .contact-mission p {
        font-size: 16px;
        line-height: 1.35;
    }

    .contact-office__city,
    .contact-office__role { font-size: 4.2vw; }

    .contact-mission__title {
        font-family: var(--font-bold);
        font-size: 18px;
        font-weight: 700;
        line-height: 1.4;
    }

    .careers__title { line-height: 1.16; }

    /* the enterprise page keeps the 128px band and scales its intro with the screen */
    .contact-page--api .contact-head { padding-block: 128px 96px; }

    .contact-page--api .contact-head__intro { font-size: 4.2vw; }

    /* the intro is one paragraph on phones, the desktop line break is left out (Evan, DIGITAL-296) */
    .contact-page--api .contact-head__intro br { display: none; }

    .contact-page--api .contact-head__title { padding-bottom: 16px; }
}

@media (max-width: 475px) {
    .contact-head__title { font-size: 13.5vw; }

    /* the title starts 46px under the 90px header (was 6px) and the form stays where it was (Evan, DIGITAL-296) */
    .contact-page--api .contact-head { padding-block: 136px 56px; }

    .contact-page--api .contact-head__title { font-size: 10vw; }

    .careers__title { font-size: 5.6vw; }
}

/* Live careers and contact pages have no page rule that joins the footer addresses into one paragraph: the line breaks
   stay on phones (see utility.css). */
@media (max-width: 475px) {
    body:has(.careers, .contact-page) .site-footer__address--flow br { display: inline; }
}
