/*
 * Bubble Shooters Network: page blocks, link style and header drop-downs.
 * Loaded after app.css. Hand-written (no build step); the colours are the theme's:
 * navy #2C3157, green #70BAA2.
 */

/* ------------------------------------------------------------------ helpers */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------ links in body text (row 13) */
:where(.content, .bs-richtext, .terms_content, .collaborate-txt, .empty_and_text, .contents, .box_content, .du_cols-slider, .learn_more-head, .quote, .bs-text, .bs-project) a:not([class]) {
    color: #2C3157;
    text-decoration: underline;
    text-decoration-color: #70BAA2;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

:where(.content, .bs-richtext, .terms_content, .collaborate-txt, .empty_and_text, .contents, .box_content, .du_cols-slider, .learn_more-head, .quote, .bs-text, .bs-project) a:not([class]):hover,
:where(.content, .bs-richtext, .terms_content, .collaborate-txt, .empty_and_text, .contents, .box_content, .du_cols-slider, .learn_more-head, .quote, .bs-text, .bs-project) a:not([class]):focus-visible {
    color: #70BAA2;
}

.bs-band a:not([class]) {
    color: #FFFFFF;
}

/* ------------------------------------------------------------------ buttons */
.bs-btn {
    display: inline-block;
    border: 2px solid #70BAA2;
    border-radius: 300px;
    padding: 8px 22px;
    font-size: 18px;
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
    background: transparent;
}

.bs-btn:hover,
.bs-btn:focus-visible {
    background: #70BAA2;
    color: #000000;
}

.bs-btn--light {
    color: #FFFFFF;
}

.bs-btn--light:hover,
.bs-btn--light:focus-visible {
    color: #000000;
}

/* ------------------------------------------------------------------ blocks: shared */
.bs-blocks {
    width: 100%;
}

.bs-blocks .bs-heading {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 40px 0 20px;
    text-transform: none;
}

/* Blocks below the fixed sections of a page (Home, About, Articles, single items) */
.bs-blocks--section {
    padding: 0 5vw 80px;
}

@media (max-width: 1400px) {
    .bs-blocks--section {
        padding: 0 5% 60px;
    }
}

/* ------------------------------------------------------------------ text */
.bs-blocks .bs-text__lead {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
}

@media (min-width: 1401px) {
    .bs-blocks .bs-text__lead {
        margin-top: 1.71875vw;
    }
}

@media (max-width: 1400px) {
    .bs-blocks .bs-text__lead {
        margin-top: 21px;
    }
}

@media (max-width: 600px) {
    .bs-blocks .bs-text__lead {
        font-size: 24px;
    }
}

.bs-blocks .bs-text__body > *:first-child {
    margin-top: 0;
}

.bs-blocks .bs-text__body > p {
    margin-top: 1em;
}

@media (min-width: 1401px) {
    .bs-blocks .bs-text:first-child .bs-text__body > p:first-child,
    .bs-blocks .bs-text__lead + .bs-text__body > p:first-child {
        margin-top: 1.71875vw;
    }
}

@media (max-width: 1400px) {
    .bs-blocks .bs-text:first-child .bs-text__body > p:first-child,
    .bs-blocks .bs-text__lead + .bs-text__body > p:first-child {
        margin-top: 21px;
    }
}

.bs-blocks .bs-text__body ul,
.bs-blocks .bs-text__body ol {
    padding-left: 1.2em;
    margin-top: 1em;
}

/* ------------------------------------------------------------------ projects */
.bs-project {
    border-top: 1px solid #000000;
    padding-top: 32px;
    margin-top: 40px;
}

.bs-pills {
    margin-bottom: 8px;
}

.bs-pill {
    display: inline-block;
    border-radius: 300px;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 8px 8px 0;
    color: #000000;
}

.bs-pill--outline {
    border: 2px solid #70BAA2;
    padding: 4px 14px;
}

.bs-pill--fill {
    background: #70BAA2;
    padding: 6px 16px;
    text-transform: uppercase;
}

.bs-blocks .bs-project__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
    text-transform: none;
    color: #000000;
}

.bs-project__client {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.bs-project__role {
    font-style: italic;
    margin-bottom: 14px;
}

.bs-blocks .bs-project__text,
.bs-blocks .bs-project__text p {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 0;
}

.bs-blocks .bs-project__text p + p {
    margin-top: 1em;
}

.bs-project__actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bs-project__caption {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 24px;
}

/* ------------------------------------------------------------------ client overview */
.bs-clients {
    border-top: 1px solid #000000;
    padding-top: 32px;
    margin-top: 56px;
}

.bs-blocks .bs-clients__heading {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    text-transform: none;
    color: #000000;
}

.bs-blocks .bs-clients__group {
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    margin: 22px 0 10px;
    text-transform: none;
    color: #000000;
}

.bs-bubbles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bs-bubble {
    display: inline-block;
    border: 1.5px solid #70BAA2;
    border-radius: 300px;
    padding: 5px 14px;
    font-size: 15px;
    line-height: 1.4;
    margin: 0 6px 8px 0;
}

/* ------------------------------------------------------------------ numbered cards */
.bs-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.bs-card {
    flex: 1 1 280px;
    background: #2C3157;
    color: #FFFFFF;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bs-card__number {
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    border-radius: 300px;
    background: #70BAA2;
    color: #000000;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.bs-blocks .bs-card__title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 14px;
    color: #FFFFFF;
}

.bs-card__title a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #70BAA2;
    text-underline-offset: 0.2em;
}

.bs-card__text {
    line-height: 1.55;
}

.bs-card__link {
    margin-top: auto;
    padding-top: 8px;
}

.bs-card .bs-card__link {
    margin-top: 24px;
}

/* ------------------------------------------------------------------ button */
.bs-button {
    margin-top: 40px;
}

/* ------------------------------------------------------------------ "Let's meet" band */
.bs-band {
    margin-top: 56px;
    padding: 40px;
    background: #2C3157;
    color: #FFFFFF;
}

.bs-band__text {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 20px;
}

.bs-blocks .bs-band__action {
    margin: 0;
}

@media (min-width: 1401px) {
    .bs-blocks .bs-band__action {
        margin-top: 1.71875vw;
    }

    .bs-page .bs-blocks {
        margin-bottom: 1.71875vw;
    }
}

@media (max-width: 1400px) {
    .bs-blocks .bs-band__action {
        margin-top: 21px;
    }

    .bs-page .bs-blocks {
        margin-bottom: 21px;
    }
}

@media (max-width: 600px) {
    .bs-band {
        padding: 28px 24px;
    }

    .bs-band__text {
        font-size: 20px;
    }
}

/* ------------------------------------------------------------------ image */
.bs-image {
    margin: 40px 0 0;
}

.bs-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bs-image figcaption {
    font-size: 14px;
    margin-top: 8px;
}

/* On small screens the page-title column is narrow (375px); let the blocks use the full width. */
@media (max-width: 600px) {
    .bs-page .portfolio_page-title,
    .bs-page .expertise_page-title {
        max-width: none;
    }

    .bs-page .portfolio_page-title p,
    .bs-page .expertise_page-title p {
        max-width: none;
    }

    .bs-blocks .bs-project__title,
    .bs-blocks .bs-clients__heading,
    .bs-blocks .bs-heading {
        font-size: 26px;
    }
}

/* ------------------------------------------------------------------ About: team with one person (row 23) */
@media (min-width: 943px) {
    .meet_the_team--single .meet_the_team-row {
        grid-template-columns: max-content minmax(0, 820px);
        grid-template-rows: auto auto auto 1fr;
        align-content: start;
        justify-content: start;
        padding-left: 5%;
        padding-right: 5%;
        margin-inline: 0;
        column-gap: max(48px, 4.5vw);
        row-gap: 0;
        max-width: none;
    }

    .meet_the_team--single .meet_the_team-col {
        display: contents;
    }

    .meet_the_team--single .meet_the_team-image {
        grid-column: 1;
        grid-row: 1 / span 4;
        align-self: start;
    }

    .meet_the_team--single .meet_the_team-col > h3,
    .meet_the_team--single .meet_the_team-col > p,
    .meet_the_team--single .meet_the_team-col > a {
        grid-column: 2;
        align-self: start;
        justify-self: start;
    }

    .meet_the_team--single .meet_the_team-col > h3 {
        margin-top: 0;
    }
}

/* A single photo (no second photo to swap to on hover) */
.meet_the_team-image--one img:first-child {
    opacity: 1 !important;
}

/* ------------------------------------------------------------------ header drop-downs (row 21) */
.header .submenu-toggle {
    display: none;
}

/* Desktop: open with the keyboard as well as on hover */
@media (min-width: 1201px) {
    .header .ul_menu > li:focus-within .submenu-wrapper {
        opacity: 1;
        top: 100%;
        pointer-events: all;
    }
}

/* Mobile: the toggle sits over the arrow; the parent link goes to its own page */
@media (max-width: 1200px) {
    .header .ul_menu > li.menu-item-has-children > .submenu-toggle {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 56px;
        height: var(--bs-toggle-h, 46px);
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
        z-index: 2;
        cursor: pointer;
    }

    .header .ul_menu > li.menu-item-has-children > a {
        padding-right: 56px;
    }

    .header .ul_menu > li.menu-item-has-children.actived > a::before {
        transform: translateY(-50%) rotate(180deg);
    }
}

/* The last item in a drop-down is a normal link (the parent item already links to the overview page).
   Give a menu item the CSS class "menu-all" in Appearance > Menus to show it in bold with an arrow. */
.header .ul_menu .sub-menu li:last-child {
    padding-top: 0;
}

.header .ul_menu .sub-menu li:last-child a {
    font-weight: 400;
    width: fit-content;
}

.header .ul_menu .sub-menu li:last-child a::before {
    display: none;
}

.header .ul_menu .sub-menu li.menu-all a {
    font-weight: 700;
    width: 100%;
}

.header .ul_menu .sub-menu li.menu-all a::before {
    display: block;
}

@media (min-width: 1401px) {
    .header .ul_menu .sub-menu li:last-child {
        padding-top: 0;
    }

    .header .ul_menu .sub-menu li.menu-all {
        padding-top: 1.7708333333vw;
    }
}

@media (max-width: 1400px) {
    .header .ul_menu .sub-menu li.menu-all {
        padding-top: 26px;
    }
}

@media (max-width: 1200px) {
    .header .ul_menu .sub-menu li.menu-all {
        padding-top: 0;
    }
}
