/**
 * Child & Family Associates of Greater Washington.
 *
 * This file adds the theme-specific styles to the Child & Family Associates of Greater Washington Theme.
 *
 * @package Child & Family Associates of Greater Washington
 * @author  5.12 Design Lab
 * @license GPL-2.0-or-later
 * @link    https://512designlab.com/
 */

/* Defaults
---------------------------------------------------------------------------- */

.site-inner {
    position: relative;
}

.content-sidebar-wrap {
    position: relative;
    z-index: 1;
}

.nav-secondary li a {
    position: relative;
}

.nav-secondary li a::before {
    background-color: #3e9a94;
    content: '';
    display: inline-block;
    height: 14px;
    margin-right: 5px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    position: relative;
    top: 3px;
    transition: background .2s ease-in-out;
    width: 12px;
}

.nav-secondary li.careers a::before {
    -webkit-mask-image: url("../../images/icon_careers.svg");
    mask-image: url("../../images/icon_careers.svg");
}

.nav-secondary li.professionals a::before {
    -webkit-mask-image: url("../../images/icon_professionals.svg");
    mask-image: url("../../images/icon_professionals.svg");
}

.nav-secondary li.email a::before {
    -webkit-mask-image: url("../../images/icon_email.svg");
    mask-image: url("../../images/icon_email.svg");
}

.nav-secondary li.phone a::before {
    margin-right: 3px;
    -webkit-mask-image: url("../../images/icon_phone.svg");
    mask-image: url("../../images/icon_phone.svg");
}

.nav-secondary li.search a::before {
    margin-right: 3px;
    -webkit-mask-image: url("../../images/icon_search.svg");
    mask-image: url("../../images/icon_search.svg");
}

.nav-secondary li a:focus::before,
.nav-secondary li a:hover::before {
    background-color: #b6d169;
}

.entry-content ol li,
.entry-content ul li {
    line-height: 1.33;
    margin-bottom: 10px;
}

.entry-content ol li:last-child,
.entry-content ul li:last-child {
    margin: 0;
}

.entry-content .wp-block-image .alignright {
    max-width: 50%;
}

.entry-content .wp-block-image img {
    border-radius: 10px;
}

hr.wp-block-separator {
    color: #e6e7e7 !important;
}

.wp-block-separator.is-style-dots:before {
    color: #3e9a94;
    font-size: 3em;
    letter-spacing: 3px;
    padding-left: 0;
}


/* Feature Title
---------------------------------------------------------------------------- */

.feature-title.alignfull > div {
    margin-inline: auto;
    max-width: 90%;
	position: unset;
}

.feature-title.wp-block-cover {
    min-height: 0;
    padding: 120px 0 160px;
}

.feature-title .text {
    max-width: 768px;
}

.feature-title h1 {
    margin-bottom: 15px;
}

.feature-title p {
    margin: 0;
    padding: 0 !important;
}

.feature-title .swoosh-wrap {
    bottom: -2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) translateZ(0);
}


/* Services
---------------------------------------------------------------------------- */

.services .is-grid article {
    margin-bottom: 80px;
}

.services .gb-block-post-grid-text {
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
}

.services.professionals .gb-block-post-grid-text {
	text-align: left;
}

.services .gb-block-post-grid-image {
    margin-bottom: 20px;
}

.services img {
	background-color: #fff;
    border-radius: 10px;
    transition: opacity .2s ease-in-out;
}

.services img:focus,
.services img:hover {
    opacity: .85;
}

.services header.gb-block-post-grid-header .gb-block-post-grid-title,
.services h3.gb-block-post-grid-title a {
    color: #3e9a94;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 12px;
    text-decoration: none;
}

.services h3.gb-block-post-grid-title a:focus,
.services h3.gb-block-post-grid-title a:hover {
    color: #25484a;
    text-decoration: none;
}

.services .gb-block-post-grid-text p:last-child {
    margin-top: -10px;
}

.services a.gb-block-post-grid-more-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.services a.gb-block-post-grid-more-link:focus,
.services a.gb-block-post-grid-more-link:hover {
    color: #3e9a94;
    text-decoration: none;
}


/* Accordians
---------------------------------------------------------------------------- */

.gb-block-accordion {
    background-color: #fff;
    border: 2px solid #cbcbca;
    border-radius: 25px;
}

.gb-block-accordion .gb-accordion-title {
    background: transparent;
    color: #3e9a94;
    font-size: 21px;
    line-height: 1.1;
    outline: transparent;
    padding: 12px 15px;
}

.gb-block-accordion .gb-accordion-text {
    padding: 8px 15px 0;
}


/* Team
---------------------------------------------------------------------------- */

.team-list {
    align-content: flex-start;
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 25px;
    justify-content: flex-start;
    margin-top: 50px;
}

.team-list .associate {
    flex: 0 0 calc(20% - ((25px * 4) / 5));
    margin-bottom: 70px;
    text-align: center;
}

.team-list .image {
    border-radius: 20px;
    height: 300px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    transition: opacity .2s ease-in-out;
    width: auto;
}

.team-list .image:focus,
.team-list .image:hover {
    opacity: .85;
}

.team-list .image img {
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    top: 0;
    width: 100%;
}

.team-list .name,
.team-list .name a {
    color: #0a3858;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 4px;
    text-decoration: none;
}

.team-list .name a:focus,
.team-list .name a:hover {
    color: #3e9a94;
}

.team-list .creds {
    color: #0a3858;
    font-size: 16px;
	font-style: italic;
    font-weight: 300;
    line-height: 1.1;
	margin-top: 5px;
    /*text-transform: uppercase;*/
}

body.single-team .site-inner {
    padding: 0;
}

body.single-team .wp-block-image {
    margin: 0;
}

body.single-team .wp-block-image .alignright {
    margin: 0 0 70px 70px;
    /*max-width: 500px;*/
	max-width: 50%;
    /*width: 50%;*/
}

body.single-team figure.wp-block-gallery.has-nested-images.badges {
    align-content: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    justify-content: flex-start;
    margin: 20px 0 40px;
}

body.single-team figure.wp-block-gallery.has-nested-images.badges figure.wp-block-image {
    flex: 0 0 calc(16.67% - 20px);
    flex-direction: row;
    max-width: 150px;
    position: relative;
    width: auto;
}

body.single-team figure.wp-block-gallery.has-nested-images.badges .wp-block-gallery img {
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}


/* Videos
---------------------------------------------------------------------------- */

body.videos article.page {
    margin: 0;
}

.video-list {
    align-content: flex-start;
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 50px;
    justify-content: flex-start;
}

.video-list .entry {
    flex: 0 0 calc(33% - ((50px * 2) / 3));
    font-size: 16px;
    margin-bottom: 70px;
}

.video-list .single-feature {
    margin-bottom: 20px;
}

.video-list .wpvl_auto_thumb_box_wrapper {
    height: 0;
    padding-bottom: 56%;
    position: relative;
}

.video-list .wpvl_auto_thumb_box {
    position: absolute;
}

.video-list .wpvl_auto_thumb_box,
.video-list .video_lightbox_auto_anchor_image {
    height: 100%;
    width: 100%;
}

.video-list .video_lightbox_auto_anchor_image {
    object-fit: cover;
}

.video-list .wpvl_auto_thumb_play {
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.video-list .entry-title {
    color: #0a3858;
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 5px;
}

.video-list .sub-title {
    color: #3e9a94;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
}


/* Patient Forms
---------------------------------------------------------------------------- */

.wp-block-genesis-blocks-gb-columns.forms {
    margin-bottom: 3em;
    line-height: 1.25;
}

.wp-block-genesis-blocks-gb-columns.forms .gb-layout-column-wrap {
    grid-gap: 0 3em;
}

.wp-block-genesis-blocks-gb-columns.forms .gb-block-layout-column:not(.empty) {
    align-items: center;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.066);
    border-radius: 20px;
    box-shadow: inset 0 0 50px rgba(0,0,0,.05);
    display: flex;
    flex-wrap: wrap;
    padding: 30px 25px;
}

.wp-block-genesis-blocks-gb-columns.forms .gb-block-layout-column-inner {
    flex: 0 0 100%;
}


/* Footer
---------------------------------------------------------------------------- */

#contact:focus {
    outline: none;
}

.footer-widgets {
    line-height: 1.33;
}

.footer-widgets-1 {
    font-size: 18px;
}

.footer-widgets-2 {
    color: #fff;
    font-size: 16px;
}

.footer-widgets div.icon {
    padding-left: 38px;
    position: relative;
}

.footer-widgets div.icon::before,
.footer-widgets div.icon::after {
    content: '';
    display: block;
    left: 0;
    position: absolute;
    top: 0;
}

.footer-widgets div.icon::before {
    background-color: #3e9a94;
    border-radius: 100%;
    height: 30px;
    width: 30px;
}

.footer-widgets div.icon::after {
    background-color: #fff;
    height: 20px;
    left: 5px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    top: 5px;
    width: 20px;
}

.footer-widgets div.icon.phone::before {
    background-color: #b6d169;
    top: 6px;
}

.footer-widgets div.icon.phone::after {
    -webkit-mask-image: url("../../images/icon_phone.svg");
    mask-image: url("../../images/icon_phone.svg");
    top: 11px;
}

.footer-widgets div.icon.email::before {
    background-color: #fff;
}

.footer-widgets div.icon.email::after {
    background-color: #3e9a94;
}

.footer-widgets div.icon.email::after {
    height: 18px;
    left: 6px;
    -webkit-mask-image: url("../../images/icon_email.svg");
    mask-image: url("../../images/icon_email.svg");
    top: 6px;
    width: 18px;
}

.footer-widgets div.icon.location::before,
.footer-widgets div.icon.location::after {
    top: 0;
    transform: none;
}

.footer-widgets div.icon.location::after {
    top: 5px;
}

.footer-widgets div.icon.location::after {
    -webkit-mask-image: url("../../images/icon_location.svg");
    mask-image: url("../../images/icon_location.svg");
}

.footer-widgets .phone,
.footer-widgets .phone a {
    color: #b6d169;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.footer-widgets .phone a:focus,
.footer-widgets .phone a:hover {
    color: #3e9a94;
}

.footer-widgets .title {
    color: #25484a;
    font-size: 60px;
    font-weight: 100;
    line-height: 1;
    margin-bottom: 25px;
}

.footer-widgets .email {
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 15px;
}

.footer-widgets .locations {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 0 30px;
}

.footer-widgets .location {
    flex: 0 0 calc(50% - 30px);
    margin-bottom: 20px;
}

.footer-widgets .location a {
    color: #25484a;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-widgets .location a:focus,
.footer-widgets .location a:hover {
    color: #b6d169;
}

.footer-widgets .location a::before {
    content: '\25B6';
    font-size: 10px;
    font-style: normal;
    margin-right: 3px;
    position: relative;
    top: -1px;
}

.footer-widgets .privacy {
    text-decoration: underline;
    transition: all .2s ease-in-out;
}

.footer-widgets .privacy:focus,
.footer-widgets .privacy:hover {
    color: #b6d169;
}

.footer-widgets div.gform_wrapper .gfield--type-consent .gfield_required {
    display: none;
}

.footer-widgets a.button {
    background-color: #25484a;
	border: none;
    color: #fff;
	cursor: pointer;
    display: table;
	font-size: 17px;
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	padding: 13px 40px;
	text-align: center;
	text-decoration: none;
    transition: all 0.2s ease-in-out;
	white-space: normal;
	width: auto;
}

.footer-widgets a.button:focus,
.footer-widgets a.button:hover {
    background-color: #b6d169;
}


/* Footer - Contact Page
---------------------------------------------------------------------------- */

body.contact .footer-widgets-2 {
    display: none;
}

body.contact .footer-widgets::before {
    opacity: 0;
}

@media only screen and (min-width: 769px) {
    body.contact .footer-widgets-1 {
        grid-column: 1 / span 2;
        grid-row: 1;
    }
}

@media only screen and (max-width: 768px) {
    body.contact .footer-widgets-1 {
        margin-bottom: 0;
    }
}


/* Testimonials
---------------------------------------------------------------------------- */

.testimonials {
    min-height: 0;
    padding: 100px 0;
}

.testimonials .quote-item {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: 21px;
    font-style: italic;
    font-weight: 400;
    height: 100%;
    line-height: 1.33;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.testimonials .quote-item .wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

.testimonials .quote-item .quote-desc {
    position: relative;
    z-index: 1;
}

.testimonials .quote-item .quote-name {
    display: block;
    font-weight: 700;
    font-size: 16px;
    font-style: normal;
    margin-top: 20px;
    position: relative;
    text-transform: uppercase;
}

.testimonials p {
    margin: 0;
}

.testimonials .bx-wrapper .bx-prev {
    left: 2%;
}

.testimonials .bx-wrapper .bx-next {
    right: 2%;
}

.testimonials .bx-wrapper .bx-pager {
    bottom: -80px;
}


/* Misc
---------------------------------------------------------------------------- */

div.hideSVGs {
    height: 0;
    width: 0;
}

.swoosh-wrap {
    height: 56px;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 2;
}

.swoosh-wrap.footer {
    top: 30px;
    transform: scale(-1);
}

.swoosh {
    background-color: #b6d169;
    clip-path: url(#swoosh-green);
    -webkit-clip-path: url(#swoosh-green);
    display: block;
    left: 50%;
    height: 47px;
    min-width: 800px;
    top: 0;
    transform: translateX(-50%) translateZ(0);
    position: absolute;
    width: 100%;
    z-index: 1;
}

.swoosh.white {
    background-color: #fff;
    bottom: 1px;
    clip-path: url(#swoosh-white);
    -webkit-clip-path: url(#swoosh-white);
    top: auto;
}

.circles-wrap {
    height: 100%;
    left: 50%;
    overflow: hidden;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 0;
}

.circles,
.circles-fade {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100vw;
}

.circles::before,
.circles::after {
    background-color: rgba(62,154,148,0.05);
    border-radius: 100%;
    content: '';
    display: block;
    height: 1250px;
    position: absolute;
    width: 1250px;
    z-index: 0;
}

.circles::before {
    top: 1350px;
    right: 50%;
    transform: translateX(20%);
}

.circles::after {
    left: 50%;
    top: 1000px;
    transform: translateX(-20%);
}

.circles-fade::after {
    background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
    bottom: -31px;
    content: '';
    display: block;
    height: 250px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 1;
}

div.pum-content {
    font-size: 20px;
    line-height: 1.4;
}


/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and (min-width: 1024px) {
    
    .feature-title.alignfull > div {
        max-width: 960px;
    }
    
    .testimonials .quote-item .wrap {
        max-width: 900px !important;
    }
    
}

@media only screen and (min-width: 1200px) {
    
    .feature-title.alignfull > div {
        max-width: 1140px;
    }
    
}

@media only screen and (max-width: 1199px) {
    
    .testimonials .quote-item .wrap {
        max-width: 768px !important;
    }
    
    .footer-widgets .title {
        font-size: 50px;
    }
    
}

@media only screen and (max-width: 1023px) {
    
    .wp-block-genesis-blocks-gb-columns.forms {
        margin-bottom: 1em;
    }
    
    .wp-block-genesis-blocks-gb-columns.forms .gb-layout-column-wrap {
        grid-gap: 0 1em;
    }
    
    .testimonials .quote-item {
        font-size: 24px;
    }
    
    
    .testimonials .quote-item .wrap {
        max-width: 75% !important;
    }
    
    
    .testimonials .bx-controls-direction {
        display: none;
    }
    
    .testimonials .bx-pager {
        display: block;
    }
    
    .footer-widgets .title {
        font-size: 50px;
    }
    
    .footer-widgets .location {
        flex-basis: 100%;
    }
    
}

@media only screen and (max-width: 768px) {
    
    .team-list .associate {
        flex-basis: calc(25% - ((25px * 3) / 4));
    }
    
    .video-list .entry {
        flex-basis: calc(50% - ((50px * 1) / 2));
    }
    
    .footer-widgets .location {
        flex-basis: calc(50% - 30px);
    }
    
}

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

    body.single-team figure.wp-block-gallery.has-nested-images.badges figure.wp-block-image {
        flex-basis: calc(33.33% - 20px);
    }
    
    .wp-block-genesis-blocks-gb-columns.forms {
        margin-bottom: 2em;
    }
    
    .wp-block-genesis-blocks-gb-columns.forms .gb-layout-column-wrap {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        grid-template-areas: "col1" "col2" "col3";
        grid-gap: 2em 0;
    }
    
}

@media only screen and (max-width: 600px) {
    
    .feature-title {
        text-align: center;
    }
        
    .feature-title p {
        font-size: 18px !important;
    }
    
    .entry-content .wp-block-image .alignright,
    body.single-team .wp-block-image .alignright {
        margin: 0 0 2em;
        max-width: none;
		text-align: center;
        width: 100%;
    }
    
    .team-list .associate {
        flex-basis: calc(33% - ((25px * 2) / 3));
    }
    
    .testimonials .quote-item .wrap {
        max-width: 90% !important;
    }
    
    .testimonials .quote-item {
        font-size: 21px;
    }
    
    .footer-widgets .title {
        font-size: 40px;
    }
    
    .footer-widgets .location {
        flex-basis: 100%;
    }
    
}

@media only screen and (max-width: 450px) {
    
    .team-list .associate {
        flex-basis: calc(50% - ((25px * 1) / 2));
    }
    
    body.single-team figure.wp-block-gallery.has-nested-images.badges figure.wp-block-image {
        flex-basis: calc(50% - 20px);
    }
    
    .video-list .entry {
        flex-basis: 100%;
    
}
@media only screen and (max-width: 350px) {
    
    .team-list .associate {
        flex-basis: 100%;
    }
    
}