/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #f8f8f8; /* light background for readability */
  color: #222;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button, .btn {
  cursor: pointer;
  transition: all 0.3s ease;
}
/* Container and heading */
.services-grid {
  display: flex;
  max-width: 35rem;
  gap: 1.5rem;
  list-style: none;          /* remove bullets (boxes look cleaner) */
  padding-left: 0;
  margin: 0 auto;
  cursor: pointer;
  flex-wrap: wrap;           /* responsive */
}

/* Service card */
.services-grid li {
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(145deg, #f3f3f3, #e6e6e6);
  border-radius: 0.6rem;
  text-align: center;
  padding: 0.9rem 1rem;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Hover effect */
.services-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  background: linear-gradient(145deg, #e8f5e9, #d7f0db);
}

/* Active (when clicked) */
.services-grid li.active {
  background: #2e7d32;
  color: white;
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.3);
}

/* Dropdown description */
.dropdown-desc {
  display: none;
  font-size: 0.9rem;
  color: inherit;
  margin-top: 0.5rem;
  opacity: 0.85;
}

.services-grid li.active .dropdown-desc {
  display: block;
}

.services-grid li.active .dropdown-desc {
  display: block;
}

.prov-services {
  width: 100%;
  margin: 0 auto;

  text-align: left;
}
.gallery-title {
    text-align: left;
    margin: 0 auto;
    margin-top: 3rem;   /* ~50px */
    margin-bottom: 1.25rem; /* ~20px */
    font-size: 1.5rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); /* wider min width */
    gap: 1.25rem; /* ~20px */
    justify-items: center;
}


.logo-img {
  height: 5rem;
  width: auto
}

.logo-img {
  height: 45px
}
button {
  padding: 1rem;
  background-color: #131313;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .3s
}

button:hover {
  background-color: #fff
}

nav {
  display: flex;
  align-items: center;
  gap: 30px
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: .3s ease
}

nav a:hover {
  color: #1e88e5
}

.dropdown {
  position: relative
}
.refing {
  position: relative;
}
.dropbtn {
  background: 0 0;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  color: #333
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  overflow: hidden
}

.dropdown-content a {
  display: block;
  padding: 12px 18px;
  color: #333
}

.dropdown-content a:hover {
  background: #f4f4f4
}



header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 8%;
  background: #fff;
    transition: top .3s;

  z-index: 1000
}

nav {
  display: flex;
  align-items: center;
  gap: 30px
}

.menu-toggle {
  display: none
}

.dropdown {
  position: relative
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 35px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1)
}
@media (min-width: 769px) {  /* only for screens wider than 768px */
  .dropdown:hover .dropdown-content {
    display: block;
  }
}
.contact-btn {
  background: #1e88e5;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
}
.sandwich {
  display: none;
}
@media (max-width:768px) {
  
  .refing {
    display: block;
    width: 100%;
    text-align: center;
  }
   .contact-btn {
    display: block;
    width: 100%;
    text-align: center;

  }
  .dropdown-content.active {
  display: block
}
  .dropdown-content {
    display: none
  }
  #nav-menu {
  display: none; /* hidden by default */
}

#nav-menu.active {
  display: block; /* shown when active */
}
  .sandwich {
    display: block;
    font-size: 28px;
    width: 20%;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  .logo-img {
    margin-left: 0;
    
  }
   #nav-menu .contact-btn {
    align-self: center;     /* overrides stretch and centers this button */
  }


  nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    display: none
  }

  nav.active {
    display: flex
  }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 15px
  }
  
  .dropdown.active .dropdown-content {
    display: block
  }
}

@media (max-width:768px) {
  header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 4%;
    align-items: flex-start; /* left align everything */
  }

  /* Top row: logo + sandwich button */
  .header-top {
    display: flex;
    flex-direction: row;       /* side by side */
    justify-content: space-between; /* push sandwich to the right */
    align-items: center;       /* vertical align */
    width: 100%;
  }

  .logo-img {
    display: inline-block;
    height: 3rem;
    width: auto;
  }

  .sandwich {
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color:black;
    
  }

  /* Optional: nav items full width below */
  #nav-menu {
    width: 100%;
    display: flex;
    flex-direction: column; /* stack menu items under top row */
    gap: 0.5rem;
    display: none;
  }

  .logo,
  .logo-img {
    font-size: 1.2rem;
    height: 3rem;
    width: auto
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: center
  }

  nav a {
    margin: 0;
    font-size: 1rem
  }

  .hero {
    min-height: 60vh;
    padding: 0 2rem;
    background-size: cover;
    background-position: center top
  }

  .hero h1 {
    font-size: 1rem;
    line-height: 1.2
  }

  .hero p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto
  }
}
@media (max-width:768px) {
  button {
    font-size: .9rem;
    padding: .6rem
  }

  button {
    width: 100%
  }
}

.contact-btn:hover {
  background: #1565c0
}

.logo {
  font-size: 1.4rem;
  font-weight: 700
}

nav a {
  font-weight: 500
}

/* HERO / MAIN SECTION */
.main {
  display: grid;
    justify-items: start; 
  padding: 10rem 8% 5rem; /* push down from navbar */
  background-color: #fff;
}



.contact-container {
    max-width: 800px;
    color: white;
    margin: 0;           /* removes auto centering */
    padding: 2rem;
    text-align: left;    /* align text inside the container to left */
    background: #1a1a1a;
    border-radius: 10px;
}

 label {
  text-align: left;

      font-weight: bold;
    }
.contact-info {
  margin-top: 2rem;
  text-align: center;
}



input, textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: none;
  width: 100%;
  font-size: 1rem;
}
h1, h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin: 0 auto;
}
.calculator {
  max-width: 400px;
  padding: 1.5rem;
  border-radius: 10px;
  background: #f5f5f5;
}

.calculator select,
.calculator button {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.6rem;
}

.calculator button {
  background: black;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

input:focus, textarea:focus {
  outline: 2px solid #ffffff;
}

/* button {
  padding: 1rem;
  background-color: #131313;
  color: white;

  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #ffffff;
}
 */



.main-content img {
    height:40rem;            /* ensures it never exceeds container */
    float: right;                /* floats image to the right */
    margin-left: 4rem;           /* more space between text and image */
    border-radius: 10px;         /* rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* subtle shadow */
    object-fit: cover;           /* keeps image proportions nice */
}
.services {
  background-color: rgb(255, 255, 255);
  padding: 5rem 8%;
  width: 100%;
  display: grid;
  gap: 4rem;
  justify-content: center; /* centers grid if row isn't full */
}
.estimate-note {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.75rem;
  color: #777;
  opacity: 0.85;
}
.calculator {
  position: relative; /* important */
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 1rem;
  color: black;
  background: #ffffff;
  
  padding: 1rem;
  border-radius: 12px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


.service img {
  width: 100%;
  height: 16rem;
  margin: 0 auto;
}
.main-content {
      display: flex;
    flex-wrap: wrap;
  width: 100%;          /* let container fill its section */
  max-width: 100%;     /* limit maximum width for readability */
  text-align: left;     /* aligns all child text (h1, p) to the left */
  margin: 0;            /* remove any auto centering */
  padding-left: 0;      /* optional: push content all the way left */
   gap: 4rem;  
}

.main-content h1 {
  font-size: 3rem;
  color: green;
  margin-bottom: 1.5rem;
  text-align: left;     /* ensures heading is left-aligned */
}

.main-content p {
  width: 100%;
  max-width: 100%;      /* paragraph fills the container */
  text-align: left;     /* left-align paragraph */
  line-height: 1.8;
}



.main h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  color: #2b7a0b; /* green for lawn/landscaping */
}

.main p {
  font-size: 1.2rem;
  color: #444;
}

.contact-info p {
  text-align: center;
  margin: 0.5rem 0;
  font-size: 1rem;
  color: white;
}


@media (max-width: 768px) {
    .main-content img {
        float: none;          /* remove floating */
        width: 100%;          /* full width */
        height: auto;         /* auto height for proper scaling */
        margin: 2rem 0;       /* vertical spacing */
    }
}
/* CTA / Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: #2b7a0b;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
}

.btn:hover {
  transform: scale(1.05);
}

/* CONTACT */
.contact-container h2 {
    font-size: xx-large;
    color:white;
    text-align: center;
}
h3 {
  text-align: center;
  margin: 0 auto;
}
.contact-container {
        flex: 1 1 35% ;   
    max-width: 500rem;      /* smaller width */
    padding: 2rem;
    background: #1a1a1a;
    color: white;
    border-radius: 10px;
    text-align: left;      /* left-align text inside */
}
.gallery-grid img {
    width: 100%;
    height: 16rem;      /* ~192px */
    object-fit: cover;
    border-radius: 0.75rem; /* ~12px */
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  width: 100%;
}

input:focus, textarea:focus {
  outline: 2px solid #2b7a0b;
}

/* button {
  padding: 1rem;
  background-color: #2b7a0b;
  color: white;
  font-weight: bold;
  border-radius: 5px;
}

button:hover {
  background-color: #1a5a09;
} */

/* FOOTER */
footer {
  padding: 2rem;
  text-align: center;
  background: #000;
  color: #777;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
    .contact-container {
        order: 4;
    }
}
/* RESPONSIVE */
@media (max-width: 768px) {
  .main {
    padding: 8rem 5% 3rem;
  }

  .main h1 {
    font-size: 2.2rem;
  }

  .feature, .feature-ab {
    flex-direction: column;
    text-align: center;
  }
}
