/* === Adjusts positioning and side margins for one specific Kadence Row on desktop/tablet view === */
@media (min-width: 768px){
.kb-row-layout-wrap.wp-block-kadence-rowlayout.kb-row-layout-id34059_cdc33d-82 {
    margin-top: -65px;
    margin-left: 50px;
    margin-right: 50px;
}
}

/* Clips images to a custom polygon shape and ensures they cover container */
.immg{
    clip-path: polygon(0 0, 100% 0, 100% 90%, 10% 90%, 0 100%) !important;
object-fit:cover;}

/* Adds side padding and ensures header stays above other elements */
@media only screen and (min-width: 560px) {
    .site-header {
        padding-right: 10px;
        padding-left: 10px;
        
        z-index: 9999;
    }
}

/* Adds a 2px bottom border to the masthead using the high-contrast background color */
#masthead {
    border-bottom: 2px solid var(--wp--preset--color--background-high-contrast);

}

/* Adjusts top/bottom padding for header, main content, and footer on screens ≥ 560px */
@media only screen and (min-width: 560px) {
    .site-header, .site-main, .site-footer {
        padding-top: 15px;

        padding-bottom: 0px;
       
    }
}

/* === Ensure open mobile Mega Menu appears above all other elements */
    #mega-menu-wrap-menu-1 .mega-menu-toggle.mega-menu-open + #mega-menu-menu-1 {
        
        z-index: 9999;
    }

/* Hide page titles on specific pages */
.page-id-138 .entry-title,
.page-id-139 .entry-title,
.page-id-17957 .entry-title,
.page-id-261 .entry-title,
.page-id-34979 .entry-title,
.post-34059 .entry-title,
.page-id-9842 .entry-title,
.page-id-7 .entry-title,
.page-id-8 .entry-title,
.page-id-9157 .entry-title,
.page-id-23575 .entry-title,
.page-id-51 .entry-title,
.page-id-64 .entry-title {
    display: none;
}

/* Remove top padding on the same pages */
.page-id-138 .site-main,
.page-id-139 .site-main,
.page-id-17957 .site-main,
.page-id-261 .site-main,
.page-id-34979 .site-main,
.post-34059 .site-main,
.page-id-9842 .site-main,
.page-id-7 .site-main,
.page-id-8 .site-main,
.page-id-9157 .site-main,
.page-id-23575 .site-main,
.page-id-51 .site-main,
.page-id-64 .site-main {
    padding-top: 0 !important;
}

/* Ensures the site header wrapper sits above lower z-index elements */
#masthead .site-header-wrapper {
z-index:9;	
}
#toggle-menu {
display:none !important;	
}

/* Add space between Request a Quote and Contact Us */
#mega-menu-item-24279 {
  margin-right: 8px !important; /* adjust space as needed */
}

/* Request a Quote - Soft Green */
#mega-menu-item-24279 > a.mega-menu-link {
  background: #6bbf59 !important;
  color: #ffffff !important;
  padding: 10px !important;
  border-radius: 20px;
  font-weight: 700;
  line-height: normal !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Changes background color and slightly lifts this specific Mega Menu item on hover */
#mega-menu-item-24279 > a.mega-menu-link:hover {
  background: #57a94a !important;
  transform: translateY(-1px);
}

/* Contact Us - Soft Blue */
#mega-menu-item-34374 > a.mega-menu-link {
  background: #66b3ff !important;
  color: #ffffff !important;
  padding: 10px !important;
  border-radius: 20px;
  font-weight: 700;
  line-height: normal !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover effect for specific Max Mega Menu item */
#mega-menu-item-34374 > a.mega-menu-link:hover {
  background: #4a9de6 !important;
  transform: translateY(-1px);
}

/* Match Contact Us spacing to Request a Quote for mobile */
#mega-menu-item-34374 {
  margin-right: 8px !important;
}

/* Prevent horizontal scrolling and set full-width */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Universal box-sizing so padding/border don’t cause width overflows */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Make sure media fits within the screen */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Hide redundant homepage link in site-info */
.site-info .site-name {
    display: none !important;
}
.site-info .comma {
    display: none !important;
}
