@font-face {
    font-family: "Urbanist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/urbanist-latin.woff2') format('woff2');
}

:root {
    --contact-ink: #071735;
    --contact-blue: #0a1f44;
    --contact-orange: #fd8d32;
    --contact-line: rgba(7, 23, 53, 0.16);
    --contact-gutter: clamp(22px, 3.5vw, 68px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--contact-ink);
    background: #ffffff;
    font-family: "Urbanist", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.contact-menu-open {
    overflow: hidden;
}

.contact-skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: #ffffff;
    background: var(--contact-blue);
    font-size: 13px;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.contact-skip-link:focus {
    transform: translateY(0);
}

.contact-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--contact-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
}

body.admin-bar .contact-header {
    top: 32px;
}

.contact-menu-open .contact-header {
    border-color: transparent;
    background: transparent;
    backdrop-filter: none;
}

.contact-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 2160px);
    min-height: clamp(76px, 6.8vw, 88px);
    margin: 0 auto;
    padding: 0 var(--contact-gutter);
}

.contact-header__brand {
    position: relative;
    z-index: 52;
    display: inline-flex;
    width: clamp(112px, 7.8vw, 144px);
}

.contact-header__brand img,
.contact-menu__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.contact-menu-toggle {
    position: relative;
    z-index: 52;
    width: 42px;
    height: 34px;
    padding: 0;
    border: 0;
    color: var(--contact-blue);
    background: transparent;
    cursor: pointer;
}

.contact-menu-toggle span {
    position: absolute;
    right: 0;
    width: 38px;
    height: 1px;
    background: currentColor;
    transition: top 260ms ease, width 260ms ease, transform 260ms ease;
}

.contact-menu-toggle span:first-child {
    top: 11px;
}

.contact-menu-toggle span:last-child {
    top: 22px;
}

.contact-menu-open .contact-menu-toggle {
    color: #ffffff;
}

.contact-menu-open .contact-menu-toggle span {
    top: 17px;
    width: 29px;
}

.contact-menu-open .contact-menu-toggle span:first-child {
    transform: rotate(45deg);
}

.contact-menu-open .contact-menu-toggle span:last-child {
    transform: rotate(-45deg);
}

.contact-menu-open .contact-header__brand {
    visibility: hidden;
    opacity: 0;
}

.contact-menu {
    position: fixed;
    z-index: 40;
    inset: 0;
    overflow-y: auto;
    visibility: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 84% 78%, rgba(253, 141, 50, 0.17), transparent 30%),
        linear-gradient(135deg, #061631 0%, #0b244f 100%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 260ms ease, transform 260ms ease, visibility 0s linear 260ms;
}

.contact-menu-open .contact-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.contact-menu__inner {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(34px, 6vh, 70px);
    width: min(100%, 2160px);
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 60px) var(--contact-gutter) clamp(32px, 5vw, 66px);
}

.contact-menu__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-right: 70px;
}

.contact-menu__brand {
    display: inline-flex;
    width: clamp(118px, 8vw, 160px);
}

.contact-menu__top p {
    margin: 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-menu__list,
.contact-menu__list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-menu__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vh, 42px) clamp(38px, 7vw, 116px);
    counter-reset: menu-item;
}

.contact-menu__list > li {
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    counter-increment: menu-item;
}

.contact-menu__list > li::before {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.42);
    content: counter(menu-item, decimal-leading-zero);
    font-size: 10px;
    font-weight: 620;
    letter-spacing: 0.18em;
}

.contact-menu__list a,
.contact-menu__list .menu-group-label {
    color: #ffffff;
    font-size: clamp(22px, 2.2vw, 38px);
    font-weight: 410;
    line-height: 1.12;
    text-decoration: none;
}

.contact-menu__list a {
    transition: color 170ms ease;
}

.contact-menu__list a:hover,
.contact-menu__list a:focus-visible,
.contact-menu__list .current-menu-item > a {
    color: var(--contact-orange);
}

.contact-menu__list .sub-menu {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.contact-menu__list .sub-menu a {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 520;
    letter-spacing: 0.035em;
}

.contact-menu__contacts {
    display: flex;
    gap: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-menu__contacts a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 560;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.contact-stage {
    display: grid;
    grid-template-columns: minmax(350px, 39%) minmax(0, 61%);
    min-height: calc(100svh - clamp(76px, 6.8vw, 88px));
}

.contact-stage__information {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(22px, 3vh, 34px);
    min-width: 0;
    padding: clamp(30px, 4.6vh, 50px) clamp(30px, 4vw, 68px) clamp(28px, 4vh, 46px);
    background: #ffffff;
}

.contact-stage__eyebrow,
.contact-form-panel__eyebrow {
    margin: 0 0 16px;
    color: var(--contact-orange);
    font-size: clamp(10px, 0.72vw, 13px);
    font-weight: 680;
    line-height: 1.2;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.contact-stage__eyebrow {
    font-size: var(--dyer-marketing-hero-eyebrow-size);
}

.contact-stage h1 {
    max-width: 540px;
    margin: 0;
    font-size: var(--dyer-marketing-hero-statement-size);
    font-weight: var(--dyer-marketing-hero-statement-weight);
    line-height: var(--dyer-marketing-hero-statement-line-height);
    letter-spacing: var(--dyer-marketing-hero-statement-letter-spacing);
}

.contact-stage__copy {
    max-width: 520px;
    margin: clamp(22px, 3vh, 34px) 0 0;
    color: rgba(7, 23, 53, 0.76);
    font-size: clamp(15px, 1.06vw, 19px);
    font-weight: 440;
    line-height: 1.52;
}

.contact-stage__details {
    display: grid;
    gap: clamp(20px, 2.5vh, 30px);
}

.contact-stage__direct {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 24px;
}

.contact-stage__direct a {
    position: relative;
    padding-bottom: 5px;
    color: var(--contact-ink);
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 540;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.contact-stage__direct a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
}

.contact-stage__offices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 34px);
}

.contact-stage__offices h2 {
    margin: 0 0 8px;
    color: var(--contact-orange);
    font-size: clamp(9px, 0.62vw, 11px);
    font-weight: 680;
    line-height: 1.3;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-stage__offices address {
    margin: 0;
    color: rgba(7, 23, 53, 0.7);
    font-size: clamp(9px, 0.68vw, 12px);
    font-style: normal;
    font-weight: 520;
    line-height: 1.55;
    letter-spacing: 0.035em;
}

.contact-stage__visual {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    place-items: center;
    padding: clamp(18px, 2.1vw, 36px);
    background: var(--contact-blue);
}

.contact-stage__background,
.contact-stage__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-stage__background {
    z-index: -2;
    object-fit: cover;
    object-position: 50% 53%;
}

.contact-stage__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 18, 43, 0.35), rgba(3, 18, 43, 0.12) 45%, rgba(3, 18, 43, 0.32)),
        linear-gradient(180deg, rgba(3, 18, 43, 0.12), rgba(3, 18, 43, 0.4));
}

.contact-form-panel {
    width: min(100%, 700px);
    max-height: 100%;
    padding: clamp(22px, 2.4vw, 34px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(4, 24, 52, 0.76);
    box-shadow: 0 24px 74px rgba(2, 10, 27, 0.3);
    backdrop-filter: blur(15px) saturate(0.82);
}

.contact-form-panel__eyebrow {
    margin-bottom: 8px;
}

.contact-form-panel__intro h2 {
    margin: 0;
    font-size: clamp(26px, 2vw, 36px);
    font-weight: 410;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.contact-form-panel__intro > p:last-child {
    max-width: 620px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: clamp(12px, 0.82vw, 15px);
    font-weight: 430;
    line-height: 1.42;
}

.contact-form-status {
    margin-top: 12px;
    padding: 9px 12px;
    border-left: 2px solid currentColor;
    font-size: 12px;
    line-height: 1.35;
}

.contact-form-status.is-success {
    color: #d9f7e4;
    background: rgba(28, 126, 70, 0.3);
}

.contact-form-status.is-error {
    color: #fff0e4;
    background: rgba(161, 61, 27, 0.3);
}

.contact-form {
    display: grid;
    gap: clamp(10px, 1.2vh, 14px);
    margin-top: clamp(16px, 2vh, 22px);
}

.contact-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.contact-form__row,
.contact-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1vw, 14px);
}

.contact-form__field--full,
.contact-form__field--textarea {
    grid-column: 1 / -1;
}

.contact-form__field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.contact-form__field > span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 570;
    line-height: 1.2;
}

.contact-form__field small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 0;
    outline: 0;
    color: var(--contact-ink);
    background: rgba(255, 255, 255, 0.96);
    font: inherit;
    font-size: 13px;
    font-weight: 470;
    transition: border-color 170ms ease, box-shadow 170ms ease, background-color 170ms ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
    height: clamp(39px, 5.3vh, 46px);
    padding: 0 13px;
}

.contact-form select {
    appearance: none;
    padding-right: 38px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(7, 23, 53, 0.75) 50%),
        linear-gradient(135deg, rgba(7, 23, 53, 0.75) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.contact-form textarea {
    min-height: clamp(68px, 9.5vh, 82px);
    padding: 11px 13px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(7, 23, 53, 0.46);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--contact-orange);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(253, 141, 50, 0.24);
}

.contact-form__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.contact-form__privacy {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    cursor: pointer;
}

.contact-form__privacy input {
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    accent-color: var(--contact-orange);
}

.contact-form__privacy span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 10px;
    line-height: 1.36;
    text-wrap: pretty;
}

.contact-form__privacy a {
    color: #ffffff;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 146px;
    min-height: 43px;
    padding: 10px 18px;
    border: 1px solid var(--contact-orange);
    color: var(--contact-ink);
    background: var(--contact-orange);
    font: inherit;
    font-size: 12px;
    font-weight: 690;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
    color: #ffffff;
    background: transparent;
    transform: translateY(-1px);
}

.contact-form__submit:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.contact-form__plane {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 18px;
    background: url('../images/dyer-logo-blue.svg') -12px -68px / 162px 90px no-repeat;
    filter: brightness(0) saturate(100%) invert(10%) sepia(30%) saturate(2320%) hue-rotate(181deg) brightness(86%) contrast(107%);
    transform: translateY(-1px);
    transition: transform 220ms ease;
}

.contact-form__submit:hover .contact-form__plane,
.contact-form__submit:focus-visible .contact-form__plane {
    background-image: url('../images/dyer-logo-white.svg');
    filter: none;
    transform: translate(3px, -1px);
}

.contact-form__submit:focus-visible,
.contact-menu-toggle:focus-visible,
.contact-menu a:focus-visible,
.contact-header__brand:focus-visible {
    outline: 2px solid var(--contact-orange);
    outline-offset: 4px;
}

@media (min-width: 1041px) {
    .contact-stage__information {
        padding-top: clamp(54px, 7.5vh, 82px);
    }
}

@media (max-width: 1040px) {
    .contact-stage {
        grid-template-columns: 35% minmax(0, 65%);
    }

    .contact-stage__offices {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-stage__information {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .contact-header {
        top: 46px;
    }

    .contact-stage {
        display: block;
        min-height: 0;
    }

    .contact-stage__information {
        gap: 36px;
        min-height: auto;
        padding: 54px var(--contact-gutter) 48px;
    }

    .contact-stage h1 {
        font-size: var(--dyer-marketing-hero-statement-size);
    }

    .contact-stage__copy {
        font-size: 16px;
    }

    .contact-stage__offices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .contact-stage__visual {
        min-height: clamp(660px, 86vw, 720px);
        padding: 26px var(--contact-gutter);
    }

    .contact-form-panel {
        padding: 24px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
    }

    .contact-menu__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .contact-header__inner {
        min-height: 78px;
    }

    .contact-header__brand {
        width: 116px;
    }

    .contact-menu__top p {
        display: none;
    }

    .contact-menu__list {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .contact-menu__list > li {
        padding-top: 8px;
    }

    .contact-menu__list > li::before {
        display: none;
    }

    .contact-menu__list a,
    .contact-menu__list .menu-group-label {
        font-size: 25px;
    }

    .contact-menu__contacts {
        display: grid;
        gap: 10px;
    }

    .contact-stage__information {
        padding-top: 46px;
    }

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

    .contact-stage__visual {
        min-height: 0;
        padding: 22px;
        place-items: start stretch;
    }

    .contact-stage__background {
        object-position: 62% 50%;
    }

    .contact-form-panel {
        width: 100%;
        padding: 22px 18px;
    }

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

    .contact-form__field--half,
    .contact-form__field--full,
    .contact-form__field--textarea {
        grid-column: 1;
    }

    .contact-form__submit {
        width: 100%;
    }
}

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

@media (max-height: 620px) and (min-width: 641px) {
    .contact-stage {
        display: grid;
        grid-template-columns: minmax(235px, 40%) minmax(0, 60%);
        min-height: 480px;
    }

    .contact-stage__information {
        justify-content: center;
        gap: 18px;
        padding: 28px 24px 26px;
    }

    .contact-stage__eyebrow {
        margin-bottom: 10px;
    }

    .contact-stage h1 {
        max-width: 430px;
        font-size: clamp(36px, 5vw, 42px);
        line-height: 0.98;
    }

    .contact-stage__copy {
        margin-top: 16px;
        font-size: 14.5px;
        line-height: 1.42;
    }

    .contact-stage__visual {
        min-height: 480px;
        padding: 14px;
    }

    .contact-form-panel {
        padding: 18px;
    }

    .contact-form-panel__eyebrow {
        margin-bottom: 6px;
        font-size: 9px;
    }

    .contact-form-panel__intro h2 {
        font-size: 24px;
    }

    .contact-form-panel__intro > p:last-child {
        margin-top: 7px;
        font-size: 11px;
        line-height: 1.32;
    }

    .contact-form {
        gap: 8px;
        margin-top: 12px;
    }

    .contact-form__row,
    .contact-form__fields {
        gap: 8px;
    }

    .contact-form__field {
        gap: 4px;
    }

    .contact-form__field > span {
        font-size: 9px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form select {
        height: 36px;
    }

    .contact-form textarea {
        min-height: 58px;
    }

    .contact-form__footer {
        gap: 8px;
    }
}
