/* ========================================
   AGENTS PAGE
======================================== */

.page-header-agents {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 12rem;

    padding: 2rem 4rem 2rem;
}


.agents-title {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 70rem;
    height: 10rem;

    background-color: rgba(255, 255, 255, 0.904);

    border-radius: var(--home-bento-corner);

    font-size: 4rem;
}


/* ========================================
   AGENTS CONTAINER
======================================== */

.agents-main {

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 3rem;

    width: min(90vw, 100rem);

    margin: 2rem auto 8rem;
}


/* ========================================
   AGENT CARD
======================================== */

.agent-card {

    width: min(90vw, 70rem);

    min-width: 0;
}


.agent-bio {

    display: grid;

    grid-template-columns: 35% 65%;

    align-items: stretch;

    background: linear-gradient(
        180deg,
        rgb(255, 230, 245),
        rgba(255, 255, 255, 0.3)
    );

    box-shadow:
        0 0 0.8rem 0.3rem rgba(0, 0, 0, 0.3);

    border-radius: var(--home-bento-corner);

    width: 100%;

    min-height: 28rem;

    overflow: hidden;
}


/* ========================================
   AGENT PHOTO
======================================== */

.agent-image-area {

    width: 100%;

    height: 100%;

    min-height: 28rem;

    overflow: hidden;
}


.agent-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


/* ========================================
   AGENT INFORMATION
======================================== */

.agent-info {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    text-align: left;

    width: 100%;

    padding: 3rem;

    box-sizing: border-box;
}


.agent-name {

    margin: 0;

    font-size: 2.5rem;

    overflow-wrap: anywhere;
}


.agent-title {

    margin-top: 0.5rem;

    font-size: 1.3rem;

    font-weight: 600;

    max-height: 5rem;
}


.agent-license {

    margin-top: 0.25rem;

    font-size: 0.95rem;

    opacity: 0.7;
}


.agent-short-bio {

    font-size: 1.15rem;

    line-height: 1.6;

    margin: 1.5rem 0;

    max-width: 40rem;

    overflow-wrap: anywhere;
}


/* ========================================
   CONTACT INFORMATION
======================================== */

.agent-contact {

    display: flex;

    flex-direction: column;

    gap: 0.5rem;

    width: 100%;
    padding: 1rem;
}


.agent-contact-link {

    color: inherit;

    text-decoration: none;

    overflow-wrap: anywhere;

    font-size: 1rem;
}


.agent-contact-link:hover {

    text-decoration: underline;
}


/* ========================================
   VIEW AGENT BUTTON
======================================== */

.agent-details-button {

    margin-top: auto;

    padding: 0.8rem 1.8rem;

    border: none;

    border-radius: 0.75rem;

    background-color: var(--bonafide-tan);

    font-size: 1rem;

    cursor: pointer;

    box-shadow:
        0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.agent-details-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0.3rem 0.6rem rgba(0, 0, 0, 0.3);
}


/* ========================================
   MODAL
======================================== */

.agent-modal {

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border: none;

    padding: 0;

    margin: 0;

    width: min(90vw, 50rem);

    max-height: 90vh;

    border-radius: 1.5rem;

    background: transparent;

    overflow: visible;
}


.agent-modal::backdrop {

    background: rgba(0, 0, 0, 0.65);
}


/* ========================================
   MODAL CONTENT
======================================== */

.agent-modal-content {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding: 2.5rem;

    max-height: 90vh;

    overflow-y: auto;

    box-sizing: border-box;

    background: linear-gradient(
        180deg,
        rgb(255, 230, 245),
        rgba(255, 255, 255, 0.98)
    );

    border-radius: 1.5rem;

    box-shadow:
        0 0 2rem rgba(0, 0, 0, 0.4);
}


/* ========================================
   MODAL CLOSE BUTTON
======================================== */

.agent-modal-close {

    position: absolute;

    top: 1rem;
    right: 1rem;

    width: 2.5rem;
    height: 2.5rem;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.8);

    font-size: 1.8rem;

    line-height: 1;

    cursor: pointer;
}


.agent-modal-close:hover {

    background: white;
}


/* ========================================
   MODAL IMAGE
======================================== */

.agent-modal-image {

    width: 18rem;
    height: 18rem;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 50%;

    box-shadow:
        0 0 1rem rgba(0, 0, 0, 0.25);

    margin-bottom: 1rem;
}


.agent-modal-content h2 {

    margin: 0;

    font-size: 2.5rem;
}


.agent-modal-title {

    font-size: 1.25rem;

    font-weight: 600;

    margin-top: 0.35rem;
}


.agent-modal-license {

    font-size: 0.9rem;

    opacity: 0.7;

    margin-top: 0.25rem;
}


.agent-modal-bio {

    max-width: 40rem;

    font-size: .9rem;

    line-height: 1.6;

    overflow-wrap: anywhere;

    padding: 2rem;
}


/* ========================================
   SPECIALTIES
======================================== */

.agent-modal-content h3 {

    margin-bottom: 0.5rem;

    font-size: 1.4rem;
}


.agent-specialties {

    padding-left: 1.2rem;

    margin-top: 0;

    text-align: left;

    line-height: 1.7;
}


/* ========================================
   MODAL CONTACT BUTTONS
======================================== */

.agent-modal-contact {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 1rem;

    margin-top: 1rem;
}


.agent-modal-contact-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0.8rem 1.5rem;

    border-radius: 0.75rem;

    background-color: var(--bonafide-tan);

    color: inherit;

    text-decoration: none;

    font-weight: 600;

    box-shadow:
        0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
}


.agent-modal-contact-button:hover {

    transform: translateY(-2px);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 1000px) {

    .page-header-agents {

        padding: 3rem 1rem 1.5rem;
    }


    .agents-title {

        width: 90vw;

        height: 7rem;

        font-size: 3rem;
    }


    .agents-main {

        width: 92vw;

        gap: 2rem;
    }


    .agent-card {

        width: 100%;
    }


    .agent-bio {

        grid-template-columns: 1fr;

        min-height: 0;
    }


    .agent-image-area {

        height: 20rem;

        min-height: 0;
    }


    .agent-info {

        align-items: center;

        text-align: center;

        padding: 2rem 1.5rem;
    }


    .agent-name {

        font-size: 2rem;
    }


    .agent-short-bio {

        font-size: .75rem;
    }


    .agent-details-button {

        margin-top: 1.5rem;
    }


    .agent-modal {

        width: 92vw;

        max-height: 90vh;
    }


    .agent-modal-content {

        padding: 2rem 1.25rem;
    }


    .agent-modal-image {

        width: 9rem;
        height: 9rem;
    }


    .agent-modal-content h2 {

        font-size: 2rem;
    }

}


/* ========================================
   AGENTS PAGE BODY LAYOUT
======================================== */

body {
    grid-template-rows: auto auto 1fr auto;
}