.nav-img-container {
  background-image: url(/imgs/index/bluehour-halfdome-min.webp);
  min-height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  top: 0;
}
/* .nav-container {
  position: absolute;
  background-color: green;
} */

.hero-container {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.hero-container h1 {
  color: white;
  letter-spacing: 10px;
}
.hero-img {
  width: 300px;
  height: auto;
}
#scroll-h3 {
  color: white;
}
.main-container {
  gap: 2rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.instagram-container {
  background-color: eelow;
  width: 100%;
  display: flex;
  justify-content: center;
}
.instagram-container iframe {
  background-color: greeen;
}

.services-image-container img {
  max-width: 100%;
  height: 100%;
  object-fit: cover; /* maintains aspect ratio while covering */
  display: block;
}
/* Services container layout */
.services-container {
  display: flex;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.services-image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.services {
  position: relative;
  flex: 1 1 30%; /* flexible cards, ~3 per row on large screens */
  min-width: 250px; /* prevents collapsing too small */
  max-width: 400px;
  overflow: hidden;
  border-radius: 10px;
}

.services-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  width: 100%;
  padding: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-style: italic;
  z-index: 1;
}
.services img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: cover;
  display: block;
}

.services::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  border-radius: 10px;
}
.services-text h1:hover {
  color: var(--golden-yellow);
  transition: 0.5s ease;
  text-shadow: 1px 1px #000;
}

.contact-container {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  color: white;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: none;
}

.contact-form button {
  background: var(--golden-yellow);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 50%;
  align-self: center;
}

.contact-form button:hover {
  background-color: #caac00;
}

@media (max-width: 768px) {
  .contact-container {
    max-width: 400px;
  }
  .contact-container h1 {
    font-size: 1.5rem;
  }
  .services-container,
  .services-image-container {
    flex-direction: column;
    align-items: center;
  }
  .services img {
    max-height: 200px;
  }

  .services {
    flex: 1 1 100%;
    max-width: 90%; /* give margins on sides */
  }

  .services-text {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    letter-spacing: 2px;
  }
}
@media (max-width: 480px) {
  .contact-container {
    max-width: 300px;
  }
  .services-text {
    font-size: 0.3rem;
  }
}
