/* Hero design — mobile-first, 100% responsive
   Shared across Borrowers, Brokers, Investors
   Breakpoints: 360 | 480 | 640 | 768 | 1024 */

/* ——— MOBILE (base: 320px+) ——— */
.page-hero {
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}

.page-hero .page-hero-content,
.page-hero .page-hero-inner {
    width: 100%;
    max-width: min(720px, 100%);
    margin: 0 auto;
    padding: 0 var(--gutter, 16px);
    position: relative;
    z-index: 1;
}

.page-hero .hero-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 2vw, 0.75rem);
    margin-bottom: clamp(1rem, 3vw, var(--space-lg, 1.5rem));
}
.page-hero .hero-tagline-line {
    width: clamp(1.5rem, 4vw, 2rem);
    min-width: 1.5rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}
.page-hero .hero-tagline-text {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
}


/* Stat bar — 2x2 grid on mobile */
.page-hero .hero-stat-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.5rem, 2vw, 1rem);
    margin: clamp(1rem, 3vw, var(--space-lg, 1.5rem)) 0;
    width: 100%;
    max-width: 100%;
}
.page-hero .hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.25rem, 1.5vw, 0.5rem);
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
}
.page-hero .hero-stat-item::before {
    display: none;
}
.page-hero .hero-stat-item:not(:last-child)::after {
    display: none;
}
.page-hero .hero-stat-icon {
    width: clamp(20px, 5vw, 22px);
    height: clamp(20px, 5vw, 22px);
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}
.page-hero .hero-stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.page-hero .hero-stat-disclaimer {
    font-size: clamp(0.6875rem, 2vw, 0.75rem);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    text-align: center;
    width: 100%;
    margin: 0.5rem auto clamp(0.75rem, 2vw, 1.25rem);
    padding: 0 0.25rem;
}
.page-hero .hero-stat-disclaimer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.page-hero .hero-stat-disclaimer a:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* CTAs — stacked on mobile, touch-friendly */
.page-hero .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.25rem;
    width: 100%;
    max-width: min(320px, 100%);
    margin-left: auto;
    margin-right: auto;
}
.page-hero .hero-ctas .btn-primary,
.page-hero .hero-ctas .btn-secondary,
.page-hero .hero-ctas .btn-pri,
.page-hero .hero-ctas .btn-sec {
    padding: 0.75rem 1rem;
    min-height: 48px;
    font-size: clamp(0.8125rem, 2.5vw, 0.875rem);
    border-radius: var(--radius-btn);
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.page-hero .hero-ctas .btn-primary,
.page-hero .hero-ctas .btn-pri {
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy, var(--brand-navy));
    border-color: rgba(255, 255, 255, 0.5);
}
.page-hero .hero-ctas .btn-primary:hover,
.page-hero .hero-ctas .btn-pri:hover {
    background: var(--gold, var(--brand-orange));
    color: #ffffff;
    border-color: var(--gold, var(--brand-orange));
}
.page-hero .hero-ctas .btn-secondary,
.page-hero .hero-ctas .btn-sec {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.5);
}
.page-hero .hero-ctas .btn-secondary:hover,
.page-hero .hero-ctas .btn-sec:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* ——— 480px: large phone ——— */
@media (min-width: 480px) {
    .page-hero .hero-ctas {
        max-width: 360px;
    }
}

/* ——— 640px: tablet ——— */
@media (min-width: 640px) {
    .page-hero .hero-tagline {
        flex-wrap: nowrap;
        gap: 1rem;
    }
    .page-hero .hero-tagline-line {
        width: 3rem;
        min-width: 3rem;
    }
    .page-hero .hero-tagline-text {
        width: auto;
    }

    .page-hero .hero-stat-bar {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0;
        max-width: min(720px, 95vw);
        margin-left: auto;
        margin-right: auto;
    }
    .page-hero .hero-stat-item {
        padding: 0 1.25rem;
        flex: 0 0 auto;
    }
    .page-hero .hero-stat-item:not(:last-child)::after {
        display: block;
        content: '';
        position: absolute;
        right: 0;
        top: 0.5rem;
        bottom: 0.5rem;
        width: 1px;
        background: rgba(255, 255, 255, 0.35);
    }
    .page-hero .hero-stat-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 0.5rem;
    }

    .page-hero .hero-stat-disclaimer {
        max-width: min(640px, 90vw);
    }

    .page-hero .hero-ctas {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.625rem;
        max-width: none;
        width: auto;
    }
    .page-hero .hero-ctas .btn-primary,
    .page-hero .hero-ctas .btn-secondary,
    .page-hero .hero-ctas .btn-pri,
    .page-hero .hero-ctas .btn-sec {
        padding: 0.625rem 1.25rem;
        min-height: 44px;
    }
}

/* ——— 768px: tablet landscape / small desktop ——— */
@media (min-width: 768px) {
    .page-hero .hero-stat-item {
        padding: 0 1.5rem;
    }
    .page-hero .hero-ctas .btn-primary,
    .page-hero .hero-ctas .btn-secondary,
    .page-hero .hero-ctas .btn-pri,
    .page-hero .hero-ctas .btn-sec {
        padding: 0.6875rem 1.5rem;
    }
}

/* ——— 1024px: desktop ——— */
@media (min-width: 1024px) {
    .page-hero .hero-stat-disclaimer {
        max-width: 640px;
    }
}
