/*
Theme Name:  CoTeBo Child
Template: cotebo
Author:  NCambrea | <a href="mailto: nccambrea@gmail.com">nccambrea@gmail.com</a>
Description:  Unleash your creativity with the CoTeBo Theme! It leverages the block editor's flexibility with powerful custom blocks, letting you craft unique templates and patterns or use convenient pre-built ones. Personalize your site with ease - the possibilities are endless! Beyond the default blocks, CoTeBo offers specialized custom blocks to elevate your content further. Visit our site for inspiring examples and helpful tutorials.
Author URI: https://cotebo.com
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.3 or above
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ct-boutique
Domain Path: /languages
*/

/* .header-main-black {
    position: relative;
    z-index: 998;
} */


.header-main-blue {
    z-index: 999;
    position: fixed;
    width: 100%;
    top: 0;
    margin-top: 0;
    transition: top 0.3s ease-in-out;
}
.admin-bar .header-main-blue {
    top: 32px;
}

.btn-search-header {
    color: #fff;
    cursor: pointer;
    margin-top: 8px !important;
}

.btn-get-free-estimate a {
    word-break: keep-all;
}
.btn-get-free-estimate:hover a {
    background-color: #0164b4;
}

.tc-custom-mobile-menu-header, .tc-custom-mobile-menu-footer {
    display: none;
}

.btn-scrolltop {
	color: #8dc640;
}

.btn-scrolltop span::before {
	font-weight: 700;
}


/* .ctb-navigation__menu .navbar-nav {
    flex-wrap: nowrap !important;
}

.white-space-nowrap {
    white-space: nowrap !important;
} */

.current_page_ancestor > a {
    color: #8dc640 !important;
    font-weight: 600 !important;
}
.current_page_item > a {
    color: #8dc640 !important;
}


.header-main-black a{
    text-decoration: none;
}

.header-phone-number {
    position: absolute;
    right: 10px;
}

.ctb-navigation__menu.menu--mobile-active {
    background-color: #313548 !important;
    padding: 20px !important;
}
.ctb-navigation__mobile-menu-close {
    color: #fff !important; 
}


/* Custom square symbol in fron of the footer link menu*/
.footer-block-list a {
    position: relative;
    padding-left: 1.5rem;
}
.footer-block-list a:after, .footer-block-list a:before {
    content: "";
    position: absolute;
    left: 5px;
    display: block;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #8dc640;
    -webkit-transition: all 300ms 
    cubic-bezier(.395, .425, .015, 1);
    transition: all 300ms 
    cubic-bezier(.395, .425, .015, 1);
}

.footer-block-list a:after {
    width: 4px;
    height: 4px;
    background: transparent;
    border: 2px solid #202333;
}
.footer-block-list a:hover:after {
    width: 15px;
    height: 15px;
    opacity: 0;
}

/* ------------------------------ */
/* 1. Utility classes */
/* ------------------------------ */
.white-space-no-wrap {
    white-space: nowrap !important;
}   

.wp-block-quote::before{
    content: "\f10d";
}

.tc-breadcrumbs {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #7f7f7f;
}
.tc-breadcrumb-separator {
    padding: 0 10px;
}

/* Fixing the default behaviour of display: flex that will break the text in columns if links, italic or bold elements in it */
ul.is-style-icon-checkbox-square > li,
ul.is-style-icon-checkbox-circle > li {
    display: block !important;
    padding-left: 3em !important;
}
ul.is-style-icon-checkbox-square > li:before,
ul.is-style-icon-checkbox-circle > li:before {
    position: absolute !important;
    top: 5px !important;
    left: 0;
}

/* ------------------------------ */
/* HOMEPAGE STYLE */ 
/* ------------------------------ */

.homepage-box-btn {
    position: absolute !important;
    inset: 0;
}
.homepage-box-btn > strong {
    visibility: hidden;
    display: block;
    position: absolute;
    /* font-weight: normal !important; */
    top: auto;
    left: 10%;
    right: 10%;
    bottom: 2rem;
    padding: 10px 0;
    transition: all 300ms;
}

.box-btn-01 > strong, .box-btn-02 > strong, .box-btn-03 > strong, .box-btn-04 > strong, .box-btn-05 > strong {
    visibility: hidden;
    background-color: #ffffff00;
    color: #ffffff00;
}
.box-btn-01:hover > strong {
    visibility: visible;
    background-color: #002e62;
    color: inherit;
}
.box-btn-02:hover > strong {
    visibility: visible;
    background-color: #1986c8;
    color: inherit;
}
.box-btn-03:hover > strong {
    visibility: visible;
    background-color: #8dc640;
    color: inherit;
}
.box-btn-04:hover > strong {
    visibility: visible;
    background-color: #041f50;
    color: inherit;
}
.box-btn-05:hover > strong {
    visibility: visible;
    background-color: #41abe1;
    color: inherit;
}

.block-quote-cta {
    width: 100%;
    min-height:200px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    /* background-color: #00000020; */
}
.block-quote-cta.row {
    flex-direction: row;
    min-height: auto;
    row-gap: 10px;
}
.block-quote-cta input {
    width: 100%;
    background-color: #fff;
    border: none;
    padding: 15px;
    border-radius: 5px;
    box-sizing: border-box;
}
.block-quote-cta button {
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #8dc640;
    color: #fff;
    border: none;
    border-radius: 5px;
    /* margin-top: 20px; */
    cursor: pointer;
}

/* ------------------------------ */
/* BUYING GUIDE STYLE             */
/* ------------------------------ */
figure.single-guide-image {
    width: 100%;
    max-height: 600px;
    margin: 0;
}

/* ------------------------------ */
/* 4. SEARCH STYLE                */
/* ------------------------------ */
/* Base Styles for the Overlay */
.tc-search-overlay {
    /* Fixed position to cover the entire viewport */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Dark semi-transparent background */
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999; /* Ensure it's on top of everything */
    
    /* Start hidden and transition smoothly */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Styles when the overlay is active */
.tc-search-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Content container - Center everything */
.tc-search-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    color: #fff;
    text-align: center;
}

/* Input Field Styling (to mimic the image) */
.tc-search-overlay-content .search-field {
    width: 100%;
    font-size: 1.5rem;
    border: none;
    margin: 0;
}
.tc-search-overlay-content .search-field:focus {
    outline: none;
}

/* Close button positioning and style */
.tc-search-overlay-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}
.tc-search-wrapper {
    display: flex;
    flex-wrap: nowrap;
	box-sizing: border-box;
    width: 100%;
    padding: 15px 20px;
    font-size: 1.5rem;
    background: #fff;
    border: none;
    border-radius: 5px;
    margin: 10px 0;
}
.tc-search-submit {
	/* 1. Dimensions */
    width: 50px;
    height: 50px;
	min-width: 50px;
    min-height: 50px;
    flex: none;
    
    /* 2. Centering Logic (Flexbox) */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 3. Colors */
    background-color: #8dc640;
    color: #ffffff;
    
    /* 4. Reset Default Button Styles */
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

/* ------------------------------ */
/*            BLOG POST           */ 
/* ------------------------------ */
.wp-block-post-featured-image {
    overflow: hidden;
}

.ctb-grid-post img {
    /* z-index: 999; */
    transition: transform 0.3s ease-in-out;
}

/* .wp-block-post-featured-image a:hover {
    transform: scale(1.5);
} */

.ctb-grid-post:hover img {
    transform: scale(1.1);
}

.ctb-grid-post .wp-block-post-excerpt__more-link {
    display: none;
}

.text-custom-decoration > a,
.text-custom-decoration > time {
    background-color: rgb(53, 53, 53); /* Your blue background with some transparency */
    color: white; /* Text color */
    padding: 5px 10px; /* Padding around the text */
    
    /* 🌟 THE KEY PROPERTY 🌟 */
    /* This ensures padding and background-color apply to each line fragment */
    box-decoration-break: clone; 
    -webkit-box-decoration-break: clone; /* For older Webkit browsers */
    
    line-height: 1.5; /* Adjust line-height to control vertical spacing between highlighted lines */
    display: inline !important; /* Ensure it behaves as an inline element */
}

.custom-blogpost-featured-image  {
/* The constraining height */
    max-height: 450px; 
    
    /* Ensure the content that overflows is not visible */
    overflow: hidden; 
    
    /* Set up Flexbox on the parent */
    display: flex; 
    
    /* Center the child (the image) vertically */
    align-items: center;
}

.post-content-blocks > p, .post-content-blocks > h1, .post-content-blocks > h2, .post-content-blocks > h3, .post-content-blocks > h4, .post-content-blocks > h5, .post-content-blocks > h6  {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/** ------------------------------ */
/* GALLERY SCROLL  */
/* ------------------------------ */
/* === 1. Gallery Container & Scroll Setup === */
figure.tc-gallery-scroll {
    display: flex;
    flex-wrap: nowrap;
    
    /* Enable horizontal scrolling */
    overflow-x: auto;
    overflow-y: hidden;
    
    /* Fixed height for the gallery strip */
    /* height: 150px;  */
    
    /* Optional: Nice rounded border */
    /* border: 1px solid #e0e0e0; */
    
    
    /* background-color: white; */
    
    /* Add smooth scrolling animation when JS changes scrollLeft */
    scroll-behavior: smooth; 
}

/* === 3. Image Item Sizing and Flex Control === */
.tc-grid-slider-box {
    grid-template-columns: 40px 1fr 40px;
    grid-template-rows: 200px;
    align-items: center;
}

figure.tc-gallery-scroll > figure {
    /* Force the item not to shrink below its defined size */
    flex-shrink: 0; 

    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    
    /* Set the fixed width (base size) for the item */
    flex-basis: 150px; 
    max-width: 250px !important;
    
    /* height: 200px;  */
    /* margin-right: 10px; Spacing between images */
    overflow: hidden; /* Hide anything outside the 150x150 box */
    border-radius: 4px;
}

figure.tc-gallery-scroll > figure:last-child {
    margin-right: 0; /* Remove margin on the last item */
}

figure.tc-gallery-scroll > figure img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the box without distortion */
}

/* === 2. Hide Scrollbar (Cross-Browser) === */
/* Chrome, Safari, newer Edge */
.tc-gallery-scroll::-webkit-scrollbar {
    display: none;
}
/* Firefox */
.tc-gallery-scroll {
    scrollbar-width: none;
}
/* IE/Legacy Edge */
.tc-gallery-scroll {
    -ms-overflow-style: none;
}

/* ------------------------------ */
/* GENERAL PATTERN STYLES         */
/* ------------------------------ */
.list-style-green {
    padding-left: 0 !important;
}
.list-style-green li {
    position: relative;
    padding-bottom: 1em;
}
.list-style-green li::marker {
    font-size: 0; /* Hides the default marker */
}
.list-style-green li::before {
    width: 24px;
    height: 24px;
    content: "";
    background: #8dc640;
    display: inline-flex;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTgxLjJweCIgaGVpZ2h0PSIxMzguM3B4IiB2aWV3Qm94PSIxNTggLTEyMC4zIDE4MS4yIDEzOC4zIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDE1OCAtMTIwLjMgMTgxLjIgMTM4LjM7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSJ3aGl0ZSIgZD0iTTMzNy40LTk4LjdsLTIwLjItMTkuOGMtMi40LTIuMy02LjMtMi4zLTguNywwbC04NC4xLDgyLjRsLTM1LjgtMzVjLTIuNC0yLjMtNi4zLTIuMy04LjcsMGwtMjAuMSwxOS44Yy0yLjQsMi4zLTIuNCw2LjEsMCw4LjVsNjAuMyw1OS4xYzEuMiwxLjIsMi44LDEuOCw0LjMsMS44YzEuNiwwLDMuMS0wLjYsNC4zLTEuOEwzMzcuNC05MC4yYzEuMS0xLjEsMS44LTIuNiwxLjgtNC4yQzMzOS4yLTk2LDMzOC41LTk3LjYsMzM3LjQtOTguN3oiLz48L3N2Zz4=);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    margin-right: 1em;
    border-radius: 6px;
}

/**
 * Before/After Image Slider Styles
 */

.before-after-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.before-after-slider {
	touch-action: none;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: ew-resize;
    user-select: none;
    aspect-ratio: 16 / 12;
}

.before-after-slider.square {
    aspect-ratio: 1 / 1;
}

.before-after-slider.portrait {
    aspect-ratio: 3 / 4;
}

.before-after-slider .wp-block-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.before-after-slider .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.before-image {
    z-index: 1;
}

.after-image {
    z-index: 2;
    clip-path: inset(0 0 0 50%);
}

/* Slider handle */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    margin: 0;
    width: 4px;
    height: 100%;
    background: white;
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    cursor: ew-resize;
    transition: transform 0.2s ease;
}

.slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-button svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Labels */
.before-label,
.after-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 4;
    pointer-events: none;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
}

.before-label,
.after-label {
    /* ... your existing styles ... */
    transition: opacity 0.1s ease-out;
}

/* Active state */
.before-after-slider.is-dragging {
    cursor: grabbing;
}

.before-after-slider.is-dragging .slider-button {
    cursor: grabbing;
}

/** ------------------------------ */
/*        MULTI-LINE GALLERY       */
/* ------------------------------ */
/* Essential CSS for hiding elements */
/* .tcg-image-gallery > figure:not(.gc-before-after) { */
.tcg-image-gallery > figure,
.tcg-image-gallery > div > figure {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    width: 100%; /* Default to full width on mobile */
}
.tcg-image-gallery > figure:not(.gc-before-after) {
    max-width: 150px !important;
}

/* .tcg-image-gallery > figure > img {
    max-width: 150px !important;
} */

/* The class used by JS to hide items */
.tcg-image-gallery > figure.hidden,
.tcg-image-gallery > div > figure.hidden {
    display: none;
    position: absolute !important;
    top: 0;
    left: -3000px;
    z-index: -1;
    opacity: 0;
    /* Note: We use display: none; for quick removal from layout flow, 
        but keep opacity transition for smooth visual effect if using a different method */
}

.tcg-filter-button {
    cursor: pointer;
}

.tcg-filter-button.active {
    background-color: #0164b4;
    color: #fff !important;
}


/* ------------------------------ */
/* 3. MOBILE STYLES (<= 767px) */
/* ------------------------------ */
@media screen and (max-width: 767px) {
    /* .admin-bar .header-main-blue {
        top: 32px;
    } */
    .header-main-blue {
        position: relative;
        /* top: 32px; */
    }

    /* .ctb-navigation__mobile-menu-open {
        color: #fff !important; 
    }

    .ctb-navigation__menu a {
        font-size: .9rem !important;
    } */

    /* .tc-custom-mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #fff;
        padding-bottom: 1.4rem;
        margin-bottom: 1rem;
        font-size: .8rem;
    } */
    .tc-custom-mobile-menu-footer {
        margin-top: 1rem;
        display: block;
    }
    .tc-custom-mobile-menu-footer a {
        color: #8dc640 !important;
    }
    .tc-custom-mobile-menu-header p {
        padding-left: 1.5rem
    }
    .tc-custom-mobile-menu-header p > a {
        color: #8dc640 !important;
    }

    .tc-custom-mobile-menu-header p::before {
        content: ''; /* Required for pseudo-elements */
        display: inline-block;
        width: 20px;   /* Size of the icon */
        height: 20px;  /* Size of the icon */
        position: absolute; /* Position the icon relative to the paragraph */
        left: 0;       /* Align to the left edge of the paragraph */
        top: 50%;      /* Vertically center the icon */
        transform: translateY(-50%); /* Fine-tune vertical centering */
        color: #fff;
        
        /* Embed the SVG directly as a Data URL */
        background-image: url('./images/phone-icon-white.png');
        
        background-repeat: no-repeat;
        background-size: contain; /* Ensure the SVG scales within the defined width/height */
    }

    .box-btn-01 > strong {
        visibility: visible;
        background-color: #002e62;
        color: inherit;
    }
    .box-btn-02 > strong {
        visibility: visible;
        background-color: #1986c8;
        color: inherit;
    }
    .box-btn-03 > strong {
        visibility: visible;
        background-color: #8dc640;
        color: inherit;
    }
    .box-btn-04 > strong {
        visibility: visible;
        background-color: #041f50;
        color: inherit;
    }
    .box-btn-05 > strong {
        visibility: visible;
        background-color: #41abe1;
        color: inherit;
    }
    .header-black-above {
        padding: 10px 10px 50px;
    }
    .header-black-above .header-phone-number {
        right: auto;
        bottom: -30px;
    }
    .header-black-above p {
        line-height: 1.2;
        font-size: 12px !important;
    }

    .on-mobile-center {
        position: absolute;
        left:30%;
        right: 30%
    }

    .grid-h-slide {
        grid-auto-columns: minmax(70%, 1fr);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* .on-mobile-text-center {
        text-align: center !important;
        align-self: center !important;
    } */
    .footer-cols {
        flex-wrap: wrap !important;
    }
    .f-col-1, .f-col-2, .f-col-3, .f-col-4 {
        width: 100%;
        order:1;
    }
    .f-col-4 {
        order: -1;
    }
    .footer-block-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Before/After Image Slider Styles */
    .before-after-container {
        padding: 0 0.5rem;
    }
    
    .before-label,
    .after-label {
        bottom: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .before-label {
        left: 10px;
    }
    
    .after-label {
        right: 10px;
    }
}

/* ------------------------------ */
/* 2. TABLET STYLES (<= 959px) */
/* ------------------------------ */
@media screen and (max-width: 959px) {
    .block-quote-cta.row {
        flex-direction: column;
    }

    .tc-custom-mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #fff;
        padding-bottom: 1.4rem;
        margin-bottom: 1rem;
        font-size: .8rem;
    }

    .ctb-navigation__mobile-menu-open {
        color: #fff !important; 
    }

    .ctb-navigation__menu a {
        font-size: .9rem !important;
    }
	.mobile-top-menu-bg-color {
		background-color: rgba(5,31,79,1) !important; 
	}
}

.maps-iframe-wrapper iframe {
	margin-top: -46px;
}