/*
Theme Name: essence
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: essence
*/

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

:root {
    --charcoal: #2C2C2C; 
    --pink: 175,124,143; 
    --white: 255,248,241; 
    --bg: #f6f2ed; /* cream */
    --grey: 194, 200, 204;
    --green: 62, 67, 54;
}

/*--------------------------------------------------------------
# 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: var(--charcoal);
    background: var(--bg);
    overflow-x: hidden;
}
img {
    width: 100%;
    height: auto;
}
a{
    color: var(--grey);
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}
a.cta{
    background: rgba(var(--pink),1);
    color: #FFF;
    text-decoration: none;
    padding: 10px 20px;
    font-family: "Hepta Slab", sans-serif;
    font-size: 1em;
    transition: all .5s;
    border-radius: 0;
    border: 0;
}
a.cta:hover, a.cta:active{
    background: rgba(var(--pink),0.8);
    transition: all .5s;
    color: var(--charcoal);
}
.cta-wrapper{
    display: inline-block;
    margin-top: 2em;
    margin-bottom: 25px;
}
.vh-50{
    height: 50vh;
}
.div-border-top{
    border-top: solid 1px rgb(var(--grey));
}
/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
#masthead {
    /* background: var(--bg); */
    position: absolute;
    width: 100%;
    z-index: 10;
}

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

.social-logos li {
    display: inline;
}

.social-logos li a{
    padding: .25em;
}
.navbar-brand img {
    max-height: 60px;
    width: auto;
}
.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 {
    color: var(--charcoal);
    margin: 0 1em;
    padding: 5px 0;
    position: relative;
}

#main-nav .menu-item a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--charcoal);
    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.show-sub-menu {
    display: block;
}

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

@media (max-width: 1399px) {
    #menu-main-menu{
        background: var(--charcoal);
    }
    nav.navbar button{
        margin-top: -40px;
    }
    #main-nav .menu-item {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--bg);
        padding: 10px 0;
    }
    #main-nav .menu-item a{
        color: var(--bg);
    }
    #main-nav .menu-item:last-child {
        border-bottom: 0;
    }

    #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: 1400px) {
    #main-nav .menu-item {
        text-align: center;
    }

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

    #main-nav .sub-menu .menu-item {
        margin: 0;
        text-align: left;
    }
    #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: var(--charcoal);
        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: rgb(var(--white));
    }

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

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

/*--------------------------------------------------------------
# White Header
--------------------------------------------------------------*/
body.header-colour-white #main-nav .menu-item a, body.single #main-nav .menu-item a{
    color: #FFF;
}
body .white-logo, body.header-colour-white .default-logo, body .white-social-logos, body.header-colour-white .default-social-logos, body.single .default-social-logos, body.single .default-logo {
    display: none;
}
body.header-colour-white .white-logo, body.header-colour-white .white-social-logos, body.single .white-social-logos, body.single .white-logo{
    display: block;
}
body.header-colour-white .navbar-toggler-icon, body.single .navbar-toggler-icon{
    background: url('assets/images/hamburger-white.png') center top 5px no-repeat;
    background-size: 30px;
}
/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1,
h2,
h3,
h4 {
    font-family: "Domine", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1;
    letter-spacing: -1px;
}

h1 {
    font-size: 2.25em;
    text-transform: uppercase;
}

h2 {
    font-size: 1.75em;
    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: center;
}

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

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

.component-masthead h1,
.component-masthead h2 {
    font-weight: 100;
    color: #FFF;
    z-index: 2;
    position: relative;
    line-height: 1.25;
}

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

body.single .component-header h1{
    color: #FFF;
    max-width: 80%;
    margin: 0 auto;
}
@media (max-width: 992px) {
    .component-masthead h1 {
        font-size: 2em;
    }
    
    .component-masthead h2 {
        font-size: 1.25em;
    }
}
@media (max-width: 468px) {
    .component-masthead.fixed-image, .component-image.fixed-image{
        background-attachment: scroll;
    }
    body.single .component-header h1{
        max-width: 90%;
    }
}

/*--------------------------------------------------------------
# Image
--------------------------------------------------------------*/
.component-image{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/*--------------------------------------------------------------
# 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 h2 {
    color: #FFF;
    width: 40%;
    background: rgba(0, 0, 0, .25);
    margin-top: 10vh;
    padding: 20px;
}

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

.modal-header{
    align-items: start;
}
@media (min-width: 768px) {
    .modal-dialog {
        max-width: 700px;
    }
}
@media (max-width: 1500px) {
    .component-hero .card h2 {
        width: 60%;
    }
}
@media (max-width: 968px) {
    .component-hero .col {
        flex-direction: column;
        flex-basis: auto;
    }
    .component-hero .card h2 {
        width: 80%;
    }
}
@media (max-width: 468px) {
    .component-hero .card.fixed-image{
        background-attachment: scroll;
    }
}
@media (min-width: 1500px) {
    .component-hero .card {
        min-height: 50vh;
    }
}

/*--------------------------------------------------------------
# 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: -60px;
    left: -150px;
    width: 150px;
    height: 150px;
    background: url(assets/images/quotes-black.png) center no-repeat;
    background-size: 150px;
    opacity: 0.5;
}
@media (max-width: 468px) {
    .component-quote .quote-block:before {
        top: -10px;
        left: -50px;
        width: 50px;
        height: 50px;
        background-size: 50px;
    }
    .component-quote .quote-block{
        font-size: 1.5em;
    }
}
/*--------------------------------------------------------------
# Component: Cards
--------------------------------------------------------------*/
.component-cards .card{
    overflow: hidden;
}
.component-cards .card h5{
    color: var(--charcoal);
    overflow: hidden;
    font-size: 1.4em;
    line-height: 1.5;
}
.component-cards .card .card-footer{
    border: 0;
    background: none;
}

/*--------------------------------------------------------------
# Component: Header
--------------------------------------------------------------*/
.first-header .component-header:first-of-type{
    padding-top: 150px!important;
}
.component-header .row:first-of-type{
    z-index: 2;
    position: relative;
}

.component-header h1{
    margin-bottom: .5em;
}
.component-header h2, .component-header h3, .component-header h4{
    margin-bottom: .75em;
    font-size: 200%;
}
.component-header{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/*--------------------------------------------------------------
# Component: 2 Columns
--------------------------------------------------------------*/
@media (min-width: 968px) {
    .component-2-columns .col-top-pad{
        padding-top: 20vh;
    }
}
/*--------------------------------------------------------------
# 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: "Hepta Slab", sans-serif;
    font-weight: 600;
    font-style: normal;
    color: #FFF;
}
.component-carousel .carousel-indicators [data-bs-target]{
    background-color: rgb(var(--grey));
}

/*--------------------------------------------------------------
# Blog Landing Page
--------------------------------------------------------------*/

.blog-post .post-thumbnail{
    height: 300px;
    background-size: cover;
    background-position: center;
}
.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: var(--charcoal);
}
.pagination .page-link:hover{
    background-color: rgba(var(--grey), .25);
    text-decoration: none;
}
.pagination .page-link:focus{
    outline: none;
    box-shadow: none;
    background-color: rgba(var(--grey), .25);
}
.pagination .active>.page-link, .pagination .page-link.active{
    background-color: rgba(var(--grey), .5);
    border-color: var(--bs-pagination-border-color);
}
/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/
.component-links h3{
    font-size: 1.25em;
    margin: 0;
    line-height: 1.25;
}
.component-links .horizontal-link-cta:last-child{
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}
.component-links .horizontal-link-cta h2, .component-links .horizontal-link-cta h3, .component-links .horizontal-link-cta h4{
    margin-bottom: .75em;
}
.component-links .cta{
    font-size: .8em;
}

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

.site-footer li a {
    color: var(--charcoal);
    padding: .5em 1em;
    text-decoration: none;
}

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



.footer-logos li {
    list-style: none;
    display: inline-block;
    margin: 10px 20px;
}

.footer-logos li img {
    width: auto;
    max-height: 50px;
}

#footer-widget ul.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    flex-direction: column;
    margin-bottom: 0;
}

@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: -5px;
        top: -1px;
    }

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

    #footer-widget ul.menu li .nav-link:hover {
        text-decoration: underline;
    }
}

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

/*--------------------------------------------------------------
# Form
--------------------------------------------------------------*/
.wpforms-container{
    margin-top: -5px !important;
}
.wpforms-container .wpforms-field:first-child{
    padding-top: 0 !important;
}
button.cta {
    background: rgba(var(--grey),1) !important;
    color: var(--charcoal) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    padding: 15px 25px !important;
    font-family: "Hepta Slab", sans-serif !important;
    font-weight: 600 !important;
    transition: all .5s !important;
    border: 0 !important;
    height: auto !important;
    border-radius: 0 !important;
}
button.cta:hover {
    background: rgba(var(--grey),0.8) !important;
}

/*--------------------------------------------------------------
# FAQs
--------------------------------------------------------------*/
.accordion-button{
    font-weight: 500;
}
.accordion-button:not(.collapsed){
    background-color: rgb(var(--grey));
    color: var(--grey);
}
.accordion-button:focus{
    box-shadow: none;
}