/*----------------------------------------*/
/*  CONTACT (page-contact.php)             */
/*  No Figma frame. Two white cards — the  */
/*  address/phone/social column and the    */
/*  Contact Form 7 form with 58px fields   */
/*  and floating labels (global.js adds    */
/*  .focus / .value to .input-field-wrapp) */
/*  — then the building photo as a rounded */
/*  card.                                  */
/*  Replaces the CONTACT block in style.css.*/
/*----------------------------------------*/

body.page-template-page-contact .header-empty-space {
    display: none;
}

body.page-template-page-contact .contact-sec {
    position: relative;
    margin: 0;
    padding: 30px 0 0;
}

body.page-template-page-contact .contact-sec > .container {
    max-width: calc(var(--in-wide) + var(--rd-gutter) * 2);
    width: 100%;
    padding: 0 var(--rd-gutter);
}

body.page-template-page-contact .contact-sec .container .container {
    max-width: none;
    padding: 0;
}

body.page-template-page-contact .contact-sec .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin: 0;
}

/* every Bootstrap column here spans its row; the two-card split and the
   form's field pairs are CSS grids below */
body.page-template-page-contact .contact-sec .row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* info left, form right */
body.page-template-page-contact .contact-sec > .container > .row > [class*="col-"] > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

body.page-template-page-contact .contact-sec .order-lg-1 {
    order: 1;
}

body.page-template-page-contact .contact-sec .order-lg-2 {
    order: 2;
}


/*--------------------*/
/* - INFO CARD        */
/*--------------------*/
body.page-template-page-contact .contact-info {
    height: 100%;
    max-width: none;
    padding: clamp(30px, 3.1vw, 60px);
    background-color: var(--rd-white);
    border-radius: var(--rd-radius);
}

body.page-template-page-contact .contact-info .block-entry {
    padding: 0;
}

body.page-template-page-contact .contact-info .title,
body.page-template-page-contact .contact-block .block-entry .title {
    margin: 0 0 clamp(30px, 3.1vw, 60px);
    font-family: var(--rd-ff-head);
    font-size: clamp(34px, 3.55vw, 68px);
    line-height: 1.16;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
    text-transform: none;
}

/* inline marks inside the heading (b, strong, span) keep its face —
   the section's universal `*` rule would reset them to the text font */
body.page-template-page-contact .contact-info .title *,
body.page-template-page-contact .contact-block .block-entry .title * {
    font-family: inherit;
}

body.page-template-page-contact .contact-info .row > .mrbot {
    margin-bottom: 30px;
}

body.page-template-page-contact .contact-info .sa.extraextralarge {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--rd-txt-on-light-muted);
}

body.page-template-page-contact .contact-info .sa.extraextralarge:empty,
body.page-template-page-contact .contact-info .row > [class*="col-"]:has(> .sa:empty) {
    display: none;
}

body.page-template-page-contact .contact-info .sa.extraextralarge b {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--rd-txt-on-light);
}

body.page-template-page-contact .contact-info .sa.extraextralarge b + br,
body.page-template-page-contact .contact-info .sa.extraextralarge a > br:first-child {
    display: none;
}

body.page-template-page-contact .contact-info .sa.extraextralarge a {
    color: var(--rd-txt-on-light);
    text-decoration: none;
}

body.page-template-page-contact .contact-info .toolpanel-wrapper {
    display: none;
}

body.page-template-page-contact .contact-info .follow-title {
    margin: 40px 0 16px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--rd-txt-on-light);
}

body.page-template-page-contact .contact-info .social-wrapper {
    display: flex;
    gap: 8px;
    margin: 0;
}

body.page-template-page-contact .contact-info .social-icon-entry {
    width: 46px;
    height: 46px;
    margin: 0;
    background: none;
}

body.page-template-page-contact .contact-info .social-icon-entry a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--rd-surface);
    border-radius: var(--rd-radius);
    transition: background-color var(--rd-transition);
}

body.page-template-page-contact .contact-info .social-icon-entry img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) opacity(.87);
}

@media (min-width: 1200px) {
    body.page-template-page-contact .contact-info .sa.extraextralarge a:hover {
        text-decoration: underline;
        text-decoration-color: var(--rd-accent);
        text-underline-offset: 3px;
    }

    body.page-template-page-contact .contact-info .social-icon-entry a:hover {
        background-color: var(--rd-accent);
    }
}


/*--------------------*/
/* - FORM CARD        */
/*--------------------*/
body.page-template-page-contact .contact-block {
    height: 100%;
    padding: clamp(30px, 3.1vw, 60px);
    background-color: var(--rd-white);
    border-radius: var(--rd-radius);
}

/* the page title is repeated here for phones, where the info card follows */
body.page-template-page-contact .contact-block .block-entry {
    display: none;
    padding: 0;
}

body.page-template-page-contact .contact-block .block-title {
    max-width: none;
    margin: 0 0 30px;
}

body.page-template-page-contact .contact-block .block-title > * {
    margin: 0;
}

body.page-template-page-contact .contact-block .block-title .title {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--rd-txt-on-light-muted);
}

body.page-template-page-contact .contact-block .block-title .title b {
    display: block;
    margin-bottom: 6px;
    font-family: var(--rd-ff-head);
    font-size: clamp(22px, 1.5vw, 28px);
    line-height: 1.15;
    font-weight: 500;
    color: var(--rd-txt-on-light);
}

/* inline marks inside the heading (b, strong, span) keep its face —
   the section's universal `*` rule would reset them to the text font */
body.page-template-page-contact .contact-block .block-title .title b * {
    font-family: inherit;
}

body.page-template-page-contact .contact-block form p {
    margin: 0;
}

/*--------------------*/
/* - PHOTO            */
/*--------------------*/
body.page-template-page-contact .contact-sec > .block-entry.padding-bottom {
    height: clamp(320px, 33vw, 640px);
    margin: 16px var(--rd-gutter) var(--in-section);
    padding: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: var(--rd-radius);
    box-shadow: none;
}

body.page-template-page-contact .contact-sec > .block-entry.padding-bottom::before,
body.page-template-page-contact .contact-sec > .block-entry.padding-bottom::after {
    content: none;
}


/*--------------------*/
/* - TABLET (<992px)  */
/*--------------------*/
/* one column: the form first (with the title), then the details */
@media (max-width: 991px) {
    body.page-template-page-contact .contact-sec > .container > .row > [class*="col-"] > .row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-template-page-contact .contact-sec .order-lg-1 {
        order: 2;
    }

    body.page-template-page-contact .contact-sec .order-lg-2 {
        order: 1;
    }

    body.page-template-page-contact .contact-block .block-entry {
        display: block;
    }

    body.page-template-page-contact .contact-info > .block-entry:first-child {
        display: none;
    }
}


/*--------------------*/
/* - PHONE (<768px)   */
/*--------------------*/
@media (max-width: 767px) {
    body.page-template-page-contact .contact-sec {
        padding-top: 15px;
    }

    body.page-template-page-contact .contact-info,
    body.page-template-page-contact .contact-block {
        padding: 20px;
    }

    body.page-template-page-contact .contact-info .sa.extraextralarge {
        font-size: 18px;
    font-weight: 300;
    }

    body.page-template-page-contact .contact-sec > .block-entry.padding-bottom {
        height: 240px;
        margin-bottom: 60px;
    }
}
