/*
Theme Name: Zen Builder 5 Child
Template: zenbuilder5
Theme URI: https://theme-zen.com/
Author: ThemeZen
Author URI: https://theme-zen.com/
Description: Make custom changes for your website in this child theme.
Requires at least: 6.1
Tested up to: 6.2
Requires PHP: 7.4
Version: 1.0.0
License: ThemeZen Licence
License URI: 
Text Domain: zenbuilder5
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, accessibility-ready, blog, portfolio, news
*/

/* Development CSS code can be added here for testing */
/* *{
    border: 1px solid red;
} */


/*-------------------------------------------------------------
Globals (GLOB)
    GLOB - Body
    GLOB - Typography
    GLOB - Forms
    GLOB - UL
    GLOB - HR
    GLOB - Links
    GLOB - Buttons
    GLOB - Images
Header (HEAD)
    HEAD - Header over hero
    HEAD - Layout
    HEAD - Logo
	HEAD - Navigation
    HEAD - Links
    HEAD - Breadcrumbs
Hero (HERO)
	HERO - Layout
Carousel (CARO)
	CARO - Layout
Footer (FOOT)
    FOOT - Layout
    FOOT - Links
Posts (POST)
    POST - Buttons
Components (COMP)
    COMP - Cards
Bootstrap (BOOT)
	BOOT - Breakpoints Examples
--------------------------------------------------------------*/

/*--------------------------------------------------------------
GLOB - Body
--------------------------------------------------------------*/
body,
.editor-styles-wrapper .is-root-container {
    /* background-color: #d7e3d6; */
    /* background-color: #fcfaf7; */
}

@media (min-width: 1400px) {
    .container-internal-page {
        max-width: 1200px;
    }
}

/*--------------------------------------------------------------
GLOB - Typography
--------------------------------------------------------------*/

/* .display-1,
.is-style-display-1,
.display-2,
.is-style-display-2,
.display-3,
.is-style-display-3,
.display-4,
.is-style-display-4,
.is-style-display-5,
.display-5,
.is-style-display-6,
.display-6 {
    font-weight:400;
} */

h1, .h1, .is-style-h1, h2, .h2, .is-style-h2, h3, .h3, .is-style-h3, h4, .h4, .is-style-h4, h5, .h5, .is-style-lead, .is-style-h5, h6, .h6, .is-style-h6 {
    margin-bottom: 1rem !important;
}

h1, .h1 {
    letter-spacing: -1px;
}

h2, .h2 {
    /* letter-spacing: -1px; */
}

.is-style-lead {
    line-height: 2rem;
}

/* Adds a line before the CTA headers */
.custom-header-style {
    padding: 0 0 0 2rem;
    position: relative;
}

.custom-header-style:before {
    content: '';
    width: 4px;
    height: calc(100% - 20px);
    background-color: #f90706;
    display: block;
    position: absolute;
    top: 9px;
    left: 0;
}
.has-contrast-color {
    color: var(--bs-body-color)!important;
}

/*--------------------------------------------------------------
WB - Pullquote
--------------------------------------------------------------*/
/* https://www.smashingmagazine.com/2008/06/block-quotes-and-pull-quotes-examples-and-good-practices/ */
.wp-block-pullquote {
    padding: 3rem;
    font-size: 1.5rem;
    text-align: left;
    position: relative;
    /* font-family: 'Caveat'; */
    font-size: 1.8rem;
    font-weight: 300;
}

.wp-block-pullquote cite {
    opacity: .5;
}

.wp-block-pullquote:before {
    content: '';
    position: absolute;
    top: 3.5rem;
    left: 0rem;
    width: 3rem;
    height: 3rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23384400' class='bi bi-quote' viewBox='0 0 16 16'%3e%3cpath d='M12 12a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1h-1.388q0-.527.062-1.054.093-.558.31-.992t.559-.683q.34-.279.868-.279V3q-.868 0-1.52.372a3.3 3.3 0 0 0-1.085.992 4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 9 7.558V11a1 1 0 0 0 1 1zm-6 0a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1H4.612q0-.527.062-1.054.094-.558.31-.992.217-.434.559-.683.34-.279.868-.279V3q-.868 0-1.52.372a3.3 3.3 0 0 0-1.085.992 4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 3 7.558V11a1 1 0 0 0 1 1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    /* Ensure the SVG icon fits within the specified dimensions */
    opacity: .2;
}

@media (min-width: 992px) {
    .wp-block-pullquote {
        font-size: 3rem!important;
        padding: 3rem 6rem;
    }

    .wp-block-pullquote:before {
        left: 1.5rem;
    }
}


/*--------------------------------------------------------------
GLOB - UL
--------------------------------------------------------------*/

/*--------------------------------------------------------------
GLOB - HR
--------------------------------------------------------------*/
hr {
    width: 100%;
    opacity: 1;
    border-bottom: 0!important;
    background-color: #384400!important;
}

hr.has-contrast-background-color {
    background-color: #384400!important;
    border-color: #384400!important;
    color: #384400!important;
}

/*--------------------------------------------------------------
GLOB - Links
--------------------------------------------------------------*/

/*--------------------------------------------------------------
GLOB - Buttons
--------------------------------------------------------------*/
.btn {
    letter-spacing: .5px;
    font-weight: 600;
    padding: 13px 29px;
    line-height: 17px;
    font-size: 1rem;
}

/*--------------------------------------------------------------
HEAD - Header over hero
--------------------------------------------------------------*/
@media (min-width: 992px) {
    /* Header bg */
    
    /* Overlayed on hero (Fixed default) */
    /* body.home header.wp-block-template-part {
        background-color: transparent;
    } */
    
    /* Not overlayed on hero */
    body.home header.wp-block-template-part {
        /* position: sticky!important;
        position: sticky!important; */
    }

    /* Header links */
    /* Colour on hero (default) */
    /* .home header:not(.section-header-nav-sticky) .nav-link,
    .home header:not(.section-header-nav-sticky) .nav-link:hover,
    .home header:not(.section-header-nav-sticky) .nav-link:focus {
        color: #fff;
    } */
}

@media (min-width: 992px) {
    body.home header.wp-block-template-part {
        position: static;
    }
}

/*--------------------------------------------------------------
GLOB - Images
--------------------------------------------------------------*/
@media screen and (max-width: 576px) {
    figure.wp-block-image.alignright,
    figure.wp-block-image.alignleft,
    figure.wp-block-image.aligncenter,
    img.alignleft,
    img.alignright,
    img.aligncenter {
        width: 100%;
        margin-bottom: 1rem;
    }

    figure.wp-block-image.alignright img,
    figure.wp-block-image.alignleft img,
    figure.wp-block-image.aligncenter img {
        width: 100%;;
    }
}

.logo-image {
    width: 100%;
    height: auto;
    max-width: 200px;
}

/*--------------------------------------------------------------
HEAD - Layout
--------------------------------------------------------------*/
body.home header.wp-block-template-part {
    transition: all 0.5s ease;
    border-bottom: 1px solid #d7e3d6;
}

body.home header.wp-block-template-part {
    box-shadow:none;
}

header.wp-block-template-part,
body.home header.wp-block-template-part.section-header-nav-sticky {
    background-color: #fff;
    box-shadow:none;
    box-shadow: 4px 4px 30px 0 rgba(0, 0, 0, 0.09);
}

header.wp-block-template-part.section-header-nav-sticky {
    box-shadow: 4px 4px 30px 0 rgba(0, 0, 0, 0.09);
}

header section:first-child {
    border-bottom: 1px solid #d7e3d6;
        font-size: 80%;
}

@media (min-width: 992px) {
    /* Header bg */
    /* body.home header.wp-block-template-part {
        background-color: transparent;
    } */

    body.home header.wp-block-template-part {
        /* position: sticky!important; */
    }

    .dropdown-menu {

        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);

    }

}

@media (min-width: 992px) {
    
    /* Center logo to fit with menu */
    .navbar-nav-wrap {
        justify-content: center;
    }

    #navbarNavDropdown > div.ms-auto {
        margin-left: 0!important;
        width: 100%;
    }

    #navbarNavDropdown > div.ms-auto > #primary-menu {
        justify-content: center;
    }

    .offcanvas-body > .ms-auto {
        margin-left: auto !important;
        margin-right: auto;
    }

    .navbar-nav-wrap {
        flex-direction: column;
    }



}



/*--------------------------------------------------------------
HEAD - Logo
--------------------------------------------------------------*/
.wp-block-site-logo {
    margin-right: 10px;
}

header .custom-logo-link {
    transition: all 0.3s ease-in-out;
    max-width: 100%;
}

header .logo-text {
    max-width: 6rem;
    line-height: 1rem;
}

header .logo-text p:nth-child(1){
    font-size: .7rem;
}
header .logo-text p:nth-child(2){
    /* font-size: .6rem!important; */
    display: none;
}

@media (min-width: 992px) { 
    header .logo-text {
        max-width: 12rem;
    }
    header .logo-text p:nth-child(1){
        font-size: 1.1rem;
    }
    header .logo-text p:nth-child(2){
        /* font-size: .6rem!important; */
        display: block;
    }
}

header .custom-logo-link,
header.section-header-nav-sticky .custom-logo-link {
    /* max-width:  60px; */
}

header .custom-logo-link {
    max-width:  60px;
}

/* header.section-header-nav-sticky .custom-logo-link {
    max-width:  50%;
    transition: all 0.3s ease-in-out;
} */

@media (min-width: 992px) {
    header .custom-logo-link {
        max-width:100%;
    }

    /* header.section-header-nav-sticky .custom-logo-link {
        max-width:  80%;
    } */
}

/*--------------------------------------------------------------
HEAD - Links
--------------------------------------------------------------*/
header a {
    text-decoration: none;
}

.nav-link,
.nav-link:hover,
.nav-link:focus {
    /* color: #124a2f; */
}

/*--------------------------------------------------------------
HEAD - Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs-section {
    background-color: #e1edeb;
}

.breadcrumbs-section ol{
        margin: 0;
}

.breadcrumbs-section ol li{
    min-height: 40px;
    line-height: 40px;
    font-size: 14px;
}

.breadcrumbs-section ol li a {
    color: var(--bs-secondary);
}

/*--------------------------------------------------------------
HERO - Layout
--------------------------------------------------------------*/

/* Start: The home page hero carousel item (first) needs fixed heights, based on users content, stops height changing */
body.home .carousel-item .zenbuilder5-section {
    height: 600px!important;
}

@media (min-width: 992px) {
    body.home .carousel-item .zenbuilder5-section {
        height: 700px!important;
    }
}

@media (min-width: 1200px) {
    body.home .carousel-item .zenbuilder5-section {
        height: 800px!important;
    }
}

@media (max-width: 991px) {
    body.home .carousel-item .zenbuilder5-section p.is-style-lead {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

body.home .carousel-item .zenbuilder5-section .container,
body.home .carousel-item .zenbuilder5-section .container .row {
    height: 100%;
}
/* End: The home page hero carousel item (first) needs fixed heights, based on users content, stops height changing */

/*--------------------------------------------------------------
CARO - Layout
--------------------------------------------------------------*/

/*--------------------------------------------------------------
FOOT - Layout
--------------------------------------------------------------*/
footer > section.bg-primary .btn-primary {
    border-color: #ffffff!important;
    border-width: 2px;
} 

.footer-logo {
    width: 300px;
}

/*--------------------------------------------------------------
FOOT - Links
--------------------------------------------------------------*/
footer a,
footer a:hover,
footer * {
    /* color: #fff; */
    text-decoration: none;
} 

footer a:hover {
    text-decoration: underline;
} 


/*--------------------------------------------------------------
POST - Buttons
--------------------------------------------------------------*/
.row-categories-blog .btn{
    padding: 6px 15px;
}

/*--------------------------------------------------------------
COMP - Cards
--------------------------------------------------------------*/
.card-footer {
    /* background-color: #d7e3d6; */
}

.card {
    border:none;
}

.swiper-wrapper .card-body.text-center > a{
    margin: auto;
}

/*--------------------------------------------------------------
BOOT - Breakpoints Examples
--------------------------------------------------------------*/

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) { 

}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) { 

}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {   

}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {  

}


.hand-underline {
    display: inline-block;
    position: relative;
  }
  
  .hand-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="8"><path d="M0,6 C20,4 80,2 100,0" stroke="black" stroke-width="2" fill="transparent"/></svg>') no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
  }
  