/* ==========================================================
   HERO · 3 options, sitting under the chosen header (header-3)
   Palette + fonts come from .h3-page (header-3.css):
     night #21201E · sand #D5C1A9 · taupe #ABA192 · violet #6340C5
     Inter (text) · Fraunces (display)
   ẢNH: ảnh Unsplash TẠM để hình dung — luật nội dung chỉ cho ảnh thật
   của Athena, phải thay trước khi đưa ra ngoài.
   ========================================================== */

/* ---------- Shared hero pieces ---------- */
.hero { position: relative; isolation: isolate; color: var(--on-dark); }

.hero__title {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 300;
  font-size: clamp(2.5rem, 1.35rem + 3.6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
.hero__lead {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, .95rem + .25vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--on-dark-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 10px;
  font: 500 1rem/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.hero-btn--primary { background: var(--violet); color: #fff; box-shadow: 0 10px 30px rgba(99, 64, 197, .32); }
.hero-btn--primary:hover { background: var(--violet-deep); }
.hero-btn--ghost { border: 1px solid var(--glass-line); color: var(--on-dark); background: rgba(254, 248, 231, .04); }
.hero-btn--ghost:hover { border-color: rgba(213, 193, 169, .55); color: var(--sand); }

.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Image slot waiting for Codex (Sếp: ảnh Hero do Codex vẽ, không Unsplash, Claude không tự vẽ).
   When the file arrives: replace the .img-slot with <img class="hero-img" src="assets/img/hero/…">. */
.img-slot {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  width: 100%; height: 100%; padding: 22px;
  background:
    repeating-linear-gradient(135deg, rgba(213, 193, 169, .06) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #2C2A27 0%, #1C1B19 100%);
  border: 1px dashed rgba(213, 193, 169, .45);
  color: var(--on-dark-soft);
}
.img-slot__tag {
  align-self: flex-start; padding: 4px 9px; border-radius: 6px;
  background: rgba(213, 193, 169, .16); color: var(--sand);
  font-size: .75rem; font-weight: 500;
}
.img-slot__what { margin: 0; max-width: 44ch; font-size: .875rem; line-height: 1.5; color: var(--on-dark); }
.img-slot__spec { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--taupe); font-variant-numeric: tabular-nums; }
.hero2__bg.img-slot { padding: 120px 28px 96px; border: 0; }          /* brief sits low-left, above the strip */
/* Portrait slot: only the tag, sitting in the gap between the rating card and the others */
.hero3__portrait .img-slot { justify-content: flex-start; padding: 40% 16px 16px; border-radius: inherit; }
.hero3__brief { position: relative; z-index: 1; margin-top: 64px; }   /* clears the sand block (-28px) */
.hero3__brief .img-slot__what { color: var(--on-dark-soft); font-size: .8125rem; }
.fcard__small--block { display: block; }
.img-slot--mini {                                                       /* avatar-sized slot */
  justify-content: center; align-items: center; padding: 0; border-radius: 50%;
  font-size: .6875rem; font-weight: 600; color: var(--sand);
}

/* Small honest label: images + numbers are placeholders */
.demo-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(23, 22, 20, .85); border: 1px dashed rgba(213, 193, 169, .5);
  font-size: .75rem; color: var(--sand);
}

/* ==========================================================
   OPTION 1 · Split — text left, large image right
   ========================================================== */
.hero1 {
  min-height: 100svh;
  padding: 132px 0 56px;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}
.hero1__inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  min-height: calc(100svh - 188px);
}
.hero1__copy { padding-block: 24px; }

.hero1__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 48px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--glass-line);
}
.hero1__facts li {
  padding: 16px 16px 0 0;
  font-size: .875rem; line-height: 1.45; color: var(--taupe);
}
.hero1__facts li + li { padding-left: 16px; border-left: 1px solid var(--glass-line); }
.hero1__facts strong { display: block; margin-bottom: 2px; font-weight: 500; color: var(--on-dark); }

.hero1__media {
  position: relative; height: min(76svh, 720px); min-height: 440px;
  border-radius: 22px; overflow: hidden;
}
.hero1__media::after {   /* soft warm grade so the photo sits in the palette */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(33, 32, 30, 0) 55%, rgba(33, 32, 30, .45) 100%);
}
.hero1__tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 1;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(23, 22, 20, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .8125rem; color: var(--on-dark-soft);
}

@media (max-width: 960px) {
  .hero1 { padding-top: 112px; }
  .hero1__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero1__media { height: 62vw; min-height: 300px; }
}
@media (max-width: 560px) {
  .hero1__facts { grid-template-columns: 1fr; }
  .hero1__facts li, .hero1__facts li + li { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--glass-line); }
}

/* ==========================================================
   OPTION 2 · Full-bleed photo, dark overlay, centred copy
   ========================================================== */
.hero2 {
  display: grid; place-items: center;
  min-height: 100svh; padding: 140px 24px 120px;
  text-align: center;
}
.hero2__bg { position: absolute; inset: 0; z-index: -2; }
.hero2::before {   /* overlay: dark warm, heavier at the edges where the header and footer strip sit */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(23, 22, 20, .55) 0%, rgba(23, 22, 20, .82) 100%),
    linear-gradient(180deg, rgba(23, 22, 20, .55) 0%, rgba(23, 22, 20, .2) 40%, rgba(23, 22, 20, .9) 100%);
}
.hero2__copy { max-width: 900px; }
.hero2 .hero__title { font-size: clamp(2.75rem, 1.2rem + 4.8vw, 5.75rem); line-height: 1.02; }
.hero2 .hero__lead { margin-inline: auto; max-width: 52ch; color: #E4DCD1; }
.hero2 .hero__actions { justify-content: center; }

.hero2__strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px;
  padding: 18px 24px; border-top: 1px solid var(--glass-line);
  background: rgba(23, 22, 20, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .875rem; color: var(--on-dark-soft);
}
.hero2__strip strong { font-weight: 500; color: var(--sand); }

@media (max-width: 640px) {
  .hero2 { padding: 116px 16px 150px; }
  .hero2__strip { gap: 6px 20px; font-size: .8125rem; }
}

/* ==========================================================
   OPTION 3 · Creative — portrait + floating info cards
   ========================================================== */
.hero3 {
  min-height: 100svh; padding: 132px 0 64px; overflow: hidden;
  background:
    radial-gradient(40% 50% at 78% 45%, rgba(213, 193, 169, .16) 0%, transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}
.hero3__inner {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center; gap: 40px;
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  min-height: calc(100svh - 196px);
}
.hero3 .hero__title { font-size: clamp(2.75rem, 1.2rem + 4.4vw, 5.5rem); }

/* Composition: portrait with a sand block behind it, cards overlapping its corners */
.hero3__stage { position: relative; justify-self: center; width: min(100%, 480px); }
.hero3__frame { position: relative; }
.hero3__frame::before {
  content: ""; position: absolute; inset: 40px -28px -28px 40px; z-index: -1;
  border-radius: 200px 200px 24px 24px;
  background: linear-gradient(160deg, rgba(213, 193, 169, .30), rgba(171, 161, 146, .08));
}
.hero3__portrait {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 200px 200px 24px 24px;   /* arch top: reads as a doorway, not a card */
}

.fcard {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(246, 242, 236, .96); color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  /* Hiệu ứng trôi nổi: để Codex làm (luật Sếp dặn 12/11) */
}
.fcard__big { font-family: var(--font-accent); font-size: 1.75rem; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.fcard__small { font-size: .8125rem; line-height: 1.35; color: var(--ink-soft); }
.fcard__stars { color: #C79A3E; font-size: .875rem; letter-spacing: 1px; }

.fcard--rating { top: 34px; left: -56px; }
.fcard--rating .fcard__body { display: grid; gap: 2px; }

.fcard--patients { right: -44px; top: 46%; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 180px; }

.fcard--doctor { left: -72px; bottom: 36px; max-width: 280px; }
.fcard__avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.fcard__name { font-size: .9375rem; font-weight: 600; }

.hero3__note {
  display: flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: .875rem; color: var(--taupe);
}
.hero3__note::before { content: ""; width: 28px; height: 1px; background: var(--taupe); }

@media (max-width: 1100px) {
  .fcard--rating { left: -24px; }
  .fcard--patients { right: -16px; }
  .fcard--doctor { left: -24px; }
}
@media (max-width: 960px) {
  .hero3 { padding-top: 112px; }
  .hero3__inner { grid-template-columns: 1fr; min-height: 0; gap: 56px; }
  .hero3__stage { width: min(100%, 420px); }
}
@media (max-width: 560px) {
  .hero3__stage { width: calc(100% - 36px); }
  .hero3__frame::before { inset: 24px -16px -16px 24px; }
  .fcard { padding: 10px 12px; gap: 10px; }
  .fcard__big { font-size: 1.375rem; }
  .fcard--rating { left: -12px; top: 18px; }
  .fcard--patients { right: -14px; max-width: 150px; }
  .fcard--doctor { left: -12px; bottom: 18px; max-width: 240px; }
  .fcard__avatar { width: 38px; height: 38px; }
}

/* Very small phones (≤ 360px): three cards don't fit around the portrait — drop the patients card */
@media (max-width: 360px) {
  .fcard--patients { display: none; }
  .hero3__portrait .img-slot { padding-top: 52%; }
}

/* Codex images are in: keep the dentist + monitor in frame when option 1 crops square on phones */
.hero1__media .hero-img { object-position: 62% 40%; }

/* ==========================================================
   OPTION 4 · Full-bleed photo, copy in a frosted panel bottom-left
   (variation on 2: same immersion, but anchored left, not centred)
   ========================================================== */
.hero4 {
  display: flex; align-items: flex-end;
  min-height: 100svh; padding: 140px 24px 48px;
}
.hero4__bg { position: absolute; inset: 0; z-index: -2; object-position: 30% 50%; }
.hero4::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(23, 22, 20, .55) 0%, rgba(23, 22, 20, 0) 30%),
    linear-gradient(0deg, rgba(23, 22, 20, .75) 0%, rgba(23, 22, 20, 0) 55%);
}
.hero4__wrap { width: 100%; max-width: 1320px; margin: 0 auto; }
.hero4__panel {
  max-width: 640px; padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--glass-line); border-radius: 20px;
  background: rgba(33, 32, 30, .62);
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.hero4 .hero__title { font-size: clamp(2.375rem, 1.3rem + 3vw, 4rem); }
.hero4__facts {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin: 28px 0 0; padding: 20px 0 0; list-style: none;
  border-top: 1px solid var(--glass-line);
  font-size: .875rem; color: var(--on-dark-soft);
}
.hero4__facts li::before { content: "·"; margin-right: 8px; color: var(--sand); }
.hero4__facts li:first-child::before { content: none; }

@media (max-width: 640px) {
  .hero4 { padding: 110px 12px 16px; }
  .hero4__panel { padding: 24px 20px; border-radius: 16px; }
}

/* ==========================================================
   OPTION 5 · Split, image bleeding to the right edge, full height
   (variation on 1: same split, but the photo owns half the screen)
   ========================================================== */
.hero5 {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
}
.hero5__copy {
  align-self: center; justify-self: end;
  width: 100%; max-width: 620px;
  padding: 140px clamp(24px, 4vw, 64px) 64px 24px;
}
.hero5__media { position: relative; min-height: 100%; }
.hero5__media .hero-img { position: absolute; inset: 0; object-position: 62% 40%; }
.hero5__media::before {   /* soft seam so the photo melts into the dark column */
  content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 18%;
  background: linear-gradient(90deg, var(--night) 0%, rgba(33, 32, 30, 0) 100%);
}
.hero5__contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--glass-line);
  font-size: .875rem; color: var(--taupe);
}
.hero5__contact a { color: var(--on-dark); font-weight: 500; font-variant-numeric: tabular-nums; }
.hero5__contact a:hover { color: var(--sand); }

@media (max-width: 960px) {
  .hero5 { grid-template-columns: 1fr; }
  .hero5__copy { justify-self: stretch; max-width: none; padding: 112px 24px 40px; }
  .hero5__media { min-height: 72vw; }
  .hero5__media::before { inset: 0 0 auto 0; width: auto; height: 22%; background: linear-gradient(180deg, var(--night-deep) 0%, rgba(33, 32, 30, 0) 100%); }
}

/* ==========================================================
   OPTION 6 · Cinematic: wide photo, people on the right,
   dark left side carries the copy (blend of 1 and 2)
   ========================================================== */
.hero6 {
  display: flex; align-items: center;
  min-height: 100svh; padding: 140px 24px 120px;
}
.hero6__bg { position: absolute; inset: 0; z-index: -2; object-position: 70% 50%; }
.hero6::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 22, 20, .92) 0%, rgba(23, 22, 20, .7) 38%, rgba(23, 22, 20, 0) 68%),
    linear-gradient(0deg, rgba(23, 22, 20, .7) 0%, rgba(23, 22, 20, 0) 30%);
}
.hero6__wrap { width: 100%; max-width: 1320px; margin: 0 auto; }
.hero6__copy { max-width: 600px; }
.hero6__facts {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1320px; margin: 0 auto; padding: 0 24px 28px; list-style: none;
}
.hero6__facts li {
  padding: 16px 20px 0 0; border-top: 1px solid var(--glass-line);
  font-size: .875rem; line-height: 1.45; color: var(--taupe);
}
.hero6__facts li + li { padding-left: 20px; }
.hero6__facts strong { display: block; margin-bottom: 2px; font-weight: 500; color: var(--on-dark); }

@media (max-width: 960px) {
  .hero6__bg { object-position: 78% 50%; }
  .hero6::before { background: linear-gradient(0deg, rgba(23, 22, 20, .95) 0%, rgba(23, 22, 20, .75) 50%, rgba(23, 22, 20, .35) 100%); }
}
@media (max-width: 640px) {
  .hero6 { align-items: flex-end; padding: 110px 16px 210px; }
  .hero6__facts { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .hero6__facts li, .hero6__facts li + li { padding: 10px 0; }
}
