/* ---------- Contact 페이지 ----------
   컬러/폰트는 style.css의 공용 토큰을 재사용. GNB/footer는 style.css에 정의된
   것을 그대로 쓰고, 이 파일에는 이 페이지 전용 요소만 추가한다. */

.contact-page {
  background: var(--color-white);
}

/* .contact-content 하단 모서리가 라운드로 깎일 때 그 뒤로 검정이 바로 비치도록,
   footer-wrap 자체를 옮기지 않고 가상요소로 검정 배경판만 라운드 최대값(64px)
   만큼 위로 뻗어 나오게 한다(service 페이지와 동일한 방식). */
.contact-page + .footer-wrap {
  position: relative;
  z-index: 0;
}

.contact-page + .footer-wrap::before {
  content: "";
  position: absolute;
  top: -64px;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--color-black);
  z-index: -1;
}

/* ---------- Hero: 영상 ----------
   원래 위치(고정 GNB 바로 아래)에서 여백을 두고 시작하되, top:0으로 sticky를
   걸어 일반 콘텐츠처럼 자연스럽게 스크롤되다가 화면 맨 위(y=0)에 닿는 순간부터
   그 자리에 고정된다(service-hero와 동일한 방식). 영상은 크롭 없이 원본 비율
   (16:9) 그대로 브라우저 폭에 맞춰 전체가 보이도록 한다. 뒤이어 오는
   .contact-content(흰 배경)가 그 위로 슬라이드하며 덮고 지나간다(커튼 연출). */
.contact-hero {
  position: sticky;
  top: 0;
  z-index: 0;
  margin-top: 84px; /* 고정 GNB 높이만큼 확보 */
  overflow: hidden;
  background: var(--color-black);
}

.contact-hero__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* hero를 덮으며 지나가는 실제 콘텐츠 블록 */
.contact-content {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  overflow: hidden;
  padding: 100px 40px 140px 64px;
}

.contact-field + .contact-field {
  margin-top: 64px;
}

.contact-field__label {
  color: var(--color-point);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 700;
}

.contact-field__value {
  margin-top: 8px;
  color: var(--color-black);
  font-weight: 800;
}

.contact-field__value--lg {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
}

.contact-field__value--sm {
  font-size: 15px;
  font-weight: 700;
}

/* 마우스를 올리면 텍스트 아래에 포인트컬러 5px 라인이 좌→우로 그려지듯 페이드인 */
.underline-hover {
  position: relative;
  display: inline-block;
}

.underline-hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--color-point);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.underline-hover:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ---------- 반응형 ---------- */
@media (max-width: 768px) {
  .contact-hero { margin-top: 68px; }
  .contact-content { padding: 72px 24px 100px; }
  .contact-field + .contact-field { margin-top: 48px; }
}

@media (max-width: 480px) {
  .contact-hero { margin-top: 56px; }
  .contact-content { padding: 56px 20px 80px; }
  .contact-field + .contact-field { margin-top: 40px; }
  .contact-field__value--sm { font-size: 13px; }
}
