/*---*\
Service Areas
\*---*/

.service-areas {
    overflow: hidden;
    position: relative;
}

.bg-navy:not(.contact-masthead) + .service-areas::before {
    aspect-ratio: 375 / 28;
    background-image: url('data:image/svg+xml,<svg width="375" height="28" viewBox="0 0 375 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H375V17.6081L247.486 7.04524L0 27.3438V0Z" fill="%231C355E"/></svg>');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    content: "";
    position: absolute;
    top: -1.5px;
    left: 50%;
    right: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    width: 102%;
    pointer-events: none;
    margin: 0 auto;
}

.service-areas .container {
    position: relative;
    z-index: 1;
}

.service-areas__layout {
    display: flex;
    flex-direction: column;
}

.service-areas__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 32px;
}

.service-areas__media {
    padding-top: 64px;
    position: relative;
}

.service-areas__note {
    color: var(--color-primary);
    min-height: 62px;
    position: absolute;
    top: -18px;
    left: 51px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3px;
    z-index: 3;
}

.service-areas__note-arrow {
    font-size: 21px;
    -webkit-transform: rotate(-49deg);
            transform: rotate(-49deg);
    align-self: flex-end;
}

.service-areas__note span {
    display: block;
    font-family: "Delicious Handrawn", cursive;
    font-size: 22px;
    letter-spacing: -0.44px;
    line-height: 1.04;
    max-width: 156px;
    text-align: center;
    -webkit-transform: rotate(-6deg);
            transform: rotate(-6deg);
    width: 156px;
    -webkit-transform-origin: center right;
            transform-origin: center right;
}

.service-areas__map-frame {
    aspect-ratio: 330 / 177;
    background-color: var(--color-surface-light);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.service-areas__map-image {
    display: block;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    width: 100%;
}

.service-areas__overlay-photo {
    display: none;
}

@media (min-width: 768px) {
    .bg-navy:not(.contact-masthead) + .service-areas::before {
        aspect-ratio: 768 / 56;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="768" height="56" viewBox="0 0 768 56" fill="none"><path d="M0 0H768V36.0615L506.852 14.4287L0 56V0Z" fill="%231C355E"/></svg>');
    }

    .service-areas .container {
        padding-left: 52px;
        padding-right: 52px;
    }

    .service-areas__media {
        max-width: 548px;
        height: 528px;
        display: flex;
        align-items: flex-end;
    }

    .service-areas__note {
        top: 32px;
        left: 105px;
    }

    .service-areas__map-frame {
        aspect-ratio: 548 / 391;
    }

    .service-areas__overlay-photo {
        background-color: var(--color-white);
        border-radius: 0 0 16px 16px;
        display: block;
        height: 245px;
        padding: 16px;
        position: absolute;
        right: -76px;
        bottom: 164px;
        width: 331px;
        z-index: 2;
    }

    .service-areas__overlay-image {
        border-radius: 16px;
        display: block;
        width: 295px;
        height: 348px;
        -o-object-fit: cover;
           object-fit: cover;
        position: absolute;
        bottom: 16px;
        left: 16px;
    }

    .service-areas__intro .btn {
        width: -webkit-max-content;
        width: max-content;
    }
}

@media (min-width: 1200px) {
    .service-areas {
        overflow: visible;
    }

    .bg-white + .service-areas .service-areas__layout {
        padding-top: 121px;
    }

    .bg-navy:not(.contact-masthead) + .service-areas .service-areas__layout {
        padding-top: 210px;
    }

    .service-areas:has(.service-areas__overlay-photo) .service-areas__layout {
        padding-top: 137px;
    }

    .bg-navy:not(.contact-masthead) + .service-areas:has(.service-areas__overlay-photo) .service-areas__layout {
        padding-top: 280px;
    }

    .service-areas .container {
        padding-left: 21px;
        padding-right: 21px;
    }

    .service-areas__layout {
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: row;
    }

    .service-areas__content {
        order: 0;
        flex: 0 0 calc(100% - 651px);
        padding-top: 0;
        padding-left: 64px;
        position: sticky;
        top: 168px;
        align-self: flex-start;
    }

    .service-areas__media {
        order: 0;
        flex: 0 0 581px;
        max-width: 581px;
        height: auto;
        padding-top: 0;
        position: sticky;
        top: 168px;
        align-self: flex-start;
    }

    .service-areas__note {
        left: 104px;
        top: -89px;
    }

    .service-areas__map-frame {
        aspect-ratio: 581 / 391;
    }

    .service-areas__overlay-photo {
        right: -56px;
    }

    .service-areas__overlay-photo::before {
        content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M32 23.2727C32 10.4196 21.5804 0 8.72727 0H0H32V32V23.2727Z" fill="white"/></svg>');
        position: absolute;
        top: 8px;
        left: -32px;
        width: 32px;
        height: 32px;
    }

    .service-areas__overlay-photo::after {
        content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M32 23.2727C32 10.4196 21.5804 0 8.72727 0H0H32V32V23.2727Z" fill="white"/></svg>');
        position: absolute;
        bottom: -32px;
        right: 56px;
        width: 32px;
        height: 32px;
    }
}