/* ==========================================================================
   Site V2 additions — new sections and overrides.
   Loaded after the Webflow stylesheet so these rules win.
   ========================================================================== */

/* ---------- Emergency resources (sits above the brand footer) ---------- */
.emergency-resources {
    background-color: #fbf8f3;
    color: var(--neutral--black-900, #111);
    border-top: 1px solid #ece6db;
    border-bottom: 1px solid #ece6db;
}

.emergency-resources__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: start;
}

.emergency-resources__heading {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.emergency-resources__eyebrow {
    font-family: var(--font--heading-font, Inter, sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b6257;
    margin: 0;
}

.emergency-resources__title {
    margin: 0;
    font-family: var(--font--heading-font, Inter, sans-serif);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral--black-900, #111);
}

.emergency-resources__body {
    margin: 0;
    font-family: var(--font--paragraph-font, Inter, sans-serif);
    font-size: 1rem;
    line-height: 1.55;
    color: #4a4338;
    max-width: 40ch;
}

.emergency-resources__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

.emergency-resources__list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    background-color: #fff;
    border: 1px solid #ece6db;
    border-radius: 0.6rem;
}

.emergency-resources__list li.is-full {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: none;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #6b6257;
}

.emergency-resources__list li.is-full::before {
    content: "⚠";
    font-size: 0.95rem;
}

.emergency-resources__region {
    font-family: var(--font--paragraph-font, Inter, sans-serif);
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b6257;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.emergency-resources__numbers {
    font-family: var(--font--heading-font, Inter, sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neutral--black-900, #111);
    letter-spacing: 0.01em;
}

.emergency-resources__numbers a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.emergency-resources__numbers a:hover {
    border-bottom-color: currentColor;
}

@media (max-width: 820px) {
    .emergency-resources__inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2.25rem 1.25rem;
    }
    .emergency-resources__title {
        font-size: 1.4rem;
    }
    .emergency-resources__list {
        grid-template-columns: 1fr;
    }
}

/* ---------- Nav: In crisis? link spacing tweak ---------- */
.nav-link.nav-link--crisis {
    white-space: nowrap;
}

/* On desktop the pill button on the right handles "Get the app", so hide
   the duplicate text link (and the divider after it) from the nav menu. */
@media screen and (min-width: 992px) {
    .nav-menu a.nav-link[href="/get-the-app.html"],
    .nav-menu a.nav-link[href="/get-the-app.html"] + .nav-line {
        display: none;
    }
}

/* ---------- Founder section ---------- */
.founder-section {
    padding: 4rem 0 3rem 0;
}

.founder-section__heading {
    margin: 0 0 2rem 0;
    text-align: left;
}

.founder-section__heading strong {
    font-weight: 700;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.founder-tile {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.founder-tile--portrait {
    gap: 1.25rem;
}

.founder-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1.25rem;
    display: block;
    background-color: var(--neutral--white-300, #eae6e0);
}

.founder-tile--bio {
    gap: 1.5rem;
    justify-content: flex-start;
    padding-top: 0.5rem;
}

.founder-bio {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--neutral--black-900, #111);
    margin: 0;
}

.founder-quote {
    background-color: var(--brand--pink, #887fe0);
    color: var(--neutral--white, #fff);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.55;
    margin: 0;
    position: relative;
}

.founder-quote::before {
    content: "\201C";
    position: absolute;
    top: 0.15rem;
    left: 0.75rem;
    font-size: 3rem;
    opacity: 0.35;
    line-height: 1;
}

.founder-cta-wrapper {
    display: flex;
}

.founder-prize {
    margin: 1.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.founder-prize__photo {
    width: 100%;
    border-radius: 0.75rem;
    display: block;
    box-shadow: 0 18px 42px -18px rgba(45, 35, 20, 0.35), 0 2px 4px rgba(45, 35, 20, 0.06);
}

.founder-prize__caption {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--neutral--black-700, #4a4a4a);
    margin: 0;
}

@media (max-width: 768px) {
    .founder-section {
        padding: 1.5rem 0 2.5rem 0;
    }
    .founder-section__heading {
        margin: 0 0 1.25rem 0;
    }
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .founder-photo {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ---------- Partners marquee ---------- */
.partners-section {
    padding: 5rem 0 4rem 0;
    background-color: #fff;
}

.partners-section__header {
    max-width: 760px;
    margin: 0 auto 3rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.partners-section__header .about-header-author-content-wrapper,
.testimonials-section__header .about-header-author-content-wrapper {
    margin: 0 auto;
}

.partners-section__header h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    line-height: 1.15;
}

.partners-section__header h2 strong {
    font-weight: 700;
}

.partners-section__header p {
    max-width: 560px;
    margin: 0 auto;
    color: #4a4338;
    font-size: 1.02rem;
    line-height: 1.55;
    text-align: center;
}

.partners-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    background-color: var(--secondary--blue, #bdfe6e);
    padding: 2rem 0;
}

.partners-marquee::before,
.partners-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--secondary--blue, #bdfe6e), rgba(189, 254, 110, 0));
}

.partners-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--secondary--blue, #bdfe6e), rgba(189, 254, 110, 0));
}

.partners-marquee__track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: partners-scroll 45s linear infinite;
    align-items: center;
}

.partners-marquee:hover .partners-marquee__track {
    animation-play-state: paused;
}

.partners-marquee__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    flex-shrink: 0;
}

.partners-marquee__item img {
    max-height: 72px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: center;
}

.partners-marquee__item:hover img {
    transform: scale(1.2);
}

/* AIBP logo is white — invert so it reads on the green band. */
.partners-marquee__item img[src$="aibp.png"] {
    filter: invert(1);
}

.partners-marquee__item:hover img[src$="aibp.png"] {
    filter: invert(1);
    transform: scale(1.2);
}

@keyframes partners-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    .partners-section {
        padding: 3.5rem 0 3rem 0;
    }
    .partners-marquee__track {
        gap: 2.5rem;
        animation-duration: 30s;
    }
    .partners-marquee__item {
        height: 64px;
    }
    .partners-marquee__item img {
        max-height: 52px;
        max-width: 140px;
    }
}

/* ---------- Testimonials ---------- */
.testimonials-section {
    padding: 5rem 0 4rem 0;
    background-color: #fff;
}

.testimonials-section__header {
    max-width: 820px;
    margin: 0 auto 3rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.testimonials-section__header > *:not(.about-header-author-content-wrapper) {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-section__heading {
    margin: 0;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    line-height: 1.15;
}

.testimonials-section__heading strong {
    font-weight: 700;
}

.testimonials-section__subheading {
    font-size: 1.05rem;
    color: var(--neutral--black-700, #4a4a4a);
    margin: 0.25rem 0 0.75rem 0;
    font-weight: 500;
}

.testimonials-section__intro {
    font-size: 1rem;
    line-height: 1.55;
    color: #4a4338;
    margin: 0 auto;
    max-width: 640px;
}

.testimonials-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(1.25rem, calc((100vw - 1200px) / 2));
    padding: 1rem max(1.25rem, calc((100vw - 1200px) / 2)) 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.testimonials-scroll::-webkit-scrollbar {
    height: 6px;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
    background: var(--neutral--white-400, #d7d2ca);
    border-radius: 3px;
}

.testimonial-card {
    flex: 0 0 auto;
    width: min(86vw, 400px);
    scroll-snap-align: start;
    background-color: #fbdaea;
    border: 1px solid #f4c6db;
    border-radius: 1.25rem;
    padding: 3rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 10px rgba(45, 35, 20, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.25s ease, border-color 0.25s ease;
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 0.25rem;
    left: 1.25rem;
    font-family: var(--font--heading-font, Inter, sans-serif);
    font-size: 5rem;
    line-height: 1;
    color: var(--brand--pink, #887fe0);
    opacity: 0.55;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(45, 35, 20, 0.1);
    background-color: var(--secondary--blue, #bdfe6e);
    border-color: var(--secondary--blue, #bdfe6e);
}

.testimonial-card:hover::before {
    color: var(--brand--pink, #887fe0);
    opacity: 0.7;
}

.testimonial-card:hover .testimonial-card__attribution {
    color: rgba(17, 17, 17, 0.65);
    border-top-color: rgba(17, 17, 17, 0.15);
}

.testimonial-card__quote {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--neutral--black-900, #111);
    margin: 0;
}

.testimonial-card__attribution {
    font-size: 0.88rem;
    color: rgba(17, 17, 17, 0.65);
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
    font-weight: 500;
    transition: color 0.25s ease, border-top-color 0.25s ease;
}

@media (max-width: 600px) {
    .testimonials-section {
        padding: 3.5rem 0 3rem 0;
    }
    .testimonial-card {
        padding: 2.5rem 1.5rem 1.75rem 1.5rem;
        border-radius: 1rem;
    }
    .testimonial-card::before {
        font-size: 4rem;
        top: 0.1rem;
        left: 1rem;
    }
}


/* ---------- Right-column form heading (get-the-app) ---------- */
.contact-form-heading {
    margin: 0 0 1.5rem 0;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.15;
    color: var(--neutral--black-900, #111);
    font-weight: 700;
}

/* ---------- Blog preview CTA emphasis ---------- */
.button.sub.blog {
    width: auto;
    min-width: 14rem;
    background-color: var(--brand--pink, #887fe0);
    color: var(--neutral--white, #fff);
    border-color: var(--brand--pink, #887fe0);
    padding: 1rem 2.25rem;
    box-shadow: 0 6px 18px rgba(136, 127, 224, 0.22);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button.sub.blog:hover {
    background-color: var(--neutral--black-900, #111);
    border-color: var(--neutral--black-900, #111);
    color: var(--neutral--white, #fff);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18);
}

/* Give the blog preview CTA room to breathe at the bottom of the page */
.section-blog .div-block-17 {
    margin-top: 1rem;
}
