/* =========================================================
   THE THERAPY MIND
   Therapist Directory + Therapist Profile
   ========================================================= */


/* ---------------------------------------------------------
   DIRECTORY HERO
   --------------------------------------------------------- */

.directory-hero {
    padding: 92px 0 82px;
    background: linear-gradient(
        120deg,
        var(--paper) 0%,
        var(--paper) 58%,
        var(--sage) 58%
    );
}

.directory-hero__inner {
    max-width: 800px;
}

.directory-hero h1 {
    max-width: 750px;
}

.directory-hero p {
    max-width: 650px;
    font-size: 19px;
    color: var(--muted);
}

.directory-hero__helper {
    display: inline-flex;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
}

.directory-hero__helper span,
.text-link {
    font-weight: 700;
    color: var(--sage-deep);
}


/* ---------------------------------------------------------
   DIRECTORY HEADING
   --------------------------------------------------------- */

.directory-heading,
.directory-note {
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 34px;
}

.directory-heading p,
.directory-note p {
    margin: 0;
    color: var(--muted);
}

.directory-result {
    margin: 0 0 19px;
    color: var(--muted);
    font-size: 13px;
}

.directory-empty {
    padding: 20px;
    background: var(--cream);
    color: var(--muted);
}


/* ---------------------------------------------------------
   DIRECTORY FILTERS
   --------------------------------------------------------- */

.directory-filters {
    padding: 23px 25px;
    margin-bottom: 17px;
    background: var(--cream);
    border: 1px solid var(--line);
}

.directory-filters__label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sage-deep);
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-button {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: 600 13px var(--sans);
    cursor: pointer;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.filter-button.is-active,
.filter-button:hover {
    background: var(--sage-deep);
    border-color: var(--sage-deep);
    color: #fff;
}


/* ---------------------------------------------------------
   THERAPIST DIRECTORY GRID
   Desktop: 3 columns
   Tablet: 2 columns
   Mobile: 1 column
   --------------------------------------------------------- */

.therapist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}


/* ---------------------------------------------------------
   THERAPIST CARD
   --------------------------------------------------------- */

.therapist-card {
    min-width: 0;
    display: flex;
    flex-direction: column;

    background: var(--paper);
    border: 1px solid rgba(47, 79, 80, .10);
    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 6px 24px rgba(35, 62, 63, .09);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.therapist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(35, 62, 63, .14);
}

.therapist-card[hidden] {
    display: none;
}


/* ---------------------------------------------------------
   THERAPIST CARD PHOTO
   --------------------------------------------------------- */

.therapist-card .therapist-photo {
    width: 100%;
    height: 300px;
    min-height: 0;

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

    overflow: hidden;
    text-decoration: none;

    background: linear-gradient(
        140deg,
        #dfe8e6,
        #aec6c3
    );
}

.therapist-card .therapist-photo img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center top;
}

/* Initials shown when therapist has no photo */

.therapist-card .therapist-photo span {
    width: 92px;
    height: 92px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, .73);

    color: var(--sage-deep);
    font: 500 32px var(--serif);
}


/* Optional placeholder variations */

.therapist-photo--two {
    background: linear-gradient(
        140deg,
        #e9e4da,
        #c9d9d3
    );
}

.therapist-photo--three {
    background: linear-gradient(
        140deg,
        #cddedb,
        #779b98
    );
}


/* ---------------------------------------------------------
   THERAPIST CARD CONTENT
   --------------------------------------------------------- */

.therapist-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}

.therapist-card__role {
    margin: 0 0 5px;

    color: var(--sage-deep);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.therapist-card h3 {
    font-size: 28px;
}

.therapist-card__summary {
    color: var(--muted);
    font-size: 14px;
}


/* ---------------------------------------------------------
   THERAPIST TAGS
   --------------------------------------------------------- */

.therapist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin: 17px 0 23px;
    padding: 0;

    list-style: none;
}

.therapist-tags li {
    padding: 5px 8px;

    background: var(--cream);
    color: var(--sage-deep);

    font-size: 11px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   THERAPIST CARD ACTIONS
   --------------------------------------------------------- */

.therapist-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-top: auto;
}

.text-link {
    font-size: 13px;
}


/* =========================================================
   INDIVIDUAL THERAPIST PROFILE
   ========================================================= */


/* ---------------------------------------------------------
   PROFILE HERO
   --------------------------------------------------------- */

.profile-hero {
    padding: 38px 0 80px;
    background: var(--cream);
}

.back-link {
    display: inline-block;
    margin-bottom: 36px;

    font-size: 14px;
    font-weight: 700;

    color: var(--sage-deep);
}

.profile-hero__grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 88px;
    align-items: center;
}


/* ---------------------------------------------------------
   PROFILE PHOTO
   --------------------------------------------------------- */

.therapist-photo--profile {
    width: 380px;
    height: 460px;
    min-height: 0;

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

    overflow: hidden;

    background: linear-gradient(
        140deg,
        #dfe8e6,
        #aec6c3
    );
}

.therapist-photo--profile img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center top;
}

.therapist-photo--profile span {
    width: 110px;
    height: 110px;

    display: grid;
    place-items: center;

    border-radius: 50%;
    background: rgba(255, 255, 255, .73);

    color: var(--sage-deep);
    font: 500 38px var(--serif);
}


/* ---------------------------------------------------------
   PROFILE INTRODUCTION
   --------------------------------------------------------- */

.profile-hero__intro {
    max-width: 620px;

    font-size: 19px;
    color: var(--muted);
}


/* ---------------------------------------------------------
   PROFILE FACTS
   --------------------------------------------------------- */

.profile-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    margin: 29px 0;
    padding: 0;

    list-style: none;
}

.profile-facts li {
    padding: 14px 12px;
    border-top: 1px solid var(--line);
}

.profile-facts strong,
.profile-facts span {
    display: block;
}

.profile-facts strong {
    font-size: 12px;
}

.profile-facts span {
    margin-top: 4px;

    color: var(--muted);
    font-size: 13px;
}


/* ---------------------------------------------------------
   PROFILE BODY
   --------------------------------------------------------- */

.profile-content {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 90px;
}

.profile-content aside {
    align-self: start;

    padding: 28px;
    background: var(--sage);
}

.profile-content aside h2 {
    font-size: 30px;
}

.profile-content > div p {
    max-width: 680px;
    color: var(--muted);
}


/* ---------------------------------------------------------
   PROFILE LISTS
   --------------------------------------------------------- */

.profile-list {
    margin: 18px 0 0;
    padding: 0;

    list-style: none;
}

.profile-list li {
    padding: 10px 0;
    border-top: 1px solid rgba(49, 76, 78, .18);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .therapist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-hero__grid {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 50px;
    }

    .therapist-photo--profile {
        width: 320px;
        height: 400px;
    }

}


/* ---------------------------------------------------------
   SMALL TABLET
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .directory-hero {
        padding: 70px 0 64px;
        background: var(--sage);
    }

    .directory-heading,
    .directory-note,
    .profile-hero__grid,
    .profile-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .profile-facts {
        grid-template-columns: 1fr;
    }

    .profile-hero {
        padding-top: 28px;
    }

    .therapist-photo--profile {
        width: 100%;
        max-width: 380px;
        height: 440px;
    }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

    .therapist-grid {
        grid-template-columns: 1fr;
    }

    .therapist-card .therapist-photo {
        height: 320px;
    }

    .therapist-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .therapist-card__actions .button {
        width: 100%;
    }

}


/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 540px) {

    .directory-filters {
        padding: 18px;
    }

    .therapist-card .therapist-photo {
        height: 280px;
    }

    .therapist-card__content {
        padding: 22px;
    }

    .therapist-card h3 {
        font-size: 25px;
    }

    .therapist-photo--profile {
        height: 380px;
    }

}