html {
    scroll-behavior: smooth;
}
*,
::before,
::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h5 p {
    margin: 0;
}

img{
    display: block;
    max-width: 100%;
}

:root {
    --font-family-primary: 'Lora', serif;
    --font-size: 1rem;
    --inline-padding: 10px;

    --color-body: #707070;
    --color-white: #fff;
    --color-red: #e84b3a;
    --color-yellow: #ffc000;
    --color-orange: #fc7f0c;
    --color-purple: #92278f;
    --color-darkpurple: #7e007b;
    --color-blue: #14b7f1;
    --color-blue-background: rgba(7, 143, 203, .8);
    --color-pink: #ee257c;
    --color-lightpink: #ff73ab;
    --color-limegreen: #8dc63f;  
    --color-darkred: #a40202;
    --color-link-blue: #0079AD;
    --content-spacing: 1rem;
    --section-spacing: 4rem;

    --primary-radius: 10px;

    --box-shadow: 0 0 1rem rgba(0,0,0,0.1225);
    --box-shadow-footer: 0 -1px 10px -4px rgba(0, 0, 0, 0.06);

    --button-primary: #337ab7;
    --button-border-primary: #2e6da4;
    --button-primary-hover: #286090;
    --button-border-primary-hover: #204d74;


}

p{
    margin-bottom: var(--content-spacing);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--content-spacing);
    line-height: 1.125;
    font-weight: 700;
    font-style: italic;
}

body {
    font-family: var(--font-family-primary);
    font-weight: 400;
    font-size: var(--font-size);
    line-height:1.6;
    color: var(--color-body);
}

.visually-hidden:not(:focus):not(:active) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header{
    background-color: var(--color-white);
    position: sticky;
    z-index: 101;
    top: 0px;
    text-align: center;
    display: flex;
    align-items: center;
    padding: 1.5em;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    min-height: 102px;
}

/* color classes */
.lime-green {
    color: var(--color-limegreen);
}
.yellow {
    color: var(--color-yellow);
}
.red {
    color: var(--color-red);
}
.purple{
    color: var(--color-purple);
}

.logo{
    max-width: fit-content;
}

.text-center {
    text-align: center;
}

.nav-list{
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-list li {
    font-size: 1.25rem;
    text-align: center;
    text-align: -moz-center;
    text-align: -webkit-center;
}

.nav-list li a {
    display: grid;
    justify-items: center;
    text-decoration: none;
    width: 100%;
    font-style: italic;
    font-weight: 700;
}

.nav-list svg{
    display: block;
    height: 1.4rem;
}

header .nav-list > li:nth-child(1) a,
header .nav-list > li:nth-child(1) svg {
    color: var(--color-red);
}

header .nav-list > li:nth-child(2) a,
header .nav-list > li:nth-child(2) svg, .about h1 {
    color: var(--color-yellow);
}

header .nav-list > li:nth-child(3) a,
header .nav-list > li:nth-child(3) svg, .skills h1 {
    color: var(--color-orange);
}

header .nav-list > li:nth-child(4) a,
header .nav-list > li:nth-child(4) svg, .testimonals h1 {
    color: var(--color-purple);
}

header .nav-list > li:nth-child(5) a,
header .nav-list > li:nth-child(5) svg, .insurance h1 {
    color: var(--color-blue);
}

header .nav-list > li:nth-child(6) a,
header .nav-list > li:nth-child(6) svg, .resources h1 {
    color: var(--color-pink);
}

header .nav-list > li:nth-child(7) a,
header .nav-list > li:nth-child(7) svg, .contact h1 { 
    color: var(--color-limegreen);
}

header .nav-list > li:nth-child(8) a,
header .nav-list > li:nth-child(8) svg {
    color: var(--color-darkred);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    aspect-ratio: 1;
    border: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
}
.mobile-nav-toggle i {
    font-size: 2rem;
}

.grid-main {
    --column-count: 12;
    display: grid;
    grid-template-columns: minmax(.25em, 1fr) repeat(var(--column-count), minmax(0, 10rem)) minmax(.25em, 1fr);
    column-gap: .5rem;
}

.grid-main > * {
    grid-column: 1 / -1;
    padding-inline: var(--inline-padding);

    /* temporary display styling */
    /* border: 1px solid;
    min-height: 100px; */
    /* temporary display styling */
}

.thrive-button {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
}
.thrive-btn-primary {
    color: #fff;
    background-color: var(--button-primary);
    border-color: var(--button-border-primary);
    transition: background-color 250ms ease, border-color 250ms ease;
}
.thrive-btn-primary:hover {
    background-color: var(--button-primary-hover);
    border-color: var(--button-border-primary-hover);
}

.main-h1 {
    grid-row: 1;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    text-align: center;
}

.hero {
    padding-inline: 0;
    padding-bottom: var(--section-spacing); /* using padding here because of margin collapsing on grid */
}

@supports (grid-template-rows: subgrid) {
    .hero {
        display: grid;
        grid-template-rows: subgrid;
        grid-template-columns: subgrid;
    }
}

.hero .hero-img {
    grid-column: 1 / -1;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    height: 475px;
    width: 100%;
}

.hero .our-mission {
    grid-column: 2 / -2;
    justify-self: end;
    align-self: center;
    text-align: right;
    color: var(--color-white);

    /* black */
    /* background-image: radial-gradient(hsla(0, 0%, 70%, 1) 50%, hsla(0, 0%, 50%, 0.02)); */
    /* color:#fff; */
    /* white */
    background-image: radial-gradient(hsla(0, 0%, 70%, 1) 50%, hsla(0, 0%, 50%, 0.02));
    /* color:#000; */

    padding: 1rem;
    border-radius: var(--primary-radius);

    box-shadow: 2px 2px 15px hsla(0, 0%, 90%, .8);
}
@supports not (grid-template-rows: subgrid) {
    .hero {
        position: relative;
    }
    .hero .our-mission {
        position: absolute;
        top: 30%;
    }
}

.hero .our-mission h2 {
    font-size: 2.5em;
}

.hero .our-mission p {
    font-size: .9em;
    text-wrap: balance;
}

.cards {
    display: grid;
    grid-auto-rows: auto auto 1fr;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin-bottom: var(--section-spacing);
}

.cards > * {
    grid-row: auto / span 3;
    display: grid;
    grid-template-rows: subgrid;
}

.cards-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.card-flex {
    --_icon-wrapper: var(--icon-wrapper, var(--color-pink));
    --_icon: var(--icon, var(--color-white));
    --_card-h3: var(--card-h3, var(--color-pink));

    flex: 1;
    border-radius: var(--primary-radius);
    min-width: 16rem;
    margin-bottom: var(--section-spacing);
    box-shadow: var(--box-shadow);
    padding: 1rem;
}

.cards-flex > * > a {
    display: block;
    margin-bottom: var(--content-spacing);
    text-align: center;
}

.card-flex .icon-wrapper {
    background-color: var(--_icon-wrapper);
    height: 100px;
    width: 100px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    margin-inline: auto;
    transition: 1s ease-out;
}

.icon-wrapper:hover {
    transform: rotate(360deg);
}

.card-flex .svg-icon {
    fill: var(--_icon);
    width: 50px;
    margin-inline: auto;
}

.card-flex .card-icon {
    color: var(--_icon);
    margin-inline: auto;
    font-size: 3rem;
}

.card-flex .card-title{
    color: var(--_card-h3);
    text-align: center;
    font-size: 1.5rem;
}

.card-flex p {
    font-size: 1rem;
}

.card-group {
    --icon-wrapper: var(--color-red);
    --icon: var(--color-white);
    --card-h3: var(--color-red);
}

.card-feeding {
    --icon-wrapper: var(--color-yellow);
    --icon: var(--color-white);
    --card-h3: var(--color-yellow);
}

.card-language {
    --icon-wrapper: var(--color-orange);
    --icon: var(--color-white);
    --card-h3: var(--color-orange);
}

.card-adl {
    --icon-wrapper: var(--color-purple);
    --icon: var(--color-white);
    --card-h3: var(--color-purple);
}

.card-fine-motor-skill {
    --icon-wrapper: var(--color-blue);
    --icon: var(--color-white);
    --card-h3: var(--color-blue);
}

.card-gross-motor-skill {
    --icon-wrapper: var(--color-pink);
    --icon: var(--color-white);
    --card-h3: var(--color-pink);
}

section {
    scroll-margin-top: 105px;
    margin-bottom: var(--section-spacing);
}
section.testimonals {
    margin-bottom: 175px;
}


@media (min-width: 35em) { /* desktop */
    .grid-main > * {
        grid-column: 2 / -2;
    }

    .medium {
        grid-column:  2 / -2;
    }
    .narrow {
        grid-column:  3 / -3;
    }
}

@media (min-width: 57em) { /* desktop */

    .grid-main > * {
        grid-column: 3 / -3;
    }

    .hero .our-mission {
        grid-column: 7 / -4;
    }

    .medium {
        grid-column:  4 / -4;
    }
    .narrow {
        grid-column: 5 / -5;
    }

    .card-flex {
        min-width: 24rem;
    }
}

.full {
    grid-column:  1 / -1;
}

.grid-404 {
    display: grid;
    justify-content: center;
    padding-inline: var(--content-spacing);
}

.wrapper-404 {
    display: flex;
    justify-content: space-evenly;
    border: 10px solid var(--color-lightpink);
    text-align: center;
    padding-block: 5.75em;
    max-width: 57em;
}

.wrapper-404 h1 {
    font-size: 5em;
}
.wrapper-404 img {
    height: 10rem;
    aspect-ratio: 1;
    object-fit: contain;
}

.button {
    border: 0;
    outline: 0;
    display: inline-block;
    cursor: pointer;
    background-color: var(--color-purple);
    padding: .875rem 1.6rem;
    font-size: 1em;
    color: #fff;
    margin-top: 3rem;
    text-decoration: none;
    transition: 100ms ease-out;
}

.button:hover {
    background-color: var(--color-darkpurple);
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 3rem;
    box-shadow: var(--box-shadow-footer);
}

.social {
    display: flex;
    height: fit-content;
    gap: 1rem;
}
.social a {
    color: var(--color-body);
    text-decoration: none;
}
.social-links a {
    text-decoration: none;
}

.social i {
    font-size: 2rem;
}

.alert-bar {
    position: relative;
    width: 100%;
    padding-inline: var(--inline-padding);
    min-height: 30px;
    text-align: center;
    color: var(--color-white);
    background-color: var(--color-red);
    margin-bottom: var(--content-spacing);
}

.top-docs {
    grid-column: 1 / -1;
    z-index: 1;
    grid-row: 2;
    justify-self: center;
    padding: 0;
}
.top-docs > img {
    width: 175px;
}

.thrive-skills {
    display: flex;
}
.thrive-skills > ul {
    margin-block: 0;
    padding-left: var(--content-spacing);
    margin-inline: 0;
}
.thrive-skills > ul > li {
    list-style-type: none;
    display: flex;
    gap: .5rem;
}
.thrive-skills > ul > li i {
    color: var(--color-purple);
}

.about {
    display: grid;
    padding-block: var(--inline-padding);
}
.about a {
    color: var(--color-link-blue);
}
.about-wrapper {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--content-spacing);

}
.about-wrapper img {
    border: 2px solid #ddd;
    border-radius: var(--primary-radius);
    padding: 2px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 436px;
    height: auto;
    justify-self: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.about-img-filler {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 389px;
    width: 100%;
    min-width: 436px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: var(--primary-radius);
    padding: 2px;
    box-shadow: var(--box-shadow);
}

.insurance h1, .testimonals h1, .contact h1, .contact > .contact-p {
    text-align: center;
}
.testimonals p {
    text-align: center;
}

.resource-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.resource-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: minmax(260px, 300px);
    border-radius: var(--primary-radius);
    overflow: hidden;
    border: 1px solid var(--color-white);
    box-shadow: var(--box-shadow);
}
.resource-item img {
    height: 100%;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.resource-body {
    display: grid;
    color: var(--color-white);
    padding: 1rem;
}
.resource-links {
    align-self: end;
    display: flex;
    justify-content: space-between;
}
.resource-links a {
    color: var(--color-white);
}
.resource-wrapper .resource-item:nth-child(1) .resource-body {
    background-color: var(--color-purple);
}
.resource-wrapper .resource-item:nth-child(2) .resource-body {
    background-color: var(--color-red);
}
.resource-wrapper .resource-item:nth-child(3) .resource-body {
    background-color: var(--color-orange);
}
.resource-wrapper .resource-item:nth-child(4) .resource-body {
    background-color: var(--color-blue);
}
.resource-wrapper .resource-item:nth-child(5) .resource-body {
    background-color: var(--color-lightpink);
}
.resource-wrapper .resource-item:nth-child(6) .resource-body {
    background-color: var(--color-yellow);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 8fr;
    align-items: start;
    margin-top: 2rem;
}
.contact-wrapper i {
    font-size: xx-large;
}
.contact-wrapper a {
    color: var(--color-body);
}
.contact-wrapper h2 {
    margin-bottom: 0;
}
.contact-wrapper span {
    padding-top: 10px;
    padding-bottom: 1rem;
}

.nav-up {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--primary-radius);
    position: fixed;
    bottom: 10%;
    right: 2%;
    z-index: 10;
    font-size: 2rem;
    color: var(--color-white);
    transition: opacity 0.3s ease-in-out;
    background-color: var(--color-purple);
    width: 3.25rem;
    height: 3.5rem;
    box-shadow: var(--box-shadow);
}
.nav-up a {
    color: var(--color-white);
}
.is-hidden {
    opacity: 0;
}

.swiper-custom {
    display: flex !important;
    align-items: start;
    justify-content: center;
    padding: 1rem;
}
.swiper-custom > div {
    position: relative;
    border: 1px solid var(--color-white);
    border-radius: var(--primary-radius);
    padding: 1rem 2.5rem;
    box-shadow: var(--box-shadow);
}
.swiper-custom > div::before {
    position: absolute;
    top: 10px;
    left: 10px;
    content: "\F6B0";
    font-family: "Bootstrap-icons";
    font-size: 1.5rem;
}
.swiper-custom > div::after {
    position: absolute;
    bottom: 10px;
    right: 10px;
    content: "\F6B0";
    font-family: "Bootstrap-icons";
    display: inline-block;
    transform: rotate(180deg);
    font-size: 1.5rem;
}

/* Small */
@media (max-width: 26em){
    .resource-item {
        grid-template-columns: 1fr;
    }

    footer {
        padding: var(--content-spacing);
        flex-direction: column;
    }
    footer p {
        order: 2;
    }
    footer .social {
        order: 1;
    }

}

/* medium */
@media (max-width: 57em){

    .nav-list{
        position: absolute;
        z-index: 1000;
        top: 100%;
        right: -4px;
        left: -10000px;
        width: clamp(16rem, 88vw, 28rem);
        background: hsl(0 0% 100%);

        flex-direction: column;
        padding: min(25vh, 3rem) 2rem;
        box-shadow: 2px 2px 15px hsla(0, 0%, 90%, .8);
        border-radius: var(--primary-radius);
        opacity: 0;
        transition: opacity 350ms ease-out;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .thrive-skills {
        flex-direction: column;
    }

    .about-img-filler {
        display: none;
    }

    .wrapper-404 {
        flex-direction: column;
    }
    .wrapper-404 a {
        margin-bottom: var(--content-spacing);
    }

    .consultation-footer {
        position: unset;
    }

}

/* Desktop small */
@media (min-width: 38em){ 
     .contact-wrapper {
        grid-template-columns: 1fr 8fr 1fr 8fr;
    }
}

/* Desktop */
@media (min-width: 57em){ 
    .resource-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .thrive-skills > ul {
        margin-inline: auto;
    }
    .about-wrapper {
        grid-template-columns: auto 1fr;
    }
    /* .about-wrapper img {
        
    } */
}

/* Desktop large */
@media (min-width: 88em){ 
    .top-docs {
        grid-column: 11 / span 3;
        grid-row: 1 / span 2;
        justify-self: end;
    }
}

