/*----------------------------------------*/
/*  ABOUT US (page-about.php)              */
/*  No Figma frame. A dark rounded intro   */
/*  plate with the two lamp cut-outs, the  */
/*  core values and "who we work with" as  */
/*  photo cards with glass panels, the     */
/*  team as white tiles (with the shared   */
/*  popup) and the closing two-column text */
/*  card.                                  */
/*  Replaces the ABOUT BANNER, SECTION BG, */
/*  ABOUT TEXT and TEAM SECTION blocks in  */
/*  style.css.                             */
/*----------------------------------------*/

body.page-template-page-about .container {
    max-width: none;
    width: 100%;
    padding: 0;
}

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

body.page-template-page-about .section .row > [class*="col-"] {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* single wrapper columns inside Bootstrap flex rows span the row */
body.page-template-page-about .section .row > .col-12:only-child,
body.page-template-page-about .about-text-sec .container > .row > [class*="col-"] {
    flex: 1 1 100%;
    width: 100%;
}


/*--------------------*/
/* - INTRO PLATE      */
/*--------------------*/
body.page-template-page-about .about-banner {
    margin: 30px var(--rd-gutter) 0;
    background-color: var(--rd-dark);
    border-radius: var(--rd-radius);
    overflow: hidden;
}

/* the template paints a navy gradient inline */
body.page-template-page-about .about-banner .banner-entry-bg {
    display: block;
    position: absolute;
    inset: 0;
    padding: 0;
    background: radial-gradient(120% 90% at 85% 0%, rgba(0, 61, 166, .16) 0%, rgba(0, 61, 166, 0) 55%), var(--rd-dark) !important;
}

body.page-template-page-about .about-banner .banner-entry-content {
    position: relative;
    z-index: 1;
}

body.page-template-page-about .about-banner .banner-entry-align {
    display: block;
    width: 100%;
    height: auto;
    padding: clamp(40px, 5.2vw, 100px);
}

body.page-template-page-about .about-banner .banner-entry-info {
    max-width: none;
    padding: 0;
}

body.page-template-page-about .about-banner .row-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(200px, 17vw, 320px);
    align-items: start;
    gap: 40px;
    margin: 0 0 clamp(40px, 4.2vw, 80px);
}

body.page-template-page-about .about-banner .row-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 5.2vw, 100px);
}

body.page-template-page-about .about-banner .text-top > *:not(:last-child),
body.page-template-page-about .about-banner .text-bottom > *:not(:last-child) {
    margin-bottom: 20px;
}

body.page-template-page-about .about-banner .text-top .subtitle {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rd-accent);
}

body.page-template-page-about .about-banner .text-top .title.desc {
    max-width: 1100px;
    font-size: clamp(30px, 2.9vw, 56px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-white);
}

body.page-template-page-about .about-banner .text-top .title.desc b,
body.page-template-page-about .about-banner .text-top .title.desc strong {
    font-size: inherit;
    font-weight: 700;
}

body.page-template-page-about .about-banner .text-bottom .title {
    font-size: clamp(34px, 2.7vw, 52px);
    line-height: 1.16;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-white);
    text-transform: none;
}

body.page-template-page-about .about-banner .text-bottom .text {
    max-width: 725px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--rd-txt-muted);
}

body.page-template-page-about .about-banner .text-bottom .text p {
    margin: 0 0 12px;
}

body.page-template-page-about .about-banner .text-bottom .text .btn {
    margin-top: 18px;
}

body.page-template-page-about .about-banner .banner-img-wrapp {
    position: relative;
    height: auto;
    margin: 0;
}

body.page-template-page-about .about-banner .banner-img {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin: 0;
}

body.page-template-page-about .about-banner .banner-img.type-1 {
    padding-bottom: 100%;
}

body.page-template-page-about .about-banner .banner-img.type-2 {
    padding-bottom: 90%;
}

body.page-template-page-about .about-banner .banner-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/*--------------------*/
/* - PHOTO SECTIONS   */
/*--------------------*/
/* Core values (size-1) and "who we work with" (size-2): the photo in a
   rounded card, dimmed, with the copy on glass. */
body.page-template-page-about .section-bg {
    position: relative;
    margin: 16px var(--rd-gutter) 0;
    background-position: center;
    background-size: cover;
    border-radius: var(--rd-radius);
    overflow: hidden;
}

body.page-template-page-about .section-bg .opacity,
body.page-template-page-about .section-bg .bg-mobile {
    display: none;
}

body.page-template-page-about .section-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(32, 32, 32, .15) 0%, rgba(32, 32, 32, .7) 100%);
}

body.page-template-page-about .section-bg-align {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    width: 100%;
    padding: 30px;
    overflow: visible;
}

body.page-template-page-about .section-bg-align.size-1 {
    min-height: clamp(520px, 41.7vw, 800px);
}

body.page-template-page-about .section-bg-align.size-2 {
    min-height: clamp(391px, 32vw, 615px);
}

body.page-template-page-about .section-bg-align > .container {
    width: 100%;
}

body.page-template-page-about .section-bg-align .row {
    display: block;
}

/* values */
body.page-template-page-about .values-inner {
    margin: 0;
}

body.page-template-page-about .values-inner > .title {
    margin: 0 0 30px;
    font-size: clamp(34px, 2.7vw, 52px);
    line-height: 1.16;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-white);
    text-transform: none;
    text-align: left;
}

body.page-template-page-about .values-wrapp {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

body.page-template-page-about .values-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: auto;
    margin: 0;
    padding: 30px;
    background-color: var(--rd-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--rd-glass-border);
    border-radius: var(--rd-radius);
    text-align: left;
}

body.page-template-page-about .values-item > *:not(:last-child) {
    margin: 0;
}

body.page-template-page-about .values-icon {
    width: 56px;
    height: 56px;
    margin: 0;
}

body.page-template-page-about .values-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.page-template-page-about .values-item .title {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-txt-muted);
    text-transform: uppercase;
}

body.page-template-page-about .values-item .title b {
    display: block;
    font-weight: 700;
    color: var(--rd-white);
}

/* who we work with */
body.page-template-page-about .section-bg-align.size-2 .block-title {
    max-width: 725px;
    margin: 0;
    padding: 30px;
    background-color: var(--rd-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--rd-glass-border);
    border-radius: var(--rd-radius);
}

body.page-template-page-about .section-bg-align.size-2 .block-title > *:not(:last-child) {
    margin-bottom: 12px;
}

body.page-template-page-about .section-bg-align.size-2 .title {
    font-size: clamp(34px, 2.7vw, 52px);
    line-height: 1.16;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-white);
    text-transform: none;
}

body.page-template-page-about .section-bg-align.size-2 .text {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--rd-txt-muted);
}


/*--------------------*/
/* - TEAM             */
/*--------------------*/
body.page-template-page-about .team-sec {
    padding: var(--in-section) var(--rd-gutter) 0;
}

body.page-template-page-about .team-sec:not(:has(.team-item)) {
    display: none;
}

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

body.page-template-page-about .team-sec .block-title .title {
    margin: 0;
    font-size: clamp(34px, 2.7vw, 52px);
    line-height: 1.16;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
    text-transform: none;
    text-align: left;
}

body.page-template-page-about .team-sec .row > [class*="col-"] {
    width: 100%;
}

body.page-template-page-about .team-wrapp {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

body.page-template-page-about .team-sec .team-wrapp > [class*="col-"] {
    width: auto;
}

body.page-template-page-about .team-sec .team-item {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 12px 20px;
    background-color: var(--rd-white);
    border: 1px solid transparent;
    border-radius: var(--rd-radius);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--rd-transition);
}

body.page-template-page-about .team-img {
    position: relative;
    width: 100%;
    height: auto;
    padding-bottom: 100%;
    margin: 0;
    background-color: var(--rd-surface);
    border-radius: var(--rd-radius);
    overflow: hidden;
}

body.page-template-page-about .team-img::before {
    content: none;
}

body.page-template-page-about .team-img img {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transform: none;
}

body.page-template-page-about .team-sec .team-info {
    margin: 16px 0 0;
    padding: 0 8px;
}

body.page-template-page-about .team-sec .team-info > *:not(:last-child) {
    margin-bottom: 4px;
}

body.page-template-page-about .team-sec .team-info .title {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
    text-decoration: none;
}

body.page-template-page-about .team-sec .team-info .text {
    font-size: 16px;
    line-height: 1.3;
    color: var(--rd-txt-on-light-muted);
}

@media (min-width: 1200px) {
    body.page-template-page-about .team-sec .team-item:hover {
        border-color: var(--rd-accent);
    }
}

/* member popup */
body.page-template-page-about .team-popup .team-item {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: none;
    cursor: default;
}

body.page-template-page-about .team-popup .team-img {
    flex: 0 0 360px;
    width: 360px;
    padding-bottom: 0;
    height: 360px;
}

body.page-template-page-about .team-popup .team-info {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding-top: 10px;
}

body.page-template-page-about .team-popup .team-info > *:not(:last-child) {
    margin-bottom: 16px;
}

body.page-template-page-about .team-popup .team-info .title.title-main {
    margin-bottom: 8px;
    font-size: clamp(34px, 2.7vw, 52px);
    line-height: 1.16;
    font-weight: 400;
    color: var(--rd-txt-on-light);
    text-transform: none;
}

body.page-template-page-about .team-popup .team-info .title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--rd-txt-on-light-muted);
}

body.page-template-page-about .team-popup .team-info .text {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--rd-txt-on-light-muted);
}


/*--------------------*/
/* - CLOSING TEXT     */
/*--------------------*/
body.page-template-page-about .about-text-sec {
    position: relative;
    padding: clamp(60px, 5.2vw, 100px) var(--rd-gutter) var(--in-section);
}

body.page-template-page-about .about-text-wrapp {
    max-width: none;
    margin: 0;
    padding: clamp(30px, 5.2vw, 100px);
    background-color: var(--rd-white);
    border-radius: var(--rd-radius);
}

body.page-template-page-about .about-text-wrapp > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5.2vw, 100px);
}

body.page-template-page-about .about-text {
    max-width: none;
    margin: 0;
}

body.page-template-page-about .about-text .title {
    margin: 0 0 20px;
    font-size: clamp(30px, 2.1vw, 40px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--rd-txt-on-light);
}

body.page-template-page-about .about-text .text {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--rd-txt-on-light-muted);
}

body.page-template-page-about .about-text .text > * + * {
    margin-top: 14px;
}

/* the lamp cut-outs overlap the card corners on wide screens only */
body.page-template-page-about .about-text-sec .bg-img {
    position: absolute;
    z-index: 2;
    width: clamp(200px, 13vw, 260px);
    max-width: none;
    padding-bottom: 0;
    pointer-events: none;
}

body.page-template-page-about .about-text-sec .bg-img img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
}

body.page-template-page-about .about-text-sec .bg-img.type-1 {
    top: clamp(-10px, 1vw, 20px);
    left: 0;
}

body.page-template-page-about .about-text-sec .bg-img.type-2 {
    right: 0;
    bottom: clamp(30px, 4vw, 80px);
}

@media (max-width: 1599px) {
    body.page-template-page-about .about-text-sec .bg-img {
        display: none;
    }
}


/*--------------------*/
/* - TABLET (<1200px) */
/*--------------------*/
@media (max-width: 1199px) {
    body.page-template-page-about .about-banner {
        margin-top: 20px;
    }

    body.page-template-page-about .values-wrapp {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-template-page-about .section-bg-align {
        padding: 20px;
    }

    body.page-template-page-about .values-item,
    body.page-template-page-about .section-bg-align.size-2 .block-title {
        padding: 24px;
    }

    body.page-template-page-about .team-popup .team-item {
        gap: 30px;
    }

    body.page-template-page-about .team-popup .team-img {
        flex-basis: 260px;
        width: 260px;
        height: 260px;
    }
}


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

    body.page-template-page-about .about-banner .banner-entry-align {
        padding: 30px 20px;
    }

    body.page-template-page-about .about-banner .row-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    body.page-template-page-about .about-banner .row-top .banner-img-wrapp {
        width: 50%;
        margin-left: auto;
    }

    body.page-template-page-about .about-banner .row-bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    body.page-template-page-about .about-banner .row-bottom .banner-img-wrapp {
        display: none;
    }

    body.page-template-page-about .about-banner .text-bottom .text .btn {
        width: 100%;
    }

    body.page-template-page-about .section-bg-align {
        padding: 12px;
    }

    body.page-template-page-about .section-bg-align.size-1 {
        min-height: 0;
        padding-top: 180px;
    }

    body.page-template-page-about .section-bg-align.size-2 {
        min-height: 360px;
    }

    body.page-template-page-about .values-inner > .title {
        margin-bottom: 16px;
        padding: 0 8px;
    }

    body.page-template-page-about .values-wrapp {
        gap: 8px;
    }

    body.page-template-page-about .values-item,
    body.page-template-page-about .section-bg-align.size-2 .block-title {
        gap: 16px;
        padding: 16px;
    }

    body.page-template-page-about .values-icon {
        width: 40px;
        height: 40px;
    }

    body.page-template-page-about .values-item .title {
        font-size: 18px;
    }

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

    body.page-template-page-about .team-sec .team-item {
        padding: 8px 8px 16px;
    }

    body.page-template-page-about .team-sec .team-info {
        margin-top: 12px;
        padding: 0 4px;
    }

    body.page-template-page-about .team-sec .team-info .title {
        font-size: 18px;
    }

    body.page-template-page-about .team-sec .team-info .text {
        font-size: 14px;
    }

    body.page-template-page-about .team-popup .team-item {
        flex-direction: column;
        gap: 20px;
    }

    body.page-template-page-about .team-popup .team-img {
        flex-basis: auto;
        width: 100%;
        height: auto;
        padding-bottom: 100%;
    }

    body.page-template-page-about .about-text-wrapp > .row {
        grid-template-columns: minmax(0, 1fr);
    }
}
