* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1f2f20;
  background: #f2faea;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 255, 240, 0.97);
  border-bottom: 1px solid #c9e7b5;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

/*
  Logo styling:
  - .logo is the visual style for the clickable text.
  - text-decoration: none removes the underline from the link.
  - display: inline-block makes the link behave like a small button-like element.
  - cursor: pointer shows that the item is clickable.
*/
.logo {
  font-weight: 700;
  font-size: 20px;
  color: #1f6b2a;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.logo:hover {
  color: #4d9b32;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: #1f3f24;
  font-weight: 600;
  font-size: 15px;
}

.nav a:hover {
  color: #4d9b32;
}

.hero {
  min-height: 86vh;
  background:
    linear-gradient(rgba(20, 80, 30, 0.32), rgba(10, 45, 18, 0.60)),
    url("images/hero.jpg") center/cover no-repeat;
  color: white;
}

.hero-overlay {
  min-height: 86vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-text {
  font-size: 19px;
  margin-bottom: 32px;
  max-width: 700px;
}

.hero-buttons,
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn.primary {
  background: #5fa832;
  color: white;
}

.btn.primary:hover {
  background: #4b8f28;
}

.btn.secondary {
  background: #fff4c7;
  color: #234321;
}

.btn.secondary:hover {
  background: #ffe89a;
}

.section {
  padding: 82px 0;
  background: #f2faea;
}

.section-alt {
  background: #e0f2ca;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 18px;
  color: #1f6b2a;
}

.section-intro {
  font-size: 18px;
  max-width: 800px;
  margin-bottom: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #ffffff;
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(39, 104, 45, 0.10);
  border: 1px solid #d4edbf;
}

.card h3 {
  color: #1f6b2a;
  margin-bottom: 12px;
  font-size: 22px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.features-grid div {
  background: #ffffff;
  padding: 18px;
  border-radius: 16px;
  font-weight: 700;
  text-align: center;
  color: #234321;
  box-shadow: 0 6px 16px rgba(39, 104, 45, 0.09);
  border: 1px solid #d0eabc;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.two-columns p {
  font-size: 18px;
}

.image-box img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.contact-section {
  background: linear-gradient(135deg, #1d5c27, #3f8f2f);
  color: white;
}

.contact-section h2 {
  color: white;
}

.contact-box {
  text-align: center;
  max-width: 820px;
}

.contact-box p {
  font-size: 18px;
  margin-bottom: 24px;
}

.contact-actions {
  justify-content: center;
  margin-bottom: 28px;
}

.contact-location {
  font-weight: 700;
}

.map-placeholder {
  margin-top: 28px;
  padding: 48px 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
}

.footer {
  background: #123819;
  color: white;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .header-content {
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .cards,
  .features-grid,
  .gallery,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-overlay {
    min-height: 78vh;
  }

  .section {
    padding: 62px 0;
  }

  .gallery img,
  .image-box img {
    height: 260px;
  }
}

/*
  Lightbox / click-to-enlarge styles

  Explanation for each block below (for beginners):

  1) .gallery img, .image-box img
     - Adds a `zoom-in` cursor to indicate the image is clickable.
     - Adds a small transform transition so hover feels smooth.

  2) .gallery img:hover, .image-box img:hover
     - Slightly scales the thumbnail on hover to give user feedback.

  3) .lightbox
     - Fullscreen fixed overlay that covers the entire viewport.
     - `display: none` keeps it hidden by default; adding `.open` will show it.
     - `background: rgba(0,0,0,0.85)` darkens the page so the image stands out.
     - `z-index: 2000` ensures it appears above other elements.

  4) .lightbox.open
     - When JavaScript adds the `open` class the overlay becomes a flex container
       and centers its contents both horizontally and vertically.

  5) .lightbox img
     - Restricts the enlarged image size with `max-width`/`max-height` so it never
       exceeds the viewport and remains fully visible on small screens.
     - Adds `cursor: zoom-out` to hint that clicking will close the lightbox.

  6) .lightbox .caption
     - Simple caption styling for alt text (white, centered).

  Notes about behavior:
  - The JavaScript toggles the `open` class and updates `aria-hidden`.
  - Clearing the image `src` on close releases memory in some browsers.
  - These styles are intentionally minimal so you can extend them (add close
    button, transitions, next/prev controls) once you're comfortable.
*/
.gallery img,
.image-box img {
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.gallery img:hover,
.image-box img:hover {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 96%;
  max-height: 96%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}

.lightbox .caption {
  margin-top: 12px;
  color: #fff;
  text-align: center;
  font-weight: 600;
}