/* styles.css */
body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    color: #FFF;
    background-color: #1c1917;
    font-size: 16px;
    /* background-color: #e0d9cc; */

}
::selection {
    caret-color: transparent;
    outline: none;
}
* {
    border-radius: 4px;
}
h5, h6 {
    font-size: 18px;
    margin: 0 0 15px 0;
    padding: 0;
}
h5 {
    font-size: 16px;
}
.top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1c1917;
    z-index: 20;
}
header {
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    box-sizing: border-box;
    padding: 30px 15%;
    transition: 0.5s all;
    display: flex;
    justify-content: space-between; /* Distributes space between logo and nav */
    align-items: center; /* Aligns items vertically */
}

.logo img {
    box-sizing: border-box;
    height: 80px;
}

.scrolled {
position: fixed;
background-color: rgba(0, 0, 0, 0.5);
}

.scrolled .logo img {
    height: 50px;
}

nav {
    margin-top: 0; /* Resetting margin-top for proper vertical alignment */
}

/* Base styling for navigation */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    position: relative; /* Needed for dropdown positioning */
    
    margin: 0 8px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s all;
}
nav ul li a {
    display: block;
    padding: 15px;
}
nav ul li:hover {
    background-color: rgba(0, 0, 0, 0.5);
    color: #f8e6c6;
}
nav ul .drop:hover {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
/* Dropdown container */
nav ul li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none; /* Initially hidden */
    background-color: #1c1917;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    border-top-left-radius: 0;
    overflow: hidden;
    z-index: 10;
    animation: slideDown 0.3s ease; /* Animation effect */
    box-sizing: border-box;
    padding: 15px;
}

/* Dropdown items */
nav ul li .dropdown li {
    padding: 0;
    margin: 0;
    white-space: nowrap; /* Prevent items from wrapping */
    transition: background-color 0.3s ease;
    color: white;
}

nav ul li .dropdown li:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: #f8e6c6;
}

/* Show dropdown on hover */
nav ul li:hover .dropdown {
    display: block; /* Display dropdown on hover */
}

/* Keyframes for animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.call-now {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
}
.call-now:hover {
    transform: scale(1.05);
    background-color: #f8e6c6;
    color: #322C27;
    font-weight: 700;
}
.social {
    padding: 15px 0;
    color: #f8e6c6;
}
.social:hover {
    background-color: transparent;
    
}



.hero {
    position: relative;
    height: 75vh;
    overflow: hidden;
    background-color: #1c1917;
    background-attachment: fixed;
    /* Creates the pointer effect */
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 60px), 50% 100%, 0% calc(100% - 60px));
}
.subhero {
    height: 140px;
    color: #797067;
    clip-path: none;
}
.large {
    font-size: 20px;
}
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s all;
}

.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    background-attachment: fixed;
    transform: scale(1.05); 
}
.right {
    float: right;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;

    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
        font-weight: 100;
        font-style: normal;
        
      
}

.hero-overlay div {
    overflow: hidden;
    margin-top: 30px;
}
.hero-overlay div span,
.button {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    margin: 5px;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s all;
}
.hero-overlay div span:hover,
.button:hover {
    transform: scale(1.1);
}
.cta {
    text-align: center;
    margin: 0 auto;
    position: relative;

}
.hero-overlay h1 {
    margin: 0;
    padding: 0;
    font-size: 30px;
}
.hero-overlay h2 {
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 45px;
}
.hero-overlay p {
    padding: 0;
    margin: 5px 0;
}
.logo_img {
    height: 60px;
}
.hero-overlay a:hover {
    color: #f8e6c6;
}


.intro {
    text-align: center;
    text-align: left;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    padding: 30px 0;
}
.intro img {
    opacity: 0.5;
    
}
.left-c,
.right-c {
    position: relative;
    overflow: hidden;
    float: left;
}
.left-c {
    box-sizing: border-box;
    width: 60%;
}
.right-c {
    box-sizing: border-box;
    width: 40%;
}
.right-c span,
.left-c span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: border-box;
    padding: 60px;
    width: 100%;
}

h1 {
    line-height: 1.3em;
    color: #f8e6c6;
    border-left: 2px solid #f8e6c6;
    padding-left: 15px;
}
.gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0 0 30px 0;
}
.gallery div {
    width: 33.333%;
    overflow: hidden;
    height: 200px;
    
}

.gallery div img {
    width: 100%;
    transition: 0.5s all;
    opacity: 0.5;

}
.gallery div:hover > img {
    transform: scale(1.1);
}

.hero_parralax {
    position: relative;
    width: 100%;
    height: 50vh;
    background-image: url(../img/kitchen-distinction-award.jpg);
    background-size: cover;
    background-position: middle;
    background-attachment: fixed;
    clip-path: polygon(0% 10px, 100% 10px, 100% calc(100% - 60px), 50% 100%, 0% calc(100% - 60px));
}

.active { color: #f8e6c6; font-weight: bold; } 
.active:hover { background-color: transparent; }

.active a {
    color: #f8e6c6!important;
}

footer {
    padding: 60px 0;
    background-color: #1c1917;
    overflow: hidden;
    position: relative;
    text-align: center;
    color: #797067;
    /* Creates the reverse pointer effect */

}


.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Makes it responsive */
    padding: 10px 15%;
}

.footer-menu,
.footer-contact,
.footer-logos {
    flex: 1;
    min-width: 250px; 
}
.footer-menu {
    border-left: 2px solid #322C27;
    padding-left: 15px;
}
.footer-contact {
    border-right: 2px solid #322C27;
    padding-right: 15px;
}
.footer-logos img {
    box-sizing: border-box;
    padding: 5px;
    width: 90px;
    opacity: 0.7;
    transition: 0.3s;
}
.footer-logos img:hover {
    transform: scale(1.05);
    opacity: 0.9;
    cursor: none;
}
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Aligns menu items to the left */
}

.footer-menu li {
    margin: 5px 0;
    font-weight: bold;
}

footer a {
    color: #797067;
    text-decoration: none;
}

footer a:hover {
    text-decoration: none;
    color: #ccc;
}

.footer-contact {
    text-align: right; /* Aligns contact info to the right */
}

.footer-contact p {
    margin: 5px 0;
}

.footer-copyright {
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    border-top: 1px solid #322C27;
    padding-top: 10px;
    color: #443c36;
}
.footer-logo {
    width: 150px;
}
.footer-copyright a {
    color: #443c36;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 10;
}
.content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 60px 15%;
    line-height: 28px;
    overflow: hidden;
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 60px), 50% 100%, 0% calc(100% - 60px));
    
}
.sub_page,
.sub_page_gallery {
    display: flex;
    box-sizing: border-box;
    padding: 60px 15%;
    position: relative; 
}

.sub_page::before,
.sub_page_gallery::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/vilhelmarchitectural.jpg');
    background-attachment: fixed;
    background-size: cover;
    opacity: 0.2; 
    z-index: -1; 
}
.sub_page_gallery::before {
    background-image: url('../img/vilhelm-gallery-nz.jpg');    
}

.tel a {
    font-weight: 100;
    transition: 0.5s all;
    display: none;
}
.tel:hover a {
    display: inline-block;
}
h3 {
    color: #797067;
    font-size: 24px;
}


.form_wrap {
    position: relative;
    top: -100%;
    left: 50%;
    width: 20%;
    background: rgba(0, 0, 0, 0.3);
    height: auto;
    box-sizing: border-box;
    padding: 30px;
    display: block;
    /* transition: 0.3s all; */
    border-right: 2px solid #797067;
    font-size: 14px;
    z-index: 25;
    
}

.form-container {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0;
    transition: 0.3s;
}
  
  .form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }
  

.form-container form {
    position: relative;
    box-sizing: border-box;
    padding: 15px;
    overflow: hidden;
    display: block;
    background-color: rgba(0, 0, 0, 0.3);
    margin: 0 0 60px 0;
}


  .form-group {
    position: relative;
    width: 50%;
    float: left;
    box-sizing: border-box;
    padding: 8px 15px;
  }
  
  .form-group label {
    display: block;
    margin: 5px 0;
    /* font-weight: bold; */
    color: #797067;
  }
  
  .form-group i {
    color: #797067;
    margin-right: 5px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    outline: none;
    border-color: #797067;
  }
  
  .form-group textarea {
    resize: none;
  }
  
  .form-container button {
    background-color: #797067;
    color: #322C27;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: calc(50% - 30px);
    font-size: 16px;
    margin-bottom: 15px;
    float: left;
    margin: 15px;
  }
  
  .form-container button:hover {
    background-color: #645b52;
  }
  
.formbutton {
    position: relative;
    display: block;
}


/* Hamburger Styles */
.hamburger {
    cursor: pointer;
    display: inline-block;
  }
  
  .bar {
    width: 30px;
    height: 4px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
  }
  
  /* Menu Styles */
  .menu {
    background-color: #f4f4f9;
    padding: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }
  
  .menu.hidden {
    display: none;
  }
  
  /* Animation for Open State */
  .menu.open {
    display: block;
  }
  
.icon {

    margin: 30px;
    font-size: 22px;
    cursor: pointer;
}

.gallery div {
    position: relative;
    cursor: pointer;
}
.gallery div b {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 5;
    font-size:24px;
    text-align: center;
    line-height: 35px;
    color: #f4f4f9;
    text-shadow: 1px 1px 1px #322C27;
    
}
.connect-with-us {
    text-align: center;
    padding: 30px 0;
    background-color: #797067;
    border-radius: 0;
    color: #201d19;
    font-weight: bold;
  }
  

  
/* Grid layout */

.gallery-container {
    margin: 60px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    
    margin: auto;
}

.image-grid img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
    opacity: 0.5;
}

.image-grid img:hover {
    transform: scale(1.02);
    opacity: 1;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 85;
}

.modal img {
    max-width: 90%;
    max-height: 80%;
}

button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#prev {
    left: 20px;
}

#next {
    right: 20px;
}



.services {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

.service {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0;
    box-sizing: border-box;
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    transition: 0.3s all;
}

.service.reverse {
    flex-direction: row-reverse;
}

.service_img {
    width: 40%;
    height: 440px;
    box-sizing: border-box;
    padding: 0;
    object-fit: cover;
    position: relative;


}
.service_img div {
    background-image: url('../img/residential-new-builds.jpg');
    width: 80%;
    height: 100%;
    margin: 0 auto;
    background-size: cover;
}
.service-text {
    width: 60%;
    box-sizing: border-box;
    padding: 60px;
}
.service:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}


.highlight {
    box-sizing: border-box;
    border: 2px solid #797067;
}


.team {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 60px;

}

.team-member {
    flex: 1 1 calc(50% - 2rem); /* Responsive sizing */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center; /* Center-align content */
    box-sizing: border-box;
    padding: 30px;
    transition: 0.3s;
}
.team-member:hover,
.form-container:hover {
    transform: scale(1.05);
}
.team-member h3 {
    font-size: 16px;
}
.team-img img {
    width: 50%; /* Ensures images are responsive */
    height: auto;
    opacity: 0.8;
    filter: grayscale(100%);
}

.team-text {
    padding: 1rem;
}

.homeimg {
    width: 100%;
    box-sizing: border-box;
    padding: 0 60px 0 0;
}
