/* ================================
   Hero Section Styles
==================================*/

.hero {
  background: url('lawnmowed.jpg') no-repeat center center / cover;
  position: relative;
  min-height: 250px;        /* Controls hero thickness */
  padding: 2rem 1rem;
  text-align: center;
  color: white;
  z-index: 1;

  display: flex;           /* Centers content vertically */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none; /* ✅ THIS is what allows cursor to go through */
}

/* Hero Content */
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1; /* Above ::before */
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* CTA Buttons */
.hero .cta-button {
  display: inline-block;
  background: #81c31c;
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.5rem;
  text-decoration: none;
  transition: background 0.3s ease;
  position: relative;
  z-index: 1;
  margin: 0.5rem; /* ✅ allows 2 buttons to sit nicely */
}

/* ================================
   Responsive Adjustments
==================================*/
@media (max-width: 768px) {
  .hero {
    min-height: 180px;      /* Much thinner on mobile */
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 1rem;
  }

  .hero p {
    font-size: 0.5rem;
  }

  .hero .cta-button {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
  }
}
