body, html {
    font-family: "Times New Roman", Times, serif;
    margin-left: 0px;
    padding: 0;
    
}



/* logo */
.mortgage-link {
    visibility: hidden;
}


.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust size of the logo */
    width: auto;
    margin-right: 10px; /* Space between logo and text */
}

.logo-text {
    color: #1c4a2c !important;
}

.logo-text h1 {
    font-size: 24px; 
    margin: 0;
    letter-spacing: 1px; /* Slight spacing between letters */
}

.logo-text p {
    font-size: 10px; /* Small font for RENOVATIONS */
    margin: 0;
    letter-spacing: 5px; /* Wide spacing for RENOVATIONS */
    color: #167a39/* Light gray text */
}

img.logoPic {
filter: brightness(90%) contrast(120%);
width: 100px; /* Adjust size as needed */
height: auto; 
background-color:  #1c4a2c !important;
margin-left: 30px;
}



/* General Navbar Styling */
.navbar {
    position: sticky; /* Make navbar sticky */
    top: 0; /* Stick to the top of the viewport */
    z-index: 1000; /* Ensure it stays on top of other content */
    background-color: #ffffff; /* Add a background color */
    padding: 10px 20px; /* Add spacing */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow */
}

.navbar-brand img {
    max-height: 90px;
    max-width: 150px;
    background-color: #1c4a2c;
    margin-left: 30px;
}

/* Center the navbar items with space on the right */
.navbar-nav {
    flex-grow: 1;
    justify-content: flex-end;
}

/* Navbar Links */
.navbar .nav-link {
    color: #1c4a2c !important;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    position: relative;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for navbar links */
.navbar .nav-link:hover {
    border-top: 2px solid #dead3b;
    border-bottom: 2px solid #dead3b;
    color: #167a39 !important;
}

/* Active link styling */
.navbar .nav-link.active {
    color: #167a39 !important;
}

/* Dropdown items under Services */
.navbar .dropdown-item {
    color: #1c4a2c !important; /* Force green color for dropdown items */
    display: flex;
    align-items: center;
    font-weight: bold;
}

/* Icons within the dropdown */
.navbar .dropdown-item i {
    color: #dead3b !important; /* Force green color for icons */
    margin-right: 10px; /* Add some space between the icon and text */
}

/* Hover effect for dropdown items */
.navbar .dropdown-item:hover {
    background-color: #f0f0f0; /* Optional background change on hover */
    color: #167a39 !important;
}

/* Styling for the Mortgage link */
.mortgage-link {
    margin-left: 50px;
}

/* Adjust space between the links */
.nav-item {
    margin-right: 20px;
}

.nav-item:last-child {
    margin-right: 0;
}
@media (max-width: 767px) {

   
    .navbar {
        padding: 10px;
        flex-wrap: nowrap;
    }

    .navbar-toggler {
        margin-left: auto; /* Align the toggler to the right */
        text-align: right;
     
    }

    .navbar-toggler-icon {
        font-size: 1rem;
    }

    .navbar-collapse {
        width: 100%;
        margin-top: 10px;
    }

    .nav-item {
        margin-right: 0;
    }

    .logo img.logoPic {
        margin-left: 1px; /* Reduce margin for smaller screens */
    }

    .logo {
        margin-right: auto; /* Ensure alignment remains consistent */
    }
}

/*end of navbar*/


/* Image Slider Styles */
.image-slider {
    position: relative;
    max-width: 100%;
    height: 700px; /* Adjust based on your image size */
    overflow: hidden;
   
   
}

.slider-container {
    position: relative;
    height: 100%;
}


.slider-image {
    width: 100%;
    height: 100%;
}
.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-controls .prev,
.slider-controls .next {
    cursor: pointer;
    color: #dead3b;
    font-size: 3rem;
    padding: 10px;
    background-color: rgba(14, 73, 24, 0.5);
    border-radius: 50%;
    margin: 0 20px;
}

.slider-controls .prev:hover,
.slider-controls .next:hover {
    background-color: rgba(19, 95, 57, 0.8);
}

/*end of image slider */

/*background: linear-gradient(135deg, #033816, #05a859);*/


/*mesage box */
.message-box {
    position: absolute;
    top: 80%; /* Position it at 80% of the height */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Align perfectly to center */
    background: linear-gradient(135deg, #1c4a2c, #794200 );
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: white;
    padding: 20px;
    font-size: 20px;
    border-radius: 5px;
    z-index: 10;
    opacity: 0;
    white-space: nowrap; /* Prevents text wrapping */
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    text-align: center;
}

.message-box.visible {
    opacity: 1;
    transform: translate(-50%, -50%); /* Fully visible */
    animation: slide-in-from-right 0.5s ease-in-out forwards;
}

.message-box.hidden {
    opacity: 0;
    transform: translate(-50%, -50%); /* Hidden but stays in place */
    animation: slide-out-to-left 0.5s ease-in-out forwards;
}

/* Initial hidden state */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes for the slide-in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.message-box {
    animation: fadeIn 0.5s ease-out;
}


/* Responsive Styling */
@media screen and (max-width: 768px) {
    .overlay-text {
        top: 20%; /* Adjust position */
    }

    .overlay-text .big-description {
        font-size: 1.5rem; /* Smaller text size */
    }

    .message-box {
        font-size: 16px; /* Smaller font size */
        padding: 15px;
        top: 80%; /* Adjust position to avoid overlap */
        max-width: 100%;
        white-space: normal; /* Allow text wrapping */
    }
}



.overlay-text {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Align perfectly to center */
    text-align: center; /* Center the text */
    color: #ffffff; /* White text color */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Add slight shadow for better readability */
    z-index: 5; /* Ensure text is on top of the image */
}

/* Big title styling */
.big-description {
    font-size: 48px; /* Adjust size as needed */
    font-weight: bold;
    margin: 0;
}


.sticky-button {
    position: fixed; /* Keeps the button in place while scrolling */
    top: 20%; /* Adjust this to move the button higher */
    right: 0;
    background-color: #1c4a2c;
    color: #dead3b;
    padding: 15px;
    border-radius: 5px 0 0 5px;
    text-align: center;
    cursor: pointer;
    z-index: 1000;

    /* Rotate text to vertical */
    transform: rotate(-90deg);
    transform-origin: right bottom;
    white-space: nowrap;
    font-size: 18px;
    letter-spacing: 2px;
}

/* Ensure button stays visible on scroll */
.sticky-button.sticky {
    position: fixed;
    top: 20%;
}



/* end of whole slider */



/* Start of Main */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
}

/* General Zigzag Item Styling */
.zigzag-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding: 50px 0; /* Add vertical spacing */
    overflow: hidden;
    gap: 20px; /* Space between elements */
}

.zigzag-item.reverse {
    flex-direction: row-reverse;
}

/* Image Styling */
.image1, .image2 {
    width: 60%; /* Use percentage for better responsiveness */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
   /* For stacking content on top */
    z-index: 1;
   
}
.image2{
    margin-left: 40%;
}
/* Content Styling */
.zigzag-item .content {
    position: absolute;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust vertical alignment */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    width: 50%; /* Ensure consistent width */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2; /* Bring content above the image */
}

.zigzag-item .content.left-align {
    left: 10%; /* Adjust horizontal positioning */
}

.zigzag-item .content.right-align {
    right: 10%; /* Adjust horizontal positioning */
}

.zigzag-item .content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2F4F4F;
}

.zigzag-item .content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #556B2F;
}

.zigzag-item .content a.b {
    display: inline-block;
    background-color: #1c4a2c;
    color: #dead3b;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
}

.zigzag-item .content:hover {
    background-color: rgba(228, 238, 227, 0.9);
}

/* Button Styling */
.b {
    background-color: #1c4a2c;
    color: #dead3b;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    text-decoration: none;
}

.b:hover {
    background-color: #167a39 !important;
    color: #d3a84c;
}

.new {
    text-decoration: none;
    color: inherit;
}

.new:hover {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design for Phones */
@media (max-width: 768px) {
    .zigzag-item {
        flex-direction: column; /* Stack items vertically */
        gap: 10px; /* Reduce gap between elements */
        padding: 20px 0; /* Reduce padding for smaller screens */
    }

    .image1, .image2 {
        width: 100%; /* Images take full width */
        margin-left: 0; /* Reset margin for better alignment */
    }

    .zigzag-item .content {
        position: relative; /* Remove absolute positioning */
        top: 0;
        transform: none; /* Reset transform */
        width: 90%; /* Content takes most of the width */
        padding: 20px; /* Adjust padding */
        margin: 0 auto; /* Center content */
    }

    .zigzag-item .content.left-align, 
    .zigzag-item .content.right-align {
        left: 0;
        right: 0;
        text-align: center; /* Center text for a clean look */
    }

    .zigzag-item .content h2 {
        font-size: 1.5rem; /* Slightly smaller heading */
    }

    .zigzag-item .content p {
        font-size: 1rem; /* Slightly smaller text */
    }

    .zigzag-item .content a.b {
        font-size: 0.9em; /* Adjust button text size */
        padding: 8px 16px; /* Adjust button padding */
    }
}




/*end of main */

@media (max-width: 768px) {
    .zigzag-item {
        display: block;
        padding: 0 10px; /* Reduce padding for better spacing */
        
    }

    .zigzag-item.reverse {
        display: block;
        padding: 0 10px; /* Consistent padding */
    }

    .zigzag-item img {
        width: 60vw;
        height: 40vh;
       
        border-radius: 8px; /* Slight rounding for a polished look */
    }

    .zigzag-item .content, .zigzag-item.reverse .content {
       
       
      
        
        padding: 1px;
        
    }

    .zigzag-item.reverse .content {

       
        
       
    }

    
   

    .zigzag-item .content h2, .zigzag-item.reverse .content h2 {
        font-size: 1.4rem; /* Adjust header size */
        font-weight: bold;
    
        margin-bottom: 20px;
    }

    .zigzag-item .content p, .zigzag-item.reverse .content p {
        font-size: 1rem;
        line-height: 1.6;
     
        margin-bottom: 15px; /* Reduce space between paragraphs */
    }

    .zigzag-item > a, .zigzag-item.reverse > a {
        display: block;
        text-align: center; /* Center the action button */
        
       
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
     
        font-size: 1rem;
        font-weight: bold;
    }

    .sticky-button {

        padding: 10px;
        font-size: 12px;
    }

   
}

/*footer */
.footer {
    background-color: #1c4a2c; /* Adjust this color based on your new design */
    color: #d3a84c;
    padding: 40px 0;
    gap: 5px;
}


.footer h4 {
    font-weight: bold;
    margin-bottom: 15px;
}

.footer p, .footer address, .footer a {
    color: #d3a84c;
    font-size: 16px;
}

.footer-img {
    max-width: 100%;  /* Ensures the image scales well */
    
    max-height: 1000px;
    display: block;
    margin-left: -40px; /* Move the image further left */
}

.social-icons a {
    margin-right: 10px; /* Spacing between icons */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px); /* Move the icon up by 5px */
}

.social-icon-img {
    width: 30px;  /* Size of the icons */
    height: 30px;
    
}

.social-icon-img:hover {
    width: 30px;  /* Size of the icons */
    height: 30px;
    transform: translateY(-5px);
}

.footerSites {
    text-decoration: none;
}

.footerSites:hover {
    color: black;
}

.footer .row > div {
    padding: 20px 0;
}

.text-center {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}







/* Adjustments for better alignment */
@media (min-width: 768px) {
    .footer .col-md-3:first-child {
        margin-left: -40px; /* Additional left margin for the image */
    }
}

@media (max-width: 767px) {
    .footer .row {
        flex-direction: column; /* Stack columns vertically on mobile */
        align-items: center; /* Center content */
        text-align: center; /* Center text */
    }

    .footer .col-md-3 {
        width: 100%; /* Make each column take up full width on small screens */
        margin-bottom: 20px; /* Add space between sections */
    }

    .footer-img {
        margin-left: 0; /* Remove the negative margin on mobile */
        max-width: 150px; /* Restrict image size on mobile */
        margin-bottom: 20px; /* Space below the image */
    }

    .social-icons {
        display: flex;
        justify-content: center; /* Center the social icons */
        margin-top: 20px;
    }

    .social-icon-img {
        width: 25px;  /* Smaller icon size for mobile */
        height: 25px;
    }

    .footer h4 {
        font-size: 18px; /* Slightly larger headings on mobile */
    }

    .footer p, .footer address {
        font-size: 14px; /* Slightly smaller text on mobile for readability */
    }

    .social-icon-img:hover {
        transform: translateY(-5px); /* Move the icon up by 5px */
    }
}
/*end of footer */