/* Contact-only: info card, email call-to-action, responsive grid collapse */

/* Info card (left column): green panel with labelled contact details */
.vm-contact-info {
    padding: 40px;
    border-radius: var(--radius-large);
    background-color: var(--green);
    color: var(--white);
}

.vm-contact-info__list {
    display: grid;
    row-gap: 30px;
    margin: 0;
}

.vm-contact-info__item dt {
    margin-bottom: 8px;
    color: var(--white);
    opacity: .75;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.vm-contact-info__item dd {
    max-width: 32ch;
    text-wrap: balance;
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: var(--text-lead);
    font-weight: 500;
    line-height: 1.5;
}

.vm-contact-info__item a {
    color: inherit;
    text-decoration: none;
}

.vm-contact-info__item a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.vm-contact-info__item .vm-contact-info__socials {
    display: flex;
    flex-wrap: wrap;
    column-gap: 22px;
    row-gap: 6px;
    max-width: none;
}

/* Right column: heading, a short invitation and an email button */
.vm-contact-cta__text {
    max-width: 42ch;
    margin: 0 0 30px;
}

/* Tablet and phone: one column, with the "Contact us" invitation first and the
   details card after it. The section's own padding is enough space under the hero. */
@media (max-width: 991px) {
    .vm-contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        margin-top: 0;
    }

    .vm-contact-info {
        order: 2;
    }
}

/* Tablet: details in two columns
   (the social links row spans both so it stays on one line) */
@media (min-width: 600px) and (max-width: 991px) {
    .vm-contact-info__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
    }

    .vm-contact-info__item:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .vm-form-title { font-size: 28px; }
    .vm-contact-info { padding: 28px; }
    .vm-contact-info__list { row-gap: 24px; }
    .vm-contact-grid { gap: 40px; }
}

/* Narrow phones (360px wide is common on Android): keep the three social links on one line */
@media (max-width: 374px) {
    .vm-contact-info__item .vm-contact-info__socials { column-gap: 14px; }
}

/* Smallest phones: a touch less padding and type so the hours fit on one line */
@media (max-width: 359px) {
    .vm-contact-info { padding: 24px; }
    .vm-contact-info__item dd { font-size: 17px; }
}

/* Hero photo framing */
.vm-contact-hero-img {
    object-position: 50% 45%;
}

@media (max-width: 767px) {
    .vm-contact-hero-img {
        object-position: 70% 50%;
    }
}
