/* -----------------------------------------------------------------------------
   NEW – refreshed contact page
----------------------------------------------------------------------------- */

.masthead__sub-heading {
    margin: 0;
    font-weight: 400;
    line-height: 1.24;
    color: #fff;
    text-transform: uppercase;
}

@media (min-width: 1200px) {
    .masthead__sub-heading {
        font-size: 22px;
        line-height: 25px;
    }
}

.icon-buttons__cta {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: var(--masthead-primary, #0047bb);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-buttons__cta svg {
    width: 16px;
    height: 14px;
    flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   Branches section (Figma: Location Section - Image Cards, node 2016-476)
   ----------------------------------------------------------------------------- */

.branches {
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
    padding-top: 50px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
}

.branches.section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
}

.branches__inner {
    max-width: 1144px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
}

.branches__heading {
    width: 100%;
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    color: #242424;
}

.branches__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    align-items: center;
}

.branches__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    background: #f5f5f5;
}

.branches__image {
    width: 100%;
    height: 196px;
    overflow: hidden;
}

.branches__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branches__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    align-items: flex-start;
}

.branches__card-title {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.35;
    color: #242424;
}

.branches__details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.branches__address-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.branches__address-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.branches__address {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #242424;
}

.branches__directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #0047bb;
    text-decoration: none;
}

.branches__directions:hover,
.branches__directions:focus {
    text-decoration: underline;
}

.branches__contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.branches__contact-link {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #242424;
    text-decoration: none;
}

.branches__contact-link:hover,
.branches__contact-link:focus {
    color: #0047bb;
    text-decoration: underline;
}

.branches__icon {
    display: block;
    flex-shrink: 0;
}

.branches__icon--pin {
    width: 15px;
    height: 20px;
    margin-top: 1px;
}

.branches__icon--phone {
    width: 15px;
    height: 15px;
}

.branches__icon--arrow {
    width: 16px;
    height: 13px;
}

@media (min-width: 768px) {
    .branches__heading {
        font-size: 28px;
    }

    .branches__card-title,
    .branches__address,
    .branches__contact-link {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (min-width: 1200px) {
    .branches,
    .branches.section-padding {
        padding-top: 85px;
        padding-bottom: 85px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .branches__heading {
        font-size: 34px;
        line-height: 37px;
    }

    .branches__grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
    }

    .branches__card {
        flex: 0 0 360px;
        max-width: 360px;
    }

    .branches__card-title {
        font-size: 24px;
        line-height: 27px;
    }
}