/* ==========================================================================
   BancBridge Home Page
   Ported from design handoff: BancBridge Website.dc.html, "01 · Homepage"

   Shared components used on this page (nav-right/CTA, buttons, check list,
   link-arrow, footer) live in styles.css so products.html can reuse them
   without duplication. This file holds only homepage-specific sections.
   ========================================================================== */

.home-page .logo {
    gap: 0;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.hp-trust {
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 15px 56px;
    background: var(--bg-trust);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.hp-trust-line {
    font: 700 14px 'Public Sans', sans-serif;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.hp-trust-caps {
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Hero — full-bleed bridge photograph, headline overlaid
   (Package 2: replaces the tinted-panel hero + homepage explainer graphic.
   The animation now lives on the How-it-works pages instead.)
   -------------------------------------------------------------------------- */
.hp-hero-photo {
    position: relative;
    aspect-ratio: 1717 / 916;
    background: url('assets/bridge-hero.png') center/cover no-repeat;
}

.hp-hero-headline {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hp-hero-line {
    position: absolute;
    left: 10.8%;
    line-height: 1;
    white-space: nowrap;
}

.hp-hero-line--light {
    font-size: 2.2vw;
    font-weight: 300;
    color: #33445e;
    letter-spacing: -0.01em;
}

.hp-hero-line--bold {
    font-size: 3.1vw;
    font-weight: 600;
    color: #001b41;
    letter-spacing: -0.02em;
}

.hp-hero-photo-actions {
    position: absolute;
    top: 54%;
    left: 10.8%;
    display: flex;
    gap: 14px;
    align-items: center;
}

.hp-hero-btn-alt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 16px;
    padding: 15px 28px;
    border-radius: 5px;
}

.hp-hero-btn-alt span {
    font-size: 18px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.hp-hero-btn-alt:hover span {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Segments
   -------------------------------------------------------------------------- */
.hp-segments {
    padding: 64px 56px;
    background: var(--bg-gray);
    border-top: 1px solid var(--border-light);
}

.hp-segments-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.hp-segments-head h2 {
    font-size: 34px;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.hp-segments-head p {
    font-size: 16px;
    line-height: 1.6;
    color: #5b6b7a;
    margin-top: 14px;
}

.hp-segments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hp-segment-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 30px;
}

.hp-segment-tile {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
}

.hp-segment-tile--navy {
    background: var(--primary-blue);
}

.hp-segment-tile--blue {
    background: var(--accent-blue);
}

.hp-segment-tile--deep {
    background: var(--text-dark);
}

.hp-segment-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 18px 0 0;
}

.hp-segment-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #5b6b7a;
    margin: 10px 0 0;
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.hp-stats {
    background: var(--gradient-blue);
    color: #ffffff;
    padding: 64px 56px;
    text-align: center;
}

.hp-stats h2 {
    font-size: 32px;
    letter-spacing: -0.01em;
    color: #ffffff;
    max-width: 560px;
    margin: 0 auto 44px;
}

.hp-stats-row {
    display: flex;
    justify-content: center;
    gap: 72px;
    flex-wrap: wrap;
}

.hp-stat {
    text-align: center;
}

.hp-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 48px;
    letter-spacing: -0.02em;
}

.hp-stat-label {
    display: block;
    font: 500 15px 'Public Sans', sans-serif;
    color: #a9c0d8;
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Pull quote
   -------------------------------------------------------------------------- */
.hp-quote {
    padding: 72px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hp-quote-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.hp-quote blockquote {
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin: 0;
}

.hp-quote cite {
    display: block;
    text-align: left;
    font: 600 15px 'Public Sans', sans-serif;
    font-style: normal;
    color: #5b6b7a;
    margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Hero: the headline is sized in vw and absolutely positioned over a
       photo pinned to 1717/916. At 375px that makes the hero 200px tall and
       the type ~8px -- unreadable. (The v3 handoff flagged vw as unsuitable
       here.) Below 900px, stop overlaying: show the photo, then run the
       headline and CTAs beneath it in normal flow at fixed, legible sizes. */
    .hp-hero-photo {
        aspect-ratio: auto;
        background: none;
    }

    .hp-hero-photo::before {
        content: '';
        display: block;
        aspect-ratio: 1717 / 916;
        background: url('assets/bridge-hero.png') center/cover no-repeat;
    }

    .hp-hero-headline {
        padding: 30px 24px 0;
    }

    .hp-hero-line {
        position: static;
        left: auto;
        display: block;
        white-space: normal;
        line-height: 1.2;
        /* the mixed-weight line would otherwise inherit h1's 32px and sit on
           a taller line box than its siblings */
        font-size: 21px;
    }

    .hp-hero-line--light {
        font-size: 21px;
    }

    .hp-hero-line--bold {
        font-size: 27px;
    }

    /* third line mixes both weights on one line */
    .hp-hero-line .hp-hero-line--light,
    .hp-hero-line .hp-hero-line--bold {
        display: inline;
    }

    .hp-hero-photo-actions {
        position: static;
        padding: 22px 24px 34px;
        flex-wrap: wrap;
    }

    .hp-segments {
        padding: 48px 24px;
    }

    .hp-segments-grid {
        grid-template-columns: 1fr;
    }

    .hp-stats-row {
        gap: 40px;
    }

    .hp-quote {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 24px;
    }
}

@media (max-width: 640px) {
    .hp-trust,
    .hp-quote {
        padding-left: 24px;
        padding-right: 24px;
    }
}
