/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-page {
    background: #fff;
    color: #171717;
}

.contact-kicker {
    margin-bottom: 22px;
    color: #343434;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}


/* =========================================================
   HERO
========================================================= */

.contact-hero {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 540px;
    background: #f5f4f1;
}

.contact-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px max(50px, calc((100vw - 1440px) / 2));
    padding-right: 60px;
}

.contact-hero-copy h1 {
    max-width: 520px;
    margin: 0 0 26px;
    color: #111;
    font-size: clamp(54px, 5vw, 82px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.contact-hero-copy p {
    max-width: 500px;
    margin: 0;
    color: #444;
    font-size: 20px;
    line-height: 1.45;
}

.contact-hero-media {
    min-height: 540px;
    overflow: hidden;
}

.contact-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   CONTACT INFO
========================================================= */

.contact-info {
    padding: 60px 0;
    background: #fff;
}

.contact-info-inner {
    width: min(100% - 128px, 1440px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr;
}

.contact-info-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 28px;
    padding: 0 42px;
    border-right: 1px solid #dedede;
}

.contact-info-card:first-child {
    padding-left: 0;
}

.contact-info-card:last-child {
    padding-right: 0;
    border-right: 0;
}

.contact-info-icon,
.contact-address-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f3f3f3;
    color: #111;
    font-size: 19px;
}

.contact-info-card h2,
.contact-info-row h2 {
    margin: 2px 0 8px;
    color: #111;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.contact-info-card p {
    max-width: 250px;
    margin: 0;
    color: #5d5d5d;
    font-size: 15px;
    line-height: 1.55;
}

.contact-info-rule {
    width: 100%;
    max-width: 250px;
    height: 1px;
    margin: 26px 0 20px;
    background: #ddd;
}

.contact-info-card > div > a {
    display: block;
    width: fit-content;
    margin-top: 5px;
    color: #171717;
    font-size: 16px;
}

.contact-info-card > div > a:hover,
.contact-phone:hover {
    text-decoration: underline;
}

.contact-info-card-wide {
    min-width: 0;
}

.contact-info-stack {
    display: grid;
    gap: 26px;
}

.contact-info-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.contact-info-separator {
    height: 1px;
    margin-left: 78px;
    background: #ddd;
}

.contact-phone {
    display: inline-block;
    white-space: nowrap;
    color: #111;
    font-size: 19px;
    font-weight: 600;
}

.contact-hours {
    min-width: 0;
}

.contact-hours dl {
    margin: 12px 0 0;
}

.contact-hours dl > div {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    align-items: baseline;
    gap: 24px;
    margin-top: 8px;
}

.contact-hours dt,
.contact-hours dd {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.contact-hours dd {
    white-space: nowrap;
    text-align: right;
}


/* =========================================================
   FORM SECTION
========================================================= */

.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
    background: #f8f8f7;
}

.contact-form-media {
    min-height: 650px;
    overflow: hidden;
}

.contact-form-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-form-panel {
    display: flex;
    align-items: center;
    padding: 70px 8vw;
}

.contact-form-inner {
    width: min(100%, 620px);
}

.contact-form-inner h2 {
    margin: 0 0 28px;
    color: #111;
    font-size: clamp(38px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    outline: none;
    background: rgba(255, 255, 255, 0.78);
    color: #151515;
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-field input,
.contact-field select {
    height: 52px;
    padding: 0 18px;
}

.contact-field textarea {
    min-height: 120px;
    padding: 15px 18px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder,
.contact-field select:invalid {
    color: #8b8b8b;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #8b8b8b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17,17,17,0.04);
}

.contact-submit {
    min-width: 205px;
    min-height: 54px;
    width: fit-content;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 13px 20px 13px 24px;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    background: #292929;
}

.contact-submit i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.contact-submit:hover i {
    transform: translateX(4px);
}


/* =========================================================
   LOCATION
========================================================= */

.contact-location {
    padding: 70px 0 44px;
    background: #fff;
}

.contact-location-inner,
.contact-company {
    width: min(100% - 128px, 1440px);
    margin-inline: auto;
}

.contact-location-inner {
    display: grid;
    grid-template-columns: 35% 65%;
    align-items: stretch;
    min-height: 280px;
}

.contact-location-copy {
    padding: 24px 50px 24px 0;
    border-right: 1px solid #ddd;
}

.contact-location-copy h2 {
    margin: 0 0 32px;
    color: #111;
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.contact-address {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-address-icon {
    width: 38px;
    height: 38px;
    background: transparent;
    font-size: 22px;
}

.contact-address address {
    color: #222;
    font-size: 16px;
    font-style: normal;
    line-height: 1.5;
}

.contact-map {
    margin-left: 45px;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f3f3;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: block;
    border: 0;
    filter: grayscale(1) contrast(0.75) brightness(1.18);
    opacity: 0.72;
}

.contact-company {
    margin-top: 34px;
    padding-top: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    border-top: 1px solid #dedede;
}

.contact-company p {
    margin: 0;
    color: #5a5a5a;
    font-size: 14px;
}

.contact-company-download {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 12px 20px 12px 25px;
    border: 1px solid #222;
    border-radius: 999px;
    color: #111;
    font-size: 14px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.contact-company-download:hover {
    background: #111;
    color: #fff;
}

.contact-company-download i {
    font-size: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .contact-hero {
        grid-template-columns: 45% 55%;
    }

    .contact-hero-copy {
        padding-left: 35px;
        padding-right: 35px;
    }

    .contact-info-inner {
        width: calc(100% - 70px);
        grid-template-columns: 1fr 1fr;
        gap: 45px 0;
    }

    .contact-info-card {
        padding: 0 35px;
    }

    .contact-info-card:nth-child(2) {
        border-right: 0;
    }

    .contact-info-card-wide {
        grid-column: 1 / -1;
        padding-left: 0;
        border-right: 0;
        border-top: 1px solid #ddd;
        padding-top: 40px;
    }

    .contact-info-stack {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info-separator {
        display: none;
    }

    .contact-form-panel {
        padding: 60px 55px;
    }

    .contact-location-inner,
    .contact-company {
        width: calc(100% - 70px);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .contact-kicker {
        margin-bottom: 16px;
        font-size: 11px;
    }

    .contact-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .contact-hero-copy {
        order: 2;
        padding: 42px 20px 48px;
    }

    .contact-hero-media {
        order: 1;
        min-height: 310px;
        height: 52vw;
        max-height: 420px;
    }

    .contact-hero-copy h1 {
        font-size: 52px;
    }

    .contact-hero-copy p {
        font-size: 17px;
    }


    .contact-info {
        padding: 45px 0;
    }

    .contact-info-inner {
        width: calc(100% - 36px);
        display: block;
    }

    .contact-info-card,
    .contact-info-card:first-child,
    .contact-info-card:last-child {
        padding: 28px 0;
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }

    .contact-info-card:first-child {
        padding-top: 0;
    }

    .contact-info-card:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .contact-info-card-wide {
        border-top: 0;
    }

    .contact-info-stack {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact-info-separator {
        display: block;
        margin-left: 0;
    }


    .contact-form-section {
        grid-template-columns: 1fr;
    }

    .contact-form-media {
        min-height: 360px;
        height: 65vw;
        max-height: 500px;
    }

    .contact-form-panel {
        padding: 48px 20px 55px;
    }

    .contact-form-inner h2 {
        font-size: 40px;
    }

    .contact-submit {
        width: 100%;
    }


    .contact-location {
        padding: 52px 0 36px;
    }

    .contact-location-inner,
    .contact-company {
        width: calc(100% - 36px);
    }

    .contact-location-inner {
        grid-template-columns: 1fr;
    }

    .contact-location-copy {
        padding: 0 0 35px;
        border-right: 0;
    }

    .contact-map {
        margin-left: 0;
    }

    .contact-map iframe {
        min-height: 300px;
    }

    .contact-company {
        display: block;
    }

    .contact-company-download {
        width: 100%;
        margin-top: 24px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .contact-hero-copy h1 {
        font-size: 46px;
    }

    .contact-info-card {
        grid-template-columns: 48px 1fr;
        gap: 18px;
    }

    .contact-info-row {
        grid-template-columns: 48px 1fr;
        gap: 18px;
    }

    .contact-info-icon {
        width: 42px;
        height: 42px;
    }

    .contact-hours dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .contact-company-download {
        gap: 15px;
    }

}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-message {
    margin-bottom: 22px;
    padding: 15px 18px;

    border-radius: 7px;

    font-size: 14px;
    line-height: 1.5;
}

.contact-message p {
    margin: 0;
}

.contact-message p + p {
    margin-top: 5px;
}

.contact-message-success {
    border: 1px solid #bcd8c2;
    background: #f1f8f2;
    color: #245b31;
}

.contact-message-error {
    border: 1px solid #e3bcbc;
    background: #fff4f4;
    color: #8b2929;
}
