@media (max-width: 768px) {

  /* Overall container for the columns section */
  .mega-menu-content {
    /* Two main columns: a wider left nav and a services column */
    display: grid;
    grid-template-columns: 1.5fr 1.5fr; /* Left column (1fr) and Services column (1.5fr) */
    grid-gap: 30px; /* Space between the two columns */

    padding: 20px;
    background-color: #e5f1e1; /* Light background color for the dropdown body */
  }

  /* Base styles for all columns/lists */
  .mega-column {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* Styles for links in the LEFT navigation column */
  .left-nav-column li a {
    display: block;
    padding: 10px 0;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Faint separator */
  }

  /* --- OUR SERVICES COLUMN --- */
  .our-services-column .column-heading {
    font-size: 15px;
    font-weight: 900; /* Extra bold for "OUR SERVICES" heading */
    text-transform: uppercase;
    color: #333;
    padding: 8px 0;
    margin-bottom: 10px; /* Space below the main heading */
    border-bottom: 2px solid #8cc63f; /* Green line under the heading */
  }

  /* Style for major service categories (e.g., LAWN CARE, IRRIGATION) */
  .our-services-column .service-group-heading a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    font-weight: bold; /* Bold for main service categories */
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
    margin-top: 15px; /* Space above each new service group heading */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Faint separator */
  }

  /* Style for sub-links under Lawn Care (e.g., LANDSCAPING, FERTILIZATION) */
  .our-services-column .sub-link a {
    display: block;
    padding: 5px 0; /* Indent sub-links */
    font-size: 13px;
    font-weight: bolder; /* Lighter weight for sub-links */
    text-transform: none; /* No uppercase for sub-links */
    color: #555;
    transition: color 0.2s;
  }


  /* Hover effect for all links */
  .mega-column li a:hover,
  .service-group-heading a:hover,
  .sub-link a:hover {
    color: #8cc63f; /* Your signature green color on hover */
  }
  li.column-heading {
    color: #37b000 !important;
}

      /* Default state for your menu container on all pages/viewports */
    .mobile-menu-open {
        display: none; /* Menu is HIDDEN by default */
        /* Add transition or transform properties here if you use animations */
    }

    /* State when the button is clicked (This is added by JavaScript) */
    .mobile-menu-open.is-active {
        display: block; /* Menu is VISIBLE when the class is added */
    }

  /* --- FOOTER (Call to Action) ROW --- */
  .mega-menu-footer {
    /* Ensures the CTA spans the entire width beneath the columns */
    /* If you keep .mobile-nav as the parent, this might need to be absolute positioned
       or structured differently. This assumes it's outside mega-menu-content for full width. */
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background-color: #38af00; /* Dark green CTA bar */
    border-radius: 0 0 15px 15px; /* Match the rounded bottom corners */
  }

  .mega-menu-footer .cta-link {
    font-size: 16px;
    font-weight: bold;
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
  }

  .services-section {
    padding:15px 0px 0px 0px;
  }
  .services-section .container {
    padding:0px 25px;
  }
  .mobile-nav.is-open {
      padding: 20px !important;
      height: 530px;
      left:8px;
      right:8px;
      width:auto!important;
      margin-left: 0;
      margin-top: -30px;
      border-radius: 4px;
      z-index: 40;
      position:fixed;
      background:none;
  }
  .main-nav {
    box-sizing: border-box;
    margin-left: 8px !important;
    width:calc(100% - 16px)!important;
}

  .trusted-experts-section {
    padding: 27px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #ffffff;
    z-index: 30;
    position: absolute;
    margin-top: -129px;
    height: 140px;
    clip-path: polygon(7% 0%, 94% 0%, 85% 100%, 19% 100%);
    margin-left: -30px;
}
.mobile-card {
    background: blue;
    height: 135px;
    width: 89%;
    clip-path: polygon(7% 0%, 94% 0%, 85% 100%, 19% 100%);
    background-color: #e0e0e0;
    padding: 4px;
    text-align: center;
}



  .top-bar {
            padding: 10px 40px;
            height: 52px;
            width: 100%;
            margin-top: -9px !important;
        }

body {
    overflow-x: hidden;
}

.cta-wrapper {
   flex-direction: row; /* Switches to horizontal layout for larger screens */
   justify-content: space-between;
   align-items: center;
 }
 .call-to-action-section .cta-wrapper {
   display:block;
 }
 img.cta-leaf-icon {
    float: right;
    position: absolute;
    right: 50px;
    bottom: 100px;
    width: 23%;
  }
  section.our-work-section .container h2 {
    color: #fff !important;
    margin: 0px 0px 20px 0px !important;
    line-height: 30px !important;
    font-size: 32px !important;
}
.cta-content h2 {
    font-size: 18px !important;
}
.service-coverage-section .container {
    padding: 0px 20px 0px 20px;
}


 /* Resetting mobile-specific styles for larger screens */
 .cta-wrapper {
   text-align: left;
 }

 .cta-image-wrapper img {
   margin-bottom: 0;
 }


/* Header Adjustments */
header .container {
    padding: 0 15px; /* Adjust padding for mobile view */
}
.contact-section .contact-form {
  width:80%;
}
.contact-section .container img {
    width: 100% !important;
    margin:0px !important;
}

/* Base styling for the button */
.hamburger-button {
  display: inline-block;
  padding: 15px;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  outline: none;
  position: relative;
  transition: all 0.3s ease-in-out;
  z-index: 99; /* Ensures it's on top of other content */
}

/* Container for the lines */
.hamburger-box {
  width: 30px; /* Width of the entire icon */
  height: 24px; /* Height to contain all three lines */
  display: inline-block;
  position: relative;
}

/* The middle line of the hamburger */
.hamburger-inner {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333; /* Color of the lines */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease-in-out;
  border-radius: 10px;
}

/* Pseudo-elements for the top and bottom lines */
.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333; /* Color of the lines */
  position: absolute;
  transition: transform 0.3s ease-in-out;
}

/* Position the top line */
.hamburger-inner::before {
  top: -9px; /* Distance from the middle line */
  border-radius: 10px;
}

/* Position the bottom line */
.hamburger-inner::after {
  bottom: -9px; /* Distance from the middle line */
  border-radius: 10px;
}

/* Hero Section */
.hero-section {
    height: 750px; /* Adjust height to fit content */
    width:100%;
    margin-top:-115px;
}

.hero-slider-container {
    height: 600px; /* Reduced height for a better mobile fit */
}

.hero-slide {
    background-size: cover !important;
    background-position: center !important;
}

.hero-content {
    text-align: center; /* Center align all text and buttons */
    padding: 20px;
    margin-top: 150px;

}
.hero-welcome {
  font-size:13px;
  padding:0px;
}
.about-section .brand-info {
  font-size:16px;
}
.banner-content h2 {
  font-size: 0.9em !important;
  padding: 0px 20px;
}
.banner-content h1 {
    font-size: 1.9em !important;
    margin-bottom: 10px;
    color: white;
}
.top-banner {
  height:300px !important;
}

.hero-title, .hero-title span {
    font-size: 26px; /* Smaller font size for mobile */
    line-height: 1.2;
    margin-top:0px;
}
h1.hero-title {
    text-align: left;
    margin-left: 10px;
    margin-bottom: 10px;
}
.hero-welcome::before {
  left:10px;
}

.hero-subtitle {
    font-size: 16px;
    padding: 0 10px;
    text-align:left;
}

.hero-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    gap: 15px;
}
.cta-button::before {
  display:none;
}

.hero-buttons .btn-quote,
.hero-buttons a {
    width: 70%; /* Full width buttons for mobile */
    text-align: center;
}

.slider-dots {
    left:50%;
    margin-top:30px;
}

/* Feature Cards */
.card-container {
  height:150px;
  width:70%;
  display:none;
}

.card {
    width: 100%;
    margin-bottom: 54px;
    border-radius: 10px;
    margin-left: -66px;
    padding: 71px;
    margin-top: -75px;
    display:none;
}

.card-flipped {
    width: 100%;
    margin-bottom: 20px;
    /* Remove any "flipped" styles that don't apply to mobile */
}

.card-shadow-wrapper {
        width: 100%; /* Adds a bit of padding on the sides for spacing */
        margin-left: 0; /* Removes the fixed margin that could cause overflow */

    }

    .about-section .image-content img {
    width: 100%;
    height: auto;
    display: block;
    margin-left: 0px;
}

.about-section h1, .services-section .title, .why-choose-us-section .title, .call-to-action-section .cta-content h2, .our-work-section .title, .contact-section .title, .testimonials-section .title, .service-coverage-section .title, .lawn-care-insights-section .title {
  font-size:34px;
}
.lawn-care-insights-section {
    padding: 20px 20px 50px 20px;
    background-color: #ffffff;
}

/* Sections - About, Services, Why Choose Us */
.about-section .content-wrapper,
.why-choose-us-section .content-wrapper,
.service-coverage-wrapper {
    flex-direction: column; /* Stack content vertically */
    padding: 5px;
}

.about-section .text-content,
.why-choose-us-section .text-content,
.service-coverage-wrapper .text-content {
    order: 2; /* Move text content below the image for better flow */
    padding: 0;
}

.about-section .image-content,
.why-choose-us-section .image-content,
.service-coverage-wrapper .map-container {
    order: 1; /* Move image content to the top */
    margin-bottom: 20px;
}

.services-grid,
.testimonials-grid,
.gallery-grid,
.blog-posts-grid {
    grid-template-columns: 1fr; /* Set grid to a single column for stacking */
    gap: 20px;
}

.services-section .services-grid{grid-template-columns: minmax(0, 1fr)}

/* Contact Form */
.contact-form .form-row {
    flex-direction: column; /* Stack form inputs vertically */
}

.contact-form .form-group {
    width: 100%;
}

/* Testimonial Cards */
.testimonials-grid {
    gap: 30px; /* Increase gap between testimonials for readability */
}

.testimonial-card {
    padding: 25px;
}

    /* --- General Mobile Adjustments --- */
    body {
        padding-top: 65px;
    }

    .container {
        padding: 0 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 1.25rem; }

    /* --- Header & Navigation --- */

    .main-header {
        padding: 0.5rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width:90%;
    }

    .header-content {
        padding: 0 1rem;
    }

    .logo img {
        height: 45px;
    }
    .main-nav {
      margin-left: 5px !important;
      padding: 0px 35px 0px 35px;
      margin-top:-30px;

    }
    .cta-button {
        font-size: 15px;
        margin-left: 5px;
        padding:10px 15px;
    }
    .footer-column.our-services ul li p {
    margin: 0px;
}
.services-section .section-header {
    text-align: left;
    margin-bottom: 20px;
}
.section-header h2.title, .text-content h2.title {
      font-size: 35px;
      line-height: 30px !important;
      margin: 10px 0px !important;
    }

    .main-nav a.cta-button {
    font-size: 14px;
    padding:7px 10px;
}
.call-to-action-section .cta-image-wrapper {
  display:block;
}
.lefty {
    margin-top: 15px;
    margin-bottom: 12px;
    margin-left: 23px !important;
}
.mobile-card p {
    padding: 0px 70px;
    color:#000;
}
.mobile-card h2 {
    background: #2e6b17;
    border-radius: 50px;
    padding: 5px 0px;
    color: #fff;
    margin-top:10px;
}
.post-content {
margin-left: -6px !important;
padding: 15px !important;
}
.blog-grid {
    gap: 80px !important;
}

.hero-slide {
       height: 570px; /* Adjust height for mobile */
   }

   .hero-slide.active-slide:nth-of-type(1) {
       background-image: url('../images/hero-bg-mobile-3.jpg');
       background-image: image-set(url('../images/hero-bg-mobile-3.avif') type('image/avif'), url('../images/hero-bg-mobile-3.webp') type('image/webp'), url('../images/hero-bg-mobile-3.jpg') type('image/jpeg'));
   }

   .hero-slide.active-slide:nth-of-type(2) {
       background-image: url('../images/hero-bg-mobile-2.jpg');
       background-image: image-set(url('../images/hero-bg-mobile-2.avif') type('image/avif'), url('../images/hero-bg-mobile-2.webp') type('image/webp'), url('../images/hero-bg-mobile-2.jpg') type('image/jpeg'));
   }

   .hero-slide.active-slide:nth-of-type(3) {
       background-image: url('../images/hero-bg-mobile-1.jpg');
       background-image: image-set(url('../images/hero-bg-mobile-1.avif') type('image/avif'), url('../images/hero-bg-mobile-1.webp') type('image/webp'), url('../images/hero-bg-mobile-1.jpg') type('image/jpeg'));
   }
a.cta-button-2 {
    color: #fff !important;
    background: green;
    width: 65%;
    padding-left: 76px;
    margin-top: 33px;
}
    span.mobile {
      display:block !important;
    }
    span.desktop {
      display:none;
    }

    li.service-group-heading, li.sub-link {
        text-align: left;
    }

    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        position: relative;
        z-index: 1001;
    }

    .mobile-nav-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 6px 0;
        transition: all 0.3s ease-in-out;
    }

    body.nav-open .mobile-nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    body.nav-open .mobile-nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .mobile-nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100%;
        background-color: var(--dark-bg-color);
        transition: right 0.4s ease-in-out;
        z-index: 999;
        padding-top: 80px;
    }
    ul.mega-column.left-nav-column {
        margin-top: 5px;
    }

    .mobile-nav.open {
        right: 0;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align:left;
    }
    .lefty {
        font-size: 15px;
    }

    .mobile-nav a {
        display: block;
        padding: 0.4rem 1.5rem;
        color: #000;
        font-size: 1.01rem;
        font-weight: bold;
        text-decoration:none;
    }
    ul.dropdown-menu {
    margin-top: -99px;
    margin-left: 103px;
    border-radius:10px;
}

    /* --- Mobile Dropdown Styles --- */

    .mobile-nav .dropdown-menu {
        display: none;
    }

    .mobile-nav .dropdown-mobile .dropdown-menu-mobile {
        display: none;
        list-style: none;
        padding: 0;
        background-color: #2a2a2a;
    }

    .mobile-nav .dropdown-mobile.open .dropdown-menu-mobile {
        display: block;
    }

    .mobile-nav .dropdown-menu-mobile a {
        padding-left: 2.5rem;
    }

    .dropdown-mobile > a::after {
        content: '+';
        font-size: 1.5rem;
        font-weight: bold;
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .dropdown-mobile.open > a::after {
        content: '-';
    }

    /* --- Sections & Content --- */

    .section {
        padding: 4rem 0;
    }

    .section-content {
        grid-template-columns: 1fr;
    }

    .section-content-img {
        margin-top: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    /* --- Footer --- */

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .top-bar { width: auto; padding: 10px 12px; }
    .top-bar .contact-info { width: 100%; justify-content: space-between; gap: 8px; }
    .top-bar .contact-link {
        margin-right: 0; font-size: clamp(11px, 3vw, 14px); white-space: nowrap;
    }
}
