/*
Theme Name: Builders Windows & Doors
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: Custom theme for Builders Windows & Doors
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: builders-windows-doors
*/



.site-header {
    position: relative; /* Ensure the header is relatively positioned */
    overflow: hidden;
}



#masthead {
    background-size: cover;
    background-repeat: no-repeat;
}











.custom-header-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}









.site-branding,
.main-navigation {
    position: relative; /* Ensure site branding and navigation are positioned relative to the header */
    z-index: 1; /* Ensure site branding and navigation are above the video background */
}



#masthead {
    /* Existing styles */
    position: relative; /* Ensure the parent container is relatively positioned */
    overflow: hidden; /* Ensure the overflow is hidden to prevent the image from overflowing its container */
}

#background-zoom  {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('path/to/your/image.jpg'); /* Replace 'path/to/your/image.jpg' with the path to your background image */
    background-size: cover;
    background-position: center;
    animation: zoomEffect 60s forwards;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1); /* Adjust the scale factor as needed */
    }
}


















/* Hide the navigation initially */
.main-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: #000; /* Change background color as needed */
    transition: height 0.3s ease;
    scroll-behavior: smooth;

   
}



/* Show the navigation when expanded */
.main-navigation.expanded {
    height: 100vh; /* Cover the entire viewport */
    overflow-y: auto; /* Enable scrolling if necessary */
}

.wrap-top-nav {
  display: flex;
  justify-content: end;
  padding-left: 3rem;
  padding-right: 3rem;
  margin-top: 2rem;
}

.site-branding {
  max-width: 216px;
  position: relative;
  float: right;
}


.site-title {
  display: none;
}



.menu-toggle {
  position: fixed;

  z-index: 999;
  background-color: #000;
  color: #fff;
  border: none;
    border-top-color: currentcolor;
    border-right-color: currentcolor;
    border-bottom-color: currentcolor;
    border-left-color: currentcolor;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  height: 38px;
}


.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 40px;
    display: flex;
    align-items: center;
}

.burger-icon span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

.menu-block {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #333;
    color: white;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
}

.menu-open .menu-block {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.menu-open .burger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .burger-icon span:nth-child(2) {
    opacity: 0;
}

.menu-open .burger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}



.menu-icon::before {
    content: "\2630"; /* Unicode for the hamburger icon */
}

.menu-open .menu-icon::before {
    content: "\2715"; /* Unicode for the cross icon */
}

.menu-block {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all .1s cubic-bezier(.19,1,.22,1);
  transition-delay: 0s;
transition-delay: 1.4s;
scroll-behavior: smooth;
}

.menu-block.expanded {
    display: block;
    transform: translateY(-100%);
}


/* Initial styles for the menu button */
.menu-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1000;
    transition: background-color 0.3s ease; /* Add transition for smoother color change */
}

/* Styles for the burger icon */
.menu-button .burger-icon {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: transform 0.3s ease; /* Add transition for smoother rotation */
}

/* Styles for the cross icon */
.menu-button .cross-icon {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background-color: #333;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: transform 0.9s ease; /* Add transition for smoother rotation */
}

/* Styles for when the menu is expanded */
.menu-button.expanded .burger-icon {
    display: none;
}

.menu-button.expanded .cross-icon {
    display: block;
}









.menu-main-menu-container {
  height: 100%;
  overflow: hidden;
}


/* Example CSS for menu styling */
.menu {
    display: inline-block;
    width: 50%; /* Adjust as needed */
}

.menu-item {
    display: block;
    margin-bottom: 10px;
}

/* Example CSS for splitting menu into two columns */
.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about-link,
.contact-link,
.faq-link {
    width: calc(50% - 7px); /* Two columns with some spacing */
}



#primary-menu {
  display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}

ul#primary-menu li a {
  color: #fff;
  font-weight: 300;
  line-height: 1.1;
  font-size: clamp(23px,1.805555555555556vw,100vw);
  font-family: var(--font-primary);
  text-transform: uppercase;
  display: flex;
    align-items: center;
}

ul#primary-menu li{
position: relative;
 padding: calc(1rem + 1vw);
color: #fff;
height: 100%;
z-index: 1;
-ms-flex-grow: 1;
flex-grow: 1;
text-align: center;
border-bottom: 1px solid #222;
display: flex;
height: 100%;
width: 100%;
padding-left: 10rem;
}

ul#primary-menu li:last-child{
	border-bottom: none;
}

.menu-open {
    overflow: hidden;
}





.page-title-content {
    margin-top: 50vh;
    color: #fff;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.90), transparent);
    /* Optional styling for better visual presentation */
    color: white; /* If the text color needs to be white */
    padding: 80px; /* Adjust padding as needed */
    position: relative;
}


.content-card h1{
    color: #fff;
}


h1.custom-page-title, h1.page-title{
    font-size: 3.5rem;
    line-height: 1.15;
    position: relative;
    font-family: var(--font-secondary);
    font-weight: 400;
    color: #fff;
    max-width: 828px;
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Ensure compatibility */
}

h1.custom-page-title::after, h1.page-title::after, h2.wp-block-heading::after, .kt-inside-inner-col h2:after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 60px;
    height: 7px;
    background-color: #ED1C24;
}



/* ===========================================================New menu */





/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Slide Menu */
.slide-menu {
    position: fixed;
    top: 0;
    left: -500px;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: #212121;
    color: #fff;
    z-index: 100;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;

}

.slide-menu.active {
    left: 0;
}

/* Menu Panels */
.menu-panel {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-panel.hidden {
    display: none;
}

.menu-panel.submenu--active {
    opacity: 1;
    visibility: visible;
    z-index: 2; /* Ensure this panel is above others */
    position: relative; /* Required for proper layout */
}

/* Main Menu */
.menu-panel.main-menu {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

/* Buttons */
.menu-close, .menu-open, .back-button {
    font-size: 34px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    margin: 10px;
}

.back-button {
  text-align: left;
  position: absolute;
  top: -4.4rem;
}

#menu-close {
  text-align: right;
  padding-right: 15px;
}

/* Menu List Styling */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.menu-list li a {
    text-decoration: none;
color: #fff;
display: block;
text-transform: uppercase;
font-weight: 600;
font-size: clamp(.875rem,calc(.25rem + .75vw),1.125rem)!important;
}

.menu-list li a:hover{
     color:#8F8E8E;
}


.about-link a, .contact-link a {
  color: #666 !important;
  font-weight: 500 !important;
  font-size: clamp(.775rem,calc(.15rem + .65vw),0.125rem)!important;
}

.about-link a:hover, .contact-link a:hover{
    color:#B7B7B7!important;
}

li.about-link, li.contact-link {
  width: 100%;
}

.wrap-site-navigation {
  z-index: 100;
  position: fixed;
  top: 0;
}

.menu-open .material-symbols-outlined {
  font-size: 80px;
color: #fff;
line-height: 80px;
background: #ea1a23;
}




/* Responsive Design */
@media (max-width: 768px) {
    .slide-menu {
        width: 100%;
    }
}








