/* HERO */

.hero {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    column-gap: 2.5rem;
    align-items: center;
}

.hero h1, .hero p {
    margin-bottom: 1.75rem;
}

.hero p {
    font-size: var(--fs-main);
    color: var(--black-08);
}

.hero-copy {
    padding: 4rem 0;
}

.hero p.intro {
    color: var(--black);
    font-weight: 500;
    font-size: 1.5rem !important;
}

.hero-copy .cta {
    font-size: 0.975rem;
    padding: 0.95rem 1.5rem;
    font-weight: 550;
}

.hero-image {
    height: 100%;
    position: relative;
}

.hero-image img {
    height: 100%;
    object-fit: cover;
}

.hero-mobile {
    display: none;
}

/* WHY PARENTS CHOOSE */

.why-parents {
    margin: var(--mp) 0;
}

.why-parents h2, .why-parents p {
    text-align: center;
}

.why-parents p {
    max-width: 40rem;
    margin: 0.5rem auto 1.5rem auto;
}

.why-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.5rem;
    display: grid;
}

.why-grid p {
    font-size: var(--fs-smaller);
    color: var(--black-08);
    text-align: left;
    margin: 0.25rem 0 0 0;
}

.why-grid img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

/* AREAS OF CARE */

.areas {
    background-color: white;
    padding: var(--mp) 0;
    --area-box-height: 26rem;
}

.areas-grid {
    grid-template-columns: 1fr 1.25fr;
    column-gap: 4rem;
    position: relative;
    display: grid;
    padding-top: calc(var(--area-box-height) / 2);
}

.areas-copy {
    position: sticky;
    top: 10rem;
    height: fit-content;
    padding-bottom: 5rem;
}

.areas-copy p {
    margin: 1rem 0 2rem 0;
}

.areas-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

.areas-box {
    width: 100%;
    height: var(--area-box-height);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    position: relative;
    color: white;
    overflow: hidden;
}

.areas-box:nth-child(even) {
    margin-top: calc(var(--area-box-height) / -2);
}

.areas-box:nth-last-child(1) {
    margin-left: calc(100% + 1rem);
    margin-top: calc(var(--area-box-height) / -2);
}

.areas-box-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    border-radius: 0.5rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.15s ease;
}

.areas-box-content {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: var(--black-02);
    background: linear-gradient(180deg,var(--black-01) 0%, var(--black-05) 70%); 
    display: flex;
    align-items: end;
    z-index: 3;
}

.areas-box-content h3 {
    font-size: 1.85rem;
    font-weight: 450;
}

.areas-box-content span {
    font-size: var(--fs-main);
}

.areas-box-content i {
    transition: all 0.15s ease;
}

.areas-box-content:hover i {
    margin-left: 0.25rem;
}

.areas-box:hover .areas-box-image {
    scale: 1.075;
}

.treatments-flex {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;;
}

.treatments-flex span {
    padding: 0.5rem 0.85rem;
    border: solid 2px var(--black-02);
    color: var(--black-07);
    font-weight: 450;
    border-radius: 100vw;
    font-size: var(--fs-smallest);
    text-transform: capitalize;
    font-weight: 500;
}

.treatments-flex .blue-burst-full {
    bottom: 2.5rem;
    width: 6rem;
}

/* THE TEAM */

.team-container {
    overflow: hidden;
}

.team {
    padding: var(--mp) 0 5rem 0;
    text-align: center;
}

.team h2 {
    margin: 1rem 0;
}

.team .intro {
    max-width: 60rem;
    margin: 0 auto;
}
.team .slider-track {
    margin: 2rem 0 1.5rem 0;
}

.team-buttons {
    display: flex;
    margin-top: 2.5rem;
    column-gap: 0.5rem;
    place-content: center;
    position: relative;
    align-items: center;
}

.condition-search {
    background-color: white;
    border: solid 1px rgba(32,80,67,0.1);
    padding: 2rem;
}

.condition-search h3 {
    font-family: 'Felicity';
    font-size: 3.25rem;
    line-height: 0.8;
    color: var(--green);
}

.condition-search p {
    font-size: var(--fs-main);
    color: var(--black-08);
    margin: 1rem 0 2rem 0;
}

.condition-search-box {
    border: solid 2px rgba(32,80,67,0.2);
    background-color: var(--light-grey);
    padding: 0.75rem;
    color: rgba(32,80,67,0.5);
    font-weight: 500;
    font-size: var(--fs-smaller);    
}

/* MEDIA QUERIES */

@media only screen and (max-width: 1050px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-mobile {
        display: block;
    }

    .hero-desktop {
        display: none;
    }

    .hero-image {
        height: 50vw;
        margin-bottom: 2.5rem;
    }

    .hero-copy {
        padding: 0;
    }

    .hero h1, .hero p {
        margin-bottom: 1.15rem;
    }

    .ribbon {
        top: 1rem;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        row-gap: 2rem;
        padding-top: 0;
        margin-bottom: 2.5rem;
    }

    .areas-copy {
        position: unset;
        padding-bottom: 0;
    }

    .areas-box:nth-child(even), .areas-box:nth-last-child(1) {
        margin: 0;
    }

    .treatments-flex span {
        font-size: clamp(0.7rem, 15vw, 0.9rem);
        border: solid var(--black-02) 1px;
        padding: 0.4rem;
    }
}

@media only screen and (max-width: 820px) {
    .why-grid {
        grid-template-columns: 1fr;
        row-gap: 3.5rem;
    }
}
@media only screen and (max-width: 768px) {
    .areas-box-content h3 {
        font-size: 1.4rem;
    }

    .hero-copy .cta {
        font-size: 0.85rem;
    }

    .hero p.intro {
        font-size: 1.105rem !important;
    }
}


@media only screen and (max-width: 560px) {

    .areas-boxes {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    .areas {
        --area-box-height: 50vw;
    }

    .areas-box {
        margin: 0;
    }

    .treatments-flex {
        gap: 0.25rem;
    }

    #doctor-slider {
        width: 15rem;
        height: 18rem;
    }

    .slider-track {
        column-gap: 1.5rem;
    }

    .doctor-slide {
        flex: 0 0 15rem;
        height: 18rem;
    }
}