/*----------------------------------------*/
/*  SERVICES (page-services.php)           */
/*  No Figma frame. Photo head, sticky     */
/*  anchor tabs, an intro statement, the   */
/*  service blocks as white cards with a   */
/*  rounded photo, then the certification  */
/*  and association logos on white tiles.  */
/*                                         */
/*  global.js: `.navigation-panel.fixed`   */
/*  pins the tabs, `.scroll-to.active`     */
/*  follows the scroll. The per-block      */
/*  background/text colours set in the     */
/*  admin belonged to the old full-bleed   */
/*  bands and are overridden here.         */
/*  Replaces the SERVICE PAGE block in     */
/*  style.css.                             */
/*----------------------------------------*/

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

body.page-template-page-services .block-entry .row {
    margin: 0;
}

body.page-template-page-services .block-entry .row > [class*="col-"] {
    padding: 0;
}


/*--------------------*/
/* - INTRO            */
/*--------------------*/
body.page-template-page-services .text-sec {
    position: relative;
    padding: clamp(60px, 5.2vw, 100px) 0;
}

body.page-template-page-services .text-sec .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

body.page-template-page-services .text-sec .text-block {
    max-width: var(--in-text);
    margin: 0;
    text-align: left;
}

body.page-template-page-services .text-sec .title {
    margin: 0;
    font-size: clamp(24px, 1.9vw, 36px);
    line-height: 1.25;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
}

/* the lamp cut-out has no room beside the statement once the cards
   follow straight under it */
body.page-template-page-services .text-sec .thumbnail-image {
    display: none;
}


/*--------------------*/
/* - SERVICE BLOCKS   */
/*--------------------*/
body.page-template-page-services .block-services {
    padding: 0;
    background-color: transparent !important;
    font-size: inherit;
}

body.page-template-page-services .block-services + .block-services {
    margin-top: 16px;
}

body.page-template-page-services .block-services > .container > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(30px, 5.2vw, 100px);
    padding: 30px;
    background-color: var(--rd-white);
    border-radius: var(--rd-radius);
}

body.page-template-page-services .block-services > .container > .row > [class*="col-"] {
    flex: 1 1 50%;
    width: auto;
    max-width: none;
}

body.page-template-page-services .block-services .left-right-img {
    position: relative;
    padding-bottom: 66%;
    border-radius: var(--rd-radius);
    overflow: hidden;
}

body.page-template-page-services .block-services .left-right-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

body.page-template-page-services .block-services .content-block {
    max-width: 725px;
    margin: 0;
}

body.page-template-page-services .block-services .content-block > *:not(:last-child) {
    margin-bottom: 20px;
}

body.page-template-page-services .block-services .content-block .title {
    font-size: clamp(34px, 2.7vw, 52px);
    line-height: 1.16;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
    text-transform: none;
}

body.page-template-page-services .block-services .content-block .text {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: .01em;
    color: var(--rd-txt-on-light-muted);
}

body.page-template-page-services .block-services .content-block .text p {
    margin: 0;
}

body.page-template-page-services .block-services .content-block .rd-link {
    margin-top: 10px;
}

/* the image column gets the aligned side; rows alternate from the admin */
@media (min-width: 576px) {
    body.page-template-page-services .block-services .order-sm-1 {
        order: 1;
    }

    body.page-template-page-services .block-services .order-sm-2 {
        order: 2;
    }
}


/*--------------------*/
/* - LOGO WALLS       */
/*--------------------*/
body.page-template-page-services .certifications-sec,
body.page-template-page-services .industry-sec {
    position: relative;
    padding: var(--in-section) 0 0;
    text-align: left;
}

body.page-template-page-services .industry-sec {
    padding-top: clamp(60px, 5.2vw, 100px);
}

body.page-template-page-services .footer-empty-space {
    height: var(--in-section);
}

body.page-template-page-services .certifications-sec .block-title,
body.page-template-page-services .industry-sec .block-title {
    max-width: none;
    margin: 0 0 clamp(30px, 3.1vw, 60px);
}

body.page-template-page-services .block-title .rd-heading {
    margin: 0;
}

body.page-template-page-services .certifications-sec .block-title .h3 {
    max-width: 725px;
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-txt-on-light-muted);
}

body.page-template-page-services .certifications-wrapp,
body.page-template-page-services .industry-wrapp {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-width: none;
    margin: 0;
}

body.page-template-page-services .certifications-wrapp .certifications-column,
body.page-template-page-services .industry-wrapp .logo-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 140px;
    margin: 0;
    padding: 24px;
    background-color: var(--rd-white);
    border-radius: var(--rd-radius);
}

body.page-template-page-services .certifications-column .text-icon-shortcode {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.page-template-page-services .certifications-column img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

/* the association logos are <img> tiles themselves */
body.page-template-page-services .industry-wrapp .logo-entry {
    width: 100%;
    object-fit: contain;
    padding: 30px;
}


/*--------------------*/
/* - TABLET (<1200px) */
/*--------------------*/
@media (max-width: 1199px) {
    body.page-template-page-services .block-services > .container > .row {
        padding: 20px;
    }

    body.page-template-page-services .block-services .content-block .text {
        font-size: 16px;
    }
}


/*--------------------*/
/* - PHONE (<768px)   */
/*--------------------*/
@media (max-width: 767px) {
    body.page-template-page-services .block-services > .container > .row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 12px 12px 20px;
    }

    /* photo first on phones whatever the desktop side */
    body.page-template-page-services .block-services .row > [class*="col-"]:has(.left-right-img) {
        order: -1;
    }

    body.page-template-page-services .block-services .content-block {
        padding: 0 8px;
    }

    body.page-template-page-services .block-services .content-block .title {
        font-size: 30px;
    }

    body.page-template-page-services .certifications-wrapp,
    body.page-template-page-services .industry-wrapp {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.page-template-page-services .certifications-wrapp .certifications-column,
    body.page-template-page-services .industry-wrapp .logo-entry {
        height: 110px;
        padding: 20px;
    }

    body.page-template-page-services .certifications-column img {
        max-height: 60px;
    }
}
