/* ===== Where We Work page ===== */

/* ===== Hero (Rectangle 51 + Frame 7 : image + gradient + play + text) ===== */
.wwahero {
    position: relative;
    width: 100%;
    height: 803px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
}

.wwahero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Centered play button (decorative, from the design) */
.wwahero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
.wwahero__play svg { margin-left: 4px; }

/* Frame 7 : bottom-left text (832px wide, 37px from left, ~54px up) */
.wwahero__content {
    position: absolute;
    left: 37px;
    bottom: 54px;
    z-index: 2;
    width: 832px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.wwahero__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 60px;
    color: #CF8E00;
}
.wwahero__desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #FFFFFF;
}

/* ===== Intro header (bar + uppercase title + subtitle) ===== */
.wwaabout {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 48px 0 24px;
}
.wwaabout__wrap {
    width: 1380px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
}
.wwaabout__bar {
    flex: none;
    width: 6px;
    height: 106px;
    border-radius: 3px;
    background: linear-gradient(180deg, #CF8E00 0%, #064700 100%);
}
.wwaabout__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.wwaabout__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 72px;
    text-transform: uppercase;
    color: #363636;
}
.wwaabout__subtitle {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #363636;
}

/* ===== RDI Footprint (interactive map) ===== */
.fp {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 40px 0 70px;
}
.fp__wrap {
    width: 1380px;
    max-width: calc(100% - 60px);
}

/* Header */
.fp__head {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 30px;
}
.fp__bar {
    flex: none;
    width: 6px;
    align-self: stretch;
    border-radius: 3px;
    background: linear-gradient(180deg, #CF8E00 0%, #064700 100%);
}
.fp__head-text { display: flex; flex-direction: column; gap: 4px; }
.fp__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 60px;
    text-transform: uppercase;
    color: #363636;
}
.fp__subtitle {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #6b6b6b;
}

/* Body: full-width map by default; opens into two columns when a pin is clicked */
.fp__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
}
.fp__left { flex: 1 1 auto; min-width: 0; }
.fp.is-open .fp__body {
    flex-direction: row;
    align-items: flex-start;
    gap: 55px;
}
.fp.is-open .fp__left { flex: 1 1 56%; }

/* Map with pins + highlight overlays */
.fp__map {
    position: relative;
    width: 100%;
    line-height: 0;
}
.fp__map-base { width: 100%; height: auto; display: block; }
.fp__highlight {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.fp__highlight.is-active,
.fp__highlight.is-hover { opacity: 1; }

.fp__pin {
    position: absolute;
    transform: translate(-50%, -100%);
    width: 30px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease, filter 0.15s ease;
    transform-origin: bottom center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}
.fp__pin svg { width: 100%; height: 100%; display: block; }
.fp__pin:hover { transform: translate(-50%, -100%) scale(1.18); }
.fp__pin.is-active { transform: translate(-50%, -100%) scale(1.22); }

/* Intro text under the map — hidden until a pin is clicked */
.fp__intro { display: none; margin-top: 34px; }
.fp.is-open .fp__intro { display: block; }
.fp__intro-title {
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 52px;
    color: #363636;
}
.fp__intro-desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #363636;
    max-width: 560px;
}

/* Detail panels (only .is-active shown) */
.fp__panels { display: none; }                 /* hidden until a pin is clicked */
.fp.is-open .fp__panels { display: block; flex: 1 1 40%; min-width: 0; }
.fp__panel { display: none; }
.fp__panel.is-active { display: block; }
/* close button on the detail panel */
.fp__close {
    float: right;
    width: 34px; height: 34px;
    border: 0; border-radius: 50%;
    background: rgba(6, 71, 0, 0.08);
    color: #363636; font-size: 20px; line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.fp__close:hover { background: rgba(6, 71, 0, 0.16); }
.fp__panel-head { margin-bottom: 22px; }
.fp__panel-brand {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 34px;
    color: #263143;
}
.fp__panel-loc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    color: #363636;
}

.fp__cards { display: flex; flex-direction: column; gap: 22px; }
.fp__card { display: flex; flex-direction: row; align-items: stretch; gap: 20px; }
.fp__card-media {
    flex: 0 0 160px;
    align-self: stretch;
    min-height: 110px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #dfe4df;
}
.fp__card-text { flex: 1; min-width: 0; }
.fp__card-title {
    margin: 0 0 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 27px;
    color: #263143;
}
.fp__card-desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 23px;
    text-align: justify;
    color: #363636;
}

.fp__viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    width: 100%;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #CF8E00;
    text-decoration: none;
}
.fp__viewall:hover { opacity: 0.8; }

/* ===== Impact cards row (Frame 253) ===== */
.impact {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 20px 0 70px;
}
.impact__wrap {
    width: 1380px;
    max-width: calc(100% - 60px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.impact__card {
    background: #FFFFFF;
    box-shadow: 0px 2px 14px rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 18px 18px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.impact__media {
    position: relative;
    width: 100%;
    aspect-ratio: 404 / 410;
    border-radius: 13px;
    overflow: hidden;
    background: #dfe4df;
}
.impact__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.impact__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    background: #C4622D;
    border-radius: 8px;
}
.impact__badge svg { flex: none; }
.impact__badge-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    white-space: nowrap;
}
.impact__text {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.impact__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #363636;
}
.impact__desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: justify;
    color: #363636;
}

/* ===== Three commitments, one purpose ===== */
.cmt {
    width: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    padding: 60px 0 70px;
}
.cmt__wrap {
    width: 1380px;
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* Header */
.cmt__head {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 913px;
    width: 100%;
}
.cmt__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 54px;
    text-align: center;
    color: #064700;
}
.cmt__subtitle {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    text-align: center;
    color: #363636;
}

/* Filter tabs */
.cmt__filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;
}
.cmt__tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
    justify-content: center;
}
.cmt__tab {
    height: 60px;
    padding: 0 30px;
    border: 0;
    border-radius: 35px;
    background: rgba(6, 71, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: rgba(6, 71, 0, 0.75);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.cmt__tab:hover { background: rgba(6, 71, 0, 0.18); }
.cmt__tab.is-active {
    background: #CF8E00;
    color: #FFFFFF;
}
.cmt__note {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    text-align: center;
    color: #363636;
}

/* Rows */
.cmt__rows {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 51px;
}
.cmt__row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 51px;
    width: 100%;
}
.cmt__row.is-hidden { display: none; }
.cmt__media {
    flex: 0 0 481px;
    max-width: 481px;
    aspect-ratio: 481 / 319;
    border-radius: 30px;
    overflow: hidden;
    background: #dfe4df;
}
.cmt__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cmt__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cmt__loc {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: rgba(54, 54, 54, 0.7);
}
.cmt__loc svg { flex: none; }
.cmt__row-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 54px;
    color: #C4622D;
}
.cmt__row-desc {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    text-align: justify;
    color: #363636;
}
.cmt__pills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
}
.cmt__pill {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 35px;
    background: rgba(196, 98, 45, 0.1);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #C4622D;
    white-space: nowrap;
}
.cmt__link {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #C4622D;
    text-decoration: none;
}
.cmt__link svg { flex: none; }
.cmt__link:hover { opacity: 0.8; }

/* Green accent variant (livelihood) */
.cmt__row--green .cmt__row-title { color: #064700; }
.cmt__row--green .cmt__pill { background: rgba(6, 71, 0, 0.1); color: #064700; }
.cmt__row--green .cmt__link { color: #064700; }

/* View All */
.cmt__viewall {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    color: #CF8E00;
    text-decoration: none;
}
.cmt__viewall:hover { opacity: 0.8; }

/* ===== Our Locations (auto-scrolling office cards) ===== */
.loc {
    width: 100%;
    background: #FFFFFF;
    padding: 40px 0 80px;
    overflow: hidden;
}
.loc__wrap {
    width: 1380px;
    max-width: calc(100% - 60px);
    margin: 0 auto 49px;
}

/* Header */
.loc__head {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
}
.loc__bar {
    flex: none;
    width: 6px;
    height: 106px;
    border-radius: 3px;
    background: linear-gradient(180deg, #CF8E00 0%, #064700 100%);
}
.loc__head-text { display: flex; flex-direction: column; gap: 7px; }
.loc__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 72px;
    text-transform: uppercase;
    color: #363636;
}
.loc__subtitle {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #363636;
}

/* Marquee */
.loc__marquee {
    width: 100%;
    overflow: hidden;
}
.loc__track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    width: max-content;
    animation: loc-scroll 45s linear infinite;
}
.loc__marquee:hover .loc__track { animation-play-state: paused; }
@keyframes loc-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.loc__card {
    flex: 0 0 auto;
    width: 440px;
    min-height: 197px;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.loc__card--green { background: rgba(6, 71, 0, 0.16); }
.loc__card--green .loc__card-title,
.loc__card--green .loc__card-body { color: #064700; }
.loc__card--gold { background: rgba(207, 142, 0, 0.16); }
.loc__card--gold .loc__card-title,
.loc__card--gold .loc__card-body { color: #CF8E00; }

.loc__card-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
}
.loc__card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}
.loc__card-body p { margin: 0; }
.loc__label { font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
    .loc__track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .wwahero { height: 640px; }
    .wwaabout__title { font-size: 36px; line-height: 54px; }
    .fp__title { font-size: 32px; line-height: 46px; }
    .fp__intro-title { font-size: 32px; line-height: 42px; }
    .fp__body { gap: 36px; }
    .wwahero__title { font-size: 34px; line-height: 48px; }
    .wwahero__play { width: 80px; height: 80px; }
    .cmt__row { gap: 34px; }
    .cmt__media { flex-basis: 380px; }
    .cmt__row-title { font-size: 30px; line-height: 44px; }
}

@media (max-width: 768px) {
    .wwahero { height: 520px; }
    .wwahero__content { left: 22px; bottom: 40px; }
    .wwahero__title { font-size: 28px; line-height: 40px; }
    .wwahero__desc { font-size: 16px; line-height: 24px; }
    .wwahero__play { width: 64px; height: 64px; }
    .wwahero__play svg { width: 26px; height: 30px; }
    .wwaabout__title { font-size: 28px; line-height: 40px; }
    .wwaabout__bar { height: 84px; }
    .wwaabout__subtitle { font-size: 16px; line-height: 24px; }
    /* stack footprint: map on top, panel below */
    .fp__body { flex-direction: column; gap: 30px; }
    .fp__left, .fp__panels { flex: 1 1 auto; width: 100%; }
    .fp__title { font-size: 26px; line-height: 38px; }
    .fp__intro { margin-top: 24px; }
    .fp__intro-title { font-size: 26px; line-height: 36px; }
    .fp__intro-desc { font-size: 16px; line-height: 24px; }
    .fp__pin { width: 24px; height: 32px; }
    .fp__card-media { flex-basis: 120px; min-height: 88px; }
    .impact__wrap { grid-template-columns: 1fr; max-width: 440px; }
    /* commitments: stack image above text */
    .cmt__row { flex-direction: column; align-items: stretch; gap: 22px; }
    .cmt__media { flex-basis: auto; max-width: 100%; width: 100%; }
    .cmt__title { font-size: 28px; line-height: 40px; }
    .cmt__row-title { font-size: 26px; line-height: 38px; }
    .cmt__subtitle, .cmt__note { font-size: 16px; line-height: 24px; }
    .cmt__tab { height: 48px; padding: 0 20px; font-size: 16px; }
    .loc__title { font-size: 30px; line-height: 46px; }
    .loc__bar { height: 78px; }
    .loc__card { width: 340px; }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .impact__wrap { grid-template-columns: repeat(2, 1fr); }
}
