/*
Theme Name: Benson remodeling Theme
Author: Jeromy Condon
Description: Custom Home Remodeling Theme
Version: 1.0
*/


/* 
===============================
HEADER AREA
===============================
*/
header {
    background-color: #eeeeee;
    background-image: repeating-linear-gradient(
    45deg,
    #ddd,
    #ddd 1px,
    transparent 2px,
    transparent 3px
    );
    padding: 20px 0;
    border-top: solid 5px #556b2f;
}

.logo img {
    max-width: 150px;
}

header .logo {
 text-align:center;
 padding: 0;
}


/* 
===============================
NAVIGATION AREA
===============================
*/
.sticky-nav {
    background-color: #e1e1e1;
    position: sticky;
    z-index: 1000;
    top:0;
    width: 100%;
    box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

.sticky-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.sticky-nav ul li {
    margin: 0 1px;
    position: relative;
    z-index:100;
}

.sticky-nav ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 20px;
}

.sticky-nav ul li a:hover {
    background: #e9e9e9;
    color: #556b2f;
}

.sticky-nav ul li.current-menu-item a,
.sticky-nav ul li.current-menu-parent > a {
    background: #e9e9e9;
    color: #556b2f;
}

.sticky-nav ul li.menu-item-has-children {
    //margin-right: 20px;
}

/* Dropdown indicator */
.sticky-nav ul li.menu-item-has-children::after {
    content: '⌄';
    font-size: 0.8em;
    margin:0;
    color: #333;
    transition: color 0.3s ease;
    position: absolute;
    z-index: 110;
    top: 7px;
    right: 5px;
}

/* Dropdown menu styles */
.sticky-nav ul li {
    position: relative;
}

.sticky-nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    min-width: 200px;
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sticky-nav ul li:hover ul {
    display: block;
}

.sticky-nav ul li ul li {
    margin: 0;
    display: block;
}

.sticky-nav ul li ul li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sticky-nav ul li ul li a:hover {
    background: #E8E8E6;
    color: #556b2f;
}

/* 
===============================
MOBILE SLIDE OUT MENU
===============================
*/
/* .wrap {
  height: 100vh;
  width: 100vw;
  background: #fff;
} */

.toggle {
  color: #333;
  display: none;
  padding: 10px;
  position: absolute;
  z-index: 900;
  top: 45px;
  left: 15px;
  cursor: pointer;
}

.toggle img {
    display: block;
}

.mobile-nav {
  background: #eee;
  background-image: repeating-linear-gradient(
    45deg,
    #ddd,
    #ddd 1px,
    transparent 2px,
    transparent 3px
    );
  width: 250px;
  position: fixed;
  z-index: 1500;
  top:0;
  left:-250px;
  opacity: 0;
  bottom:0;
  transition: all .25s;
  border-right: solid 1px #ddd;
  padding-top: 60px;
}

.open .mobile-nav {
  opacity: 1;
  left: 0;
}

.mobile-nav ul {
  /* background: #555; */
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav ul.sub-menu {
  padding: 0 0 0 40px;
  display: none;
  //border-left: solid 20px #ddd;
}

.mobile-nav li.menu-item-has-children.open > ul.sub-menu {
  display: block;
}

.mobile-nav ul.sub-menu li:last-child {
  border: none;
}


.mobile-nav li:first-child {
  border-top: solid 3px #ddd;
}

.mobile-nav li {
  border-bottom: solid 3px #ddd;
}

.mobile-nav a {
  text-decoration: none;
  display:block;
  padding: 15px 30px;
  text-align:center;
  background: #eee;
  color: #555;
  transition: all .25s;
}

.mobile-nav a:hover {
  background: lighten(#555, 70%);
}

.mobile-nav li.menu-item-has-children {
    position:relative;
}

.mobile-nav li.menu-item-has-children::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 18px;
    color: #555;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.mobile-nav li.menu-item-has-children.open::after {
    content: '-';
}

.mobile-nav .toggle {
    top: 10px;
}

/* 
===============================
MAIN CONTENT AREA
===============================
*/
.main .container {
    margin: 0 auto;
}

.content-area {
    padding: 0 30px;
}

img {
    max-width: 100%;
    height:auto;

}

.contact-us-button {
    position: absolute;
    top: 0px;
    right: 20px;
    z-index: 110;
    background: #556b2f;
}

.contact-us-button a {
    display: block;
    padding: 8px 15px 10px 15px;
    margin-top: -1px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: solid 1px #556b2f;
    font-size: 14px;
}

.contact-us-button a:hover {
    background-color: #fff;
    color: #556b2f;
}

.hero-image-area {
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right:0;
    bottom:0;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 20px;
    z-index: 20;
    display:flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay > div {
    max-width: 800px;
    text-align: center;
    background-color: rgba(255,255,255,.2);
    padding: 20px;
    margin: 0 30px;
}

.hero-overlay .line-element {
    border: solid 3px #aaa;
    padding: 20px 0;
}


.hero-image-area video {
  max-width: 100%;
  height: auto;
  display:block;
  pointer-events: none;
}


.masonry-area {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
}

.masonry-area.services .one {
    background: url(assets/imgs/kitchen-bg.jpg) no-repeat center center;
    background-size: cover;

}

.masonry-area.services .two {
    background: url(assets/imgs/vans-bg.jpg) no-repeat center center;
    background-size: cover;

}

.masonry-area.services .three {
    background: url(assets/imgs/dirt-bg.jpg) no-repeat center center;
    background-size: cover;

}

.masonry-area.services .four {
    background: url(assets/imgs/bathroom-bg.jpg) no-repeat center center;
    background-size: cover;

}

.masonry-area > div {
    flex: 1 1 calc(50% - 20px);
    min-height: 500px;
}

.masonry-area > div > div {
    background: rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    color: #fff;
    height:100%;
    width:100%;
    display:flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.masonry-area > div:hover > div {
    background: rgba(0, 0, 0, 0.4);
}



.trust-area {
    background: #eee;
    padding: 30px;
}

.trust-area .container {
    max-width: 1000px;
    margin: 0 auto;
    text-align:center;
}


.subfooter-area {
    background: #525F3C;
    color: #fff;
    padding: 30px;
}

.subfooter-area .container {
    max-width: 1200px;
    margin: 0 auto;
    display:flex;
}

.subfooter-area .container > div {
    flex: 1;
    width: 33.33%;
}

.footer-area {
    background: #2B3618;
    color: #aaa;
    padding: 15px 30px;
    text-align: center;
}

.footer-area .license-num {
    margin-top: 5px;
    font-size: 12px;
}

.footer-area .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.subfooter-area a {
    color: #fff;
    text-decoration: none;
}

.foogallery {
    margin-bottom: 20px;
}

/* 
===============================
MEDIA QUERY AREA
===============================
*/

@media (max-width: 1000px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.44em;
    }

    .sticky-nav ul li a {
        padding: 8px 10px;
    }

    .sticky-nav ul li.menu-item-has-children > a {
        padding-right: 20px;    
    }
}

@media (max-width: 768px) {

    .header-placeholder {
        position: sticky;
        top: 0;
        z-index: 1000;
        height: 140px; /* Keep this the same as your large header height */
        background: transparent; /* Let the inner header handle colors */
    }

    .toggle {
        display: inline-block;
    }

    .sticky-nav {
        display: none;
        position:static;
    }

    header {
        position: static;
        z-index: 1000;
        top:0;
        width:100%;
        border-bottom: solid 1px #ccc;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .scrolled header .logo img {
        max-width: 75px;
        transition: all 0.3s ease;
    }

    .scrolled .toggle {
        top:15px;
        transition: all 0.3s ease;
    }

    .scrolled header {
        padding: 10px 0;
        transition: all 0.3s ease;
    }

    .scrolled .mobile-nav .toggle {
        top:10px;
    }

    .hero-overlay > div {
        padding: 10px;
        margin: 0;
        max-width: 500px;
    }

    .hero-overlay h1 {
        font-size: 1.8em;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 14px;
    }

    .mobile-nav li.menu-item-has-children::after {
        top: 2px;
    }

    .button {
        padding: 5px 15px;
    }
    header {
        padding: 10px 0;
    }

    .header-placeholder {
        height: 92px; /* Adjust this if you change the header height */
    }
    
    .logo img {
        max-width:100px;
    }   

    .contact-us-button {
        right: 0;
    }
    .contact-us-button a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .toggle {
        top: 25px;
        left: 10px;
    }

    .mobile-nav a {
        padding: 5px 10px;
    }

    .masonry-area {
        display: block;
    }

    .masonry-area > div {
        flex:none;
        min-height:auto;
    }

    .masonry-area > div > div {
        display: block;
    }

    .subfooter-area .container {
        display:block;
    }

    .subfooter-area .container > div {
        width: 100%
    }
}

@media (max-width: 500px) {

    input[type="file"] {
        width: 100%;       /* Forces it to respect parent width */
        max-width: 100%;   /* Hard limit */
        display: block;    /* Removes the inline white-space gap */
        overflow: hidden;  /* Cuts off long file names that might push the width */
    }

    .hero-overlay {
        padding:20px;
    }

    .hero-image-area {
        height: 500px;
    }

    .hero-overlay .line-element {
        padding: 15px;
    }

    .hero-image-area video {
        object-fit: cover;
        object-position: center;
        width:100%;
        height:100%;
    }
}