/*
Theme Name: crest
Theme URI: https://health-wellness-websites.com/
Author: Health Wellness Websites
Author URI: https://health-wellness-websites.com/
Description: Health Wellness Website Theme
Version: 1.0.0
Text Domain: crest
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --text: 255,255,255;
    --primary: 255,183,3; /* FFB703 yellow */
    --secondary: 75,110,145; /* 4B6E91 steel blue */
    --tertiary: 255,248,241; /* fff8f1 */
    --bg: 44,44,44; /* 2C2C2C charcoal */

    /* --text: #3d3d3d;  grey 
    --primary: 194,173,141;  c2ad8d beige 
    --secondary: 175,124,143;  af7c8f dusty pink
    --tertiary: 255,248,241;  fff8f1 nearly white 
    --bg: #f6f2ed;  cream */

    /* --bg: 30,58,95; 1E3A5F blue */
    --grey: #eeeeee;
}

/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    font-style: normal;
    font-size: 1.25em;
    font-weight: 300;
    color: rgba(var(--text),.9);
    background: rgb(var(--bg));
    overflow-x: hidden;
}

img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
a{
    color: var(--primary);
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}
a.cta{
    background: rgba(var(--primary),1);
    color: rgb(var(--bg));
    text-decoration: none;
    text-transform: uppercase;
    padding: 8px 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    transition: all .5s;
    border-radius: 5px;
}
a.cta:hover{
    background: rgba(var(--primary),0.8);
    transition: all .5s;
}
.cta-wrapper{
    display: inline-block;
    margin-top: 2em;
    margin-bottom: 25px;
}
.max-limit{
    max-width: 1320px;
}
/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
#masthead {
    position: fixed;
    width: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, .8);
}

.navbar-brand img {
    max-height: 120px;
    position: absolute;
    width: auto;
    top: 5px;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: .5s;
}
.navbar-brand img.hide {
    opacity: 0;
    transition: .5s;
}
.navbar-toggler{
    border: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon{
    background: url('assets/images/hamburger.png') center top 5px no-repeat;
    background-size: 30px;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon{
   background-position: center bottom 3px;
}
#main-nav .menu-item {
    margin: 0 1em;
    padding: 5px 0;
    position: relative;
}

#main-nav .menu-item a {
    text-decoration: none;
    text-transform: uppercase;
    color: #FFF;
    color: rgb(var(--text));
    font-size: .8em;
    font-weight: 400;
}

#main-nav .sub-menu {
    padding: 0;
    list-style: none;
}

#main-nav .menu-item .sub-menu {
    display: none;
    float: left;
    min-width: max-content;
    font-size: 1em;
    text-align: left;
    list-style: none;
    padding: 5px 0;
}
#main-nav .menu-item .sub-menu .menu-item{
    color: rgb(var(--bg));
}

#main-nav .menu-item .sub-menu.show-sub-menu {
    display: block;
}

#main-nav .menu-item.menu-item-has-children:hover>.sub-menu {
    display: block;
    margin: 0;
}

#main-nav .menu-item.cta a:hover{
    color: rgb(var(--text));
}
@media (max-width: 991px) {
    #main-nav .menu-item {
        display: flex;
        flex-direction: column;
        border-top: 1px solid rgb(var(--text));
        padding: 10px 0;
    }

    #main-nav .menu-item:last-child {
        border-bottom: 1px solid rgb(var(--text));
    }

    #main-nav .menu-item .sub-menu .menu-item {
        border: 0;
    }

    #main-nav .menu-item .sub-menu .menu-item:last-child {
        padding-bottom: 0;
    }

}
@media (max-width: 468px) {
    .navbar-brand img {
        max-width: 260px;
    }
}

@media (min-width: 992px) {
    #main-nav .menu-item {
        text-align: center;
    }

    #main-nav .menu-item:last-child {
        margin: 0 0 0 1em;
    }

    #main-nav .menu-item a:hover {
        color: rgb(var(--primary));
    }

    #main-nav .sub-menu .menu-item {
        margin: 0;
        text-align: left;
    }
    #main-nav .menu-item.cta a{
        background: rgba(var(--primary),1);
        color: rgb(var(--text));
        text-decoration: none;
        text-transform: uppercase;
        padding: 8px 15px;
        border-radius: 5px;
        font-family: "Roboto", sans-serif;
        font-weight: 600;
        transition: all .5s;
    }
    #main-nav .menu-item .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10;
        display: none;
        float: left;
        min-width: max-content;
        background-color: rgb(var(--primary));
        border-radius: 5px;
    }

    #main-nav .menu-item .sub-menu .menu-item {
        padding: 0;
    }

    #main-nav .menu-item .sub-menu a {
        padding: 10px 15px;
        display: inline-block;
        color: var(--bg);
    }

    /* #main-nav .menu-item.menu-item-has-children:hover>.sub-menu {
        display: block;
        margin: 0;
    } */
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1,
h2,
h3,
h4 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    color: rgb(var(--text));
    line-height: 1;
    letter-spacing: -1px;
}

h1 {
    font-size: 2.25em;
}

h2 {
    font-size: 2em;
    margin-bottom: .5em;
}

h3, h4 {
    font-size: 1.75em;
    margin: .8em 0 .4em 0;
}
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.25em;
    }
}
/*--------------------------------------------------------------
# Masthead 
--------------------------------------------------------------*/
.component-masthead {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: top center;
}

.component-masthead.fixed-image {
    background-attachment: fixed;
}

/* .component-masthead::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, .5);
} */

.component-masthead .masthead-message{
    border-radius: 15px;
    padding: 30px;
    background: rgba(0, 0, 0, .5);
    margin-top: 52px;
}
.component-masthead h1,
.component-masthead p {
    color: #FFF;
    z-index: 2;
    position: relative;
}

.component-masthead p {
    font-size: 1.25em;
}

@media (max-width: 992px) {
    .component-masthead h1 {
        font-size: 2em;
    }
}
@media (max-width: 468px) {
    .component-masthead.fixed-image{
        background-attachment: scroll;
    }
}
/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.component-hero .card {
    height: 60vh;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    border: 0;
}

.component-hero .card.fixed-image {
    background-attachment: fixed;
    background-size: cover;
}

.component-hero .col {
    overflow: hidden;
}

.component-hero .card h1 {
    color: #FFF;
    text-align: center;
    width: 100%;
    background: rgba(0, 0, 0, .35);
    margin: 45vh auto 0 auto;
    padding: 10px 8%;
    border-radius: 8px;
    width: max-content;
        max-width: 100%;
}

.component-hero a,
.component-hero a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .component-hero .col {
        flex-direction: column;
        flex-basis: auto;
    }

    .component-hero .row .col:only-child h1 {
        width: auto;
    }
}
@media (max-width: 468px) {
    .component-hero .card.fixed-image{
        background-attachment: scroll;
    }
}
@media (min-width: 1500px) {
    .component-hero .card {
        min-height: 50vh;
    }
}

/*--------------------------------------------------------------
# 2 Columns
--------------------------------------------------------------*/
.row-without-masthead{
    padding-top: 52px;
}
/* .row-without-masthead > div.component-2-columns:first-of-type {
  padding-top: 50px;
} */
/*--------------------------------------------------------------
# Quote
--------------------------------------------------------------*/
.component-quote .quote-block{
    position: relative;
    font-size: 2em;
    font-style: italic;
    font-weight: 100;
}
.component-quote .quote-block:before {
    content: "";
    position: absolute;
    top: -70px;
    left: 0;
    width: 200px;
    height: 200px;
    background: url(assets/images/quotes-white.svg) center no-repeat;
    background-size: 200px;
    opacity: 0.1;
}

/*--------------------------------------------------------------
# Component: Cards
--------------------------------------------------------------*/
.component-cards .card{
    overflow: hidden;
    border-radius: 8px;
}
.component-cards .card h5{
    color: rgb(var(--bg));
    overflow: hidden;
    font-size: 1.4em;
    line-height: 1.5;
}
.component-cards .card img{
    border-radius: 0;
}
.component-cards .card .card-footer{
    border: 0;
    background: none;
}

/*--------------------------------------------------------------
# Carousel
--------------------------------------------------------------*/
.component-carousel{
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.component-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, .5);
}
.component-carousel .carousel-item{
    font-style: italic;
    color: #FFF;
}
.component-carousel .author{
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: #FFF;
}
.component-carousel .carousel-indicators [data-bs-target]{
    background-color: var(--grey);
}

/*--------------------------------------------------------------
# Blog Landing Page
--------------------------------------------------------------*/
.blog-post {
    display: flex;
    flex-direction: column;
  }
.blog-post-body{
    background: #ebedef;
    color: rgb(var(--bg));
    border-radius: 0px 0px 8px 8px;
    flex-grow: 1;
}
.blog-post-body .excerpt {
    flex-grow: 1;
  }
.blog-post-body .cta {
    width: max-content;
    font-size: .8em;
}
.blog-post .entry-title{
    color: rgb(var(--bg));
    display: inline-block;
}
.blog-post .post-thumbnail{
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0px 0px;
}
.blog-post .excerpt{
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-post h2{
    font-size: 1.5rem;
}
.blog-post .meta{
    font-size: 1rem;
}
.pagination .page-link{
    color: rgb(var(--text));
    background-color: rgb(var(--bg));
}
.pagination .page-link:hover{
    background-color: rgb(var(--bg));
    text-decoration: none;
}
.pagination .page-link:focus{
    outline: none;
    box-shadow: none;
    background-color: rgb(var(--bg));
}
.pagination .active>.page-link, .pagination .page-link.active{
    background-color: rgba(var(--secondary), 1);
    border-color: var(--bs-pagination-border-color);
}
/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
.component-links h3{
    font-size: 1.25em;
    margin: 0;
}
.component-links .horizontal-link-cta:last-child{
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}
.component-links .cta{
    font-size: .8em;
}

.gallery-image div{
    height: 50vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background: rgb(var(--secondary));
}

.site-footer a {
    display: block;
    padding: .5em 0;
    text-decoration: none;
}

.site-footer a:hover{
    text-decoration: underline;
}

.footer-social-logos {
    margin-bottom: 20px;
}

.footer-social-logos img {
    width: auto;
    max-height: 30px;
}

.footer-social-logos li {
    display: inline-block;
}
.footer-social-logos li a{
    margin-right: .5em;
}
.footer-logos li {
    list-style: none;
    display: inline-block;
    margin: 10px 20px;
}

.footer-logos li img {
    width: auto;
    max-height: 50px;
    border-radius: 0;
}
#footer-widget{
    color: rgb(var(--text));
    font-size: .8em;
}
#footer-widget ul.menu {
    display: flex;
    justify-content: start;
    list-style: none;
    padding: 0;
    flex-direction: column;
    margin-bottom: 0;
}
#footer-widget ul.menu li{
    padding: 0;
}
#footer-widget .site-credit{
    padding-right: 8px;
}

@media (min-width: 768px) {
    #footer-widget ul.menu {
        flex-direction: row;
    }

    #footer-widget .text-right ul.menu {
        justify-content: right;
    }

    #footer-widget .text-center ul.menu {
        justify-content: center;
    }

    #footer-widget ul.menu li {
        position: relative;
    }

    /* #footer-widget ul.menu li::after {
        content: "|";
        position: absolute;
        right: -1px;
        top: 5px;
    } */

    #footer-widget ul.menu li:last-child:after {
        content: "";
    }

    #footer-widget ul.menu li .nav-link:hover {
        text-decoration: underline;
    }
}
@media (min-width: 1400px) {
    #footer-widget ul.menu {
        justify-content: end;
    }
    .site-credit{
        display: flex;
        justify-content: end;
    }
    #footer-widget ul.menu li {
        padding: 0 .5em;
    }
}

/*--------------------------------------------------------------
# Cookie Banner
--------------------------------------------------------------*/
button.cky-show-desc-btn:not(:hover):not(:active){
    color: rgb(var(--primary)) !important;
}

/*--------------------------------------------------------------
# Popup modal
--------------------------------------------------------------*/
.modal{
    color: rgb(var(--bg));
}
.modal-title{
    color: rgb(var(--bg));
    line-height: 1.25;
}

/*--------------------------------------------------------------
# Form
--------------------------------------------------------------*/
.wpforms-field-container{
    background: #FFF !important;
    border-radius: 8px !important;
    padding: 0 15px !important;
    margin-right: 20px !important;
}
button.cta {
    background: rgba(var(--primary),1) !important;
    color: rgb(var(--bg)) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    padding: 10px 15px !important;
    font-family: "Roboto", sans-serif !important;
    font-weight: 600 !important;
    transition: all .5s !important;
    border: 0 !important;
    height: auto !important;
    border-radius: 5px !important;
}
button.cta:hover {
    background: rgba(var(--primary),0.8) !important;
}
@media (max-width: 992px) {
    .wpforms-field-container{
        margin-right: 0px !important;
    }
}