/* ---- Home: "Three ways we lend" products section ---- */

.home-products {
    --hp-accent: #e8541c;
    --hp-line: rgba(var(--ink), .12);
    --hp-muted: rgba(var(--ink), .7);
    --hp-stat-bg: rgba(var(--ink), .03);
}

[data-theme="dark"] .home-products {
    --hp-accent: var(--orange);
}

.home-products .hp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-bottom: 2rem;
}

.home-products .hp-heading {
    font-size: clamp(1.875rem, 4.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--page-text);
    margin-bottom: 1rem;
}

.home-products .hp-heading .hp-accent {
    color: var(--hp-accent);
}

.home-products .hp-lead {
    max-width: 27rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--hp-muted);
    margin: 0;
}

.home-products .hp-all {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--page-text);
    text-decoration: none;
    white-space: nowrap;
}

.home-products .hp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--hp-line);
    background: var(--surface);
}

.home-products .hp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-products .hp-card + .hp-card {
    border-left: 1px solid var(--hp-line);
}

.home-products .hp-media {
    position: relative;
    height: 10.25rem;
    overflow: hidden;
    background: var(--navy);
}

.home-products .hp-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.home-products .hp-card:hover .hp-media img {
    transform: scale(1.04);
}

.home-products .hp-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 23, 47, .15) 0%, rgba(13, 23, 47, .2) 45%, rgba(13, 23, 47, .75) 100%);
}

.home-products .hp-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, .95);
    color: var(--navy);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-products .hp-title {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.875rem;
    z-index: 1;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
}

.home-products .hp-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1.75rem;
}

.home-products .hp-desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--hp-muted);
    margin-bottom: 1.25rem;
}

.home-products .hp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--hp-stat-bg);
    margin-bottom: 2.5rem;
}

.home-products .hp-stat {
    padding: 0.875rem 0.75rem;
    min-width: 0;
}

.home-products .hp-stat + .hp-stat {
    border-left: 1px solid var(--hp-line);
}

.home-products .hp-stat-value {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-text);
}

.home-products .hp-stat-label {
    margin-top: 0.375rem;
    font-size: 0.5625rem;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp-muted);
}

.home-products .hp-link {
    margin-top: auto;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--page-text);
    text-decoration: none;
}

.home-products .hp-link:hover,
.home-products .hp-all:hover {
    color: var(--hp-accent);
}

/* ---- Home: Process section CTA ---- */

.hp-process-cta {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.hp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 0.5rem 0.5rem 2.25rem;
    border-radius: 999px;
    background: #f04e09;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(240, 78, 9, .35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hp-cta-btn:hover,
.hp-cta-btn:focus-visible {
    color: #fff;
    background: #d94304;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(240, 78, 9, .45);
}

.hp-cta-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.hp-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    color: #f04e09;
    font-size: 1.125rem;
    letter-spacing: 0;
    transition: transform .2s ease;
}

.hp-cta-btn:hover .hp-cta-arrow {
    transform: translateX(3px);
}

@media (max-width: 575.98px) {
    .hp-process-cta {
        margin-top: 2.5rem;
    }

    .hp-cta-btn {
        gap: 0.875rem;
        padding-left: 1.5rem;
        font-size: 0.8125rem;
        letter-spacing: 0.1em;
    }

    .hp-cta-arrow {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .home-products .hp-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-products .hp-card + .hp-card {
        border-left: 0;
        border-top: 1px solid var(--hp-line);
    }

    .home-products .hp-media {
        height: 12rem;
    }
}

@media (max-width: 575.98px) {
    .home-products .hp-body {
        padding: 1.25rem 1rem 1.5rem;
    }

    .home-products .hp-stat {
        padding: 0.75rem 0.5rem;
    }
}
