/*
    Theme Name: Peake Potential Custom Theme
    Theme URI: https://stebbinsmedia.com
    Version: 1.0
    Description: Custom Theme for Peake Potential
    Author: Stebbins Media
    Author URI: https://stebbinsmedia.com
    template: bb-theme
*/

/* ================================================================================================
 * General
 * ============================================================================================= */

.peake-video {
    background-color: #605e5f;
    position: relative;
    padding: 4px;
}

.peake-video:not(.active)::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/play.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 120px;
    cursor: pointer;
}

.peake-heading b {
    color: #0e76bc;
    font-weight: 100;
}

a {
    transition: color 300ms ease-in-out;
}

a.fl-button, input[type="submit"] {
    transition: background-color 300ms ease-in-out;
}

a:hover {
    text-decoration: none
}

/* ================================================================================================
 * Header
 * ============================================================================================= */

.fl-page-nav-right .fl-page-header-wrap {
    border: 0;
}

.fl-page-bar-text {
    font-size: 18px;
    font-weight: 600;
}

.fl-page-bar-text span:last-child {
    margin-left: 12px;
}

.navbar-toggler > span::before {
    content: "MENU";
    margin-right: 14px;
    font-size: 20px;
    font-weight: 100;
}

.navbar-toggler i {
    font-size: 30px;
    vertical-align: middle;
}

.fl-page-nav-wrap .fl-page-nav-collapse {
    top: 95px !important;
}

.fl-page-header-row {
    position: relative;
}

.fl-page-nav-right.fl-page-header-fixed.fl-page-header.fl-page-nav-toggle-visible-always .fl-page-nav .navbar-toggle, .fl-page-header-fixed.fl-page-header.fl-page-nav-toggle-visible-always .fl-page-nav .navbar-toggle {
    top: -40px;
}

@media (max-width: 991px) {
    .fl-page-header-logo {
        max-width: 350px;
        position: relative;
        top: -25px;
    }

    .fl-page-bar {
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 768px) {
    .fl-page-header-logo {
        max-width: 200px;
        top: -10px;
    }
}

@media (max-width: 380px) {
    .fl-page-header-logo {
        max-width: 150px;
        top: -20px;
    }

    .fl-page-nav-toggle-icon.fl-page-nav-toggle-visible-always .fl-page-nav .navbar-toggle {
        top: 0;
        right: 0;
    }

    .navbar-toggler > span::before {
        display: none;
    }
}

/* ================================================================================================
 * Footer
 * ============================================================================================= */

.fl-page-content {
    padding-bottom: 100px;
}

.fl-page-footer-widgets {
    position: relative;
    text-align: center;
    padding: 10px 8px;
    font-size: 20px;
}

.fl-page-footer-widgets::before {
    content: "";
    display: block;
    width: 280px;
    height: 140px;
    position: absolute;
    left: calc(50% - 841px);
    bottom: calc(100% - 54px);
    background-image: url('images/mountains-footer.svg');
    background-size: contain;
}

.fl-page-footer-widgets .fl-widget {
    margin-bottom: 0;
}

.fl-page-footer-widgets .widget_nav_menu li {
    display: inline-block;
    text-transform: uppercase;
    margin: 0 14px;
}

.fl-widget .footer-copyright li {
    display: inline-block;
}

.footer-copyright {
    font-size: 18px;
}

.footer-copyright a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fl-widget .footer-copyright li:not(:first-child)::before {
    content: "|";
    margin: 0 14px;
}

.footer-poweredby {
    color: #414245;
    font-weight: 500;
    font-size: 20px;
}

.footer-poweredby a {
    color: #414245;
    text-decoration: underline;
}

.social {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.social > a {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    margin: 0 15px;
}

.social > a > span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/social.png');
    transition: opacity 300ms ease-in-out;
}

.social-blue .social > a > span {
    background-image: url('images/social-blue.png');
}

.social-blue .social {
    justify-content: left;
}

.social > a.facebook > span {
    background-position-x: 0;
}

.social > a.instagram > span {
    background-position-x: -40px;
}

.social > a.linkedin > span {
    background-position-x: -80px;
}

.social > a > span.accent {
    background-position-y: -40px;
}

.social > a:hover > span.normal {
    opacity: 0;
}

.social > a:not(:hover) > span.accent {
    opacity: 0;
}

@media (max-width: 1700px) {
    .fl-page-footer-widgets::before {
        left: 0px
    }
}

@media (max-width: 768px) {
    .fl-widget .footer-copyright li {
        display: block;
        margin: 15px 0;
    }

    .fl-widget .footer-copyright li:not(:first-child)::before {
        display: none;
    }

    .fl-page-footer-widgets .widget_nav_menu li {
        display: block;
        margin-bottom: 16px;
    }

    .fl-page-footer-widgets .social {
        margin: 48px 0;
    }

    .footer-poweredby {
        margin-top: 32px;
    }
}

/* ================================================================================================
 * Home
 * ============================================================================================= */

body.home .fl-page-nav-right .fl-page-header-wrap {
    background: transparent;
    position: relative;
    z-index: 1;
}

body.home .intro-row {
    margin-top: -238px;
}

.intro-row .fl-row-content {
    min-height: 1520px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 330px;
}

.intro-column {
    background: rgb(221, 236, 241, 0.8);
    border: 2px solid #0e76bc;
    border-radius: 35px 0 35px 35px;
    width: 540px;
    max-width: 100%;
    text-align: center;
}

.home-callouts .fl-module-callout .fl-module-content {
    margin: 0 5px;
}

.home-callouts .fl-col:nth-child(1) .fl-module-content {
    margin-left: 0;
}

.home-callouts .fl-col:nth-child(5) .fl-module-content {
    margin-right: 0;
}

.home-callouts .fl-callout-title {
    font-size: 18px;
    font-weight: 500;
    background: linear-gradient(135deg, #2f3944 25%, #414d5a 80%);
    border-radius: 0px 0px 16px 16px;
    color: #ffffff;
    letter-spacing: 0px;
    padding: 0 4px;
    height: 68px;
}

.home-callouts .fl-callout-title a {
    display: block;
    color: #ffffff;
    padding: 18px 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-callouts .fl-callout {
    max-width: 350px;
}

.home-callouts .fl-callout-content {
    position: relative;
}

.home-callouts .fl-callout-text-wrap {
    position: absolute;
    bottom: 68px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 20px 16px 5px 20px;
    pointer-events: none;
    overflow-y: hidden;
    max-height: 340px;
    transition: max-height 500ms ease-in-out, padding-top 500ms ease-in-out, padding-bottom 500ms ease-in-out;
}

.home-callouts .fl-module-callout:not(:hover) .fl-callout-text-wrap {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.home-callouts .fl-callout-text-wrap a {
    color: #ffffff;
}

.home-callouts .fl-callout-text-wrap a:hover {
    color: #71aedb;
}

.home-callouts .fl-module-callout:not(.has-text) .fl-callout-text-wrap {
    display: none;
}

.home-callouts .fl-module-callout:hover .fl-callout-text-wrap {
    opacity: 1;
}

.home-callouts .fl-module-callout:hover .fl-callout-title {
    background: linear-gradient(135deg, #0c2442 25%, #4f7492 80%);
}

.home-callouts .fl-callout-photo-above-title .fl-photo {
    margin-bottom: 0;
}

.home-callouts .fl-callout-photo-above-title .fl-photo-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 330px;
    overflow-x: hidden;
}

.services-specialty .fl-callout-photo-above-title .fl-photo-content {
    height: 350px;
}

.home-callouts .fl-callout-photo-above-title .fl-photo-content > a {
    width: 100%;
}

.home-callouts .fl-callout-photo-above-title .fl-photo img {
    min-width: 100%;
    min-height: 100%;
    border-top-left-radius: 40px;
}

.home-textbox {
    padding: 0 16px;
    margin-bottom: 16px;
}

.home-textbox > .fl-col-content {
    background-color: rgba(255, 255, 255, 0.52);
    border: 2px solid #71aedb;
    padding: 40px 100px;
    border-radius: 50px 0 50px 50px;
    max-width: 1720px;
    margin: 0 auto 80px auto;
}

.home-textbox a.fl-button {
    border-radius: 10px 0 10px 10px !important;
    padding: 15px 40px;
    font-weight: 300;
    font-size: 18px;
}

.home-background-mountains {
    background-image: url('images/mountains.svg');
    background-repeat: no-repeat;
    background-size: 100vw;
    background-position-y: 140%;
}

.home-clear-background {
    background-color: rgba(0, 0, 0, 0.52);
}

.services-specialty .fl-col-content {
    max-width: 1170px;
    margin: 0 auto;
}

.home-testimonials .fl-row-content-wrap {
    position: relative;
    overflow: hidden;
}

.home-testimonials .fl-row-content-wrap::before {
    content: "";
    display: block;
    width: 1370px;
    left: calc(50% - 680px);
    height: 100%;
    margin: -20px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    transform: skewX(-25deg);
}

.home-testimonials .fl-content-slider-navigation {
    left: 10%;
    right: 13%;
}

.home-testimonials {
    font-weight: 100;
    font-style: italic;
    font-size: 19px;
}

.home-testimonials strong {
    font-style: normal;
}

.home-testimonials .fl-row-content {
    z-index: 1;
    position: relative;
}

.latest-news-wrapper {
    display: flex;
}

.latest-article {
    width: 50%;
    border: 2px solid #0d75bb;
    border-radius: 50px 0 50px 50px;
    overflow: hidden;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    margin-top: -2px;
}

.latest-article-photo {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.latest-article-photo img {
    height: 100%;
    max-height: 370px;
    width: auto;
    max-width: 250%;
}

.latest-article:nth-child(1) {
    margin-right: 20px;
}

.latest-article:nth-child(2) {
    margin-left: 20px;
}

.latest-article-photo, .latest-article-content {
    width: 50%;
}

.latest-article-content {
    padding: 16px;
}

.latest-article-title {
    text-transform: uppercase;
    font-weight: 300;
    font-size: 30px;
}

.latest-article-date {
    font-size: 22px;
    color: #0e76bc;
    margin: 4px 0 20px 0;
}

.latest-article-description {
    font-size: 17px;
    max-height: 148px;
    position: relative;
    overflow-y: hidden;
}

.latest-article-description::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 0;
    height: 16px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1.0), rgba(255, 255, 255, 0.0));
}

.latest-article-read {
    text-align: center;
    text-decoration: underline;
    text-transform: uppercase;
    margin-top: 20px;
    text-underline-offset: 3px;
    font-weight: 300;
}

@media (max-width: 1920px) {
    .home-background-mountains {
        background-size: 1920px;
        background-position-x: 50%;
    }
}

@media (max-width: 1700px) {
    .home-testimonials .fl-content-slider-navigation {
        left: 8px;
        right: 8px;
    }
}

@media (max-width: 1400px) {
    .home-callouts .fl-callout-text-wrap {
        font-size: 14px;
        line-height: 1.1;
    }

    .home-callouts .fl-callout-title {
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    .fullwidth-1200px {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .fullwidth-1200px:nth-child(2) .fl-module-content {
        margin-left: 0;
    }

    .home-textbox > .fl-col-content {
        padding-left: 40px;
        padding-right: 40px;
    }

    body.home .peake-video {
        max-width: 540px;
        margin: 0 auto;
    }
}

@media (max-width: 991px) {
    .intro-row .fl-row-content {
        width: 100%;
        min-height: calc(100vh - 150px);
        padding-top: 80px;
        justify-content: center;
    }

    .intro-column {
        width: 100%;
        margin: 0 12px;
    }

    .home-callouts .fl-col-group {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    body.home .intro-row {
        margin-top: -160px;
    }

    .latest-news-wrapper {
        display: block;
    }

    .latest-article {
        width: 100%;
        margin-bottom: 20px;
        margin-left: 0 !important;
    }

    .home-testimonials .fl-content-slider-navigation {
        top: 0;
    }

    .home-callouts .fl-callout-photo-above-title .fl-photo-content {
        height: auto;
    }
}

@media (max-width: 768px) {
    .intro-row .fl-row-content {
        padding-top: 150px;
    }

    body.home .intro-row {
        margin-top: -80px;
    }

    .services-specialty .fl-col {
        margin: 5px !important;
    }

    .home-testimonials .fl-content-slider-navigation {
        top: -45px;
    }
	
	.latest-article-read {
		font-size: 20px;
	}
}

@media (max-width: 640px) {
    .home-callouts .fl-col {
        width: calc(50% - 15px) !important;
        margin: 5px !important;
    }

    .home-callouts .fl-col-content {
        margin: 0 !important;
    }

    .home-callouts .fl-callout-photo-above-title .fl-photo img {
        border-top-left-radius: 0;
    }

    .home-callouts .fl-callout-title {
        border-radius: 0;
    }

    .latest-article {
        display: block;
    }

    .latest-article-photo, .latest-article-content {
        width: 100%;
    }

    .latest-article-photo img {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .home-callouts .fl-col {
        width: 100% !important;
        max-width: 350px;
        margin: 5px auto;
    }

    .home-callouts .fl-col:nth-child(1) .fl-module-content {
        margin-left: 5px;
    }

    .home-testimonials .fl-content-slider-navigation {
        top: -38px;
    }

    .home-textbox > .fl-col-content {
        border: 0;
    }
}

@media (max-width: 400px) {
    .home-testimonials .fl-content-slider {
        margin-bottom: 32px;
    }

    .home-testimonials .fl-content-slider-navigation {
        top: calc(100% + 24px);
    }
}

/* ================================================================================================
 * Contact Form
 * ============================================================================================= */

.gform_submission_error {
    letter-spacing: 1px;
}

input[type="submit"].gform_button {
    padding: 15px 40px;
    font-size: 24px;
    margin-right: 24px;
}

/* ================================================================================================
 * Service Template
 * ============================================================================================= */

.page-template-tpl-service-page .fl-page-content {
    padding-bottom: 0;
}

.service-footer {
    border-top: 1px solid black;
    padding-top: 48px;
    margin-top: 32px;
}