/* =====================================================
   AGENT PROFILE PAGES — agent-profile.css
   Shared by: heather-vanderboom, becky-bryant, laura-cushing
   All styles scoped with "ap-" prefix.
   Place at: public/front/css/agent-profile.css
   ===================================================== */

@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');

:root {
    --ap-primary-color: #000000;
    --ap-secondary-color: #23b8bb;
    --ap-accent-color: #9adbe2;
    --ap-light-bg-color: #f1f1f1;
    --ap-heading-color: #23b8bb;
    --ap-white-color: #ffffff;
    --ap-muted-text: #666666;
    --ap-border-color: #e4e4e4;
    --ap-primary-font: "Montserrat", sans-serif;
    --ap-secondary-font: "Playfair Display", serif;
}

html, body {
    overflow-x: hidden;
}
/* -------------------------------------------------------
   1. HERO BANNER
   Full-width ocean/beach photo with dark overlay +
   white card sitting at the bottom-left of the banner
-------------------------------------------------------- */
.ap-hero {
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap-hero__card {
    background: var(--ap-white-color);
    padding: 60px 80px; /* Increased padding */
    max-width: 900px; /* Much wider */
    width: 90%;
    margin: 0 auto;
    border: 10px solid var(--ap-secondary-color); /* Thicker border */
    position: relative;
    z-index: 1;
    text-align: left; /* Left align text */
    box-shadow: 0 15px 45px rgba(35, 184, 187, 0.16);
}

.ap-hero__name {
    font-family: var(--ap-secondary-font);
    font-size: 64px; /* Larger font */
    font-weight: 400;
    color: var(--ap-heading-color);
    margin: 0 0 10px 0;
    line-height: 1.1;
    letter-spacing: 0;
}

/* Second word slightly lighter weight for style */
.ap-hero__name span {
    font-weight: 400;
}

.ap-hero__role {
    font-family: var(--ap-primary-font);
    font-size: 16px;
    color: var(--ap-primary-color);
    margin: 0;
    letter-spacing: 0.5px;
}


/* -------------------------------------------------------
   2. PROFILE SECTION WRAPPER
-------------------------------------------------------- */
.ap-profile-sec {
    background: transparent;
    padding: 0 0 60px;
    margin-top: -150px;
    position: relative;
    z-index: 2;
}

.ap-profile-container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Big white card that holds both columns */
.ap-profile-card {
    background: var(--ap-white-color);
    box-shadow: 0 4px 30px rgba(35, 184, 187, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 0;
    padding: 40px 44px 44px;
}


/* -------------------------------------------------------
   3. LEFT COLUMN — Photo + CTA button + Contact list
-------------------------------------------------------- */
.ap-profile-left {
    flex: 0 0 260px;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 36px;
    border-right: 1px solid var(--ap-border-color);
}

.ap-profile-photo {
    width: 100%;
    max-width: 240px;
    height: 240px;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin-bottom: 18px;
}

/* Purple "Set Up a Call" button */
.ap-profile-cta-btn {
    display: inline-block;
    background: var(--ap-secondary-color);
    color: var(--ap-white-color);
    font-family: var(--ap-primary-font);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 3px;
    margin-bottom: 18px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.ap-profile-cta-btn:hover {
    background: var(--ap-accent-color);
    color: var(--ap-primary-color);
    text-decoration: none;
}

/* Contact rows */
.ap-contact-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ap-contact-item {
    display: flex;
    flex-direction: column;
    padding: 11px 0;
    border-bottom: 1px solid var(--ap-border-color);
}

.ap-contact-item:first-child {
    border-top: 1px solid var(--ap-border-color);
}

.ap-contact-item__label {
    font-family: var(--ap-primary-font);
    font-size: 11px;
    color: var(--ap-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.ap-contact-item__value {
    font-family: var(--ap-primary-font);
    font-size: 13px;
    color: var(--ap-primary-color);
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

.ap-contact-item__link {
    color: var(--ap-muted-text);
    text-decoration: none;
}

.ap-contact-item__link:hover {
    color: var(--ap-secondary-color);
    text-decoration: underline;
}


/* -------------------------------------------------------
   4. RIGHT COLUMN — Bio / tagline / sections
-------------------------------------------------------- */
.ap-profile-right {
    flex: 1 1 0;
    padding-left: 44px;
}

.ap-profile-tagline {
    font-family: var(--ap-secondary-font);
    font-size: 30px;
    font-weight: 600;
    color: var(--ap-heading-color);
    margin: 0 0 18px 0;
    line-height: 1.25;
}

.ap-profile-section-title {
    font-family: var(--ap-primary-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--ap-primary-color);
    margin: 22px 0 8px 0;
    text-transform: none;
}

.ap-profile-text {
    font-family: var(--ap-primary-font);
    font-size: 13.5px;
    color: var(--ap-muted-text);
    line-height: 1.75;
    margin: 0 0 10px 0;
}

.ap-profile-text:last-child {
    margin-bottom: 0;
}


/* -------------------------------------------------------
   5. OCEAN DIVIDER
   Full-width image strip below the profile card
-------------------------------------------------------- */
.ap-ocean-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    max-height: 280px;
}

.ap-ocean-divider__img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center center;
    display: block;
}


/* -------------------------------------------------------
   6. RESPONSIVE
-------------------------------------------------------- */
@media (max-width: 860px) {
    .ap-hero__card {
        margin-left: 30px;
        padding: 22px 28px;
    }

    .ap-hero__name {
        font-size: 34px;
    }

    .ap-profile-card {
        padding: 30px 28px;
        gap: 0;
    }

    .ap-profile-left {
        flex: 0 0 220px;
        width: 220px;
        padding-right: 26px;
    }

    .ap-profile-right {
        padding-left: 28px;
    }

    .ap-profile-tagline {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .ap-hero {
        min-height: 220px;
        align-items: flex-end;
    }

    .ap-hero__card {
        margin: 100px 0px 0px 0px;
        padding: 20px 22px;
        max-width: 100%;
        width: 100%;
    }

    .ap-hero__name {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .ap-profile-sec {
        padding-bottom: 40px;
    }

    .ap-profile-container {
        padding: 0 14px;
    }

    .ap-profile-card {
        flex-direction: column;
        padding: 24px 20px;
    }

    .ap-profile-left {
        flex: none;
        width: 100%;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--ap-border-color);
        padding-bottom: 24px;
        margin-bottom: 24px;
        align-items: center;
    }

    .ap-profile-photo {
        max-width: 200px;
        height: 200px;
    }

    .ap-profile-right {
        padding-left: 0;
    }

    .ap-profile-tagline {
        font-size: 22px;
    }

    .ap-ocean-divider,
    .ap-ocean-divider__img {
        max-height: 180px;
        height: 180px;
    }
}
