/* =========================================================
   OFFICES
========================================================= */

.offices-page {
    background: var(--white);
}


/* =========================================================
   INTRO
========================================================= */

.offices-intro {
    padding: 85px 0 65px;
}

.offices-intro-grid {
    display: grid;

    grid-template-columns:
        1.1fr
        .9fr;

    gap: 80px;

    align-items: end;
}

.offices-intro h2 {
    font-size:
        clamp(
            2.5rem,
            4vw,
            3.6rem
        );

    line-height: 1.08;

    margin-top: 8px;
}

.offices-intro-grid > p {
    max-width: 520px;

    margin: 0;

    color: var(--gray-500);

    font-size: 14px;

    line-height: 1.85;
}


/* =========================================================
   MAIN
========================================================= */

.offices-main {
    padding: 10px 0 100px;

    background: var(--gray-100);
}


/* =========================================================
   OFFICE GROUP
========================================================= */

.office-group {
    padding: 65px 0;

    border-bottom:
        1px solid
        var(--gray-300);
}

.office-group:last-child {
    border-bottom: none;
}


/* =========================================================
   GROUP HEADER
========================================================= */

.office-group-header {
    display: grid;

    grid-template-columns:
        75px
        1fr
        .9fr;

    gap: 30px;

    align-items: start;

    margin-bottom: 30px;
}

.office-group-number {
    color: var(--gold);

    font-family:
        "Playfair Display",
        serif;

    font-size: 28px;

    line-height: 1;
}

.office-group-heading h2 {
    color: var(--navy);

    font-family:
        "Playfair Display",
        serif;

    font-size: 31px;

    line-height: 1.15;

    margin: 6px 0 0;
}

.office-group-header > p {
    max-width: 470px;

    margin: 2px 0 0;

    color: var(--gray-500);

    font-size: 12px;

    line-height: 1.75;
}


/* =========================================================
   OFFICE GRID
========================================================= */

.office-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    padding-left: 105px;
}


/* =========================================================
   OFFICE CARD
========================================================= */

.office-card {
    position: relative;

    min-height: 115px;

    display: grid;

    grid-template-columns:
        45px
        1fr
        25px;

    gap: 15px;

    align-items: center;

    padding: 20px;

    background: var(--white);

    border:
        1px solid
        var(--gray-300);

    color: var(--navy);

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.office-card:hover {
    transform: translateY(-3px);

    border-color: var(--gold);

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.07);

    color: var(--navy);
}


/* =========================================================
   OFFICE NUMBER
========================================================= */

.office-card-number {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--gold);

    color: var(--gold);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .5px;
}


/* =========================================================
   OFFICE CONTENT
========================================================= */

.office-card-content h3 {
    margin: 0 0 8px;

    color: var(--navy);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.4;
}

.office-card-content span {
    color: var(--gold);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   OFFICE ARROW
========================================================= */

.office-card-arrow {
    color: var(--gold);

    font-size: 19px;

    transition:
        transform .25s ease;
}

.office-card:hover .office-card-arrow {
    transform:
        translateX(4px);
}


/* =========================================================
   CTA
========================================================= */

.offices-cta {
    padding: 0 0 100px;

    background: var(--gray-100);
}

.offices-cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 50px 55px;

    background: var(--navy);
}

.offices-cta-inner .section-label {
    color: var(--gold-light);
}

.offices-cta-inner h2 {
    margin: 8px 0 0;

    color: var(--white);

    font-size: 32px;

    line-height: 1.15;
}

.offices-cta-button {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    padding: 14px 22px;

    background: var(--gold);

    color: var(--white);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .8px;

    text-decoration: none;

    transition: .2s ease;
}

.offices-cta-button:hover {
    background: var(--gold-light);

    color: var(--navy);
}

.offices-cta-button span {
    font-size: 17px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .offices-intro-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .office-group-header {
        grid-template-columns:
            60px
            1fr;
    }

    .office-group-header > p {
        grid-column: 2;
    }

    .office-grid {
        padding-left: 60px;

        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .offices-intro {
        padding: 60px 0 45px;
    }

    .office-group {
        padding: 45px 0;
    }

    .office-group-header {
        display: block;

        margin-bottom: 25px;
    }

    .office-group-number {
        margin-bottom: 12px;
    }

    .office-group-heading h2 {
        font-size: 27px;
    }

    .office-group-header > p {
        margin-top: 15px;
    }

    .office-grid {
        padding-left: 0;
    }

    .office-card {
        grid-template-columns:
            38px
            1fr
            20px;

        padding: 16px;

        min-height: 100px;
    }

    .office-card-content h3 {
        font-size: 13px;
    }

    .offices-cta-inner {
        align-items: flex-start;

        flex-direction: column;

        padding: 35px 25px;
    }

    .offices-cta-inner h2 {
        font-size: 27px;
    }

}
