/**
 * Main page sections (1.16.0; image frame + links side by side 1.17.1) —
 * Page Hero, Text + Image.
 *
 * One design for the main pages, copied from the Peristaltic page
 * (/chemical-metering-pumps/peristaltic-pumps/), measured Nov 29 2026:
 *   band padding 100 / 30 / 20 px (hero) and 50 / 30 / 20 px (other sections)
 *   + 20px inside, content box 1400px, two columns 50px apart.
 * Breakpoints match Elementor's: tablet <= 1024px, phone <= 767px.
 *
 * 1.17.1: the hero image sits in a rounded frame with a fixed shape (4:3,
 * 16:10 on tablet) so a square render and a wide photo give every page the
 * same hero height; on tablet / phone it comes after the subtitle and orange
 * rule. Links sit side by side: the circle-arrow link, then blue pill buttons.
 *
 * Every rule is scoped under .bw-sec (two classes) so it outranks the
 * Elementor kit (".elementor-kit-9 h1", ".elementor-kit-9 a") and Astra.
 */

.elementor-widget-bw-page-hero,
.elementor-widget-bw-text-media {
    width: 100%;
}

.bw-sec {
    --bw-blue: #005eb8;
    --bw-orange: #f48120;
    --bw-ink: #000000;
    --bw-heading: #141418;
    --bw-blue-dark: #00427f;
    --bw-line: #e2e6ea;
    box-sizing: border-box;
    width: 100%;
    background: #ffffff;
    font-family: "Open Sans", sans-serif;
    color: var(--bw-ink);
}

.bw-sec *,
.bw-sec *::before,
.bw-sec *::after {
    box-sizing: border-box;
}

.bw-sec.bg-gray {
    background: #f4f4f8;
}

/* the Explore section the hero's "Explore Models" link jumps to, clear of the
   fixed site header (95px desktop, 72px phone) */
#explore {
    scroll-margin-top: 110px;
}

/* ------------------------------------------------ text + links (shared) */

.bw-sec .bw-sec-text p {
    margin: 0 0 1.5em;
}

.bw-sec .bw-sec-text a {
    color: var(--bw-blue);
}

.bw-sec .bw-sec-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 40px;
}

.bw-sec .bw-sec-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--bw-ink);
    text-decoration: none;
}

.bw-sec .bw-sec-cta-icon {
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--bw-blue);
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.2s;
}

.bw-sec .bw-sec-cta-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--bw-blue);
    transition: fill 0.2s;
}

.bw-sec a.bw-sec-cta:hover .bw-sec-cta-icon,
.bw-sec a.bw-sec-cta:focus-visible .bw-sec-cta-icon {
    background: var(--bw-blue);
}

.bw-sec a.bw-sec-cta:hover .bw-sec-cta-icon svg,
.bw-sec a.bw-sec-cta:focus-visible .bw-sec-cta-icon svg {
    fill: #ffffff;
}

.bw-sec .bw-sec-cta-label {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--bw-ink);
}

/* blue pill button (second and later hero links) — the storefront's button,
   as tall as the circle so the two line up */
.bw-sec .bw-sec-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    background: var(--bw-blue);
    color: #ffffff;
    font: 800 13px/1 "Open Sans", sans-serif;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.bw-sec .bw-sec-pill svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.bw-sec a.bw-sec-pill:hover,
.bw-sec a.bw-sec-pill:focus-visible {
    background: var(--bw-blue-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ------------------------------------------------------ image frame */

.bw-sec .bw-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--bw-line);
    border-radius: 22px;
    background: radial-gradient(circle at 50% 42%, #ffffff, #e9eff5 78%);
}

.bw-sec .bw-frame img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

/* "Show the whole image": product renders sit on the frame's light background */
.bw-sec .bw-frame.fit-contain img {
    object-fit: contain;
    padding: 6%;
    mix-blend-mode: multiply;
}

/* ------------------------------------------------------------ Page Hero */

.bw-sec.bw-ph {
    padding: 100px 0;
}

.bw-sec .bw-ph-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "crumb" "title" "sub" "rule" "text" "cta";
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.bw-sec.bw-ph.has-media .bw-ph-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "crumb media"
        "title media"
        "sub   media"
        "rule  media"
        "text  media"
        "cta   media"
        ".     media";
    grid-template-rows: repeat(6, auto) 1fr;
    column-gap: 50px;
}

.bw-sec .bw-ph-crumb {
    grid-area: crumb;
    max-width: 700px;
}

.bw-sec .bw-ph-crumb .woocommerce-breadcrumb {
    margin: 0 0 10px;
}

.bw-sec .bw-ph-title {
    grid-area: title;
    justify-self: start;
    margin: 0;
    padding: 0 0 3px;
    font-family: "Open Sans", sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #000000;
}

.bw-sec .bw-ph-media {
    grid-area: media;
    align-self: center;
    aspect-ratio: 4 / 3;
    max-height: 560px;
}

.bw-sec .bw-ph-sub {
    grid-area: sub;
    max-width: 700px;
    margin: 0 0 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
    color: #000000;
}

.bw-sec .bw-ph-rule {
    grid-area: rule;
    width: 170px;
    height: 7px;
    margin: 2px 0 32px;
    background: var(--bw-orange);
}

.bw-sec .bw-ph-text {
    grid-area: text;
    max-width: 700px;
    padding-right: 10px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
}

.bw-sec .bw-ph-ctas {
    grid-area: cta;
}

/* -------------------------------------------------------- Text + Image */

.bw-sec.bw-tm {
    padding: 50px 0;
}

.bw-sec .bw-tm-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.bw-sec .bw-tm-body {
    align-self: center;
    padding: 20px 0;
}

.bw-sec .bw-tm-media {
    align-self: start;
    padding: 20px 0;
    text-align: center;
}

.bw-sec.bw-tm.media-left .bw-tm-media {
    order: -1;
}

.bw-sec .bw-tm-title {
    margin: 0 0 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
    color: var(--bw-heading);
}

.bw-sec .bw-tm-text {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

.bw-sec .bw-tm-img {
    display: inline-block;
    width: auto;
    max-width: min(100%, 500px);
    height: auto;
    vertical-align: top;
}

.bw-sec .bw-tm-video {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.bw-sec .bw-tm-video iframe,
.bw-sec .bw-tm-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bw-sec .bw-tm-play {
    display: block;
    padding: 0;
    background: #000000;
    cursor: pointer;
}

.bw-sec .bw-tm-play .bw-tm-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bw-sec .bw-tm-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: rgba(0, 94, 184, 0.9);
    transition: transform 0.2s;
}

.bw-sec .bw-tm-play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -7px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
}

.bw-sec .bw-tm-play:hover .bw-tm-play-icon,
.bw-sec .bw-tm-play:focus-visible .bw-tm-play-icon {
    transform: scale(1.08);
}

/* ------------------------------------------------------------- tablet */

@media (max-width: 1024px) {
    .bw-sec.bw-ph {
        padding: 30px 0;
    }

    .bw-sec.bw-ph .bw-ph-inner,
    .bw-sec.bw-ph.has-media .bw-ph-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "crumb" "title" "sub" "rule" "media" "text" "cta";
        grid-template-rows: none;
    }

    .bw-sec.bw-ph:not(.media-small) .bw-ph-media {
        display: none;
    }

    .bw-sec .bw-ph-title {
        justify-self: stretch;
        font-size: 40px;
    }

    .bw-sec .bw-ph-media {
        align-self: start;
        aspect-ratio: 16 / 10;
        max-height: none;
        margin: 0 0 40px;
    }

    .bw-sec .bw-ph-sub,
    .bw-sec .bw-tm-title {
        font-size: 24px;
    }

    .bw-sec .bw-ph-sub {
        max-width: none;
    }

    .bw-sec .bw-ph-rule {
        width: 145px;
    }

    .bw-sec.bw-tm {
        padding: 30px 0;
    }

    .bw-sec .bw-tm-inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
    }

    .bw-sec.bw-tm.media-left .bw-tm-media {
        order: 0;
    }

    .bw-sec .bw-tm-media {
        justify-self: center;
    }
}

/* -------------------------------------------------------------- phone */

@media (max-width: 767px) {
    .bw-sec.bw-ph {
        padding: 20px 0;
    }

    .bw-sec .bw-ph-title {
        font-size: 36px;
    }

    .bw-sec .bw-ph-media {
        aspect-ratio: 4 / 3;
        margin-bottom: 32px;
        border-radius: 16px;
    }

    #explore {
        scroll-margin-top: 85px;
    }

    /* links stay side by side: smaller circle and label (the label wraps),
       slimmer pill */
    .bw-sec .bw-ph-ctas {
        flex-wrap: nowrap;
        gap: 12px 18px;
    }

    .bw-sec .bw-ph-ctas .bw-sec-cta {
        flex: 0 1 auto;
        min-width: 0;
    }

    .bw-sec .bw-sec-cta {
        gap: 10px;
    }

    .bw-sec .bw-sec-pill {
        flex: 0 0 auto;
        min-height: 46px;
        padding: 0 20px;
        gap: 7px;
        font-size: 12.5px;
    }

    .bw-sec .bw-sec-pill svg {
        flex-basis: 14px;
        width: 14px;
        height: 14px;
    }

    .bw-sec .bw-sec-cta-icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .bw-sec .bw-sec-cta-icon svg {
        width: 22px;
        height: 22px;
    }

    .bw-sec .bw-sec-cta-label {
        font-size: 15px;
        line-height: 1.2;
    }

    .bw-sec .bw-ph-sub,
    .bw-sec .bw-tm-title {
        font-size: 22px;
    }

    .bw-sec .bw-ph-text {
        font-size: 17px;
    }

    .bw-sec.bw-tm {
        padding: 20px 0;
    }

    .bw-sec .bw-tm-text {
        font-size: 14px;
    }

    .bw-sec .bw-tm-media {
        justify-self: stretch;
    }

    .bw-sec .bw-tm-img {
        width: 100%;
    }
}
