/* =========================
   RESET + ROOT VARIABLES
========================= */
:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --accent: #66bb6a;
  --text: #333;
  --light: #f9f9f9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

/* =========================
   LAYOUT
========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 80px 0;
}

/* =========================
   HEADER / NAV
========================= */
header {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 30px;
  transition: 0.3s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.15);
}

/* =========================
   MOBILE MENU
========================= */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  width: 28px;
  height: 3px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
}

/* =========================
   HERO
========================= */
.hero {
  background: linear-gradient(rgba(46,125,50,0.85), rgba(46,125,50,0.85)),
              url('images/lawn.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* =========================
   BUTTON
========================= */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: 0.3s ease;
}

.btn:hover {
  background: #4caf50;
  transform: translateY(-2px);
}

/* =========================
   SERVICES / CARDS
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 10px;
}

/* Gallery Container */
.gallery {
  display: grid;
  /* Automatically fits as many items as possible with a minimum width of 250px */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px; /* Spacing between images */
  padding: 20px;
}

/* Individual Gallery Item */
.gallery-item {
  overflow: hidden; /* Clips image during hover zoom */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Image Styling */
.gallery-item img {
  width: 50%;
  height: 50%;
  object-fit: cover; /* Ensures images fill the area without stretching */
  display: block;
  transition: transform 0.4s ease; /* Smooth hover effect */
}

/* Hover Zoom Effect */
.gallery-item:hover img {
  transform: scale(1.1); /* Slight zoom on hover */
}


/* =========================
   CONTACT FORM
========================= */
.contact-form {
  max-width: 600px;
  margin: 30px auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 15px;
}

.contact-form button {
  width: 100%;
  padding: 14px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 16px;
  border-radius: var(--radius);
}

/* =========================
   FOOTER
========================= */
footer {
  background: #111;
  color: #bbb;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* =========================
   📱 MOBILE OPTIMIZATION
========================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
  }

  .nav-links.active {
    right: 0;
  }

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

  .nav-links a {
    font-size: 1.4rem;
  }

  .hero {
    padding: 70px 20px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  section {
    padding: 50px 0;
  }
}
