/* ============================================================
   HERO / FV (ファーストビュー)
   Mobile-first. Ảnh resort full-bleed mép phải + zoom chậm.
   Nút đặt phòng & SCROLL nhấp nhô nhẹ.
   ============================================================ */

.hero {
  position: relative;
  background: var(--color-bg);
  overflow-x: clip; /* chặn cuộn ngang do ảnh tràn, vẫn cho tràn dọc */
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 40px;
}
.hero__container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

/* ---- Tiêu đề ---- */
.hero__copy {
  position: relative;
  z-index: 3;
  padding: 0 20px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.hero__title-top {
  font-size: 23px;
  letter-spacing: 0.02em;
}
.hero__title-of {
  font-size: 16px;
}
.hero__title-main {
  font-size: 39px;
  letter-spacing: 0.03em;
}
.hero__tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  background: var(--color-navy-deep);
  color: var(--color-bg);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---- Nhóm badge + ảnh (để canh thẳng hàng, dễ kiểm soát) ---- */
.hero__visual {
  margin: 10px 0 0 auto;
  width: 88vw;
}

/* ---- Huy hiệu ---- */
.hero__badges {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  place-items: center;
  margin-top: -90px;
  top: 90px;
}
.hero__badges img {
  width: 100%;
  max-width: 170px;
  height: unset;
}

/* ---- Khối ảnh ---- */
.hero__media {
  position: relative;
  z-index: 1;
  margin-top: -6px; /* badge đè nhẹ lên mép trên ảnh (giống mẫu SP) */
}
.hero__media-frame {
  border-radius: 30px 0 0 0;
  overflow: hidden; /* cắt phần ảnh phình ra khi zoom */
}
.hero__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* ---- Nút đặt phòng nổi ---- */
.hero__reserve {
  position: absolute;
  right: -10px;
  bottom: -10%;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 22px;
  background: var(--color-bg);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: floatX 3.2s ease-in-out infinite;
}
.hero__reserve-tag {
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 3px 12px;
  background: var(--color-orange);
  color: #fff;
  font-size: 14px;
  border-radius: 14px;
  white-space: nowrap;
}
.hero__reserve-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--color-navy);
  white-space: nowrap;
}
.hero__reserve-arrow {
  font-family: var(--font-latin);
  font-size: 22px;
  line-height: 1;
}

/* ---- SCROLL ---- */
.hero__scroll {
  position: absolute;
  left: 16px;
  top: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: floatY 3.8s ease-in-out infinite;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  /* Cắt cứng: trên nền sáng = navy (đen), dưới nền tối = trắng.
     Chỉnh --split cho khớp ranh giới sáng/tối nếu cần. */
  --split: 81%;
  background: linear-gradient(
    to bottom,
    var(--color-navy) 0 var(--split),
    #fff var(--split) 100%
  );
}
.hero__scroll-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #fff;
}

/* ---- Hiệu ứng nhấp nhô ---- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
/* Nút đặt phòng: chuyển động trái-phải nhẹ */
@keyframes floatX {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__img,
  .hero__reserve,
  .hero__scroll {
    animation: none;
  }
}

/* ============================================================
   PC ( >= 1024px ) — tiêu đề trái đè ảnh, ảnh full-bleed phải
   ============================================================ */
@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 0;
    min-height: 840px;
  }

  /* Nhóm badge + ảnh: tràn tới mép phải viewport */
  .hero__visual {
    position: absolute;
    top: 88px;
    right: calc(50% - 50vw);
    width: 80vw;
    margin-top: 0;
    z-index: 2; /* ảnh luôn nằm trên nền navy của PROGRAM bên dưới */
  }

  /* Huy hiệu: 1 hàng ngang, trải đều theo bề ngang ảnh (thẳng hàng với ảnh) */
  .hero__badges {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 0;
    top: 25px;
    margin-top: 0;
  }
  .hero__badges img {
    width: auto;
    max-width: none;
    height: 60px;
  }

  /* Ảnh nằm trong nhóm visual, chiếm full bề ngang nhóm */
  .hero__media {
    position: relative;
    width: 100%;
    margin-top: 0;
  }
  .hero__media-frame {
    height: 620px;
    border-radius: 67px 0 0 0;
  }
  .hero__img {
    height: 100%;
  }

  /* Tiêu đề trái, đè lên mép trái ảnh */
  .hero__copy {
    position: absolute;
    top: 235px;
    left: 40px;
  }
  .hero__title-top {
    font-size: 42px;
  }
  .hero__title-of {
    font-size: 30px;
  }
  .hero__title-main {
    font-size: 73px;
  }
  .hero__tag {
    margin-top: 24px;
    padding: 5px 22px;
    font-size: 21px;
  }

  /* Nút đặt phòng: góc dưới phải ảnh, tràn xuống dưới */
  .hero__reserve {
    bottom: 10%;
    padding: 22px 38px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }
  .hero__reserve-tag {
    top: -13px;
    font-size: 13px;
    padding: 3px 14px;
    border-radius: 16px;
  }
  .hero__reserve-label {
    font-size: 26px;
    gap: 24px;
  }
  .hero__reserve-arrow {
    font-size: 24px;
  }

  /* SCROLL giữa-trái */
  .hero__scroll {
    left: 30px;
    top: 550px;
  }
  .hero__scroll-line {
    height: 90px;
  }
  .hero__scroll-text {
    font-size: 13px;
  }
}

@media (min-width: 1440px) {
  .hero__badges img { height: auto;}
  .hero__media-frame { height: 650px; }
  .hero__scroll { top: 620px; }
}
