/* ==========================================================================
   Hero slider – ảnh thật trải toàn khung; vùng chữ phủ lớp kem bán trong suốt
   (ảnh vẫn hiện mờ phía sau), chuyển mềm dần sang phần ảnh rõ bên phải
   ========================================================================== */
.hero {
  --hero-h: clamp(560px, 42vw, 620px);
  --hero-text-w: 500px;
  --hero-left: max(var(--container-gutter), calc((100vw - var(--container-max)) / 2));
  position: relative;
  background: var(--color-background);
  overflow: hidden;
}

.hero__slides { display: grid; }

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: var(--hero-h);
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease), visibility 0s; z-index: 1; }

.hero-slide__media {
  position: absolute; inset: 0;
  overflow: hidden; background: var(--color-surface-alt);
}
.hero-slide__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus-desktop, center);
  transform: scale(1.03); transition: transform 7s linear;
}
.hero-slide.is-active .hero-slide__media img { transform: scale(1); }
.hero-slide__media::after {
  /* Vùng chữ: kem ~88% (ảnh vẫn hiện mờ phía sau) → mờ dần qua ~320px → ảnh rõ */
  --fade-start: calc(var(--hero-left) + var(--hero-text-w) - 40px);
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(251, 246, 238, 0.9) 0,
    rgba(251, 246, 238, 0.86) var(--fade-start),
    rgba(251, 246, 238, 0.6) calc(var(--fade-start) + 110px),
    rgba(251, 246, 238, 0.22) calc(var(--fade-start) + 220px),
    rgba(251, 246, 238, 0) calc(var(--fade-start) + 320px));
}

.hero-slide__inner { position: relative; z-index: 1; }
.hero-slide__content { max-width: var(--hero-text-w); padding-block: 36px 60px; }
.hero-slide.is-active .hero-slide__content > * { animation: hero-in 0.8s var(--ease) both; }
.hero-slide.is-active .hero-slide__content > :nth-child(2) { animation-delay: 0.08s; }
.hero-slide.is-active .hero-slide__content > :nth-child(3) { animation-delay: 0.16s; }
.hero-slide.is-active .hero-slide__content > :nth-child(4) { animation-delay: 0.24s; }
.hero-slide.is-active .hero-slide__content > :nth-child(5) { animation-delay: 0.32s; }
.hero-slide.is-active .hero-slide__content > :nth-child(6) { animation-delay: 0.4s; }
.hero-slide.is-active .hero-slide__content > :nth-child(7) { animation-delay: 0.46s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tiêu đề cách điệu theo mockup: chữ viết tay nâu + tên in hoa vàng (Oswald) + nét cọ */
.hero-title { font-family: var(--font-display); }
.hero-title__script {
  display: block;
  font-family: var(--font-script); font-weight: 700;
  font-size: clamp(2.5rem, 1.35rem + 2.8vw, 4rem); line-height: 1;
  color: var(--color-secondary);
  margin-left: -3px;
}
.hero-title__main {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.25rem, 1.55rem + 4vw, 5.125rem); line-height: 1;
  text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--color-gold);
  margin-top: 0.24em; /* chừa chỗ cho dấu chồng (Ấ, Ỗ, Ậ), không chạm nét chữ viết tay */
}
.hero-brush { display: block; width: clamp(190px, 21vw, 300px); height: auto; margin-top: 6px; color: var(--color-secondary); }

.hero-slide__sub {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); line-height: 1.3;
  color: var(--color-heading);
  margin-top: 14px;
}
.hero-slide__desc { margin-top: 8px; color: var(--color-text); font-size: 1rem; line-height: 1.6; }
.hero-slide__sub, .hero-slide__desc { text-wrap: pretty; } /* tránh 1 chữ rơi xuống dòng cuối */
.hero-slide__desc { max-width: 470px; }

/* 3 ý ngắn của từng slide */
.hero-points { display: grid; gap: 7px; margin-top: 16px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 500; line-height: 1.4; color: var(--color-heading); }
.hero-points .icon { width: 20px; height: 20px; color: var(--color-accent); stroke-width: 1.8; }

.hero-slide__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Dòng hotline dưới nút */
.hero-slide__hotline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 14px; font-size: 0.875rem; color: var(--color-text); }
.hero-slide__hotline .icon { width: 16px; height: 16px; color: var(--color-accent); }
.hero-slide__hotline a { font-weight: 700; color: var(--color-heading); text-decoration: none; white-space: nowrap; }
.hero-slide__hotline a:hover { color: var(--color-accent); }

/* Điều khiển – nằm trên ảnh, góc phải dưới */
.hero__controls {
  position: absolute; right: var(--container-gutter); bottom: 20px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  padding: 4px; border-radius: var(--radius-pill);
  background: rgba(30, 24, 24, 0.5);
  backdrop-filter: blur(4px);
}
@media (min-width: 1281px) {
  .hero__controls { right: calc((100vw - var(--container-max)) / 2); }
}
.hero__btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
@media (hover: hover) {
  .hero__btn:hover { background: var(--color-primary); color: var(--color-dark); }
  .hero__dot:hover::before { background: #fff; }
}
.hero__btn .icon { width: 18px; height: 18px; }
.hero__btn .icon-play { display: none; }
.hero__btn[aria-pressed="true"] .icon-play { display: block; }
.hero__btn[aria-pressed="true"] .icon-pause { display: none; }

.hero__dots { display: flex; gap: 2px; }
.hero__dot {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
}
.hero__dot::before {
  content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6); transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.hero__dot[aria-current="true"]::before { width: 20px; background: var(--color-primary); }
