/* --- Mobile Styles (max-width: 768px) --- */

@media (max-width: 768px) {
  .services-section {
    padding:15px 0px 0px 0px;
  }
  .services-section .container {
    padding:0px 25px;
  }
  .mobile-nav.is-open {
    padding: 20px !important;
    height: 530px;
    z-index: 999;
  }


  .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 {
            background-color: #1a1a1a;
            color: #fff;
            padding: 10px 40px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            height: 52px;
            width: 100%;
            margin-top: -9px !important;
        }

  /* General Mobile Styles */
body {
    overflow-x: hidden; /* Prevents horizontal scrolling on small devices */
}

.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:12px;
  padding:0px;
}
.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:42px;
}
.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;
}

/* 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: 38px;
      line-height: 35px !important;
      margin: 10px 0px !important;
    }

    .main-nav a.cta-button {
    font-size: 14px;
}
.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 h3 {
    background: #37b000;
    border-radius: 50px;
    padding: 5px 0px;
    color: #fff;
    margin-top:10px;
}

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

   /* Override with mobile-specific background images */
   .hero-slide:nth-of-type(1) {
       background-image: url('/includes/images/hero-bg-mobile-1.jpg');
   }

   .hero-slide:nth-of-type(2) {
       background-image: url('/includes/images/hero-bg-mobile-2.jpg');
   }

   .hero-slide:nth-of-type(3) {
       background-image: url('/includes/images/hero-bg-mobile-3.jpg');
   }
a.cta-button-2 {
    color: #fff !important;
    background: green;
    width: 65%;
    padding-left: 76px;
    margin-top: 33px;
}
    .contact-info {

    }
    span.mobile {
      display:block !important;
    }
    span.desktop {
      display:none;
    }

    .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);
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        z-index: 999;
        padding-top: 80px;
    }

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

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .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;
    }
}
