/*
* Hall Family Dentistry.
*
* This file adds front page styles to the Hall Family Dentistry Theme.
*
* @package Hall Family Dentistry
* @author  MarketSpark
* @license GPL-2.0-or-later
* @link    https://www.mrktsprk.com/
*/

/* General
---------------------------------------------------------------------------- */

.site-inner {
    padding: 0;
}

.site-inner > .wrap {
    margin: 0 auto;
    max-width: none;
}

main.content > .entry {
    margin: 0;
}

/* Homepage Sections
---------------------------------------------------------------------------- */

.section {
    clear: both;
    position: relative;
}

.section.blue {
    background: #097db4;
    background: -moz-linear-gradient(60deg,  #097db4 0%, #094b6a 100%);
    background: -webkit-linear-gradient(60deg,  #097db4 0%,#094b6a 100%);
    background: linear-gradient(60deg,  #097db4 0%,#094b6a 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#097db4', endColorstr='#094b6a',GradientType=1 );
    overflow: hidden;
}

.section.blue-alt {
    background: #097db4;
    background: -moz-linear-gradient(60deg,  #094b6a 0%, #097db4 100%);
    background: -webkit-linear-gradient(60deg,  #094b6a 0%,#097db4 100%);
    background: linear-gradient(60deg,  #094b6a 0%,#097db4 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#094b6a', endColorstr='#097db4',GradientType=1 );
    overflow: hidden;
}

.section.gray {
    background: #fcfcfc;
    background: -moz-linear-gradient(60deg,  #fcfcfc 0%, #e6e6e6 100%);
    background: -webkit-linear-gradient(60deg,  #fcfcfc 0%,#e6e6e6 100%);
    background: linear-gradient(60deg,  #fcfcfc 0%,#e6e6e6 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#e6e6e6',GradientType=1 );
    overflow: hidden;
}

.section.blue::before,
.section.blue-alt::before,
.section.gray::before {
    border: 650px solid #fff;
    border-radius: 100%;
    content: '';
    display: block;
    height: 3040px;
    left: 50%;
    opacity: .05;
    position: absolute;
    top: 50%;
    transform: translate(calc(-50% - 270px),calc(-50% - 570px));
    width: 3040px;
    z-index: 0;
}

.section.blue-alt::before {
    transform: translate(calc(-50% + 270px),calc(-50% - 570px));
}

.section.gray::before {
    border-color: #000;
    opacity: .03;
}

.section > div,
.section.bxslider .gb-layout-column-wrap {
    margin-left: 5%;
    margin-right: 5%;
    max-width: none;
}

/* Feature/Slider Section
--------------------------------------------- */

.section.slider > div {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
}

.section.slider .bx-viewport .wp-block-group__inner-container {
    height: 100%;
}

.section.bxslider .gb-layout-column-wrap {
    align-items: center;
    height: 100%;
}

.section.slider div.slide {
    height: 100%;
    overflow: hidden;
}

.section.slider div.text {
    color: #fff;
    font-size: 20px;
    padding: 165px 0;
}

.section.slider div.text h2 {
    color: #fff;
    font-size: 38px;
    font-weight: 400;
}

.section.slider div.text .wp-block-quote {
    margin: 0;
}
.section.slider div.text .wp-block-quote p {
    font-family: inherit;
    font-size: 18px;
    line-height: 1.33;
}

.section.slider div.text .wp-block-buttons .wp-block-button:last-child {
    margin-bottom: 0;
}

.section.slider div.text .wp-block-button .wp-block-button__link {
    background-color: #fff;
    color: #333;
}

.section.slider div.text .wp-block-button .wp-block-button__link:focus,
.section.slider div.text .wp-block-button .wp-block-button__link:hover {
    background-color: #333;
    color: #fff;
}

.section.slider div.image,
.section.slider div.image > div {
    height: 100%;
    position: absolute;
}

.section.slider div.image .wp-block-image {
    height: 100%;
    left: -75px;
    margin: 0;
    position: relative;
    width: calc(50vw + 75px);
}

.section.slider div.image .wp-block-image img {
    height: 100%;
    object-fit: cover;
    object-position: 0 center;
    width: auto;
}

.section.bxslider .bx-wrapper .bx-controls {
    bottom: 50px;
    left: 50%;
    transform: translateX(calc(1140px / -2));
    width: auto;
}

/* CTA
--------------------------------------------- */

.section.cta {
    background-color: #64a345;
    color: #fff;
    font-size: 18px;
    padding: 40px 0 20px;
    z-index: 1;
}

.section.cta::before,
.section.cta::after {
    background-color: #64a345;
    bottom: 100%;
    clip-path: url(#myCurve);
    content: '';
    display: block;
    height: 37px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%) rotate(180deg);
    width: 100vw;
    z-index: 2;
}

.section.cta::after {
    background-color: #fff;
    bottom: calc(100% + 3px);
    left: calc(50% + 25px);
    transform: translateX(calc(-50% - 30px)) rotate(180deg);
    width: calc(100vw + 30px);
    z-index: 1;
}

.section.cta h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 0 0 5px;
}

.section.cta .wp-block-button .wp-block-button__link {
    background-color: #fff;
    color: #333;
}

.section.cta .wp-block-button .wp-block-button__link:focus,
.section.cta .wp-block-button .wp-block-button__link:hover {
    background-color: #333;
    color: #fff;
}

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

.section.services {
    font-size: 18px;
    padding: 110px 0;
    text-align: center;
}

.section.services .wp-block-gallery {
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 40px;
    width: 100%;
}

.section.services .wp-block-gallery ul {
    justify-content: center;
    margin: 0;
    width: 100%;
}

.section.services .wp-block-gallery .blocks-gallery-item {
    flex: 0 0 14.63%;
    margin: 0 1% 30px;
    width: auto;
}

.section.services .wp-block-gallery .blocks-gallery-item figure {
    display: block;
}

.section.services .wp-block-gallery img {
    background-color: #bfe4ef;
    border: 3px solid #fff;
    border-radius: 30px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    height: auto;
    margin: 0 auto 10px;
    max-width: 120px;
    opacity: .8;
    object-fit: contain;
    transition: all .2s ease-in-out;
}

.section.services .wp-block-gallery img:hover {
    background-color: #73c2e7;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    opacity: 1;
    transform: scale(1.01);
}

.section.services .wp-block-gallery figcaption {
    background: none;
    color: #333;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -.5px;
    line-height: 1.25;
    padding: 0;
    position: relative;
}

/* Staff
--------------------------------------------- */

.section.staff {
    color: #fff;
    font-size: 18px;
}

.section.staff .wp-block-image {
    margin: 0;
}

.section.staff div.text {
    padding: 120px 0 100px;
    text-align: right;
}

.section.staff div.text h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.section.staff div.text h2 strong {
    font-size: 38px;
    font-weight: 300;
    letter-spacing: -2px;
}

.section.staff div.text p:last-child {
    margin-bottom: 30px;
}

.section.staff div.text .wp-block-button .wp-block-button__link {
    background-color: #fff;
    color: #333;
}
.section.staff div.text .wp-block-button .wp-block-button__link:focus,
.section.staff div.text .wp-block-button .wp-block-button__link:hover {
    background-color: #333;
    color: #fff;
}

.section.staff div.image {
    position: relative;
}

.section.staff div.image > div {
    bottom: 0;
    height: 100%;
    position: absolute;
    right: 0;
    width: 100vw;
}

.section.staff div.image .wp-block-image {
    height: 100%;
}

.section.staff div.image .wp-block-image img {
    height: 100%;
    object-fit: contain;
    object-position: 100% 100%;
    position: absolute;
    right: -75px;
    width: auto;
}

/* News
--------------------------------------------- */

.section.news {
    padding: 120px 0 80px;
}

.section.news article {
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin: 0 2% 40px;
}

.section.news img {
    opacity: 1;
    transition: opacity .2s ease-in-out;
}

.section.news article:hover img {
    opacity: .8;
}

.section.news .gb-block-post-grid-text {
    font-size: 16px;
    padding: 30px 40px 50px;
    text-align: center;
}

.section.news .gb-block-post-grid-title,
.section.news .gb-block-post-grid-title a {
    color: #094b6a;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -1px;
}

.section.news .gb-block-post-grid-title a:focus,
.section.news .gb-block-post-grid-title a:hover {
    text-decoration: none;
}

.section.news .gb-block-post-grid-more-link {
    background-color: #094b6a;
    border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
    margin-top: 20px;
	padding: 12px 30px;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	width: auto;
}

.section.news .gb-block-post-grid-more-link:focus,
.section.news .gb-block-post-grid-more-link:hover {
    background-color: #097db4;
}


/* Smile Gallery
--------------------------------------------- */

.section.smiles div.text {
    color: #333;
    font-size: 20px;
}

.section.smiles div.text h2 {
    color: #094b6a;
    font-size: 38px;
    font-weight: 300;
}

.section.smiles .wp-block-image {
    margin: 0;
}

.section.smiles div.text .wp-block-button .wp-block-button__link {
    background-color: #333;
    color: #fff;
}
.section.smiles div.text .wp-block-button .wp-block-button__link:focus,
.section.smiles div.text .wp-block-button .wp-block-button__link:hover {
    background-color: #097db4;
    color: #fff;
}

.section.smiles .bx-wrapper .bx-pager.bx-default-pager a:hover,
.section.smiles .bx-wrapper .bx-pager.bx-default-pager a.active {
    background-color: rgba(0,0,0,1);
}


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

@media only screen and (min-width: 480px) {

	table {
		table-layout: auto;
		word-break: normal;
	}

}

@media only screen and (min-width: 1000px) {
    
    .section > div,
    .section.bxslider .gb-layout-column-wrap {
        margin-left: auto;
        margin-right: auto;
        max-width: 960px;
    }
    
}

@media only screen and (min-width: 1200px) {
    
    .section > div,
    .section.bxslider .gb-layout-column-wrap {
        max-width: 1140px;
    }
    
}

@media only screen and (max-width: 1199px) {
    
    .section.bxslider .bx-wrapper .bx-controls {
        transform: translateX(calc(960px / -2));
    }
    
}

@media only screen and (max-width: 999px) {
    
    .section.bxslider .bx-wrapper .bx-controls {
        transform: translateX(calc(90vw / -2));
    }
    
}

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

    .section.services .wp-block-gallery .blocks-gallery-item {
        flex-basis: 23%;
    }
    
}

@media only screen and (max-width: 768px) {
    
    .section.slider div.image, .section.slider div.image > div {
        z-index: 0;
    }
    
    .section.slider div.image .wp-block-image {
        left: -185px;
        width: calc(50vw + 185px);
    }
    
    .section.staff .gb-layout-column-wrap {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        grid-template-areas: "col2" "col1";
    }
    
    .section.staff div.text {
        padding-bottom: 40px;
        text-align: center;
    }
    
    .section.staff div.image > div {
        position: relative;
        width: 100%;
    }
    
    .section.staff div.image .wp-block-image img {
        height: auto;
        left: -8vw;
        object-fit: contain;
        position: relative;
        right: auto;
        width: 100%;
    }
    
}

@media only screen and (max-width: 767px) {
    
    .section.bxslider .gb-layout-column-wrap {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        grid-template-areas: "col1" "col2";
    }
    
    .section.slider div.text {
        padding-bottom: 40px;
        text-align: center;
    }
    
    .section.slider div.text {
        padding: 120px 0 40px;
    }
    
    .section.slider div.image, 
    .section.slider div.image > div {
        position: relative;
    }
    
    .section.slider div.image .wp-block-image {
        left: auto;
        width: auto;
    }
    
    .section.slider div.image .wp-block-image img {
        max-height: 300px;
        width: 100%;
    }
    
    .section.slider div.image .wp-block-image img {
        object-fit: contain;
        object-position: center;
    }
    
    .section.bxslider .bx-wrapper .bx-controls {
        bottom: 25px;
        transform: translateX(-50%);
    }  
    
}

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

    .section.cta {
        padding-bottom: 40px;
        text-align: center;
    }
    .section.cta .wp-block-button.alignright,
    .section.cta .wp-block-buttons.alignright,
    .section.cta .wp-block-cover.alignright,
    .section.cta .wp-block-image .alignright {
        float: none;
        margin: 0;
        text-align: center;
    }
    
    .section.services .wp-block-gallery .blocks-gallery-item {
        flex-basis: 31%;
    }
    
    .section.services .wp-block-gallery img {
        max-width: 25vw;
    }
    
    .section.services .wp-block-gallery figcaption {
        font-size: 17px;
    }
    
}

@media only screen and (max-width: 414px) {
    
    .section.slider div.text {
        font-size: 18px;
    }
    
    .section.slider div.text h2 {
        font-size: 38px;
    }
    
    .section.services .wp-block-gallery figcaption {
        font-size: 15px;
    }
    
    .section.staff div.text h2 strong,
    .section.smiles div.text h2 {
        font-size: 30px;
    }
    
}