/* =========================================================
   Win With Agency v2 - base styles (fonts, reset, typography, shared components).
   Tokens live in tokens.css. Bootstrap grid/utilities: bootstrap-lite.css.
   ========================================================= */

/* Public Sans: variable font, latin subset, self-hosted (no Google Fonts). */
@font-face {
    font-family: 'Public Sans';
    src: url('../fonts/Public_Sans/public-sans-latin-wght-normal.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('../fonts/Public_Sans/public-sans-latin-wght-italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Quasimoda';
    src: url('../fonts/Quasimoda/Quasimoda-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Quasimoda';
    src: url('../fonts/Quasimoda/Quasimoda-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Self-hosted like Quasimoda. Used by the template box in blog posts.
   File to add: assets/fonts/IBM_Plex_Mono/IBMPlexMono-Regular.woff2 */
@font-face {
    font-family: 'IBM Plex Mono';
    src: local('IBM Plex Mono'), local('IBMPlexMono-Regular'),
    url('../fonts/IBM_Plex_Mono/IBMPlexMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html .wp-admin :where(.wp-block) {
    max-width: calc(100% - 48px);
}


.accent {
    color: var(--wwa-accent);
}


.wwa-green-100 {
    color: var(--wwa-green-100);
}

.green-bg {
    background-color: var(--wwa-green-100);
}

.wwa-green-200 {
    color: var(--wwa-green-200);
}

.wwa-green-700 {
    color: var(--wwa-green-700);
}

.wwa-light-100 {
    color: var(--wwa-light-100);
}

.light-bg {
    background: var(--wwa-light-100);
}

/* !important: colour utility for text on dark backgrounds; must beat heading/paragraph colours set by block styles. */
.wwa-light-200 {
    color: var(--wwa-light-200) !important;
}

.wwa-accent-200 {
    color: var(--wwa-accent-200);
}

.font-heading {
    font-family: var(--wwa-font-heading);
}

.white-bg {
    background-color: var(--wwa-white);
}

/* one @font-face per weight/style you actually use — don't load all 9 weights */
picture {
    display: block;
    line-height: 0;
}

picture source {
    display: none; /* kills the 19px phantom row */
}

picture img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Base ---------- */

body {
    margin: 0;
    font-family: var(--wwa-font-body);
    color: var(--wwa-color-text);
    background: var(--wwa-light-100);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html {
    box-sizing: border-box;

    scroll-behavior: smooth;

}

*,
*::before,
*::after {
    box-sizing: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wwa-font-heading);
    margin-block: 0;
}

p,
li {
    font-family: var(--wwa-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 145%;
    letter-spacing: 0;
    margin-top: 0;

}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    transition: var(--wwa-transition);
}

h1,
.h1 {
    font-weight: 600;
    /* 33px at ≤576px viewport → scales fluidly → 50px at ≥1200px */
    font-size: clamp(33px, calc(17.31px + 2.724vw), 50px);
    line-height: 130%;
}

h3,
.h3 {
    font-size: 26px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 31.2px */
}

h2, .h2 {
    font-weight: 600;
    font-size: 37px;
    line-height: 130%;

}

h4,
.h4,
.wwa-post__body p[style*="text-align: center"]:not(:has(img)):has(> strong, > b):has(> em) em {
    font-family: var(--wwa-font-body);
    font-weight: 500;
    font-size: 21px;
    line-height: 130%;
    letter-spacing: 0;

}

@media screen and (max-width: 575.8px) {
    h2,
    .h2 {
        font-size: 28px;
        line-height: 130%; /* 36.4px */
    }

    h3,
    .h3 {
        font-size: 22px;
        font-style: normal;
        font-weight: 500;
        line-height: 130%; /* 28.6px */
    }

    h4,
    .h4,
    .wwa-post__body p[style*="text-align: center"]:not(:has(img)):has(> strong, > b):has(> em) em {
        font-size: 19px;
    }
}

.section .row {
    row-gap: 32px;
}

@media screen and (max-width: 575.8px) {
    .section-text-wrapper > * {
        width: 100%;
    }
}

/* ---------- Header / footer ---------- */

.site-logo {
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--wwa-color-text);
}


.site-nav__list,
.footer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 1.5rem;
}

.site-nav__list a,
.footer-nav__list a {
    text-decoration: none;
    color: var(--wwa-color-text);
    transition: color var(--wwa-transition);
}

.site-nav__list a:hover,
.footer-nav__list a:hover {
    color: inherit;
}

.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--wwa-color-muted);
}

/* ---------- Buttons ---------- */
.btn-wwa,
.wwa-post__body .template-copy-btn {
    padding: 16px 24px;
    display: inline-flex;
    font-family: var(--wwa-font-body);
    font-weight: 600;
    font-size: 18px;
    line-height: 135%;
    text-align: center;
    text-decoration: none;

}

.btn-accent {
    background-color: var(--wwa-accent);
    color: var(--wwa-green-100);
}


.btn-green,
.wwa-post__body .template-copy-btn {
    background-color: var(--wwa-green-100);
    color: var(--wwa-light-200);
}

/* Small size (Figma: 47px high, 16px text). Same colors as the primary button. */
.btn-wwa.btn-sm,
.wwa-post__body .template-copy-btn {
    padding: 12px 16px;
    font-size: 16px;
    line-height: 145%;
}

.link-wwa {
    padding: 16px;
    display: inline-flex;
    font-family: var(--wwa-font-body);
    font-weight: 600;
    font-size: 18px;
    line-height: 135%;
    text-align: center;
    text-decoration: none;
}

.link-wwa span {
    padding-left: 4px;
}

/* Small text button (Figma: 24px high, no padding), e.g. the post sidebar CTA */
.link-wwa.link-sm {
    padding: 0;
}

.link-accent {
    color: var(--wwa-accent);
}

.link-accent svg path {
    fill: var(--wwa-accent);
    transition: var(--wwa-transition);
}

.btn-accent:hover,
.btn-accent:focus-within {
    background-color: var(--wwa-accent-100);
}


.link-accent:hover,
.link-accent:focus-within {
    color: var(--wwa-accent-100);
}

.link-accent:hover svg path,
.link-accent:focus-within svg path {
    fill: var(--wwa-accent-100);
}

.btn-green:hover,
.btn-green:focus-within,
.wwa-post__body .template-copy-btn:hover {
    background-color: var(--wwa-black-100);
    color: var(--wwa-light-200);
}

.link-green {
    color: var(--wwa-green-100);
}

.link-green svg path {
    fill: var(--wwa-green-100);
    transition: var(--wwa-transition);
}

.link-green:hover,
.link-green:focus-within {
    color: var(--wwa-black-100);
}

.link-green:hover svg path,
.link-green:focus-within svg path {
    fill: var(--wwa-black-100);
}


.light-bg h2,
.light-bg .section-text-content p {
    color: var(--wwa-green-100);
}

@media screen and (max-width: 767.8px) {
    .link-wwa,
    .btn-wwa {
        width: 100%;
        text-align: center;
        display: block;
    }

    .link-wwa.link-sm {
        width: auto;
        display: inline-flex;
    }
}

/* ---------- Tab bar (shared: Steps Slider, Tabs) ----------
   <div class="wwa-tabbar" role="tablist"> <button class="wwa-tabbar__tab is-active" role="tab">
   Panels are a Swiper with the fade effect (initTabbedSwiper in main.js).
   On a green section (.green-bg) the bar switches to light colors. */

.wwa-tabbar {
    --wwa-tabbar-line: var(--wwa-green-100);
    display: flex;
    width: 648px;
    max-width: 100%;
    margin: 0 auto 24px;
    border-bottom: 3px solid var(--wwa-tabbar-line);
}

.wwa-tabbar__tab {
    flex: 1 1 0;
    margin: 0 0 -3px;
    padding: 7px 22px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--wwa-green-100);
    font-family: var(--wwa-font-body);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: opacity 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.wwa-tabbar__tab::before {
    content: "";
    display: block;
    height: 5px;
    background-color: var(--wwa-tabbar-line);
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    opacity: 0;
}

.wwa-tabbar__tab:hover::before {
    opacity: 1;
    transition: opacity 0.25s ease, background-color 0.25s ease;
}

.wwa-tabbar__tab.is-active {
    color: var(--wwa-light-200);
    border-bottom-color: var(--wwa-green-100);
    background-color: var(--wwa-green-100);
}

.wwa-tabbar__tab:focus-visible {
    outline: 2px solid var(--wwa-green-100);
    outline-offset: 2px;
}

/* On green: light line, light text, light active tab with green text */
.green-bg .wwa-tabbar {
    --wwa-tabbar-line: var(--wwa-light-200);
}

.green-bg .wwa-tabbar__tab {
    color: var(--wwa-light-200);
}

.green-bg .wwa-tabbar__tab.is-active {
    color: var(--wwa-green-100);
    border-bottom-color: var(--wwa-light-200);
    background-color: var(--wwa-light-200);
}

.green-bg .wwa-tabbar__tab:focus-visible {
    outline-color: var(--wwa-light-200);
}

@media screen and (max-width: 575.8px) {
    /* Parent becomes the horizontal scroller */
    *:has(> .wwa-tabbar) {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none; /* Firefox */
        padding-inline: 0;
    }

    *:has(> .wwa-tabbar)::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    /* Tabbar never shrinks below 400px */
    .wwa-tabbar {
        min-width: 400px;
        max-width: 100vw;
        /*max-width: none;*/
        overflow: visible;
        flex-wrap: nowrap;
    }

    /* Tabs keep their width and don't wrap text */
    .wwa-tabbar__tab {
        flex: 1 0 auto;
        white-space: nowrap;
    }

    .container:has(> .wwa-tabbar) {
        scroll-snap-type: x mandatory;
    }

    .wwa-tabbar__tab.is-active {
        scroll-snap-align: center;
    }
}

@media (min-width: 992px) {
    .wwa-tabbar {
        margin-bottom: 48px;
    }
}

/* Panels: until the Swiper has started (no JS) every panel stays visible, stacked */
.wwa-tabbed-swiper:not(.is-ready) > .swiper-wrapper {
    display: block;
}

.wwa-tabbed-swiper:not(.is-ready) > .swiper-wrapper > .swiper-slide {
    width: 100%;
}

.section-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
}

section .row {
    row-gap: 32px;
}

.section-text-content {
    max-width: 535px;
    width: 100%;
}

/* !important: must beat Bootstrap's .shadow utility, which is itself !important. */
.shadow {
    box-shadow: -8px 8px 4px 0 rgba(0, 0, 0, 0.16) !important;
}

.container.shadow {
    width: calc(100% - (var(--bs-gutter-x) * 1));

}

.section-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

@media screen and (min-width: 1199.8px) {
    .shadow {
        box-shadow: -24px 24px 7px 0 rgba(0, 0, 0, 0.16) !important;
    }

}

@media screen and (min-width: 991.8px) {
    .right-text .section-text-wrapper {
        order: 2;
    }
}

/* ---------- Utilities ---------- */

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important; /* same as Bootstrap's utility, so a theme position rule cannot undo it */
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Anchors, hash links and scrollIntoView() stop below the sticky header. */
html {
    scroll-padding-top: var(--wwa-header-offset);
}

/* The header itself sits inside that padding: without this, focusing one of its
   links or buttons makes the browser scroll the page up. */
.site-header :is(a, button) {
    scroll-margin-top: calc(-1 * var(--wwa-header-offset));
}

/* The mobile panel scrolls on its own. */
@media (max-width: 1199.98px) {
    .site-header .site-nav_panel :is(a, button) {
        scroll-margin-top: 0;
    }
}

.custom-logo {
    max-width: 128px;
}

/* Gravity Forms.
   The !important declarations below beat the Gravity Forms theme framework, whose
   stylesheet loads after this one (deferred, see inc/enqueue.php) with equal specificity. */
body .gform_wrapper {
    .gfield_label {
        margin-bottom: 0 !important;
        --gf-local-margin-y: 0;
    }

    .gform-field-label__text,
    .gfield--type-choice.field_description_above.gfield--no-description:where(:not(.field_validation_above.gfield_error):not(:has(.gfield_choice_limit_message))),
    .gform-field-label:where(:not([class*=gform-field-label--type-])),
    .gfield--type-choice.field_description_below:where(:not(.field_validation_above.gfield_error):not(:has(.gfield_choice_limit_message))),
    .gform-field-label:where(:not([class*=gform-field-label--type-])) {
        color: var(--wwa-green-200);
        /* Desktop/H4 */
        font-family: var(--wwa-font-body);
        font-size: 21px;
        font-style: normal;
        font-weight: 600;
        line-height: 130%; /* 27.3px */
        margin: 0;
    }

    .gfield_required {
        display: none;
    }

    .gfield,
    fieldset {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        align-self: stretch;
    }

    legend.gfield_label {
        margin-bottom: 16px !important;
    }

    .gfield > * {
        width: 100%;
    }


    .gform_fields {
        -moz-column-gap: 24px;
        column-gap: 24px !important;
        row-gap: 32px !important;
    }

    .gform_fields input[type]:where(:not(.gform-text-input-reset):not([type=hidden])):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::placeholder,
    .gform_fields select:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::placeholder,
    .gform_fields select[multiple]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::placeholder,
    .gform_fields textarea:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::placeholder {
        color: var(--wwa-neutral-500);
        /* Desktop/P1 */
        font-family: var(--wwa-font-body);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 145%; /* 23.2px */

    }

    .gform_fields input[type]:where(:not(.gform-text-input-reset):not([type=hidden])):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
    .gform_fields textarea:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
        color: var(--wwa-green-100);
        /* Desktop/P1 */
        font-family: var(--wwa-font-body);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 145%; /* 23.2px */
        border: none;
        border-bottom: 2px solid var(--wwa-green-100);
        background-color: rgba(255, 255, 255, 0);
        outline: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 8px 0;

    }

    .gform_fields input[type=radio]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
    .gform_fields input[type=checkbox]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
        width: 24px;
        height: 24px;
        border-radius: 0;
        border: 3px solid var(--wwa-green-100);
        padding: 0;

    }

    .gfield--type-choice .gchoice,
    .gfield--type-choice .ginput_container_consent {
        gap: 8px;
        align-items: center;
    }

    .gform-field-label--type-inline {
        margin-left: 8px !important;
    }

    label.gform-field-label {
        color: var(--wwa-green-200);
        cursor: pointer;

        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 145%; /* 23.2px */
    }

    input[type=checkbox]:checked {
        background-color: var(--wwa-green-100);
    }

    input[type=checkbox]::before {
        background-image: url("../img/checkmark.webp");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 16px !important;
        height: 15px !important;
        content: "" !important;
        display: block;
        border-radius: 0;
        background-color: var(--wwa-green-100);
        padding: 0;
    }

    .gform_required_legend {
        display: none;
    }

    .gfield_validation_message:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)) {
        margin-top: 0;
    }

    .gfield--type-choice .gfield_checkbox,
    .gfield--type-choice .gfield_radio {
        gap: 16px !important;
    }

    .gform_footer, .gform_page_footer {
        margin-block-start: 32px !important;
    }

    button.button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
    input:is([type=submit],[type=button],[type=reset]).button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)),
    button[type=submit],
    .gform_button.button {
        padding: 16px 24px !important;
        display: inline-flex !important;
        font-family: var(--wwa-font-body) !important;
        font-weight: 600;
        font-size: 18px !important;
        line-height: 135% !important;
        text-align: center;
        text-decoration: none;
        background-color: var(--wwa-green-100) !important;
        color: var(--wwa-light-200) !important;
        outline: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        cursor: pointer !important;
        transition: var(--wwa-transition) !important;
    }

    button.button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):hover,
    input:is([type=submit],[type=button],[type=reset]).button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):hover,
    button[type=submit]:hover,
    button.button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus-within,
    input:is([type=submit],[type=button],[type=reset]).button:where(:not(.gform-theme-no-framework):not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus-within,
    button[type=submit]:focus-within {
        background-color: var(--wwa-black-100) !important;
        color: var(--wwa-light-200) !important;
    }

}

/* Gravity Forms: narrow phones. GF lays .gform_fields out as a 12-column grid with a 24px
   column gap, i.e. at least 264px wide, which overflows cards narrower than that (card
   padding included). Below 576px every field is full width anyway, so use one column.
   !important: the GF framework sets these on a more specific selector. */
@media (max-width: 575.98px) {
    body .gform_wrapper .gform_fields {
        grid-template-columns: minmax(0, 1fr) !important;
        column-gap: 0 !important;
    }

    body .gform_wrapper .gfield {
        grid-column: 1 / -1 !important;
    }
}

/* Safety net at every width: nothing inside a form may be wider than its container. */
body .gform_wrapper,
body .gform_wrapper form,
body .gform_wrapper .gform_body,
body .gform_wrapper .gfield,
body .gform_wrapper .ginput_container {
    min-width: 0;
    max-width: 100%;
}

body .gform_wrapper input,
body .gform_wrapper select,
body .gform_wrapper textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.site-main > p:empty {
    display: none;
}

.site-main > :last-child {
    margin-bottom: 0;
}

footer {

    margin-top: auto;
    border-top: none; /* resets a border some plugin stylesheets add to <footer> */
    background-color: var(--wwa-green-100);
}

.footer-widgets {
    padding-block: 80px;
}

.footer-one-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 312px;
    max-width: 100%;
}

.footer-one-inner figure {
    margin-bottom: 0;
}

.footer-one-inner .wp-block-image img {
    width: 200px;
    max-width: 100%;
    margin: 20px 0 7px; /* 75px logo box (20px above, 7px below), as in Figma */
}

.footer-one-inner p {
    margin-bottom: 0;
    color: var(--wwa-light-200);
}

.footer-one-inner .wwa-button-buttons-wrapper {
    margin-top: 24px; /* 48px between text and button on desktop (24px gap + 24px) */
}

.widget_nav_menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 312px;
    width: 100%;
}

.widget_nav_menu h4 {
    color: var(--wwa-light-200);
}

.widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.widget_nav_menu ul li {
    width: 100%;
}

.widget_nav_menu ul li a {
    color: var(--wwa-light-200);
    font-family: var(--wwa-font-body);
    font-weight: 400;
    line-height: 145%;
    font-size: 16px;
    text-decoration: none;
}

.widget_nav_menu ul li a:hover {
    color: var(--wwa-accent);
}

.footer-widget-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 48px;
}

.footer-widgets-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    row-gap: 32px;

}

.footer-widgets .row {
    row-gap: 48px;
}

.footer-bottom {
    background-color: var(--wwa-green-400);
    padding-block: 24px;
    color: var(--wwa-light-200);
    font-family: var(--wwa-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 145%;

}

#menu-privacy-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}

#menu-privacy-menu li {
    padding-inline: 24px;
}

#menu-privacy-menu li:first-of-type {
    border-right: 2px solid var(--wwa-light-200);
}


#menu-privacy-menu li a {
    color: var(--wwa-light-200);
    font-family: var(--wwa-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 145%;
    letter-spacing: 0;
    vertical-align: middle;
    text-decoration: none;

}

#menu-privacy-menu li a:hover {
    color: var(--wwa-accent);
}

@media screen  and (max-width: 991.8px) {
    .footer-one-inner,
    .widget_nav_menu {
        margin-inline: auto;
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .footer-widget-wrapper {
        gap: 32px;

    }

    .footer-widgets {
        padding-block: 80px 48px;
    }

    .footer-bottom .row {
        row-gap: 24px;
    }

    .footer-bottom p {
        text-align: center;
    }

    #menu-privacy-menu {
        justify-content: center;
    }

    #menu-privacy-menu li {
        padding-inline: 16px;
    }
}

@media screen and (min-width: 991.8px) {
    #menu-privacy-menu li:last-of-type {
        padding-right: 0;
    }

    .footer-widgets-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 24px;
        grid-row-gap: 48px;
    }
}

@media (min-width: 992px) {
    .footer-widgets {
        padding-block: 80px 48px;
    }

    /* Column titles start 16px below the logo line; rows hug their
       content (1fr rows stretched the shorter second row). */
    .footer-widgets-wrapper {
        padding-top: 16px;
        grid-template-rows: auto;
    }
}

@media (max-width: 991.98px) {
    /* Mobile: full-width text and button, 32px between them. */
    .footer-one-inner,
    .footer-one-inner > .footer-widget,
    .footer-one-inner .wwa-button-buttons-wrapper,
    .footer-one-inner .btn-wwa {
        width: 100%;
    }

    .footer-one-inner .wwa-button-buttons-wrapper {
        margin-top: 8px;
    }

    .footer-one-inner .btn-wwa {
        justify-content: center;
    }

    .widget_nav_menu {
        max-width: 100%;
    }
}

/* ============================================================
   Header navigation (Figma 2766-9296 desktop, 2766-9504 mobile)
   Desktop: 1200px and up. Below 1200px: full-screen accordion panel.
   ============================================================ */

/* Top-level layout */
.header-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-inline: 0;
    padding-block: 24px; /* 24 + 48 + 24 = 96 (mobile bar) */
}

.site-header .header-row > * {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-top: 0;
    padding-inline: 0;
}

/* Own wrapper (not .container): 12px edges on mobile (Figma 390), 60px from 1200px (Figma 1440) */
.header-wrap {
    width: 100%;
    padding-inline: max(var(--wwa-header-gutter-mobile), env(safe-area-inset-left, 0px)) max(var(--wwa-header-gutter-mobile), env(safe-area-inset-right, 0px));
}

.logo-wrapper .custom-logo-link,
.logo-wrapper .site-logo {
    display: block;
}

.logo-wrapper .custom-logo {
    display: block;
    width: 128px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.menu-wrapper {
    display: flex;
    margin-left: auto;
}

/* Menu lists */
.main-nav_menu,
.top_cta_menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav_menu li {
    margin: 0;
    padding: 0;
}

.main-nav_menu a {
    text-decoration: none;
}

/* Submenu chevron button (built in inc/setup.php; two SVGs, one per mode) */
.submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    line-height: 0;
    cursor: pointer;
}

.submenu-toggle_icon {
    display: block;
    transition: transform .25s ease;
}

.submenu-toggle_icon--m {
    display: none;
}

/* CTA */
.top_cta_menu a {
    background-color: var(--wwa-green-100);
    color: var(--wwa-light-200);
    padding: 16px 24px;
    display: inline-flex;
    font-family: var(--wwa-font-body);
    font-weight: 600;
    font-size: 18px;
    line-height: 135%;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--wwa-transition);
}

.top_cta_menu a:hover {
    background-color: var(--wwa-black-100);
    color: var(--wwa-light-200);
}

.hide-xl {
    display: block;
}

.show-xl {
    display: none;
}

/* Mobile toggle: hamburger <-> X (inline SVG) */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wwa-green-100);
    cursor: pointer;
}

.nav-toggle svg {
    display: block;
}

.nav-toggle .nav-toggle_icon--close,
.nav-toggle[aria-expanded="true"] .nav-toggle_icon--open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle_icon--close {
    display: block;
}

/* Visible keyboard focus everywhere in the header */
.nav-toggle:focus-visible,
.submenu-toggle:focus-visible,
.main-nav_menu a:focus-visible,
.top_cta_menu a:focus-visible,
.logo-wrapper a:focus-visible {
    outline: 2px solid var(--wwa-green-100);
    outline-offset: 2px;
}

/* The shadow sits on a pseudo-element above the mobile panel, so it falls over the panel */
.site-header {
    position: sticky;
    top: var(--wwa-adminbar-offset);
    width: 100%;
    z-index: 1000;
    border-bottom: 0;
    background-color: var(--wwa-light-100);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    box-shadow: var(--wwa-shadow-header);
    pointer-events: none;
}

/* ============================================================
   Desktop — 1200px and up
   ============================================================ */
@media (min-width: 1200px) {
    .header-wrap {
        padding-inline: var(--wwa-header-gutter);
    }

    .header-row {
        height: var(--wwa-header-h-desktop);
        padding-block: 0;
    }

    .menu-wrapper {
        flex: 1 1 auto;
        align-self: stretch;
        justify-content: center;
        margin-left: 0;
    }

    .site-header .menu-wrapper {
        flex: 1 1 auto;
    }

    .site-nav,
    .site-nav_panel,
    .site-nav_panel .container {
        display: flex;
        height: 100%;
    }

    .site-nav_panel .container {
        width: auto;
        max-width: none;
        padding: 0;
    }

    /* Items are full header height, so the dropdown (top: 100%) is flush with the bar and
       the pointer never leaves the item on its way down. */
    .main-nav_menu {
        display: flex;
        align-items: stretch;
        gap: 32px;
        height: 100%;
    }

    .main-nav_menu > li {
        position: relative;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* 2px underline under the 24px item; always laid out, so nothing jumps */
    .main-nav_menu > li::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: calc(50% + 12px);
        height: 2px;
        background-color: transparent;
    }

    .main-nav_menu > li > a {
        padding: 0;
        font-family: var(--wwa-font-body);
        font-size: 18px;
        font-weight: 600;
        line-height: 135%;
        color: var(--wwa-green-200);
        transition: color var(--wwa-transition);
    }

    .main-nav_menu > li > .submenu-toggle {
        width: 12px;
        height: 24px;
        color: var(--wwa-green-200);
        transition: color var(--wwa-transition);
    }

    /* hover / open / keyboard focus / current page */
    .main-nav_menu > li:is(:hover, .is-open, :has(> :focus-visible), .current-menu-item, .current-menu-ancestor, .current-menu-parent) > :is(a, .submenu-toggle) {
        color: var(--wwa-green-100);
    }

    .main-nav_menu > li:is(:hover, .is-open, :has(> :focus-visible), .current-menu-item, .current-menu-ancestor, .current-menu-parent)::before {
        background-color: var(--wwa-green-100);
    }

    /* chevron: down by default and when selected, up while the dropdown is open */
    .main-nav_menu > li:is(:hover, .is-open, :has(> :focus-visible)):not(.is-dismissed) > .submenu-toggle .submenu-toggle_icon {
        transform: rotate(180deg);
    }

    /* Dropdown (Figma 2766-9296) */
    .main-nav_menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin: 0;
        padding: 16px 12px;
        list-style: none;
        background-color: var(--wwa-light-400);
        box-shadow: var(--wwa-shadow-header);
        opacity: 0;
        visibility: hidden;
        /* closing waits 150ms (hover intent); opening is immediate */
        transition: opacity .15s ease .15s, visibility 0s linear .3s;
    }

    .main-nav_menu > li:is(:hover, .is-open, :has(> :focus-visible)):not(.is-dismissed) > .sub-menu {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .main-nav_menu .sub-menu a {
        display: block;
        box-sizing: border-box;
        width: 264px;
        padding: 8px 16px 8px 12px;
        border-left: 3px solid transparent; /* reserved: no shift on hover */
        font-family: var(--wwa-font-body);
        font-size: 16px;
        font-weight: 400;
        line-height: 145%;
        color: var(--wwa-green-200);
    }

    .main-nav_menu .sub-menu a:is(:hover, :focus-visible),
    .main-nav_menu .sub-menu .current-menu-item > a {
        border-left-color: var(--wwa-green-100);
        font-weight: 600;
    }

    .main-nav_menu .sub-menu .current-menu-item > a {
        color: var(--wwa-green-100);
    }

    .main-nav_menu .sub-menu a:focus-visible {
        outline-offset: -2px;
    }
}

/* ============================================================
   Mobile / tablet — below 1200px (accordion panel)
   ============================================================ */
@media (max-width: 1199.98px) {
    .hide-xl {
        display: none;
    }

    .show-xl {
        display: block;
    }

    /* block-level, so the line box adds no extra 4px: bar = 24 + 48 + 24 = 96 */
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: static;
    }

    .site-nav_panel {
        /* Fixed to the visible viewport (iOS toolbar safe): top = header's real bottom edge
           (main.js sets --wwa-panel-top; fallback = header height + admin bar), bottom = 0. */
        position: fixed;
        top: var(--wwa-panel-top, calc(var(--header-h, var(--wwa-header-h-mobile)) + var(--wwa-adminbar-h, 0px)));
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        background-color: var(--wwa-light-400);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }

    .site-nav.active .site-nav_panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav_panel .container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
        min-height: 100%;
        max-width: none;
        padding: 0 max(var(--wwa-header-gutter-mobile), env(safe-area-inset-right, 0px)) calc(var(--wwa-mobile-panel-gap) + env(safe-area-inset-bottom, 0px)) max(var(--wwa-header-gutter-mobile), env(safe-area-inset-left, 0px));
    }

    /* items wrapper: 48px above and below, 2px rule on top */
    .site-nav_panel .main-nav_menu {
        display: block;
        margin: 48px 0;
        border-top: 2px solid var(--wwa-green-100);
    }

    .main-nav_menu > li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 12px 0;
        border-bottom: 2px solid var(--wwa-green-100);
    }

    .main-nav_menu > li > a {
        display: flex;
        flex: 1 1 0;
        align-items: center;
        min-width: 0;
        padding: 4px 0;
        font-family: var(--wwa-font-heading);
        font-size: 28px;
        font-weight: 600;
        line-height: 130%;
        color: var(--wwa-green-200);
    }

    .main-nav_menu > li > .submenu-toggle {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        color: var(--wwa-green-200);
    }

    .submenu-toggle_icon--d {
        display: none;
    }

    .submenu-toggle_icon--m {
        display: block;
    }

    /* chevron: down closed, up open */
    .main-nav_menu > li.is-open > .submenu-toggle .submenu-toggle_icon {
        transform: rotate(180deg);
    }

    /* Current page, top level: parent holding it, or an item with no submenu.
       One rule for both: 8x8 marker + 12px gap + green label (marker is a pseudo-element, no markup).
       Direct children of the top-level li only, so a current subitem gets no marker. */
    .main-nav_menu > li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-menu-parent) > a {
        gap: 12px;
        color: var(--wwa-green-100);
    }

    .main-nav_menu > li:is(.current-menu-item, .current_page_item, .current-menu-ancestor, .current-menu-parent) > a::before {
        content: "";
        flex: 0 0 8px;
        width: 8px;
        height: 8px;
        background-color: var(--wwa-green-100);
    }

    /* submenu: height is animated by main.js (0 <-> auto) */
    .main-nav_menu .sub-menu {
        flex: 0 0 100%;
        box-sizing: border-box;
        height: 0;
        margin: 0;
        padding: 0 0 0 12px;
        overflow: hidden;
        list-style: none;
        visibility: hidden;
        transition: height .25s ease, visibility 0s linear .25s;
    }

    .main-nav_menu > li.is-open > .sub-menu {
        visibility: visible;
        transition-delay: 0s;
    }

    .main-nav_menu .sub-menu > li:first-child {
        margin-top: 8px;
    }

    .main-nav_menu .sub-menu li {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 48px;
        padding: 8px 0;
    }

    .main-nav_menu .sub-menu a {
        display: block;
        flex: 1 1 auto;
        padding-left: 12px;
        border-left: 3px solid transparent; /* reserved: current page gets the colour */
        font-family: var(--wwa-font-body);
        font-size: 19px;
        font-weight: 300;
        line-height: 130%;
        color: var(--wwa-green-200);
    }

    .main-nav_menu .sub-menu .current-menu-item > a {
        border-left-color: var(--wwa-green-100);
        font-weight: 500;
    }

    /* CTA at the bottom */
    .site-nav_panel .top_cta_menu {
        display: block;
        width: 100%;
    }

    .site-nav_panel .top_cta_menu a {
        display: block;
        background-color: var(--wwa-green-700);
    }

    .site-nav_panel .top_cta_menu a:hover {
        background-color: var(--wwa-green-100);
    }

    /* Lock on <html> only: overflow on <body> as well would turn it into a scroll
       container and unstick the header. */
    html.nav-open {
        overflow: hidden;
    }

    /* WordPress admin bar above the header (46px up to 782px, 32px above) */
    body.admin-bar {
        --wwa-adminbar-h: 46px;
    }
}

@media (min-width: 783px) and (max-width: 1199.98px) {
    body.admin-bar {
        --wwa-adminbar-h: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav_panel,
    .submenu-toggle_icon,
    .main-nav_menu .sub-menu,
    .main-nav_menu > li > a,
    .main-nav_menu > li > .submenu-toggle {
        transition: none !important; /* beats the per-element transition declarations above */
    }
}


section {
    position: relative;
}

.no-br {
    white-space: nowrap;
}

/* WordPress core: visually hidden labels (search form, comment form, nav toggle); !important as in core's own rule. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Comments */
.comments-area {
    margin-top: 48px;
}

.comment-list,
.comment-list .children {
    list-style: none;
    padding-left: 0;
}

.comment-list .children {
    padding-left: 24px;
}

.comment-body {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea,
.search-form .search-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, .2);
    font: inherit;
}

/* Growth Ledger */
html:has(body.gl-page) {
    scroll-behavior: auto;
}
