/* Hero variants dùng chung. Namespace .hv, không đụng CSS cũ của từng site. */

.hv {
  position: relative;
  overflow: hidden;
  color: var(--hv-ink, #0a2a2b);
  background: var(--hv-surface, #faf6ee);
  font-family: var(--hv-sans, "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif);
}

.hv *,
.hv *::before,
.hv *::after { box-sizing: border-box; }

.hv h1,
.hv p,
.hv dl,
.hv dd,
.hv dt,
.hv figure,
.hv figcaption,
.hv ul { margin: 0; padding: 0; }

.hv ul { list-style: none; }

.hv img { display: block; max-width: 100%; }

.hv-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(26px, 4.6vw, 52px) clamp(20px, 4.4vw, 48px) clamp(42px, 6vw, 80px);
}

.hv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hv-muted, #5f6b66);
  margin-bottom: 18px;
}

.hv-kicker span {
  width: 26px;
  height: 1px;
  background: var(--hv-accent, #146165);
}

.hv-title {
  font-family: var(--hv-display, "Lora", Georgia, serif);
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.022em;
  font-weight: 600;
  text-wrap: balance;
}

.hv-title em {
  font-style: italic;
  color: var(--hv-accent, #146165);
}

.hv-lead {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.65;
  color: var(--hv-muted, #5f6b66);
  max-width: 46ch;
  margin-top: 20px;
}

.hv-note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--hv-muted, #5f6b66);
  max-width: 44ch;
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--hv-line, #e4dac8);
}

.hv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.hv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.hv-btn:hover { transform: translateY(-1px); }
.hv-btn:active { transform: translateY(0); }

.hv-btn--primary {
  background: var(--hv-accent, #146165);
  color: var(--hv-surface, #faf6ee);
  border: 1px solid var(--hv-accent, #146165);
}

.hv-btn--primary:hover { filter: brightness(1.07); }

.hv-btn--ghost {
  background: transparent;
  color: var(--hv-ink, #0a2a2b);
  border: 1px solid color-mix(in srgb, var(--hv-ink, #0a2a2b) 26%, transparent);
}

.hv-btn--ghost:hover { border-color: var(--hv-ink, #0a2a2b); }

.hv-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--hv-muted, #5f6b66);
}

.hv-trust b { color: var(--hv-ink, #0a2a2b); font-size: 14px; }

.hv-stars {
  color: var(--hv-accent, #146165);
  letter-spacing: .08em;
  font-size: 12px;
}

.hv-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 82% 12%, color-mix(in srgb, var(--hv-accent, #146165) 13%, transparent), transparent 70%),
    radial-gradient(45% 40% at 8% 92%, color-mix(in srgb, var(--hv-surface-2, #f4ecdd) 80%, transparent), transparent 72%);
}

.hv-wash--lines {
  background-image: repeating-linear-gradient(180deg, color-mix(in srgb, var(--hv-line, #e4dac8) 55%, transparent) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
}

/* ---------- 1. Split tạp chí ---------- */
.hv-split-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}

.hv--split .hv-title { max-width: 14ch; font-size: clamp(2.2rem, 4.3vw, 3.75rem); }

.hv-media { position: relative; }

.hv-arch {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 4.5;
  border-radius: 999px 999px 22px 22px;
  background: var(--hv-surface-2, #f4ecdd);
}

.hv-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 28%; }

.hv-arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, .24));
  pointer-events: none;
}

.hv-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid color-mix(in srgb, var(--hv-accent, #146165) 34%, transparent);
  border-radius: 999px 999px 22px 22px;
  pointer-events: none;
}

.hv-float {
  position: absolute;
  z-index: 2;
  left: -22px;
  bottom: 34px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--hv-surface, #faf6ee);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--hv-ink, #0a2a2b) 18%, transparent);
  border: 1px solid var(--hv-line, #e4dac8);
}

.hv-float b {
  display: block;
  font-family: var(--hv-display, "Lora", Georgia, serif);
  font-size: 26px;
  line-height: 1;
  color: var(--hv-accent, #146165);
}

.hv-float span { display: block; margin-top: 4px; font-size: 11px; color: var(--hv-muted, #5f6b66); }

.hv-spine {
  position: absolute;
  z-index: 2;
  top: 42%;
  right: 4px;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hv-muted, #5f6b66);
}

/* ---------- 2. Toàn cảnh ---------- */
.hv--cine {
  background: #111;
  color: #fff;
  min-height: clamp(520px, 76vh, 780px);
  display: grid;
}

.hv-cine-bg,
.hv-cine-scrim { position: absolute; inset: 0; }

.hv-cine-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 38%; }

.hv-cine-scrim {
  background:
    linear-gradient(92deg, rgba(8, 10, 10, .94) 0%, rgba(8, 10, 10, .86) 54%, rgba(8, 10, 10, .26) 84%, rgba(8, 10, 10, .5) 100%),
    linear-gradient(0deg, rgba(8, 10, 10, .72) 0%, transparent 38%);
}

.hv-cine-in {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-top: clamp(40px, 7vw, 96px);
}

.hv-cine-copy { max-width: 720px; }

.hv-kicker--light { color: rgba(255, 255, 255, .72); }
.hv-kicker--light span { background: var(--hv-accent, #146165); }

.hv--cine .hv-title { color: #fff; max-width: 15ch; }
.hv--cine .hv-title em { color: var(--hv-accent, #c3a05c); }
.hv--cine .hv-lead { color: rgba(255, 255, 255, .76); max-width: 48ch; }

.hv--cine .hv-btn--primary { background: var(--hv-accent, #146165); color: #fff; border-color: var(--hv-accent, #146165); }
.hv--cine .hv-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.hv--cine .hv-btn--ghost:hover { border-color: #fff; }

.hv-cine-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.hv-cine-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); }

.hv-cine-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }

.hv-cine-stats dd {
  font-family: var(--hv-display, "Lora", Georgia, serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
  color: #fff;
}

.hv-cine-stats dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .56); }

.hv-cine-trust { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .64); }
.hv-cine-trust b { color: #fff; }
.hv-cine-trust .hv-stars { color: var(--hv-accent, #c3a05c); }

/* ---------- 3. Bento ---------- */
.hv-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-template-areas:
    "copy copy copy copy copy copy copy photo photo photo photo photo"
    "copy copy copy copy copy copy copy rate rate offer offer offer";
  gap: 12px;
  padding-top: clamp(26px, 4vw, 46px);
}

.hv-cell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--hv-line, #e4dac8);
  background: var(--hv-surface, #faf6ee);
}

.hv-cell--copy {
  grid-area: copy;
  padding: clamp(24px, 3.2vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hv--bento .hv-title { font-size: clamp(2.2rem, 4.3vw, 3.9rem); max-width: 13ch; }

.hv-cell--photo { grid-area: photo; min-height: 280px; margin: 0; }
.hv-cell--photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hv-cell--photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 12, 12, .48);
  backdrop-filter: blur(6px);
}

.hv-cell--rating {
  grid-area: rate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 20px;
  background: var(--hv-accent, #146165);
  color: var(--hv-surface, #faf6ee);
  border-color: transparent;
}

.hv-cell--rating b { font-family: var(--hv-display, "Lora", Georgia, serif); font-size: 28px; line-height: 1; }
.hv-cell--rating .hv-stars { color: inherit; opacity: .82; }
.hv-cell--rating span { font-size: 11px; opacity: .74; }

.hv-cell--offer {
  grid-area: offer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 18px 22px;
  background: var(--hv-surface-2, #f4ecdd);
}

.hv-cell--offer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-cell-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--hv-muted, #5f6b66); }
.hv-cell--offer b { font-family: var(--hv-display, "Lora", Georgia, serif); font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.05; }
.hv-cell--offer p { font-size: 12px; line-height: 1.45; color: var(--hv-muted, #5f6b66); }

/* ---------- 4. Chữ lớn ---------- */
.hv-type-in { position: relative; }

.hv-type-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hv-line, #e4dac8);
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.hv-type-top .hv-kicker { margin: 0; }

.hv-type-mark {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hv-muted, #5f6b66);
}

.hv--type .hv-title {
  font-size: clamp(2.7rem, 6.6vw, 6.2rem);
  line-height: .98;
  max-width: 17ch;
}

.hv-type-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(22px, 3vw, 36px);
}

.hv-type-body .hv-lead { margin-top: 0; font-size: clamp(15px, 1.5vw, 18px); }

.hv-type-side .hv-actions { margin-top: 0; }

.hv-meta {
  display: grid;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid var(--hv-line, #e4dac8);
}

.hv-meta li {
  padding: 9px 0;
  border-bottom: 1px solid var(--hv-line, #e4dac8);
  font-size: 12px;
  line-height: 1.5;
  color: var(--hv-muted, #5f6b66);
}

.hv-strip {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  aspect-ratio: 21 / 7;
  overflow: hidden;
  border-radius: 4px;
  background: var(--hv-surface-2, #f4ecdd);
}

.hv-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }

.hv-strip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(0deg, rgba(8, 10, 10, .66), transparent);
}

/* ---------- Thanh đổi hero ---------- */
.hv-switch {
  position: fixed;
  z-index: 200;
  left: 16px;
  bottom: 16px;
  font-family: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.2;
}

.hv-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #121514;
  color: #f2f2ee;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.hv-switch__btn::-webkit-details-marker { display: none; }

.hv-switch__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ad6a8;
  box-shadow: 0 0 0 3px rgba(122, 214, 168, .18);
}

.hv-switch__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  display: grid;
  gap: 2px;
  min-width: 196px;
  padding: 8px;
  border-radius: 14px;
  background: #121514;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .32);
}

.hv-switch__label {
  padding: 6px 10px 8px;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .44);
}

.hv-switch__panel a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #e9e9e3;
  text-decoration: none;
}

.hv-switch__panel a b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9.5px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
}

.hv-switch__panel a:hover { background: rgba(255, 255, 255, .1); }

.hv-switch__panel a[aria-current="page"] { background: #f2f2ee; color: #121514; }
.hv-switch__panel a[aria-current="page"] b { background: #121514; color: #f2f2ee; }

.hv-switch__home {
  margin-top: 4px;
  padding-top: 11px !important;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 11px;
  color: rgba(255, 255, 255, .5) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hv-split-in { grid-template-columns: 1fr; gap: 34px; }
  .hv-media { max-width: 520px; }
  .hv-spine { display: none; }
  .hv-float { left: auto; right: 14px; bottom: 14px; }
  .hv-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "copy" "photo" "rate" "offer";
  }
  .hv-cell--photo { min-height: 260px; }
  .hv-type-body { grid-template-columns: 1fr; gap: 26px; }
  .hv--type .hv-title { max-width: 14ch; }
}

@media (max-width: 560px) {
  .hv-title { font-size: clamp(2.15rem, 10.5vw, 2.9rem); }
  .hv--cine .hv-title { font-size: clamp(2.15rem, 10vw, 2.9rem); }
  .hv-btn { flex: 1 1 auto; padding-inline: 16px; }
  .hv--cine { min-height: 0; }
  .hv-cine-in { gap: 30px; }
  .hv-cine-rail { align-items: flex-start; }
  .hv-cine-stats { gap: 22px; }
  .hv-strip { aspect-ratio: 4 / 3; }
  .hv-strip figcaption span:last-child { display: none; }
  .hv-switch { bottom: 82px; left: 10px; }
  .hv-switch__panel { min-width: 180px; }
}
