@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* =====================================================
   FIND A LENDER PAGE — find-a-lender.css
   All styles scoped with "lenders-" / "lender-" prefix.
   Place this file at: public/front/css/find-a-lender.css
   ===================================================== */

/* -------------------------------------------------------
   1. HERO BANNER
   Teal-to-dark-teal gradient matching the reference site
-------------------------------------------------------- */
.lenders-hero {
    width: 100%;
    background: linear-gradient(135deg, #23b8bb 0%, #106b74 50%, #000000 100%);
    padding: 160px 45px 60px;
    display: flex;
    align-items: flex-start;
}

.lenders-hero__inner {
    max-width: 700px;
}

.lenders-hero__title {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px 0;
    line-height: 1.2;
}

.lenders-hero__subtitle {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    line-height: 1.6;
    max-width: 480px;
}

/* -------------------------------------------------------
   2. LENDERS SECTION WRAPPER
-------------------------------------------------------- */
.lenders-sec {
    background: #f5f5f5;
    padding: 55px 0 60px;
}

.lenders-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 30px;
}

/* -------------------------------------------------------
   3. GRID — 3 columns, auto-rows
-------------------------------------------------------- */
.lenders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* -------------------------------------------------------
   4. INDIVIDUAL LENDER CARD
-------------------------------------------------------- */
.lender-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.lender-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

/* Logo area — fixed height so all cards align */
.lender-card__logo-wrap {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.lender-card__logo {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Name */
.lender-card__name {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #23b8bb;
    text-align: center;
    margin: 0 0 4px 0;
}

/* Company */
.lender-card__company {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: #888888;
    text-align: center;
    margin: 0 0 2px 0;
}

/* Job title */
.lender-card__title {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: #888888;
    text-align: center;
    margin: 0 0 6px 0;
}

/* NMLS badge */
.lender-card__nmls {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: #555555;
    text-align: center;
    margin: 0 0 12px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Generic detail row (phone, address, etc.) */
.lender-card__detail {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: #555555;
    text-align: center;
    margin: 0 0 5px 0;
    line-height: 1.5;
}

/* Links */
.lender-card__link {
    color: #23b8bb;
    text-decoration: none;
    word-break: break-all;
}

.lender-card__link:hover {
    text-decoration: underline;
    color: #106b74;
}

/* Bold variant (used for Joe Adsit email/website) */
.lender-card__link--bold {
    font-weight: 700;
}

/* -------------------------------------------------------
   5. RESPONSIVE
-------------------------------------------------------- */
@media (max-width: 992px) {
    .lenders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .lenders-hero {
        padding: 38px 24px 34px;
    }

    .lenders-hero__title {
        font-size: 28px;
    }

    .lenders-hero__subtitle {
        font-size: 14px;
    }

    .lenders-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lenders-container {
        padding: 0 16px;
    }

    .lenders-sec {
        padding: 36px 0 40px;
    }
}