/* =========================================================
   PROGEN - Contato
   Complementa public/css/progen.css
   ========================================================= */

.contact-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--brand-deep);
    color: #fff;
}

.contact-hero-photo {
    position: absolute;
    inset: 0;
    background-image: url('../images/progen/sede-progen.jpeg');
    background-size: cover;
    background-position: center 47%;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 37, 40, .98) 0%,
        rgba(3, 45, 49, .92) 37%,
        rgba(3, 45, 49, .61) 60%,
        rgba(3, 45, 49, .18) 100%
    );
}

.contact-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 62px;
    padding-bottom: 62px;
}

.contact-hero-copy {
    max-width: 720px;
}

.contact-hero-copy h1 {
    font-size: clamp(3.2rem, 5.6vw, 5.6rem);
    letter-spacing: -.052em;
}

.contact-hero-copy h1 span {
    color: #3ad0da;
}

.contact-hero-copy > p:not(.eyebrow) {
    max-width: 610px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 1.02rem;
}

.contact-hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-hero-link {
    min-width: 250px;
    min-height: 64px;
    padding: 10px 17px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    background: rgba(3, 48, 52, .54);
    backdrop-filter: blur(4px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.contact-hero-link:hover {
    transform: translateY(-2px);
    border-color: rgba(73,221,231,.72);
    background: rgba(3, 65, 70, .72);
}

.contact-hero-icon {
    width: 30px;
    color: #45d5df;
}

.contact-hero-icon svg {
    width: 27px;
    height: 27px;
}

.contact-hero-link small,
.contact-hero-link strong {
    display: block;
}

.contact-hero-link small {
    margin-bottom: 3px;
    color: rgba(255,255,255,.61);
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: .61rem;
}

.contact-hero-link strong {
    color: #fff;
    font-size: .82rem;
}

/* Introdução / sede */
.contact-intro {
    background: #fff;
}

.contact-intro-grid {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: 72px;
    align-items: center;
}

.contact-intro-copy h2 {
    max-width: 610px;
}

.contact-intro-copy > p:not(.eyebrow) {
    max-width: 580px;
    margin: 18px 0 0;
    color: var(--muted);
}

.contact-address-block {
    margin: 28px 0 20px;
    padding: 22px 0;
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-address-icon {
    flex: 0 0 34px;
    color: var(--brand);
}

.contact-address-icon svg {
    width: 30px;
    height: 30px;
}

.contact-address-block strong {
    color: var(--brand-dark);
}

.contact-address-block p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .91rem;
    line-height: 1.55;
}

.contact-building {
    position: relative;
    min-height: 420px;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-building img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.contact-building figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 280px;
    padding: 20px 24px;
    background: rgba(3, 56, 60, .94);
    color: #fff;
}

.contact-building figcaption span,
.contact-building figcaption strong {
    display: block;
}

.contact-building figcaption span {
    margin-bottom: 5px;
    color: #4ad8e1;
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: .64rem;
    font-weight: 800;
}

.contact-building figcaption strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 500;
}

/* Departamentos */
.contact-departments {
    padding: 72px 0 80px;
    background: linear-gradient(135deg, #053f43, #063438);
    color: #fff;
}

.contact-section-heading {
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 34px;
}

.contact-section-heading h2 {
    color: #fff;
}

.contact-section-heading > p {
    margin: 0;
    color: rgba(255,255,255,.70);
    font-size: .92rem;
}

.contact-department-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,.16);
    border-left: 1px solid rgba(255,255,255,.16);
}

.contact-department-card {
    position: relative;
    min-height: 295px;
    padding: 32px 26px 28px;
    border-right: 1px solid rgba(255,255,255,.16);
    border-bottom: 1px solid rgba(255,255,255,.16);
    transition: background .2s ease, transform .2s ease;
}

.contact-department-card:hover {
    background: rgba(37,193,204,.08);
}

.contact-department-number {
    position: absolute;
    top: 23px;
    right: 23px;
    color: rgba(255,255,255,.25);
    font-family: Georgia, serif;
}

.contact-department-icon {
    display: block;
    width: 42px;
    height: 42px;
    margin-bottom: 31px;
    color: #4ad8e1;
}

.contact-department-icon svg {
    width: 100%;
    height: 100%;
}

.contact-department-card h3 {
    color: #fff;
    font-size: 1.48rem;
}

.contact-department-card p {
    min-height: 68px;
    margin: 13px 0 25px;
    color: rgba(255,255,255,.67);
    font-size: .87rem;
}

.contact-department-card > strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.92);
    font-size: .72rem;
    font-weight: 700;
    word-break: break-word;
}

.contact-department-card > strong span {
    color: #4ad8e1;
}

/* Formulário e mapa */
.contact-form-area {
    background: #fbfbf8;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 34px;
    align-items: stretch;
}

.contact-form-panel,
.contact-map-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(14,57,60,.06);
}

.contact-form-panel {
    padding: 38px 40px 42px;
}

.contact-form-panel h2 {
    font-size: clamp(2rem, 3.1vw, 3rem);
}

.contact-form-intro {
    max-width: 660px;
    margin: 14px 0 28px;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 17px;
}

.contact-fields-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field > span {
    color: #31494c;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    border: 1px solid #d9e1e0;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.contact-field input,
.contact-field select {
    height: 49px;
    padding: 0 14px;
}

.contact-field textarea {
    min-height: 150px;
    padding: 13px 14px;
    resize: vertical;
    font: inherit;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(7,134,146,.10);
}

.contact-submit {
    justify-self: start;
    margin-top: 3px;
    border: 0;
    cursor: pointer;
}

.contact-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-alert {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 7px;
    font-size: .88rem;
    line-height: 1.5;
}

.contact-alert ul {
    margin: 7px 0 0 18px;
    padding: 0;
}

.contact-alert-success {
    border: 1px solid #b8ddd0;
    background: #eff9f5;
    color: #23654e;
}

.contact-alert-error {
    border: 1px solid #e8c6c6;
    background: #fff3f3;
    color: #8a3737;
}

.contact-map-panel {
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr auto;
}

.contact-map {
    min-height: 435px;
    background: #dce5e3;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 435px;
    border: 0;
    display: block;
}

.contact-map-info {
    padding: 24px 27px 26px;
    border-top: 1px solid var(--line);
}

.contact-map-info h3 {
    font-size: 1.55rem;
}

.contact-map-info p:not(.eyebrow) {
    margin: 9px 0 14px;
    color: var(--muted);
    font-size: .88rem;
}

.contact-map-info a {
    display: inline-flex;
    gap: 9px;
    color: var(--brand-dark);
    font-size: .82rem;
    font-weight: 800;
}

.contact-map-info a span {
    color: var(--brand);
}

/* CTA genética */
.contact-genetics-cta {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    background: #0b3538;
}

.contact-genetics-photo {
    position: absolute;
    inset: 0;
    background-image: url('../images/progen/gado-por-do-sol.jpg');
    background-size: cover;
    background-position: center 55%;
}

.contact-genetics-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,33,35,.96), rgba(4,48,51,.76), rgba(4,48,51,.30));
}

.contact-genetics-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    padding-top: 42px;
    padding-bottom: 42px;
}

.contact-genetics-inner h2 {
    color: #fff;
}

.contact-genetics-inner p:not(.eyebrow) {
    max-width: 650px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.82);
}

@media (max-width: 1050px) {
    .contact-department-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 350px;
    }

    .contact-map iframe {
        min-height: 350px;
    }
}

@media (max-width: 820px) {
    .contact-hero {
        min-height: 500px;
    }

    .contact-hero-photo {
        background-position: 58% center;
    }

    .contact-hero-overlay {
        background: linear-gradient(90deg, rgba(3,37,40,.97), rgba(3,45,49,.84), rgba(3,45,49,.54));
    }

    .contact-intro-grid,
    .contact-section-heading {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .contact-building {
        min-height: 370px;
    }

    .contact-section-heading {
        align-items: start;
    }

    .contact-genetics-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        min-height: 535px;
    }

    .contact-hero-inner {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .contact-hero-copy h1 {
        font-size: 3.25rem;
    }

    .contact-hero-actions {
        flex-direction: column;
    }

    .contact-hero-link {
        width: 100%;
        min-width: 0;
    }

    .contact-department-grid,
    .contact-fields-two {
        grid-template-columns: 1fr;
    }

    .contact-department-card {
        min-height: 0;
    }

    .contact-department-card p {
        min-height: 0;
    }

    .contact-form-panel {
        padding: 28px 22px 30px;
    }

    .contact-building {
        min-height: 300px;
    }

    .contact-building figcaption {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .contact-submit {
        width: 100%;
    }

    .contact-genetics-inner .btn {
        width: 100%;
    }
}
