
/* =========================================================
   HERO
========================================================= */


.projects-page-hero {
    position: relative;
    height: 55.6vh;
    min-height: 280px;
    max-height: 460px;
    overflow: hidden;
    isolation: isolate;
}

.projects-page-hero__image,
.projects-page-hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.projects-page-hero__image {
    z-index: -2;
    object-fit: cover;
    object-position: center;
}

.projects-page-hero__overlay {
    z-index: -1;
    background: rgba(0, 0, 0, .36);
}

.projects-page-hero__content {
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
}

.projects-page-hero h1 {
    color: var(--white);
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.1;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}


.contact-hero {
    position: relative;
    height: 40vh;
    min-height: 340px;
    max-height: 540px;
    overflow: hidden;
    background: #333;
}

.contact-hero__image,
.contact-hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-hero__image {
    object-fit: cover;
    object-position: center 52%;
}

.contact-hero__overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .12)),
        linear-gradient(0deg, rgba(0, 0, 0, .22), transparent 55%);
}

.contact-hero__content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 60px;
    padding-bottom: 48px;
    color: #fff;
}

.contact-hero__eyebrow,
.contact-intro__eyebrow {
    margin: 0 0 12px;
    font-family: var(--font-title, "Century Gothic", Arial, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.contact-hero__content h1 {
    max-width: 760px;
    font-size: clamp(32px, 8vw, 64px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
    padding: 76px 0 90px;
    background: #f4f3ef;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 58px;
    min-width: 0;
}

.contact-intro {
    width: 100%;
    min-width: 0;
    max-width: 510px;
}

.contact-intro__eyebrow {
    color: var(--contact-accent);
}

.contact-intro h2 {
    margin: 0 0 28px;
    color: var(--contact-ink);
    font-size: clamp(36px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.contact-intro > p:not(.contact-intro__eyebrow) {
    max-width: 470px;
    margin: 0;
    color: var(--contact-muted);
    font-size: 16px;
    line-height: 1.85;
}

.contact-details {
    display: grid;
    gap: 24px;
    margin-top: 42px;
    padding-top: 30px;
    border-top: 1px solid var(--contact-line);
}

.contact-details > div {
    display: grid;
    gap: 5px;
}

.contact-details span {
    font-family: var(--font-title, "Century Gothic", Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.contact-details a,
.contact-details address {
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-details a {
    transition: color 200ms ease;
}

.contact-details a:hover {
    color: var(--contact-accent);
}

/* =========================================================
   FORM
========================================================= */

.contact-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 26px 22px;
    border: 1px solid #d8d5ce;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(22, 22, 22, .08);
}

.contact-form__honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 28px;
    min-width: 0;
}

.form-field {
    width: 100%;
    min-width: 0;
    margin-bottom: 28px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--contact-ink);
    font-family: var(--font-title, "Century Gothic", Arial, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.form-field label span,
.form-consent b {
    color: var(--contact-accent);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d5d2cc;
    border-radius: 0;
    outline: 0;
    background: #faf9f7;
    color: var(--contact-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}



.form-field textarea {
    min-height: 126px;
    resize: vertical;
}

.form-field select {
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 8px) 21px,
        calc(100% - 3px) 21px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--contact-accent);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(168, 35, 31, .11);
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
    border-color: #b42318;
}

.field-error {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--contact-muted);
    cursor: pointer;
    font-size: 13px;
    line-height: 1.55;
}

.form-consent input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--contact-accent);
    flex: 0 0 auto;
}

.consent-error {
    margin-bottom: 14px;
}

.contact-form .contact-submit {
    width: 100%;
    min-height: 56px;
    display: flex !important;
    position: relative;
    z-index: 2;
    visibility: visible !important;
    opacity: 1;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 15px 22px;
    border: 1px solid var(--contact-ink);
    background: var(--contact-ink);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-title, "Century Gothic", Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: background 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.contact-form .contact-submit:hover:not(:disabled) {
    background: var(--contact-accent);
    border-color: var(--contact-accent);
    transform: translateY(-2px);
}

.contact-form .contact-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.contact-form__note {
    margin: 12px 0 0;
    color: #999;
    font-size: 11px;
}

/* =========================================================
   TOAST
========================================================= */

.form-toast {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 2000;
    width: min(420px, calc(100vw - 36px));
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    border-left: 4px solid #18794e;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
    transform: translateY(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
}

.form-toast[hidden] {
    display: none;
}

.form-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.form-toast.is-error {
    border-left-color: #b42318;
}

.form-toast__icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #18794e;
}

.form-toast.is-error .form-toast__icon {
    background: #b42318;
}

.form-toast p {
    margin: 0;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
}

.form-toast button {
    width: 30px;
    height: 30px;
    padding: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
    .form-toast,
    .contact-submit,
    .contact-details a {
        transition: none;
    }
}

@media (min-width: 640px) {
    .contact-hero__content {
        padding-bottom: 60px;
    }

    .contact-section {
        padding-top: 100px;
        padding-bottom: 110px;
    }

    .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-submit {
        width: auto;
        min-width: 245px;
    }

    .contact-form {
        padding: 38px 36px;
    }
}

@media (max-width: 479px) {
    .contact-hero {
        min-height: 300px;
    }

    .contact-hero__content {
        padding-bottom: 34px;
    }

    .contact-section {
        padding-top: 60px;
        padding-bottom: 72px;
    }

    .contact-layout {
        gap: 42px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .contact-intro h2 {
        font-size: clamp(33px, 10vw, 46px);
    }

    .form-toast {
        right: 12px;
        width: calc(100vw - 24px);
    }
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(520px, .95fr);
        gap: clamp(80px, 10vw, 170px);
        align-items: start;
    }

    .contact-intro {
        position: static;
    }

    .contact-section {
        padding-top: 125px;
        padding-bottom: 135px;
    }

    .contact-form {
        padding: 48px 44px;
    }
}

@media (min-width: 1440px) {
    .contact-layout {
        padding-left: 4vw;
        padding-right: 4vw;
    }
}
