/* =========================================================
   Two Columns (wwa/two-columns)
   Text column + content column (quote, image or steps).
   Section classes: {left|right}-text, {green|white|light}-bg (global, base.css),
   --quote-dark (dark quote card), --graphic (decorative background graphic).
   Mobile first; desktop from 992px.
   ========================================================= */

.wwa-two-columns {
    display: flex;
    align-items: center;
    padding-block: 80px;
    position: relative;
    overflow: hidden;
}

.wwa-two-columns .container {
    position: relative;
    z-index: 2;
}

.wwa-two-columns .row {
    row-gap: 32px;
}

/* ---------- Text column ---------- */

.wwa-two-columns-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wwa-two-columns-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
}

.wwa-two-columns-text-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
}

.left-text .wwa-two-columns-text-inner,
.right-text .wwa-two-columns-text-inner {
    width: 600px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.left-text .section-text-content,
.right-text .section-text-content {
    max-width: 100%;
}

.left-text .wwa-two-columns-text-inner .section-text-content,
.right-text .wwa-two-columns-text-inner .section-text-content {
    width: 100%;
}

.wwa-two-columns-text-content p,
.wwa-two-columns-text-content li {
    margin-bottom: 12px;
}

.wwa-two-columns-text-content ul,
.wwa-two-columns-text-content ol {
    padding-left: 25px;
    margin-block: 4px;
}

.wwa-two-columns-text-inner .section-text-content strong,
.wwa-two-columns-text-inner .section-text-content b {
    font-weight: 600;
}

/* Light / white backgrounds: green heading, dark text */
.wwa-two-columns.light-bg h2,
.wwa-two-columns.white-bg h2 {
    color: var(--wwa-green-100);
}

.wwa-two-columns.light-bg .wwa-two-columns-text-content > *,
.wwa-two-columns.white-bg .wwa-two-columns-text-content > *,
.wwa-two-columns.light-bg .wwa-two-columns-text-content em,
.wwa-two-columns.light-bg .wwa-two-columns-text-content strong,
.wwa-two-columns.light-bg .section-content-wrapper h3 {
    color: var(--wwa-green-200);
}

.wwa-two-columns.light-bg .wwa-two-columns-text-content.wwa-two-columns-italic-brown em {
    color: var(--wwa-accent-300);
}

/* Green background: light text */
.wwa-two-columns.green-bg h2,
.wwa-two-columns.green-bg .wwa-two-columns-text-content {
    color: var(--wwa-light-200);
}

/* ---------- Quote card ---------- */

.wwa-two-columns-quote-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 24px;
    box-sizing: border-box;
    margin-right: auto;
    margin-left: auto;
    background: var(--wwa-light-100);
}

.wwa-two-columns-quote-wrapper--dark {
    background-color: var(--wwa-green-700);
}

.light-bg .wwa-two-columns-quote-wrapper,
.white-bg .wwa-two-columns-quote-wrapper {
    background-color: var(--wwa-green-100);
}

.wwa-two-columns-quote-inner {
    border: 3px solid var(--wwa-light-300);
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 32px;
}

.wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::before,
.wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::after {
    content: "";
    display: block;
    position: absolute;
    width: 120px;
    height: 9px;
    background-color: var(--wwa-light-300);
}

.wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::before {
    top: -3px;
    left: -3px;
}

.wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::after {
    bottom: -3px;
    right: -3px;
}

.wwa-two-columns-quote-sign {
    text-align: left;
    width: 100%;
}

.wwa-two-columns-quote-sign svg path {
    fill: var(--wwa-light-200);
}

.wwa-two-columns-quote-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wwa-two-columns-quote-body p {
    margin: 0;
    color: var(--wwa-light-300);
}

.wwa-two-columns-quote-body .wwa-two-columns-quote-text {
    font-family: var(--wwa-font-heading);
    font-weight: 500;
    font-style: italic;
    font-size: 26px;
    line-height: 130%;
    letter-spacing: 0;
}

.wwa-two-columns-quote-body .wwa-two-columns-quote-author {
    text-align: right;
}

/* Green section: frame, quote sign and text switch to green unless the card is dark */
.wwa-two-columns.green-bg .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner {
    border: 3px solid var(--wwa-green-100);
}

.wwa-two-columns.green-bg .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::before,
.wwa-two-columns.green-bg .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::after {
    background-color: var(--wwa-green-100);
}

.wwa-two-columns.green-bg .wwa-two-columns-quote-sign svg path {
    fill: var(--wwa-green-100);
}

.wwa-two-columns.green-bg .wwa-two-columns-quote-body p {
    color: var(--wwa-green-100);
}

.wwa-two-columns.green-bg.wwa-two-columns--quote-dark .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner {
    border-color: var(--wwa-light-300);
}

.wwa-two-columns.green-bg.wwa-two-columns--quote-dark .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::before,
.wwa-two-columns.green-bg.wwa-two-columns--quote-dark .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::after {
    background-color: var(--wwa-light-300);
}

.wwa-two-columns.green-bg.wwa-two-columns--quote-dark .wwa-two-columns-quote-body p {
    color: var(--wwa-light-200);
}

.wwa-two-columns.green-bg.wwa-two-columns--quote-dark .wwa-two-columns-quote-sign svg path {
    fill: var(--wwa-light-200);
}

/* ---------- Steps ---------- */

.wwa-two-columns-steps {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
    margin-inline: auto;
}

.wwa-two-columns-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.wwa-two-columns-step-number {
    width: 56px;
    height: 56px;
    background-color: var(--wwa-green-100);
    position: relative;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.wwa-two-columns-step-text {
    flex: 1;
    color: var(--wwa-green-200);
}

/* ---------- Image + text after image ---------- */

.wwa-two-columns-text-after-image {
    width: 600px;
    max-width: 100%;
    margin-inline: auto;
}

/* Decorative graphic under the text: the desktop copy sits in the text column,
   the mobile copy in the content column. */
.wwa-two-columns-image-after-text {
    position: relative;
    margin-bottom: -80px;
}

.wwa-two-columns .wwa-two-columns-image-after-text--desktop {
    display: none;
}

.wwa-two-columns-image-after-text--mobile {
    display: block;
}

/* ---------- Background graphic ---------- */

.wwa-two-columns--graphic::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -320px;
    max-width: 100vw;
    width: 100%;
    height: 100%;
    background-image: var(--wwa-two-columns-graphic);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: initial;
}

/* ---------- Below 992px ---------- */

@media (max-width: 991.98px) {
    .wwa-two-columns-image-after-text {
        margin-top: auto;
        bottom: auto;
    }

    .wwa-two-columns img {
        width: 600px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Same as the old theme: from 576px up the `img` rule below also shows the desktop
   copy of the after-text graphic (it outranked .hide-lg), so both copies are visible here. */
@media (min-width: 576px) and (max-width: 991.98px) {
    .wwa-two-columns .wwa-two-columns-image-after-text--desktop {
        display: block;
    }

    .wwa-two-columns img {
        display: block;
        width: calc(100vw - 48px);
        max-width: none;
        height: auto;
        margin-left: calc(50% - 50vw + 24px);
        margin-right: calc(50% - 50vw + 24px);
    }
}

/* Phones: 24px inside the card and inside its frame. */
@media (max-width: 767.98px) {
    .wwa-two-columns .wwa-two-columns-quote-wrapper,
    .wwa-two-columns .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner {
        padding: 24px;
    }
}

/* ---------- ≥576px ---------- */

@media (min-width: 576px) {
    .wwa-two-columns-quote-wrapper {
        padding: 32px;
    }

    .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner {
        min-height: 440px;
    }

    .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::before,
    .wwa-two-columns-quote-wrapper .wwa-two-columns-quote-inner::after {
        width: 195px;
    }
}

@media (min-width: 768px) {
    .wwa-two-columns--graphic::before {
        background-size: cover;
    }
}

/* ---------- ≥992px ---------- */

@media (min-width: 992px) {
    .wwa-two-columns .wwa-two-columns-image-after-text--desktop {
        display: block;
    }

    .wwa-two-columns-image-after-text--mobile {
        display: none;
    }

    .wwa-two-columns--graphic::before {
        bottom: -220px;
        max-width: calc(50vw + 30px);
        background-position: center right;
    }

    .wwa-two-columns.right-text .wwa-two-columns-content-wrapper {
        order: 1;
    }

    .wwa-two-columns.right-text .wwa-two-columns-text-wrapper {
        order: 2;
    }

    .wwa-two-columns.left-text .wwa-two-columns-text-after-image {
        margin-left: auto;
        margin-right: 0;
    }

    .wwa-two-columns.right-text .wwa-two-columns-text-after-image {
        margin-left: 0;
        margin-right: auto;
    }

    .wwa-two-columns.left-text .wwa-two-columns-quote-wrapper {
        margin-right: 0;
        margin-left: auto;
    }

    .wwa-two-columns.right-text .wwa-two-columns-quote-wrapper {
        margin-right: auto;
        margin-left: 0;
    }

    .wwa-two-columns.right-text .wwa-two-columns-steps {
        margin-left: 0;
        margin-right: auto;
    }

    .wwa-two-columns.left-text .wwa-two-columns-steps {
        margin-left: auto;
        margin-right: 0;
    }

    .wwa-two-columns-steps {
        width: 600px;
    }

    .right-text .wwa-two-columns-text-inner {
        width: 590px;
        max-width: 100%;
        margin-left: auto;
        margin-right: 0;
    }

    /* Image after text (Figma 701-1832): the graphic sits on the bottom edge of the
       SECTION, at the text column's left edge. The image is absolute, so its containing
       block must be the section: .container, the text wrapper and .text-inner (all
       position: relative) go static, only when the image exists. The container keeps
       its z-index. --wwa-after-w is the text column's width per container size
       (container 960 / 1140 / 1320, gutters, 48px wrapper padding from 1200px),
       capped at 600px like .wwa-two-columns-text-inner. */
    .wwa-two-columns:has(.wwa-two-columns-image-after-text) {
        --wwa-after-w: 456px;
    }

    .wwa-two-columns:has(.wwa-two-columns-image-after-text) .container,
    .wwa-two-columns:has(.wwa-two-columns-image-after-text) .wwa-two-columns-text-wrapper,
    .wwa-two-columns:has(.wwa-two-columns-image-after-text) .wwa-two-columns-text-inner {
        position: static;
    }

    .wwa-two-columns .wwa-two-columns-text-inner .wwa-two-columns-image-after-text {
        position: absolute;
        bottom: 0;
        width: var(--wwa-after-w);
        max-width: none;
        height: auto;
        margin: 0;
        pointer-events: none;
    }

    /* Text never runs into the image: the column reserves the image height
       (minus the 80px section padding, plus a 24px gap). */
    .wwa-two-columns:has(.wwa-two-columns-image-after-text) .wwa-two-columns-text-wrapper {
        padding-bottom: calc(var(--wwa-after-w) * 406 / 1296 - 56px);
    }
}

@media (min-width: 1200px) {
    .right-text .section-text-wrapper {
        padding-left: 48px;
    }

    .left-text .section-text-wrapper {
        padding-right: 48px;
    }

    .wwa-two-columns:has(.wwa-two-columns-image-after-text) {
        --wwa-after-w: 498px;
    }
}

@media (min-width: 1400px) {
    .wwa-two-columns:has(.wwa-two-columns-image-after-text) {
        --wwa-after-w: 600px;
    }
}
