/* file:///C:/Nathaniel_YardKnox/index.html -->
// file:///C:/Nathaniel_YardKnox/services.html -->
// file:///C:/Nathaniel_YardKnox/about.html -->
// file:///C:/Nathaniel_YardKnox/services.html -->
// file:///C:/Nathaniel_YardKnox/contact.html -->
// file:///C:/Nathaniel_YardKnox/privacy.html -->
// file:///C:/Nathaniel_YardKnox/assets/css/style.css -->
// file:///C:/Nathaniel_YardKnox/assets/js/script.js --> */

/* style.css */

/* General Styles */
* {
    box-sizing: border-box;
  }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

img {
    max-width: 100%;
    display: block;
  }

/* Hero Section */
/* ✅ FIX: Front Page Hero Image */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    background: url("../images/equipment yardknox.jpg") no-repeat center/cover;
    color: white;
  }

.hero.small-hero {
padding: 60px 20px;
height: 300px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
  }

.hero .hero-divider {
    display: none; /* Remove overlapping image */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    margin-top: 0;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .hero-content-small h1 {
    font-size: 2rem;
  }
  

.cta-btn {
    display: inline-block;
    background-color: #2ecc71;
    padding: 12px 20px;
    color: white;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
}

.cta-btn:hover {
    background-color: #1e8449;
}

/* Services */
.services {
    text-align: center;
    padding: 50px 20px;
}

/* ✅ FIX: Services Images Leveling */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: stretch; /* Make all items the same height */
    margin-top: 20px;
}

.service-item {
    background: white;
    transition: background 0.5s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding-top: 10px;
}

.service-item:hover {
    background: url("../images/grass effect yardknox.jpg") no-repeat center/cover;
    color: white;
}

.service-item h3 {
    position: relative;
    z-index: 2;
}

.service-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.service-item:hover::after {
    opacity: 1;
}


.service-item img {
    width: 100%;
    height: 180px; /* Standardized height */
    object-fit: cover;
}

.btn {
    display: inline-block;
    background-color: #2980b9;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 20px;
    border-radius: 5px;
  }

  .btn:hover {
    background-color: #3498db;
  }
  

/* Contact Info on each page (GET A FREE QUOTE) */
/* ==========================
   ✅ CONTACT INFO SECTION 
   ========================== */
/* Contact Info Section as a 3-column grid */
.contact-info {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Left flag | Text | Right flag */
    align-items: center;   /* Vertically center everything */
    justify-items: center; /* Horizontally center content in each column */
    gap: 20px;
    padding: 0px;
    background-color: #27ae60;
    color: white;
    text-align: center;
    padding-right: 40px;
    padding-left: 40px;
    padding-top: 0px;
    padding-bottom: 30px;
}

/* Flags */
.flags-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flag Images */
.flag {
    max-width: 120px;
    height: auto;
}

/* Contact Text Centered */
.contact-text {
    max-width: 500px;
}

/* RESPONSIVE FIX: Shrink flags on smaller screens but NEVER stack */
@media (max-width: 600px) {
    .flag {
        max-width: 80px; /* Make flags smaller so they fit side-by-side */
    }
}



/* END Contact Info on each page (GET A FREE QUOTE) END  */

/* === Carousel Styles === */
.carousel-container {
    width: 100%;
    max-width: 90%;
    margin: auto;
    overflow: hidden; /* Contain the slides */
    position: relative;
    text-align: center;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    /* Remove extra horizontal margin to avoid drift */
    /* margin: 0 10px; */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-slide img {
    width: 100%;
    max-height: 350px;
    object-fit: contain; /* Change from cover to contain */
    border-radius: 8px;
    padding: 10px; /* Adds spacing around images */
    background: white; /* Ensures transparency blends well */
}

.carousel-slide h3 {
    margin-top: 10px;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2980b9;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    z-index: 10;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-btn:hover {
    background: #3498db;
}

  /* carousel END */

/* Footer */
.footer {
    text-align: center;
    background-color: #2c3e50;
    color: white;
    padding-bottom: 2px; /* Ensures spacing below text */
}

.footer-img {
    width: 100%;
    display: block;
    margin: auto;
    height: auto;
  }

.footer-content p {
    margin: 5px 0;
}

.footer a {
    color: #2ecc71;
}

/* footer end */

/* Privacy Policy Page Styling */
.privacy-policy {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.privacy-policy h1 {
    text-align: center;
    color: #27ae60;
}

.privacy-policy h2 {
    margin-top: 20px;
    color: #333;
}

.privacy-policy p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* privacy end */


/* About Page */
.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 20px;
    background-color: #f4f4f4;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-text {
    flex: 1;
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 50px;
}

.about-container img {
    max-width: 45%;
    border-radius: 10px;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.about-content img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
}



/* Contact Page */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 50px 20px;
    gap: 30px;
}

.contact-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 350px;
    max-width: 500px;
    text-align: center;
}

.contact-box h2 {
    margin-bottom: 15px;
}

.contact-box p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

input, textarea {
    width: 90%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background-color: #2980b9;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 10px;
}

button:hover {
    background-color: #3498db;
}

/* Google Map Section */
.map-section {
    margin-top: -70px;
    text-align: center;
    padding: 40px 0;
}

.map-section img {
    display: block;
    margin: 0 auto; /* Centers the image */
    width: 100%;
    max-width: 700px; /* Adjust width */
    border-radius: 8px;
}

.map-section img:hover {
    transform: scale(1.02); /* Slight zoom effect */
}
/* continue contacts END Google Map Section END continue contacts */

/* ✅ FIX: Keep Bottom Leaf Image Static */
.divider {
    width: 100%;
    position: fixed;
    bottom: 0;
}

/* Pricing Sections - Consistent Styling */
.pricing-index, .contact-box-services {
    max-width: 600px;  /* Keeps content readable */
    margin: 6px auto;  /* Centers horizontally */
    padding: 20px;
    background: white;  /* White box background */
    border-radius: 10px;  /* Soft rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for a lifted look */
    text-align: center;
}

.pricing-index h2, .contact-box-services h2 {
    color: #27ae60;  /* Matches the theme */
    font-size: 1.8rem;
}

.pricing-index p, .contact-box-services p {
    font-size: 1.2rem;
    color: #333;
}

/* Reduce spacing between pricing and services */
.pricing-index {
    margin-bottom: -40px; /* Reduce bottom margin */
}


/* Navbar */
/* ============ ✅ NAVBAR STYLES (FULL REPLACEMENT) ============ */
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #27ae60;
    padding: 15px 20px;
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 60px; /* Set a fixed height for consistency */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    transition: transform 0.3s ease-in-out;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links li a:hover {
    color: #00ff6a;
    text-shadow: 0px 4px 10px rgba(46, 204, 113, 0.5);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none; /* Hidden on larger screens */
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile View - Responsive Menu */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Ensure menu drops below navbar */
        left: 0;
        width: 100%;
        background-color: #27ae60;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

/* NAVBAR END */

.services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Slight spacing */
}

.services-html-btn {
    font-size: 1.4rem; /* Bigger text */
    font-weight: bold; /* Make it pop */
    color: #2c3e50; /* Darker color to enhance visibility */
    margin: 0; /* Reset button margin */
    margin-bottom: 0px;
    margin-top: 15px;
}

.services-html-btn + .btn {
    margin: 0; /* Reset button margin */
}
