/* HERO */

.contact-hero {
    position: relative;
    min-height: 500px;

    display: flex;
    align-items: center;

    background:
        url("/images/slide-home.jpg")
        center / cover no-repeat;

    color: #fff;
    overflow: hidden;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(6,20,38,.96) 0%,
        rgba(6,20,38,.82) 52%,
        rgba(6,20,38,.42) 100%
    );
}

.contact-hero-inner {
    position: relative;
    z-index: 2;

    padding: 85px 0;

    transform: translateY(-40px);
}

.contact-hero-copy {
    max-width: 850px;
}

.contact-hero h1 {
    margin: 10px 0 18px;

    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(36px, 3.5vw, 50px);
    font-weight: 400;

    line-height: .95;
    letter-spacing: -.025em;
}

.contact-hero p {
    max-width: 720px;
    margin: 0;

    font-size: 18px;
    line-height: 1.5;

    color: rgba(255,255,255,.80);
}

.contact-hero h1 em {
    color: #62b6df;
    font-weight: 400;
}

.contact-hero p {
    max-width: 720px;

    font-size: 20px;
    line-height: 1.7;

    color: rgba(255,255,255,.80);
}


/* CONTACT */

.contact-section {
    padding: 90px 0 110px;
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;

    gap: 90px;
    align-items: start;
}

.contact-info h2 {
    margin: 14px 0 22px;

    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(46px, 4.5vw, 68px);
    font-weight: 400;

    line-height: 1;
}

.contact-info > p,
.contact-details p {
    font-size: 17px;
    line-height: 1.75;

    color: #5c6674;
}

.contact-details {
    margin-top: 35px;
    padding-top: 25px;

    border-top: 1px solid rgba(20,35,58,.14);
}


/* FORM */

.contact-form-wrap {
    padding: 40px;

    background: #f8f5ee;

    border: 1px solid rgba(20,35,58,.14);
}

.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.form-field {
    margin-bottom: 22px;
}

.form-field label {
    display: block;

    margin-bottom: 8px;

    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 600;

    letter-spacing: .08em;
    text-transform: uppercase;

    color: #14233a;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid rgba(20,35,58,.20);

    background: #fff;
    color: #14233a;

    font-family: Geist, Arial, sans-serif;
    font-size: 16px;

    outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #0073ae;

    box-shadow: 0 0 0 2px rgba(0,115,174,.10);
}

.form-field textarea {
    resize: vertical;
}


/* HONEYPOT */

.website-field {
    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* BUTTON */

.contact-button {
    display: inline-block;

    padding: 16px 24px;

    border: 0;

    background: #0073ae;
    color: #fff;

    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 600;

    letter-spacing: .1em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.contact-button:hover {
    background: #005f91;

    transform: translateY(-2px);
}


/* MOBILE */

@media (max-width: 900px) {

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

}

@media (max-width: 620px) {

    .contact-hero h1 {
        font-size: 54px;
    }

    .contact-hero-inner {
        transform: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-wrap {
        padding: 26px 20px;
    }

}

.contact-hero {
    height: 360px !important;
    min-height: 360px !important;
}

.contact-hero .eyebrow {
     color: #72c1ea;
    position: relative;
    top: -60px;
}

/* Tablet/mobile refinements; desktop remains unchanged. */
@media (max-width: 980px) {
    .contact-hero {
        height: auto !important;
        min-height: 400px !important;
    }

    .contact-hero-inner {
        padding: 64px 0;
        transform: none;
    }

    .contact-hero .eyebrow {
        top: 0;
    }

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

    .contact-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

@media (max-width: 620px) {
    .contact-hero {
        min-height: 390px !important;
    }

    .contact-hero-inner {
        padding: 54px 0;
    }

    .contact-hero h1 {
        font-size: clamp(40px, 12vw, 50px);
    }

    .contact-hero p {
        font-size: 17px;
        line-height: 1.55;
    }

    .contact-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .contact-grid {
        gap: 36px;
    }

    .contact-info h2 {
        font-size: 42px;
    }

    .contact-form-wrap {
        padding: 24px 20px;
    }

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