/*
 * Fundi Long Distance landing page — page-fundi-long-distance.php.
 *
 * Loaded after main.css and builds on its CP-webinar vocabulary (hero_banner,
 * webinar_content, content_grid, form_group, styled_select, accordion_item,
 * header_cta). Standalone rather than an SCSS partial so it ships without a
 * rebuild of main.css. Palette is the landing SCSS's: brown #52283B,
 * gold #FDC533, red #E63323.
 */

.fundi-landing-page {
    --fundi-brown: #52283B;
    --fundi-gold: #FDC533;
    --fundi-red: #E63323;
    --fundi-sand: #F7F3EE;
    --fundi-line: rgba(82, 40, 59, 0.14);
}

/* The page has its own full-width sticky bar (below); the shared mobile-only
   trigger would double it up. */
.fundi-landing-page .mobile_scroll_trigger {
    display: none !important;
}

.fundi_icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.fundi_eyebrow {
    color: var(--fundi-red);
    font-family: "MarkProBold", Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

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

/* A real <picture> rather than the usual background-image, so phones fetch a
   small portrait crop and the desktop image can be the LCP with a priority
   hint. Height follows the content: the hero carries more copy than the CP
   webinar's. */
.hero_banner.fundi_hero {
    height: auto;
    min-height: 640px;
    padding: 110px 0 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--fundi-brown);
}

.fundi_hero_media,
.fundi_hero_media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.fundi_hero_media img {
    object-fit: cover;
    object-position: center;
}

.fundi_hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(38, 16, 27, 0.88) 0%, rgba(38, 16, 27, 0.7) 45%, rgba(38, 16, 27, 0.15) 80%);
}

.fundi_hero .wrap {
    position: relative;
    z-index: 1;
    width: 100%;
}

.fundi_hero_content {
    max-width: 620px;
}

.fundi_hero .webinar_content_subtitle {
    margin-bottom: 24px;
    line-height: 1.12;
}

.fundi_hero .webinar_content_excerpt {
    margin-bottom: 44px;
    line-height: 1.55;
}

.fundi_badge {
    display: inline-block;
    border: 1px solid var(--fundi-gold);
    color: var(--fundi-gold);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* ------------------------------------------------------------- Trust bar -- */

.fundi_trust {
    background: var(--fundi-brown);
    color: #fff;
    padding: 26px 0;
}

.fundi_trust_list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.fundi_trust_list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.35;
}

.fundi_trust_list .fundi_icon {
    color: var(--fundi-gold);
    width: 28px;
    height: 28px;
}

/* ---------------------------------------------------------- About series -- */

.fundi_series_grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 60px;
    align-items: start;
}

.fundi_series .section_title {
    font-size: 2.2em;
    line-height: 1.2;
}

.fundi_series .section_excerpt {
    font-size: 17px;
    line-height: 1.65;
}

.fundi_series .section_excerpt p {
    margin-bottom: 18px;
}

/* SPM Buzz's mark is white-on-transparent, so the partner lock-up sits on the
   brand brown, with the Mi Vida logo knocked out to white to match. */
.fundi_partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-top: 50px;
    padding: 34px 24px;
    border-radius: 20px;
    background: var(--fundi-brown);
}

.fundi_partners_logo {
    height: 64px;
    width: auto;
}

.fundi_partners_logo--mivida {
    height: 46px;
    filter: brightness(0) invert(1);
}

.fundi_partners_wordmark {
    font-family: "MarkProBold", Helvetica, sans-serif;
    font-size: 28px;
    letter-spacing: 0.02em;
    color: #fff;
}

.fundi_partners_x {
    color: var(--fundi-gold);
    font-size: 28px;
}

/* ---------------------------------------------------------- Developments -- */

.fundi_devs {
    background: var(--fundi-sand);
}

/* 3-2 on desktop: six tracks, the first row's cards span two, the second
   row's span three. */
.fundi_devs_grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px;
    margin-top: 10px;
}

.fundi_dev {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(82, 40, 59, 0.08);
}

.fundi_dev:nth-child(n+4) {
    grid-column: span 3;
}

.fundi_dev_image {
    position: relative;
}

.fundi_dev_image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.fundi_dev:nth-child(n+4) .fundi_dev_image img {
    aspect-ratio: 16 / 8;
}

.fundi_dev_tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: 16px;
    width: fit-content;
    background: var(--fundi-gold);
    color: var(--fundi-brown);
    font-family: "MarkProBold", Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 8px;
}

.fundi_dev_body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 24px 26px 28px;
}

.fundi_dev_title {
    font-family: "MarkProBold", Helvetica, sans-serif;
    font-weight: normal;
    color: var(--fundi-brown);
    font-size: 1.4em;
    margin-bottom: 2px;
}

.fundi_dev_location {
    color: #6b6b6b;
    font-size: 14px;
    margin-bottom: 16px;
}

.fundi_dev_details {
    list-style: none;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.fundi_dev_details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.fundi_dev_details li:before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fundi-red);
}

/* Pinned to the card's foot so the CTAs line up across a row. */
.fundi_dev_cta {
    margin-top: auto;
    display: block;
    text-align: center;
    border: 1px solid var(--fundi-brown);
    color: var(--fundi-brown);
    border-radius: 10px;
    padding: 13px 16px;
    font-family: "MarkProBold", Helvetica, sans-serif;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.fundi_dev_cta:hover,
.fundi_dev_cta:focus-visible {
    background: var(--fundi-brown);
    color: #fff;
}

/* ------------------------------------------------ Why invest / FAQ / form -- */

/* No hero overlap here (the CP webinar pulls its form up into the hero): the
   form sits beside "Why invest" and the FAQ, and stays in view as they scroll. */
.fundi_main .content_grid_aside_form {
    margin-top: 0;
    top: 100px;
}

.fundi_why {
    list-style: none;
    display: grid;
    gap: 28px;
    margin-bottom: 70px;
}

.fundi_why li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.fundi_why .fundi_icon {
    width: 50px;
    height: 50px;
    padding: 12px;
    border-radius: 50%;
    background: rgba(253, 197, 51, 0.22);
    color: var(--fundi-brown);
}

.fundi_why h3 {
    font-family: "MarkProBold", Helvetica, sans-serif;
    font-weight: normal;
    color: var(--fundi-brown);
    font-size: 1.15em;
    margin-bottom: 6px;
}

.fundi_why p {
    line-height: 1.6;
}

.fundi-landing-page .accordion_item_header {
    font-size: 1em;
    font-weight: normal;
}

/* Phone: native country-code <select> (the brief wants the OS picker on
   phones) laid invisibly over a compact "+254" badge, beside the number. */
.fundi_phone {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
}

.fundi_phone_country {
    position: relative;
}

.fundi_phone_country select {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
}

.fundi_phone_dial {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 18px;
    font-size: 14px;
}

.fundi_phone_country:focus-within {
    border-color: #50B5FF;
}

.fundi_optional {
    color: #6b6b6b;
    font-size: 13px;
}

.fundi_hint {
    color: #6b6b6b;
    font-size: 13px;
    margin-top: 6px;
}

/* Brief: prominent, full width, brand colour with gold text. */
.fundi-landing-page .form_group input[type="submit"] {
    width: 100%;
    height: 56px;
    background: var(--fundi-brown);
    color: var(--fundi-gold);
    font-size: 16px;
    letter-spacing: 0.06em;
}

.fundi-landing-page .form_group input[type="submit"]:hover {
    background: var(--fundi-red);
    color: #fff;
}

.fundi-landing-page .form_group input[type="submit"]:disabled {
    opacity: 0.7;
    cursor: default;
}

.fundi_urgency {
    font-family: "MarkProBold", Helvetica, sans-serif;
    color: var(--fundi-brown);
    font-size: 14px;
    margin: -1rem 0 16px;
}

.fundi_confirmation {
    text-align: center;
}

.fundi_confirmation img {
    width: 120px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}

.fundi_confirmation p {
    line-height: 1.6;
    margin-bottom: 30px;
}

.fundi_confirmation p a {
    color: var(--fundi-brown);
    text-decoration: underline;
}

/* ------------------------------------------------------------ Sticky bar -- */

.fundi_sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--fundi-brown);
    color: #fff;
    padding: 14px 0;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}

.fundi_sticky.is_visible {
    transform: none;
}

.fundi_sticky .wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fundi_sticky_text {
    font-size: 15px;
}

.fundi_sticky_text strong {
    color: var(--fundi-gold);
    font-family: "MarkProBold", Helvetica, sans-serif;
    font-weight: normal;
}

.fundi_sticky_cta {
    margin-left: auto;
    white-space: nowrap;
}

/* ------------------------------------------------------------ Responsive -- */

@media only screen and (max-width: 1100px) {
    .fundi_trust_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fundi_series_grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .fundi_devs_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fundi_dev,
    .fundi_dev:nth-child(n+4) {
        grid-column: span 1;
    }

    .fundi_dev:nth-child(n+4) .fundi_dev_image img {
        aspect-ratio: 3 / 2;
    }
}

@media only screen and (max-width: 960px) {
    /* Stacked: the brief's order is cards → form → why → FAQ, so the form
       comes up ahead of the main column. */
    .fundi_main .content_grid_aside {
        order: -1;
    }

    .fundi_main .content_grid_aside_form {
        position: static;
        border: #52283b solid 2px;
    }
}

@media only screen and (max-width: 767px) {
    .hero_banner.fundi_hero {
        min-height: 0;
        padding: 70px 0 60px;
    }

    .fundi_hero:after {
        background: linear-gradient(180deg, rgba(38, 16, 27, 0.55) 0%, rgba(38, 16, 27, 0.88) 60%);
    }

    .fundi_badge {
        font-size: 11px;
    }

    .fundi_hero .webinar_content_excerpt {
        font-size: 1.05em;
        margin-bottom: 34px;
    }

    .fundi_trust {
        padding: 22px 0;
    }

    .fundi_trust_list {
        gap: 16px;
    }

    .fundi_trust_list li {
        font-size: 13px;
        gap: 10px;
    }

    .fundi_trust_list .fundi_icon {
        width: 24px;
        height: 24px;
    }

    .fundi_series .section_title {
        font-size: 1.6em;
    }

    .fundi_series .section_excerpt {
        font-size: 16px;
    }

    .fundi_partners {
        gap: 18px;
        margin-top: 30px;
        padding: 24px 16px;
    }

    .fundi_partners_logo {
        height: 46px;
    }

    .fundi_partners_logo--mivida {
        height: 32px;
    }

    .fundi_partners_wordmark {
        font-size: 22px;
    }

    /* Swipeable row: one card and a peek of the next, snapping card by card. */
    .fundi_devs_grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Bleed to the screen edges whatever the .wrap padding is here. */
        margin: 0 calc(50% - 50vw);
        padding: 4px 20px 18px;
        scroll-padding: 0 20px;
        scrollbar-width: none;
    }

    .fundi_devs_grid::-webkit-scrollbar {
        display: none;
    }

    .fundi_dev,
    .fundi_dev:nth-child(n+4) {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }

    .fundi_dev_body {
        padding: 20px 20px 22px;
    }

    .fundi_why {
        margin-bottom: 50px;
    }

    .fundi_why li {
        gap: 14px;
    }

    .fundi_why .fundi_icon {
        width: 42px;
        height: 42px;
        padding: 10px;
    }

    .fundi_phone {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .fundi_sticky {
        padding: 10px 0;
    }

    .fundi_sticky_text {
        font-size: 14px;
        line-height: 1.3;
    }

    /* Series name only on phones; the full line wraps to four rows. */
    .fundi_sticky_long {
        display: none;
    }

    .fundi_sticky_cta.primary_cta {
        padding: 10px 14px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fundi_sticky,
    .fundi_dev_cta {
        transition: none;
    }
}

#ac-whatsapp-widget-wrapper{
    bottom:90px !important;
}