/*
 * Freedom Energy.
 *
 * This file adds homepage styles to the Freedom Energy Theme.
 *
 * @package Freedom Energy
 * @author  5.12 Design Lab
 * @license GPL-2.0-or-later
 * @link    https://512designlab.com/
*/


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

.section {
    clear: both;
}

.content .entry {
    margin: 0;
}

.alignfull:not(.feature):not(.etrm) > div {
    margin-left: 5% !important;
    margin-right: 5% !important;
    max-width: none !important;
}

.section .wp-block-cover {
    padding: 0;
}

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

.feature {
    position: relative;
}

.feature::before,
.feature::after {
    bottom: 0;
    content: '';
    display: block;
    left: 50%;
    min-width: 800px;
    position: absolute;
    transform: translateX(-50%) translateZ(0);
    width: 100%;
}

.feature::before {
    background: #715722;
    background: -moz-linear-gradient(60deg,  #715722 0%, #e8b156 100%);
    background: -webkit-linear-gradient(60deg,  #715722 0%,#e8b156 100%);
    background: linear-gradient(60deg,  #715722 0%,#e8b156 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#715722', endColorstr='#e8b156',GradientType=1 );
    clip-path: url(#swoosh-gold);
    -webkit-clip-path: url(#swoosh-gold);
    height: 195px;
    z-index: 2;
}

.feature::after {
    background: white;
    bottom: -1px;
    clip-path: url(#swoosh-white);
    -webkit-clip-path: url(#swoosh-white);
    height: 140px;
    z-index: 3;
}

.feature .wp-block-cover__inner-container {
    max-width: 750px;
    padding: 150px 0 240px;
}

.feature h1 {
    line-height: 1;
    margin: 0;
}

.feature h1:last-of-type {
    margin-bottom: 40px;
}

.feature p strong {
    color: #e8b156;
}

.feature a.has-white-background-color:focus,
.feature a.has-white-background-color:hover {
    background-color: #e8b156 !important;
    box-shadow: none !important;
}

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

.services {
    font-size: 21px;
    line-height: 1.25;
}

.services h4 {
    font-size: 50px;
    margin: 0;
}

.services h6 {
    font-size: 14px;
    margin: 0;
}

.services p:last-child {
    margin: 0;
}

.services .gb-layout-columns-2 {
    margin-bottom: 8px;
}

.services .gb-2-col-wideright>.gb-layout-column-wrap {
    grid-template-columns: 310px auto;
}

.services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column {
    display: flex;
    padding: 25px 0;
    position: relative;
}

.services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child {
    padding-right: 50px;
    z-index: 2;
}

.services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::before,
.services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::after {
    background: #715722;
    background: -moz-linear-gradient(60deg,  #715722 0%, #e8b156 100%);
    background: -webkit-linear-gradient(60deg,  #715722 0%,#e8b156 100%);
    background: linear-gradient(60deg,  #715722 0%,#e8b156 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#715722', endColorstr='#e8b156',GradientType=1 );
    clip-path: polygon(calc(100% - 50px) 0%, 100% 50%, calc(100% - 50px) 100%, 0% 100%, 0% 0%);
    content: '';
    display: block;
    height: 100%;
    left: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: calc((100vw - 1140px) / 2 + 310px);
    z-index: 0;
}

.services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::before {
    background: #fff;
    right: -10px;
}

.services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:last-child {
    z-index: 1;
}

.services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:last-child::before {
    background-color: #e8b156;
    clip-path: polygon(calc(100% - 130px) 0, 100% 100%, 0% 100%, 0% 0%);
    content: '';
    display: block;
    height: 100%;
    left: auto;
    opacity: .1;
    position: absolute;
    right: -200px;
    top: 0;
    width: 100vw;
    z-index: 0;
}

.services .gb-layout-columns-2:nth-child(even) .wp-block-genesis-blocks-gb-column:last-child::before {
    clip-path: polygon(100% 0, calc(100% - 130px) 100%, 0% 100%, 0% 0%);
}

.services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column .gb-block-layout-column-inner {
    align-self: center;
}

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

.cta h5 {
    margin: 0 0 15px;
}

.cta a.has-white-background-color:focus,
.cta a.has-white-background-color:hover {
    background-color: #e8b156 !important;
    box-shadow: none !important;
}

/* ETRM
--------------------------------------------- */

.etrm {
    border-top: 1px solid #715722;
    overflow: hidden;
}

.etrm img.wp-block-cover__image-background {
    filter: blur(3px);
    transform: scale(1.1);
}

.etrm .wp-block-cover__inner-container{
    padding: 100px 0;
}

.etrm h2 {
    line-height: 1;
}

.etrm h2 strong {
    font-size: 48px;
}

.etrm h2 strong:last-child {
    display: block;
}

.etrm h5 {
    margin: 0 0 10px;
}

.etrm p {
    line-height: 1.25;
}

.etrm p.footnote {
    margin: 0 0 7px;
}

.etrm .wp-block-media-text {
    grid-template-columns: auto;
}

.etrm .wp-block-media-text .wp-block-media-text__media img {
    height: 75px;
    width: auto;
}

.etrm .wp-block-media-text .wp-block-media-text__content {
    padding: 0 5%;
}

.etrm .wp-block-media-text .wp-block-media-text__content p:last-child {
    margin: 0;
}

.etrm .wp-block-gallery.has-nested-images {
    gap: 20px;
}

.etrm .wp-block-gallery.has-nested-images figure.wp-block-image {
    height: 300px;
    width: calc(33% - 20px) !important;
}

.etrm .wp-block-gallery.has-nested-images figure.wp-block-image a {
    border-radius: 5px;
    overflow: hidden;
}

.etrm .wp-block-gallery.has-nested-images figure.wp-block-image img {
    object-position: center left;
}

.etrm .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background: none;
    bottom: 0;
    opacity: .5;
    overflow: visible;
    top: 100%;
    transition: opacity .2s ease-in-out;
}

.etrm .wp-block-gallery.has-nested-images figure.wp-block-image:focus figcaption,
.etrm .wp-block-gallery.has-nested-images figure.wp-block-image:hover figcaption {
    opacity: 1;
}

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

.team h2 {
    line-height: 1;
}

.team h5 {
    margin: 0 0 10px;
}

.team .team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 50px;
}

.team .team-list .member {
    flex: 0 0 30%;
    font-size: 18px;
    line-height: 1.33;
    margin-bottom: 40px;
    max-width: 100%;
    text-align: center;
}

.team .team-list .member .image {
    margin: 0 auto 15px;
}

.team .team-list .member .image img {
    border: 1px solid #e8b156;
    border-radius: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: all .2s ease-in-out;
    width: 200px;
}

.team .team-list .member .image.pum-trigger:focus img,
.team .team-list .member .image.pum-trigger:hover img {
    filter: brightness(1.05);
    transform: scale(1.02);
}

.team .team-list .member .name {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 8px;
}

.team .team-list .member .title {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.team .team-list .member p {
    margin-bottom: 20px;
}

.team .team-list .member .dashicons {
    background-color: #02042c;
    border-radius: 5px;
    color: #fff;
    font-size: 30px;
    height: 40px;
    margin: 0 7px;
    transition: all .2s ease-in-out;
    width: 40px;
}

.team .team-list .member .dashicons:focus,
.team .team-list .member .dashicons:hover {
    background-color: #e8b156;
    cursor: pointer;
}

.team .team-list .member .dashicons::before {
    position: relative;
    top: 4px;
}


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

@media only screen and (min-width: 1000px) {
    
    .alignfull:not(.feature):not(.etrm) > div,
    .feature .wp-block-cover__inner-container,
    .etrm .wp-block-cover__inner-container {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 960px !important;
    }
    
    .feature .wp-block-cover__inner-container > * {
        max-width: 750px;
    }

}

@media only screen and (min-width: 1200px) {
    
    .alignfull:not(.feature):not(.etrm) > div,
    .feature .wp-block-cover__inner-container,
    .etrm .wp-block-cover__inner-container {
        max-width: 1140px !important;
    }

}

@media only screen and (max-width: 1199px) {
    
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::before,
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::after {
        width: calc((100vw - 960px) / 2 + 310px);
    }
    
}

@media only screen and (max-width: 999px) {
    
    .feature .wp-block-cover__inner-container,
    .etrm .wp-block-cover__inner-container {
        max-width: 90%;
    }
    
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::before,
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::after {
        width: calc((100vw - 90vw) / 2 + 310px);
    }
    
    .etrm .gb-layout-columns-2 .gb-layout-column-wrap {
        display: block;
    }
    
    .etrm .gb-layout-columns-2 .gb-layout-column-wrap .wp-block-genesis-blocks-gb-column {
        margin-bottom: 30px;
    }
    
    .etrm .wp-block-media-text {
        grid-template-columns: 90px auto;
    }
    
    .etrm .wp-block-media-text .wp-block-media-text__media img {
        height: auto;
        max-width: 100%;
    }
    
    .etrm .wp-block-media-text .wp-block-media-text__content {
        align-self: center;
    }
    
}

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

    .team .team-list .member {
        flex-basis: 47%;
    }
    
}

@media only screen and (max-width: 767px) {
    
    .alignfull.feature .wp-block-cover__inner-container,
    .alignfull.etrm .wp-block-cover__inner-container {
        margin-left: 8%;
        margin-right: 8%;
    }
    
    .services .gb-layout-columns-2 {
        margin-bottom: 20px;
    }
    
    .services .gb-layout-column-wrap,
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column {
        display: block;
        text-align: center;
    }
    
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child {
        padding: 20px 0 35px;
    }
    
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::before,
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::after,
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:last-child::before,
    .services .gb-layout-columns-2:nth-child(even) .wp-block-genesis-blocks-gb-column:last-child::before {
        clip-path: polygon(0 0, 100% 0%, 100% 90%, 50% 100%, 0 90%);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 100vw;
    }
    
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:last-child::before,
    .services .gb-layout-columns-2:nth-child(even) .wp-block-genesis-blocks-gb-column:last-child::before {
        clip-path: none;
    }
    
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:first-child::before {
        top: 10px;
    }
    
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:last-child {
        padding: 40px 0;
    }
    
    .services .gb-layout-columns-2 .wp-block-genesis-blocks-gb-column:last-child::before {
        top: -10px;
    }
    
    .etrm h2 strong {
        font-size: 36px;
    }
    
    .etrm h2 strong:last-child {
        display: inline;
    }
    
}

@media only screen and (max-width: 600px) {
    
    .etrm .wp-block-media-text {
        text-align: center;
    }
    
    .etrm .wp-block-media-text .wp-block-media-text__media img {
        height: 75px;
    }
    
    .etrm .wp-block-gallery.has-nested-images figure.wp-block-image {
        height: 250px;
        margin-bottom: 40px !important;
        width: 100% !important;
    }
    
    .team .team-list .member {
        flex-basis: 100%;
        margin-bottom: 60px;
    }
    
}

@media only screen and (max-width: 450px) {
    
    .services {
        font-size: 18px;
    }
    
    .etrm .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
        width: 100%;
    }
    
}