@charset "utf-8";
/* CSS Document */


.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  max-height: 350px; /* Limit max height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The image layer */
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center; /* Always centered */
  z-index: 0;
  transition: filter 0.3s ease;
}

/* Overlay for darkening */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Default desktop overlay */
  transition: background-color 0.3s ease;
  z-index: 1;
}

/* Content Layer */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 1rem;
  width: 90%;
}

.hero-content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-buttons {
   flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
}

.btn {
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
    background-color: #E0E0E0;
    color: #00523D;
}

.btn-primary:hover {
    background-color: #FFFFFF;
}

.btn-secondary {
    background-color: #00523D;
    color: #F0F0F0;
}

.btn-secondary:hover {
    background-color: #00392A;
}

/* --- Desktop styles --- */
@media (min-width: 768px) {
  .hero {
    justify-content: flex-start; /* Move text to left */
    padding-left: 10%;
	  max-height: 500px; /* Limit max height */
  }

  .hero-content {
    text-align: left;
    width: 40%;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }

  /* Lighten image on desktop */
  .hero::after {
    background-color: rgba(0, 0, 0, 0.2);
  }
}