@font-face {
    font-family: "Nunito";
    src: url("../vendor/nunito-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
}

:root {
    --navy: #152c5b;
    --blue: #008aff;
    --orange: #ff7500;
    --muted: #718096;
    --hero: #f2f3fa;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--muted);
    background: #fff;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus-visible {
    color: #0074d6;
}

button,
input {
    font: inherit;
}

.page-width {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-inline: 15px;
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--hero);
}

.shape {
    position: absolute;
    width: 110vh;
    height: 110vh;
    pointer-events: none;
}

.shape img {
    display: block;
    width: 100%;
    height: 100%;
}

.shape-top {
    top: -30vh;
    left: -36vh;
}

.shape-bottom {
    right: -30vh;
    bottom: -30vh;
}

.hero-grid {
    position: relative;
    display: grid;
    min-height: 100vh;
    padding-top: 100px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hero-copy,
.hero-art {
    min-width: 0;
    margin-block: 15px;
}

.hero-copy {
    transform: translateY(-50px);
}

.broker {
    margin: 0 0 70px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
    white-space: nowrap;
}

.broker strong {
    font-weight: 700;
}

.broker b {
    font-weight: 400;
}

h1 {
    margin: 0 0 20px;
    color: var(--navy);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.7px;
}

h1 .light {
    font-weight: 300;
}

.type-orange { color: var(--orange); font-weight: 400; }
.type-blue { color: var(--blue); font-weight: 600; }

.caret {
    display: inline-block;
    width: 2px;
    height: .94em;
    margin-left: 2px;
    vertical-align: -.08em;
    animation: blink .75s step-end infinite;
}

.orange-caret { background: var(--navy); }
.blue-caret { background: var(--blue); }

@keyframes blink {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

.lead {
    margin: 0 0 35px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.rate-form {
    width: 50%;
}

.rate-row {
    display: flex;
    width: 100%;
}

.rate-row input {
    width: 1%;
    min-width: 0;
    height: 69px;
    flex: 1 1 auto;
    padding: 20px 16px;
    border: 1px solid #dfe3ea;
    border-radius: 0;
    outline: none;
    color: #49546a;
    background: #fff;
    font-size: 18px;
}

.rate-row input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(0, 138, 255, .13);
}

.rate-row button {
    flex: 0 0 auto;
    min-width: 137px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 0;
    color: #fff;
    background: var(--orange);
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.rate-row button:hover,
.rate-row button:focus-visible {
    background: #cc5e00;
}

.zip-message {
    display: none;
    margin: 5px 0 0;
    color: #b3311d;
    font-size: 14px;
}

.zip-message.show {
    display: block;
}

.premise-choice {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.premise-choice input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--blue);
}

.service-link {
    display: block;
    width: max-content;
    margin: 20px 0 0 20px;
    font-size: 18px;
    font-weight: 600;
}

.hero-art img {
    display: block;
    width: 140%;
    max-width: 800px;
    height: auto;
    transform: translate(15px, -70px);
}

.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;
}

@media (max-width: 1199px) {
    .page-width { max-width: 960px; }
    h1 { font-size: 48px; }
    .hero-art img { width: 135%; }
}

@media (max-width: 991px) {
    .page-width { max-width: 720px; }

    .hero-grid {
        min-height: 100vh;
        padding-top: 95px;
        grid-template-columns: 1fr;
        align-content: center;
    }

    .hero-copy {
        transform: none;
    }

    .hero-art img {
        width: 100%;
        max-width: 680px;
        margin: 15px auto 0;
        transform: none;
    }

    .rate-form { width: 360px; max-width: 100%; }
}

@media (max-width: 767px) {
    .page-width { max-width: 540px; }

    .hero-grid {
        display: block;
        min-height: 100vh;
        padding-top: 120px;
    }

    .hero-copy,
    .hero-art { margin-block: 0; }

    .broker {
        margin-bottom: 70px;
        font-size: 24px;
    }

    h1 {
        font-size: 36px;
        line-height: 1.23;
        letter-spacing: -.5px;
    }

    .lead { font-size: 17px; }

    .rate-form { width: 100%; }

    .rate-row input {
        height: 68px;
        font-size: 18px;
    }

    .premise-choice,
    .service-link { font-size: 18px; }

    .hero-art {
        margin-top: 38px;
    }

    .hero-art img {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .page-width { padding-inline: 15px; }

    .broker {
        overflow: visible;
        white-space: nowrap;
    }

    .rate-row {
        width: calc(100vw + 60px);
    }

    .rate-row input {
        flex-basis: 325px;
    }

    .service-link { margin-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
