/* Homepage sections built from the WEMP revamp material (story-telling text, WOLLs Atlas 2026):
   "Turning water challenges into water-smart solutions", "Find your place", the objective tiles
   under "Our Vision", the Living Labs map and "Voices from the Living Labs". Loaded by home.html. */

body.home {
    --home-navy: #0A2A55;
    --home-ink: #0A4587;
    --home-cyan: #34A9D6;
    --home-green: #2AB25E;
    --home-yellow: #F7BF23;
}

.home-kicker {
    font-family: var(--mulish);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--water-text-muted);
    margin-bottom: .4rem;
}
.home-section-title { color: var(--home-ink); }
.home-lead { font-size: 1.05rem; color: var(--dark-text); }

/* ---------- Overview: the cards right after the banner ---------- */
.home-ov-head { margin-bottom: 1.25rem; }
.home-ov-head .home-section-title { margin-bottom: 0; }

.overview .home-ov-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    background: #fff;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* A bar in the card's colour grows along the top on hover */
.overview .home-ov-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    height: 4px;
    width: 36px;
    background: var(--ov-color);
    border-bottom-right-radius: 4px;
    transition: width .35s ease;
}
.overview .home-ov-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -14px var(--shadow);
    border-color: color-mix(in srgb, var(--ov-color) 35%, var(--grey-light));
}
.overview .home-ov-card:hover::before { width: 100%; }
@media (prefers-reduced-motion: reduce) {
    .overview .home-ov-card:hover { transform: none; }
    .overview .home-ov-card::before { transition: none; }
}
.overview .home-ov-card .card-body { position: relative; padding: 1.25rem 1.25rem 1.1rem; }

.overview .home-ov-card .home-ov-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: .75rem;
    border-radius: 14px 14px 14px 4px;
    background: var(--ov-color);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 8px 16px -8px var(--ov-color);
}
.overview .home-ov-eu .home-ov-icon { color: #FFCC00; }
.overview .home-ov-card .home-ov-logo {
    display: inline-grid;
    place-items: center;
    height: 48px;
    margin: 0 0 .75rem;
    padding: 0 12px;
    border-radius: 14px 14px 14px 4px;
    border: 1px solid var(--grey-light);
    background: var(--grey-extra-light);
}
.overview .home-ov-card .home-ov-logo img { height: 22px; width: auto; }

/* Large, faint copy of the icon in the bottom-right corner */
.overview .home-ov-card .home-ov-mark {
    position: absolute;
    right: -14px;
    bottom: -22px;
    font-size: 120px;
    line-height: 1;
    color: var(--ov-color);
    opacity: .08;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}
.overview .home-ov-card:hover .home-ov-mark { opacity: .14; transform: rotate(-8deg); }

/* Arrow in a circle, top right; fills with the card's colour on hover */
.overview .home-ov-card .home-ov-go {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--grey-light);
    color: var(--ov-color);
    font-size: 18px;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.overview .home-ov-card:hover .home-ov-go { background: var(--ov-color); border-color: var(--ov-color); color: #fff; transform: translateX(2px); }
.overview .home-ov-eu:hover .home-ov-go { color: #FFCC00; }

.overview .home-ov-card .card-title { margin-right: 40px; }
.overview .home-ov-card .card-title a { color: var(--main-color); }
.overview .home-ov-card:hover .card-title a { color: var(--ov-color); }
.overview .home-ov-card .card-text { position: relative; }
.overview .home-ov-calls { position: relative; z-index: 2; font-size: .75rem; padding-left: .9rem; margin-bottom: 0; }
.overview .home-ov-calls li::marker { color: var(--ov-color); }

/* The two blue cards on the right */
.overview .home-ov-cta { position: relative; overflow: hidden; border-radius: var(--radius); }
.overview .home-ov-cta .cta-body { position: relative; z-index: 1; }
.overview .home-ov-cta-art { position: absolute; right: 14px; top: 14px; width: 150px; height: auto; opacity: .55; pointer-events: none; }
/* Below lg the right-hand cards stack under the grid: keep the grid's gap, and keep the pins off the title */
@media (max-width: 991.98px) {
    .overview .home-ov-side { margin-top: 1.5rem; }
    .overview .home-ov-cta-art { width: 110px; top: 10px; }
}
@media (max-width: 575.98px) {
    .overview .home-ov-cta-art { width: 84px; opacity: .4; }
    .overview .home-ov-cta .card-title { margin-right: 70px; }
}
.overview .home-ov-cta-wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 44px; pointer-events: none; }
.overview .home-ov-cta .home-ov-badge {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    font-size: 22px;
}
.overview .home-ov-cta .home-ov-badges { display: inline-flex; gap: 6px; margin-bottom: .5rem; }
.overview .home-ov-cta > .cta-body > .home-ov-badge { margin-bottom: .5rem; }
.overview .home-ov-more { font-weight: 800; margin-bottom: 0; }
.overview .home-ov-more .material-icons-outlined { font-size: 18px; vertical-align: -4px; transition: transform var(--transition); }
.overview .home-ov-cta:hover .home-ov-more .material-icons-outlined { transform: translateX(4px); }
.overview .home-ov-auth { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 0; }
.overview .home-ov-auth a {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .7);
}
.overview .home-ov-auth a:first-child { background: #fff; color: var(--water-color) !important; border-color: #fff; }
.overview .home-ov-auth a:hover { background: var(--energy-color); color: var(--main-color) !important; border-color: var(--energy-color); }

/* ---------- Story: pressures, opportunity and the Discover-Connect-Innovate-Scale journey ---------- */
.home-story-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 48px);
    border-radius: var(--radius);
    background:
        radial-gradient(120% 90% at 100% 0%, #DCEBFA 0%, transparent 60%),
        linear-gradient(180deg, var(--water-extra-light) 0%, #fff 100%);
    border: 1px solid var(--water-light);
}
/* Soft waves along the bottom edge of the panel */
.home-story-panel > .home-story-waves {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 70px;
    pointer-events: none;
}
.home-story-panel > .row { position: relative; }
.home-story-panel h2 { color: var(--home-ink); }
.home-story-panel p { color: var(--dark-text); }

.home-pressures { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1rem; list-style: none; }
.home-pressures li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 8px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--grey-light);
    font-family: var(--mulish);
    font-weight: 700;
    font-size: 13px;
    color: var(--main-color);
}
.home-pressures .material-icons-outlined { font-size: 18px; color: var(--water-color); }
.home-turn {
    font-family: var(--mulish);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--home-ink) !important;
}

.home-journey-wrap { position: relative; }
.home-journey { position: relative; padding: 0; margin: 0; list-style: none; }
.home-journey-line { display: none; }
.home-journey li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; }
.home-journey-dot {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 8px 18px -8px var(--shadow), inset 0 0 0 4px rgba(255, 255, 255, .35);
    position: relative;
    z-index: 1;
}
.home-journey-dot .material-icons-outlined { font-size: 30px; }
.home-journey h3 { font-size: 1.1rem; margin: .35rem 0 .15rem; color: var(--main-color); }
.home-journey p { font-size: .9rem; margin: 0; }
/* Phones: the steps stack, joined by a vertical line */
.home-journey li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 64px;
    bottom: 0;
    border-left: 2px dashed var(--water-muted);
}
@media (min-width: 768px) {
    .home-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .home-journey li { flex-direction: column; align-items: center; text-align: center; padding-bottom: 0; }
    .home-journey li:not(:last-child)::before { display: none; }
    .home-journey-dot { flex-basis: auto; width: 84px; height: 84px; }
    .home-journey-dot .material-icons-outlined { font-size: 38px; }
    /* A wave runs through the centres of the four circles (see the SVG in the template) */
    .home-journey-line {
        display: block;
        position: absolute;
        left: 0; top: 0;
        width: 100%;
        height: 84px;
    }
}
.home-strapline {
    margin: 1.5rem 0 0;
    text-align: center;
    font-family: var(--mulish);
    font-weight: 800;
    font-size: clamp(1.05rem, 1.2vw + .6rem, 1.4rem);
    color: var(--home-ink) !important;
}
.home-strapline span { color: var(--home-cyan); }

/* ---------- Find your place: one card per type of user ---------- */
.home-audience-card {
    height: 100%;
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.home-audience-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px var(--shadow); }
@media (prefers-reduced-motion: reduce) { .home-audience-card:hover { transform: none; } }
.home-audience-card .card-body { display: flex; flex-direction: column; padding: 1.25rem; }
.home-audience-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px 18px 18px 4px;
    display: grid;
    place-items: center;
    margin-bottom: .9rem;
    color: #fff;
}
.home-audience-icon .material-icons-outlined { font-size: 30px; }
.home-audience-role {
    font-family: var(--mulish);
    font-weight: 800;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}
.home-audience-card h3 { font-size: 1.15rem; line-height: 1.3; color: var(--main-color); margin-bottom: .5rem; }
.home-audience-card p { font-size: .9rem; margin-bottom: 1rem; }
.home-audience-card .home-audience-link {
    margin-top: auto;
    font-family: var(--mulish);
    font-weight: 800;
    font-size: .9rem;
    color: var(--water-color);
}
.home-audience-card .home-audience-link .material-icons-outlined { font-size: 18px; vertical-align: -4px; transition: transform var(--transition); }
.home-audience-card:hover .home-audience-link .material-icons-outlined { transform: translateX(3px); }
/* A thin bar in the card's colour along the top */
.home-audience-card { border-top: 4px solid var(--audience-color); }
.home-audience-card .home-audience-icon { background: var(--audience-color); }
.home-audience-card .home-audience-role { color: var(--audience-color); }

/* ---------- Objective tiles under the "Our Vision" model ---------- */
.home-objectives { margin-top: 1.5rem; }
.home-objective {
    width: 100%;
    height: 100%;
    text-align: left;
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    background: #fff;
    padding: 1rem 1.1rem;
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.home-objective:hover, .home-objective:focus-visible { box-shadow: 0 10px 22px -12px var(--shadow); border-color: var(--objective-color); }
.home-objective:focus-visible { outline: 3px solid var(--home-ink); outline-offset: 2px; }
.home-objective-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--objective-color);
    color: #fff;
}
.home-objective-title { display: block; font-family: var(--mulish); font-weight: 800; font-size: 1.05rem; color: var(--main-color); margin: 0 0 .2rem; }
.home-objective-text { display: block; font-size: .875rem; color: var(--dark-text); margin: 0 0 .35rem; }
.home-objective .home-objective-more { font-family: var(--mulish); font-weight: 800; font-size: .8rem; color: var(--water-color); }

/* ---------- Living Labs map ---------- */
.home-wolls-head { margin-bottom: 1rem; }
.home-wolls-card {
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.home-wolls-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--grey-light);
    background: var(--grey-extra-light);
}
.home-wolls-filters .home-wolls-filters-label { font-family: var(--mulish); font-weight: 800; font-size: 12px; color: var(--text-color); margin-right: 4px; }
.home-woll-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--grey-mutted);
    border-radius: 50px;
    background: #fff;
    padding: 3px 11px 3px 7px;
    font-family: var(--mulish);
    font-weight: 700;
    font-size: 12px;
    color: var(--main-color);
    cursor: pointer;
}
.home-woll-filter .home-woll-swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--swatch); }
.home-woll-filter[aria-pressed="false"] { opacity: .45; }
.home-woll-filter[aria-pressed="false"] .home-woll-swatch { background: transparent; }
.home-woll-filter:focus-visible { outline: 3px solid var(--home-ink); outline-offset: 2px; }
.home-wolls-map { flex: 1 1 auto; min-height: 380px; background: #E8EEF5; }
@media (min-width: 992px) { .home-wolls-map { min-height: 520px; } }
/* Muted base map, so the coloured labs stand out */
.home-wolls-map .leaflet-tile-pane { filter: grayscale(.9) brightness(1.06) contrast(.9); }
.home-wolls-map .leaflet-container, .home-wolls-map { font-family: var(--opensans); }
.home-wolls-map path.home-woll-marker { cursor: pointer; transition: stroke-width .15s ease; }
.home-wolls-map path.home-woll-marker.is-active { stroke-width: 5; }
.home-wolls-tip.leaflet-tooltip { font-family: var(--mulish); font-weight: 700; font-size: 12px; border-radius: 6px; }

.home-wolls-panel { padding: 1.25rem; display: flex; flex-direction: column; height: 100%; }
.home-wolls-panel h3 { font-size: 1.2rem; color: var(--main-color); margin-bottom: .35rem; }
.home-wolls-panel p { font-size: .9rem; color: var(--dark-text); }
.home-wolls-panel label { font-family: var(--mulish); font-weight: 800; font-size: .8rem; color: var(--text-color); }
.home-wolls-helix { display: block; width: 100%; max-width: 260px; height: auto; margin: .25rem auto 1rem; }
.home-wolls-criteria { padding-left: 1.1rem; font-size: .875rem; color: var(--dark-text); }
.home-wolls-criteria li { margin-bottom: .2rem; }
.home-wolls-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: .75rem; }
.home-wolls-actions .btn .material-icons-outlined { font-size: 18px; vertical-align: -4px; }

.home-woll-detail[hidden], .home-woll-overview[hidden] { display: none !important; }
.home-woll-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-family: var(--mulish);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--woll-color, var(--water-color));
}
/* The name gets focus from the script (tabindex -1) so screen readers read the new lab */
.home-woll-detail h3:focus { outline: none; }
.home-woll-place { font-size: .875rem; color: var(--text-color); margin: .15rem 0 .5rem; }
.home-woll-place .material-icons-outlined { font-size: 16px; vertical-align: -3px; }
.home-woll-facts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 .75rem; list-style: none; }
.home-woll-facts li { font-size: 12px; padding: 2px 9px; border-radius: 6px; background: var(--grey-extra-light); color: var(--dark-text); }
.home-woll-quote {
    position: relative;
    margin: .25rem 0 .75rem;
    padding: .75rem .9rem .75rem 2.4rem;
    border-radius: 8px;
    background: var(--water-extra-light);
    border-left: 4px solid var(--woll-color, var(--water-color));
    font-style: italic;
    font-size: .9rem;
    color: var(--main-color);
}
.home-woll-quote::before {
    content: "\201C";
    position: absolute;
    left: .55rem;
    top: -.1rem;
    font-family: Georgia, serif;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--woll-color, var(--water-color));
    font-style: normal;
}
.home-woll-who { font-size: .8rem; color: var(--text-color); margin-bottom: .75rem; }
.home-woll-who strong { color: var(--main-color); }
.home-woll-back { border: 0; background: none; padding: 0; font-family: var(--mulish); font-weight: 800; font-size: .85rem; color: var(--water-color); }
.home-woll-back .material-icons-outlined { font-size: 18px; vertical-align: -4px; }
.home-wolls-source { font-size: .75rem; color: var(--text-color); margin: .6rem 0 0; }

/* ---------- Product spotlight (the cta image-cta section at the bottom) ---------- */
.cta.image-cta .spotlight-label {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: .75rem;
    padding: 4px 12px 4px 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .45);
    font-family: var(--mulish);
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}
.cta.image-cta .spotlight-label .material-icons-outlined { font-size: 18px; color: var(--energy-color); }
.cta.image-cta .spotlight-note { font-size: .85rem; color: #fff; opacity: .9; margin-bottom: 1rem; }
.cta.image-cta .spotlight-note .material-icons-outlined { font-size: 16px; vertical-align: -3px; margin-right: 2px; }

/* ---------- Voices from the Living Labs ---------- */
.home-voices-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 44px) clamp(16px, 3vw, 44px);
    color: #fff;
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(52, 169, 214, .35) 0%, transparent 55%),
        radial-gradient(70% 120% at 100% 100%, rgba(42, 178, 94, .25) 0%, transparent 60%),
        linear-gradient(135deg, #0B3A6E 0%, var(--home-navy) 100%);
}
.home-voices-mark { position: absolute; right: -10px; top: -30px; width: 220px; height: auto; opacity: .09; pointer-events: none; }
.home-voices-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; position: relative; }
.home-voices-head h2 { color: #fff; margin: 0; }
.home-voices-head .home-kicker { color: #90BBF2; }
.home-voices-nav { display: flex; gap: 8px; }
.home-voices-nav button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: grid;
    place-items: center;
}
.home-voices-nav button:hover { background: rgba(255, 255, 255, .2); }
.home-voices-nav button:focus-visible { outline: 3px solid #FDC32E; outline-offset: 2px; }
.home-voices-track {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 4px 2px 12px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .35) transparent;
    position: relative;
}
@media (prefers-reduced-motion: reduce) { .home-voices-track { scroll-behavior: auto; } }
.home-voice {
    flex: 0 0 min(86%, 360px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-top: 4px solid var(--voice-color);
}
.home-voice blockquote { margin: 0 0 1rem; font-size: 1rem; line-height: 1.55; color: #fff; }
.home-voice blockquote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 2.8rem; line-height: .8; color: var(--voice-color); margin-bottom: .25rem; }
.home-voice-who { margin-top: auto; font-size: .8rem; color: #C9DAEE; }
.home-voice-who strong { display: block; color: #fff; font-size: .875rem; }
.home-voice-lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.home-voice-lab > span { font-family: var(--mulish); font-weight: 700; font-size: .8rem; color: #fff; }
.home-voice-lab button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 50px;
    padding: 3px 10px 3px 6px;
    background: #fff;
    color: var(--home-ink);
    font-family: var(--mulish);
    font-weight: 800;
    font-size: 12px;
}
.home-voice-lab button .material-icons-outlined { font-size: 16px; vertical-align: -3px; }
.home-voice-lab button:focus-visible { outline: 3px solid #FDC32E; outline-offset: 2px; }
.home-voices-source { position: relative; font-size: .75rem; color: #A9C1DE; margin: .5rem 0 0; }
.home-voices-source a { color: #fff; }
