:root {
    --brand-blue: #0170b9;
    --brand-orange: #f07d16;
    --text: #2b2f38;
    --muted: #737b86;
    --border: #dddddd;
    --site-max: 1310px;
}

* { box-sizing: border-box; }

html { font-size: 15px; }

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family: "Montserrat", Arial, sans-serif;
    line-height: 1.6;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-orange); }

.site-header {
    background: #ffffff;
    position: relative;
    z-index: 10;
    border-top: 1px solid #ead9f2;
}

.site-header__inner {
    width: min(100%, 1040px);
    margin: 0 auto;
    min-height: 136px;
    display: grid;
    grid-template-columns: 205px 1fr 138px;
    align-items: center;
    gap: 28px;
    padding: 28px 20px;
}

.site-header__logo img {
    display: block;
    width: 170px;
    height: auto;
}

.site-header__nav { min-width: 0; }

.primary-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 36px;
    row-gap: 24px;
}

.primary-nav__item {
    position: relative;
}

.primary-nav__link {
    color: #006ff2;
    font-size: 15px;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.primary-nav__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #111111;
    margin-top: 2px;
}

.primary-nav__submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 245px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
}

.primary-nav__submenu a {
    display: block;
    padding: 9px 16px;
    color: #222222;
    font-size: 14px;
}

.primary-nav__item--has-menu:hover .primary-nav__submenu,
.primary-nav__item--has-menu:focus-within .primary-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 62px;
    color: #ffffff;
    background: linear-gradient(115deg, #0876da 0%, #0876da 45%, #f07f18 100%);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.12;
}

.site-header__phone:hover { color: #ffffff; }
.site-header__phone-icon { font-size: 22px; }

.site-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: var(--brand-blue);
    border-radius: 4px;
}

.site-header__toggle span {
    display: block;
    height: 2px;
    background: #ffffff;
    margin: 5px 0;
}

.service-hero {
    position: relative;
    background-image: url("/images/service-hero-banner.jpg");
    background-position: center center;
    background-size: cover;
    color: #ffffff;
}

.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 152, 226, .88);
}

.service-hero__inner {
    position: relative;
    width: min(100%, var(--site-max));
    min-height: 350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 457px;
    gap: 64px;
    align-items: center;
    padding: 71px 20px 0;
}

.service-hero__copy {
    max-width: 690px;
    padding-left: 96px;
}

.service-hero h1 {
    margin: 0 0 23px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.5;
    font-weight: 700;
}

.service-hero__copy p {
    margin: 0 0 42px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.9;
}

.service-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 172px;
    min-height: 52px;
    background: #ffffff;
    color: var(--brand-blue);
    font-weight: 700;
}

.service-hero__panel {
    background: #f7f7f7;
    color: var(--muted);
    padding: 39px 40px 16px;
    align-self: stretch;
    min-height: 410px;
}

.service-hero__panel h2 {
    margin: 0 0 20px;
    color: #747b83;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.service-hero__panel > p {
    margin: 0 0 32px;
    font-size: 16px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: transparent;
    color: #666666;
    font: inherit;
    padding: 12px;
}

.contact-form input { height: 43px; }
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form button {
    width: fit-content;
    border: 0;
    background: var(--brand-blue);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    padding: 15px 28px;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.service-content {
    background: #ffffff;
}

.service-content__inner {
    width: min(100%, 1140px);
    margin: 0 auto;
    padding: 48px 20px 64px;
}

.service-content h2 {
    margin: 32px 0 16px;
    color: #222222;
    font-size: 30px;
    line-height: 1.3;
}

.service-content h3 {
    margin: 26px 0 12px;
    color: #222222;
    font-size: 22px;
    line-height: 1.35;
}

.service-content p {
    margin: 0 0 16px;
}

.site-footer {
    background: #f6f6f8;
    color: #192730;
}

.site-footer__inner {
    width: min(100%, 1140px);
    margin: 0 auto;
    padding: 34px 20px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 12px;
}

@media (max-width: 1050px) {
    .site-header__inner {
        grid-template-columns: 180px 1fr;
    }

    .site-header__phone {
        grid-column: 2;
        justify-self: end;
        min-width: 138px;
    }

    .site-header__nav {
        grid-column: 1 / -1;
    }

    .service-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 48px;
    }

    .service-hero__copy {
        max-width: none;
        padding-left: 0;
    }

    .service-hero__panel {
        align-self: auto;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        min-height: auto;
        grid-template-columns: 1fr auto;
        padding: 18px 16px;
    }

    .site-header__toggle {
        display: block;
    }

    .site-header__phone {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__nav.is-open {
        display: block;
    }

    .primary-nav__list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .primary-nav__link {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
    }

    .primary-nav__submenu {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 8px 14px;
    }

    .service-hero__inner {
        padding: 38px 16px 0;
    }

    .service-hero h1 {
        font-size: 28px;
        line-height: 1.35;
    }

    .service-hero__panel {
        padding: 28px 20px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }
}
