/* =========================================================================
   Contact page — Hero section
   ========================================================================= */

.contact-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #293948;
  overflow: visible;
}

.contact-hero > .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
  transform: translateY(50%);
}

.contact-hero__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 680px;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(50, 63, 72, 0.4);
  backdrop-filter: blur(40px) saturate(140%);
  -webkit-backdrop-filter: blur(40px) saturate(140%);
  box-shadow: 0 12px 24px rgba(17, 36, 56, 0.18);
  transform: scaleX(0.88);
  transform-origin: center;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-anchor: none;
}

.contact-hero__box.is-in-view {
  transform: scaleX(1.12);
  box-shadow: 0 28px 52px rgba(17, 36, 56, 0.32);
}

/* Counter-scale de chu ben trong khong bi co gian theo scaleX cua box.
   1 / 0.88 ≈ 1.1364 ; 1 / 1.12 ≈ 0.8929 */
.contact-hero__box > * {
  transform: scaleX(1.1364);
  transform-origin: center;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-hero__box.is-in-view > * {
  transform: scaleX(0.8929);
}

.contact-hero__title {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 30px;
  line-height: 136%;
  letter-spacing: 0.01em;
  text-align: center;
}

.contact-hero__desc {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  text-align: center;
}

/* --- Responsive ------------------------------------------------------------ */
@media screen and (max-width: 1024px) {
  .contact-hero {
    min-height: 560px;
  }
}

@media screen and (max-width: 767px) {
  .contact-hero {
    min-height: 440px;
  }

  .contact-hero__box {
    padding: 24px;
    max-width: 100%;
  }

  .contact-hero__title {
    font-size: 24px;
  }
}
