/* ===========================
   START HEADER
   =========================== */

.site-header {
  width: 100%;
  height: 60vh;
  min-height: 300px;
  max-height: 800px;
  background: url("/header.jpg") center/cover no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

.site-header h1 {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 2.2rem);
  font-weight: 300;
  padding: 12px 24px;
  border-radius: 12px;
  color: #fff;
  max-width: 90%;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

body.scrolled .site-header::after {
  opacity: 1;
}

/* Mobile */
@media (max-width: 500px) {
  .site-header {
    height: 45vh;
    min-height: 250px;
  }

  .site-header h1 {
    bottom: 95px;
    font-size: 1.05rem;
    padding: 10px 16px;
    max-width: 90%;
  }
}

@media (max-width: 700px), (max-height: 500px) {
  .site-header {
    height: 32vh;
    min-height: 170px;
    padding-bottom: 18px;
  }

  .site-header h1 {
    bottom: 95px;
    font-size: 1.05rem;
    padding: 8px 12px;
  }
}

@media (max-height: 500px) {
  .site-header {
    height: 30vh;
    min-height: 160px;
  }

  .site-header h1 {
    bottom: 40px;
    font-size: 0.95rem;
    padding: 8px 12px;
  }
}