/* reset */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial;
}

body{
  background:rgb(221, 220, 220);
  
}

/* NAVBAR */

.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(180deg, #3b5e1c, #1f3a0d);
  position: fixed;
  top: 0px;
  z-index: 900;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
}

.logo span {
  font-size: 20px;
  margin-left: 15px;
  color: white;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* NAV LINKS */

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: wheat;
}

/* hamburger */

.menu-toggle {
  display: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
}

/* Base */
.dropdown {
    position: relative;
}

/* Hidden by default */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f3a0d;
    border-radius: 10px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
}

/* Show when active */
.dropdown.active .dropdown-menu {
    display: block;
}

/* Items */

.dropdown-menu li {
    padding: 10px 20px;
    list-style: none;
}

.dropdown-menu li a {
    color: white;
    text-decoration: none;
    display: block;
}

.dropdown-menu li:hover {
    background: #1f3a0d;
}

/* search bar */

.search {
  display: flex;
  align-items: center;
  margin-left: 30px;
}

.search input {
  width: 200px;
  font-family: arial;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  box-shadow: 0px 0px 5px rgb(0, 0, 0.2);
}

.search i {
  position: relative;
  top: 8px;
  right: 40px;
  transform: translateY(-50%);
  color: #000;
}


/* main wrapper (IMPORTANT FIX) */
.main{
  margin-top:0px;
  top: 0px;
}

.products-section {
    padding: 50px 8%;
    padding-top: 150px;
    background: #f4f5f7;
}

.product-card {
    display: grid;
    grid-template-columns: 240px 1fr 220px;
    align-items: center;
    gap: 35px;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 30px;
    border-left: 6px solid #2f8f2f;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    justify-content: center;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
}

.product-info h2 {
    font-size: 28px;
    color: #1c1c1c;
    margin-bottom: 12px;
    
}


.product-info p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.specs div {
    background: #eef8ee;
    color: #2f8f2f;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.product-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.quote-btn {
    display: inline-block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2f8f2f, #48b648);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 10px 20px rgba(47,143,47,0.25);
}

.quote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(47,143,47,0.35);
}

/* footer */

.footer {
    background: linear-gradient(135deg, #333333, #3f3f3f);
    color: #fff;
    padding: 60px 8%;
    margin-top: 0px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 45px;
    height: 3px;
    background: #2f8f2f;
    border-radius: 10px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-section{
  width: 250px;
}

.footer-section p {
    color: #d0d0d0;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 14px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #d0d0d0;
    transition: 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #48b648;
    transform: translateX(6px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-icons a:hover {
    background: #2f8f2f;
    transform: translateY(-5px);
}

.footer-section p i {
    color: #48b648;
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    color: #bdbdbd;
    font-size: 14px;
}





@media (max-width: 900px) {
    .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-image img {
        height: 220px;
    }

    .specs {
        justify-content: center;
    }

    .product-action {
        margin-top: 10px;
    }


/* footer */
.footer-container{
grid-template-columns:1fr;
gap:30px;
}

.footer-section{
width:100%;
}

/* side icons */
.contact-icons{
right:10px;
height:auto;
width:45px;
}

/* map */
.map iframe{
height:250px;
}
}

/* show dropdown */
.dropdown-menu.show {
  display: block;
}
.search {
  position: relative;
  width: 200px;
}

#searchBox {
  width: 100%;
  padding: 8px;
}

#searchResults {
  position: absolute;
  width: 100%;
  background: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 40px;
  left: 0;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  max-height: 200px;
  overflow-y: auto;
}

#searchResults li {
  padding: 8px;
  cursor: pointer;
}

#searchResults li:hover {
  background: #f2f2f2;
}

/* ========================= */
/* MOBILE RESPONSIVE */
/* ========================= */

@media (max-width: 768px) {

  .navbar {
    padding: 8px 15px;
    width: 100%;
    min-height: 60px;
  }

  /* logo */
  .logo {
    height: 50px;
    width: 100px;
    font-size: 12px;
  }

  /* right side container fix */
  .search {
    display: none;
  }

  /* hide search input */
  .search input {
    display: none;
  }

  /* search icon */
  .search i {
    position: static;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
    margin-top: 11px;
    ;
  }

  /* toggle button */
.menu-toggle {
    display: inline-block;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
  }

  body.menu-open {
    padding-top: 70px;
  }

  /* mobile menu */
.nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 70%;
    background: #1f3a0d;
    border-radius: 10px;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    display: none;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    display: flex;
    padding: 30px;
  }

}