/* ============================================================
   Sông Hàn Zen Spa — template tĩnh độc lập
   Không dùng chung class/biến với bất kỳ template nào khác (prefix: zs-)
   ============================================================ */

:root {
  --cream:       #F3EEE4;
  --cream-soft:  #FAF7F0;
  --cream-dark:  #E8E0D2;
  --green-deep:  #2C3527;
  --green:       #4A5A3C;
  --ink:         #2A2620;
  --muted:       #6B6255;
  --gold:        #B99A6B;
  --line:        rgba(42, 38, 32, .14);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script:  "Dancing Script", "Brush Script MT", cursive;

  --wrap: 1240px;
  --gutter: 40px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* image-set: trình duyệt tự lấy AVIF, rơi về WebP nếu không hỗ trợ */
  background-image: url("./images/bg-trang.webp");
  background-image: image-set(url("./images/bg-trang.avif") type("image/avif"),
                              url("./images/bg-trang.webp") type("image/webp"));
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 500; }

ul { margin: 0; padding: 0; list-style: none; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.zs-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.zs-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-deep); color: var(--cream); padding: 10px 18px;
}
.zs-skip:focus { left: 12px; top: 12px; }

.zs-anchor { height: 0; scroll-margin-top: 100px; }

/* ---------- typography shared ---------- */

.zs-eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.zs-eyebrow--light { color: rgba(243, 238, 228, .62); }

.zs-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.16;
  letter-spacing: .005em;
  color: var(--ink);
}
.zs-h2--light { color: var(--cream-soft); }

/* ---------- buttons ---------- */

.zs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .01em;
  cursor: pointer;
  border: 0;
  background: none;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.zs-btn svg { width: 17px; height: 17px; flex: none; }

/* nút pill viền — header */
.zs-btn--pill {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 247, 240, .72);
  color: var(--ink);
  white-space: nowrap;
}
.zs-btn--pill svg { width: 15px; height: 15px; }
.zs-btn--pill:hover { background: var(--green-deep); color: var(--cream-soft); border-color: var(--green-deep); }

/* nút "vệt cọ" tối — hero */
.zs-btn--brush {
  position: relative;
  padding: 15px 30px;
  color: var(--cream-soft);
  border-radius: 999px 999px 999px 999px / 60% 40% 55% 45%;
  background: var(--green-deep);
  box-shadow: 0 10px 26px rgba(44, 53, 39, .22);
}
.zs-btn--brush:hover { transform: translateY(-2px); background: #232b1f; }

/* nút viền sáng — trên nền xanh đậm */
.zs-btn--ghost {
  padding: 12px 26px;
  border: 1px solid rgba(243, 238, 228, .45);
  border-radius: 999px;
  color: var(--cream-soft);
}
.zs-btn--ghost:hover { background: rgba(243, 238, 228, .12); border-color: var(--cream-soft); }

/* nút viền tối — ưu đãi */
.zs-btn--outline {
  padding: 12px 26px;
  border: 1px solid rgba(42, 38, 32, .38);
  border-radius: 999px;
  color: var(--ink);
}
.zs-btn--outline:hover { background: var(--green-deep); color: var(--cream-soft); border-color: var(--green-deep); }

/* ============================================================
   HEADER
   ============================================================ */

.zs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(243, 238, 228, .82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.zs-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(243, 238, 228, .95);
}

.zs-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.zs-brand { display: flex; align-items: center; gap: 11px; flex: 0 1 auto; min-width: 0; }
.zs-brand img { width: 70px; height: auto; }
.zs-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.zs-brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
}
.zs-brand__tag {
  font-size: 8.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.zs-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 13.5px;
}
.zs-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
  transition: color .22s ease;
}
.zs-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.zs-nav a:hover::after,
.zs-nav a.is-active::after { transform: scaleX(1); }

.zs-header__actions { display: flex; align-items: center; gap: 14px; flex: none; }

.zs-header .dn-lang {
  --dn-lang-fg: var(--ink);
  --dn-lang-bg: rgba(250, 247, 240, .72);
  --dn-lang-border: var(--line);
  --dn-lang-menu-bg: var(--cream-soft);
  --dn-lang-font: var(--font-body);
}
.zs-header .dn-lang__btn {
  padding: 10px 12px;
}
.zs-header .dn-lang__btn:hover,
.zs-header .dn-lang.is-open .dn-lang__btn {
  background: var(--green-deep);
  color: var(--cream-soft);
  border-color: var(--green-deep);
}
.zs-header .dn-lang__opt[aria-current="true"] { color: var(--green); }

.zs-burger {
  width: 38px; height: 32px;
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.zs-burger span {
  display: block; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease;
}
.zs-burger span:nth-child(1) { width: 22px; }
.zs-burger span:nth-child(2) { width: 22px; }
.zs-burger span:nth-child(3) { width: 14px; }
.zs-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.zs-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.zs-burger[aria-expanded="true"] span:nth-child(3) { width: 22px; transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.zs-hero {
  position: relative;
  width: 100%;
  min-height: clamp(430px, 34vw, 540px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.zs-hero__bg { position: absolute; inset: 0; display: block; }
.zs-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.zs-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.zs-hero__copy { max-width: 540px; padding: 48px 0; }

.zs-hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 22px;
  white-space: nowrap;   /* giữ đúng 2 dòng như ảnh mẫu */
}

.zs-hero__lead {
  margin: 0 0 32px;
  max-width: 420px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.zs-hero__script {
  position: absolute;
  z-index: 2;
  top: 20%;
  right: clamp(16px, 3.5vw, 58px);
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.5;
  color: var(--cream-soft);
  text-align: center;
  transform: rotate(-7deg);
  text-shadow: 0 2px 14px rgba(20, 25, 16, .55);
  pointer-events: none;
}

/* ============================================================
   BẢNG GIÁ DỊCH VỤ
   ============================================================ */

.zs-services {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--gutter) 88px;
}

.zs-services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.zs-services__note {
  margin: 0 0 6px;
  font-family: var(--font-script);
  font-size: 16px;
  line-height: 1.6;
  text-align: right;
  color: var(--muted);
  flex: none;
}

/* 9 dịch vụ: 3 hàng × 3 cột trên desktop. */
.zs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.zs-card {
  display: flex;
  flex-direction: column;
  min-width: 0;   /* không để dòng "thời lượng + giá" đẩy rộng ô lưới */
  background: rgba(250, 247, 240, .72);
  border: 1px solid rgba(42, 38, 32, .08);
  border-radius: var(--radius);
  padding: 10px 10px 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.zs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(44, 53, 39, .13);
}

/* <picture> là inline element nên phải tự cấp khung tỉ lệ cho ảnh card */
.zs-card > picture {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
}
.zs-card > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-card__body { padding: 14px 6px 0; flex: 1; }
.zs-card__body h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 7px;
  color: var(--ink);
}
.zs-card__body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.zs-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 16px 6px 14px;
}

.zs-dur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.zs-dur svg { width: 14px; height: 14px; stroke-width: 1.5; }

/* VND + USD cạnh nhau. USD ~ 25.000đ, làm tròn cho menu khách quốc tế. */
.zs-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--cream-soft);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.zs-price__usd {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(243, 238, 228, .34);
  font-weight: 500;
  opacity: .9;
}

/* ============================================================
   KHÔNG GIAN
   ============================================================ */

/* Các section nền tràn viền: body không giới hạn chiều rộng nên chỉ cần width:100%.
   KHÔNG dùng margin: 0 calc(50% - 50vw) — 50vw tính cả thanh cuộn → tràn ngang. */
/* Ảnh khong-gian-background.png dùng NGUYÊN BẢN, phủ trọn section. Ảnh đã có sẵn
   mép cọ và dải cream trên/dưới nên không cắt, không tách alpha, không chỉnh gì.
   Vùng mép cọ chiếm ~14% trên / ~13% dưới chiều cao ảnh → nội dung chừa padding
   tương ứng để không bị mép cọ che. */
.zs-space {
  width: 100%;
  background-image:
    image-set(url("./images/khong-gian-bg.avif") type("image/avif"),
              url("./images/khong-gian-bg.webp") type("image/webp"));
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: var(--space-pad-top) 0 var(--space-pad-bottom);
}

:root {
  --space-pad-top: 158px;     /* ≥14% chiều cao section — vùng mép cọ trên */
  --space-pad-bottom: 148px;  /* ≥13% chiều cao section — vùng mép cọ dưới */
}

/* Cột chữ ~24% bề rộng nội dung (mẫu: 310 / 1445), đủ để H2 giữ đúng 2 dòng. */
.zs-space__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px var(--gutter) 0;   /* vùng mép cọ đã nằm trong padding của .zs-space */
  display: grid;
  grid-template-columns: minmax(276px, 24%) 1fr;
  column-gap: 34px;
  align-items: center;
}

.zs-space__copy { max-width: 400px; }
/* mẫu ngắt đúng "Một không gian" / "để thả lỏng" — không cho wrap tự do */
.zs-space__copy .zs-h2 {
  font-size: clamp(28px, 2.55vw, 40px);
  white-space: nowrap;
}
.zs-space__lead {
  margin: 0 0 30px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(243, 238, 228, .78);
}

/* Hàng 1 có 3 ô, hàng 2 có 4 ô → dùng lưới 24 cột chung cho cả hai.
   Hàng 1: 13 + 5 + 6 (đo từ mẫu: 585 / 252 / 268)
   Hàng 2: 6 + 6 + 6 + 6 (285 / 282 / 277 / 257 — gần như đều)
   Chiều cao 2 hàng theo tỉ lệ 350 : 263 của ảnh mẫu. */
.zs-mosaic {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: 350fr 263fr;
  aspect-ratio: 1130 / 633;
  gap: 10px;
}

.zs-tile--lead { grid-row: 1; grid-column: span 13; }
.zs-tile--a    { grid-row: 1; grid-column: span 5; }
.zs-tile--b    { grid-row: 1; grid-column: span 6; }
.zs-tile--c,
.zs-tile--d,
.zs-tile--e,
.zs-tile--f    { grid-row: 2; grid-column: span 6; }

/* Hàng 3: cố ý thò sang trái ~7% so với mép nội dung, mép phải vẫn thẳng hàng. */
.zs-mosaic-bottom {
  max-width: var(--wrap);
  margin: 10px auto 0;
  padding: 0 var(--gutter) 34px calc(var(--gutter) + 7%);
  display: grid;
  grid-template-columns: 1.24fr 1fr 1.05fr 1fr;
  gap: 10px;
  aspect-ratio: 1342 / 300;
}

.zs-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  min-height: 0;
}
.zs-tile picture { display: block; width: 100%; height: 100%; }
.zs-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
/* Ảnh kho là ngang; ô mosaic 2/3 dọc, ô trà đạo rất thấp — ghim điểm nhìn. */
.zs-tile--lead img { object-position: 58% 62%; }
.zs-tile--a img { object-position: 30% 52%; }
.zs-tile--b img { object-position: 50% 58%; }
.zs-tile--tea img { object-position: 50% 68%; }
.zs-tile:hover img { transform: scale(1.05); }

.zs-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(20, 25, 16, .72), transparent);
  pointer-events: none;
}

.zs-tile figcaption {
  position: absolute;
  left: 13px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--font-script);
  font-size: 15px;
  color: var(--cream-soft);
  text-shadow: 0 1px 8px rgba(20, 25, 16, .6);
}
.zs-tile--lead figcaption { font-size: 18px; left: 18px; bottom: 14px; }

/* ============================================================
   ƯU ĐÃI
   ============================================================ */

.zs-offer {
  position: relative;
  width: 100%;
  background-image: url("./images/uu-dai-bg.webp");
  background-image: image-set(url("./images/uu-dai-bg.avif") type("image/avif"),
                              url("./images/uu-dai-bg.webp") type("image/webp"));
  background-size: cover;
  background-position: center right;
}
/* phủ cream mờ dần bên trái để chữ tối đọc được trên ảnh */
.zs-offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--cream) 0%, rgba(243, 238, 228, .92) 26%, rgba(243, 238, 228, .45) 42%, rgba(243, 238, 228, 0) 56%);
}

.zs-offer__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 62px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, .55fr);
  align-items: center;
  gap: 24px;
  min-height: 250px;
}

.zs-offer__copy { max-width: 560px; }
.zs-offer__lead {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.zs-offer__badge { position: relative; width: 270px; justify-self: center; }
.zs-offer__badge img { width: 100%; height: auto; }
.zs-offer__badge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
}
.zs-offer__small { font-size: 12.5px; color: var(--muted); }
.zs-offer__pct {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

/* ============================================================
   CẢM NHẬN KHÁCH HÀNG
   ============================================================ */

.zs-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* logo Google: các <path> đã có fill riêng, chỉ cần tắt stroke thừa
   mà rule `svg { stroke: currentColor }` ở đầu file áp xuống */
.zs-gmark { width: 18px; height: 18px; flex: none; stroke: none; }
.zs-gmark--lg { width: 30px; height: 30px; }

.zs-stars { display: inline-flex; gap: 2.5px; color: var(--gold); }
.zs-stars svg { width: 13px; height: 13px; stroke: none; }

.zs-voices {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 76px var(--gutter) 84px;
  scroll-margin-top: 90px;   /* header dính — chừa chỗ khi nhảy từ menu */
}

.zs-voices__head { text-align: center; margin-bottom: 40px; }
.zs-voices__head .zs-eyebrow { margin-bottom: 12px; }

/* 1.42 : 1 — bám theo tỉ lệ 470 / 325 của bản thiết kế */
.zs-voices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

/* Hai khối duy nhất của section — bên trong không lồng thêm thẻ nền nào nữa */
.zs-voice,
.zs-booking {
  display: flex;
  flex-direction: column;
  /* ô lưới mặc định min-width:auto → carousel giữ nguyên bề rộng min-content
     của cả 4 slide và làm tràn ngang ở mobile; phải cho phép co lại */
  min-width: 0;
  background: rgba(250, 247, 240, .82);
  border: 1px solid rgba(42, 38, 32, .08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(44, 53, 39, .06);
}

.zs-voice { padding: 22px 26px 24px; }

/* ---- dải điểm Google ---- */

.zs-gscore {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.zs-gscore__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.zs-gscore__meta { display: flex; flex-direction: column; gap: 3px; }
.zs-gscore__count { font-size: 12px; color: var(--muted); }

/* ---- carousel ---- */

.zs-slider {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 0 4px;
}

.zs-slider__nav {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.zs-slider__nav svg { width: 19px; height: 19px; stroke-width: 1.5; }
.zs-slider__nav:hover { background: var(--cream-dark); color: var(--ink); }

.zs-slider__window { flex: 1; min-width: 0; overflow: hidden; }

.zs-slider__track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.zs-quote {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 6px;
  text-align: center;
}

.zs-quote__who { display: inline-flex; align-items: center; gap: 13px; text-align: left; }

.zs-avatar {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--cream-soft);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(185, 154, 107, .26);
}
.zs-avatar--gold { background: var(--gold); }

.zs-quote__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

/* trích dẫn canh trái trong một cột hẹp, cả cột thì canh giữa thẻ — như bản thiết kế */
.zs-quote__text {
  margin: 0;
  max-width: 340px;
  font-size: 13.5px;
  line-height: 1.85;
  text-align: left;
  color: var(--muted);
}
.zs-quote__svc { margin: 0; font-size: 11.5px; letter-spacing: .04em; color: rgba(107, 98, 85, .8); }

.zs-dots { display: flex; justify-content: center; gap: 7px; padding: 14px 0 18px; }
.zs-dots button {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(42, 38, 32, .22);
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.zs-dots button[aria-current="true"] { background: var(--gold); transform: scale(1.35); }

/* ---- hai nút Google ---- */

.zs-voice__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.zs-voice__cta .zs-btn { flex: 1 1 auto; justify-content: center; text-align: center; }

.zs-btn--google {
  padding: 12px 22px;
  border: 1px solid rgba(42, 38, 32, .16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(44, 53, 39, .07);
}
.zs-btn--google:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(44, 53, 39, .13); }
.zs-voice__cta .zs-btn--outline { padding: 12px 22px; }
.zs-voice__cta .zs-btn--outline svg { width: 15px; height: 15px; }

/* ---- form đặt lịch ---- */

.zs-booking { padding: 24px 26px 26px; }

.zs-booking__title {
  margin: 0 0 20px;
  padding-bottom: 14px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.zs-field { position: relative; margin: 0 0 12px; }

.zs-field__ico,
.zs-field__caret {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--gold);
  pointer-events: none;
}
.zs-field__ico { left: 15px; }
.zs-field__caret { right: 14px; width: 16px; height: 16px; color: var(--muted); }

.zs-field input,
.zs-field select {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(42, 38, 32, .16);
  border-radius: 4px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.zs-field select { appearance: none; padding-right: 38px; cursor: pointer; }
.zs-field select:invalid { color: var(--muted); }   /* option rỗng còn chọn → xám như placeholder */
.zs-field input::placeholder { color: var(--muted); opacity: 1; }
.zs-field input:focus,
.zs-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 154, 107, .16);
}
/* đã có icon lịch riêng bên trái, bỏ nút lịch mặc định của trình duyệt */
.zs-field input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: 0; }

.zs-booking__submit {
  margin-top: auto;   /* cột trái cao hơn thì nút tụt xuống đáy cho hai thẻ bằng nhau */
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-soft);
  background: var(--gold);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.zs-booking__submit:hover { background: #a9884f; transform: translateY(-1px); }

.zs-booking__msg {
  margin: 10px 0 0;
  min-height: 17px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--green);
}
.zs-booking__msg.is-error { color: #A6503C; }

/* ============================================================
   HỆ THỐNG CHI NHÁNH
   ============================================================ */

/* nền cream đậm hơn một nấc để tách khỏi section cảm nhận phía trên */
.zs-branches { width: 100%; background: rgba(232, 224, 210, .45); }

.zs-branches__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--gutter) 84px;
}

.zs-branches__head { text-align: center; margin-bottom: 40px; }
.zs-branches__head .zs-eyebrow { margin-bottom: 12px; }

.zs-branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.zs-branch {
  background: rgba(250, 247, 240, .9);
  border: 1px solid rgba(42, 38, 32, .08);
  border-radius: var(--radius);
  padding: 22px 22px 22px;
}

.zs-branch__name {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
}

.zs-branch__info li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}
.zs-branch__info svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--green); }
.zs-branch__info a:hover { color: var(--ink); }

.zs-branch__map {
  margin-top: 16px;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cream-dark);
}
.zs-branch__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */

.zs-footer {
  width: 100%;
  background: #211E19;
  color: rgba(243, 238, 228, .72);
  font-size: 13px;
}

.zs-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 46px var(--gutter) 34px;
  display: grid;
  grid-template-columns: 1.05fr .9fr .85fr 1.2fr;
  gap: 40px;
}

.zs-footer__logo {
  width: 40px;
  height: auto;
  /* logo gốc là sen màu tối trên nền trong suốt → đảo sang sáng cho nền tối */
  filter: brightness(0) invert(1);
  opacity: .92;
  margin-bottom: 9px;
}
.zs-footer__brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--cream-soft);
}
.zs-footer__brand-tag {
  margin: 3px 0 0;
  font-size: 8px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, .5);
}

.zs-footer__h {
  margin: 0 0 15px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--cream-soft);
}

.zs-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.zs-contact svg { width: 14px; height: 14px; flex: none; color: rgba(243, 238, 228, .55); }
.zs-contact a:hover { color: var(--cream-soft); }

.zs-social { display: flex; gap: 10px; }
.zs-social a {
  width: 31px; height: 31px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 238, 228, .28);
  color: rgba(243, 238, 228, .8);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.zs-social a:hover { background: var(--cream-soft); color: #211E19; border-color: var(--cream-soft); }
.zs-social svg { width: 15px; height: 15px; stroke-width: 1.5; }
.zs-social__zalo span { font-size: 9.5px; font-weight: 600; letter-spacing: .01em; }

.zs-footer__note { margin: 0 0 14px; line-height: 1.7; color: rgba(243, 238, 228, .6); }

.zs-subscribe {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 238, 228, .07);
  border: 1px solid rgba(243, 238, 228, .2);
  border-radius: 4px;
  padding: 4px 4px 4px 14px;
}
.zs-subscribe input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--cream-soft);
  padding: 8px 0;
}
.zs-subscribe input::placeholder { color: rgba(243, 238, 228, .45); }
.zs-subscribe button {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  flex: none;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  background: rgba(243, 238, 228, .14);
  color: var(--cream-soft);
  transition: background-color .25s ease, color .25s ease;
}
.zs-subscribe button:hover { background: var(--cream-soft); color: #211E19; }
.zs-subscribe button svg { width: 16px; height: 16px; }

.zs-subscribe__msg {
  margin: 9px 0 0;
  min-height: 17px;
  font-size: 12px;
  color: var(--gold);
}

.zs-footer__bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 15px var(--gutter) 22px;
  border-top: 1px solid rgba(243, 238, 228, .12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: rgba(243, 238, 228, .55);
}
.zs-footer__bar p { margin: 0; }
.zs-footer__bar a { color: var(--cream-soft); text-decoration: underline; text-underline-offset: 3px; }
.zs-footer__bar a:hover { color: #fff; }
.zs-footer__links { display: flex; gap: 12px; }
.zs-footer__links a { text-decoration: none; color: inherit; }
.zs-footer__links a:hover { color: var(--cream-soft); }

/* ============================================================
   ANIMATION VÀO VIEWPORT
   ============================================================ */

.zs-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.zs-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .zs-reveal { opacity: 1; transform: none; transition: none; }
  .zs-card, .zs-tile img, .zs-btn { transition: none; }
  .zs-slider__track { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  :root { --gutter: 28px; }

  .zs-nav { gap: 20px; font-size: 12.5px; }

  .zs-hero__copy { max-width: 440px; padding: 40px 0; }

  /* nền lá được vẽ ở hai mép ảnh gốc (1024px) — màn hẹp hơn phải phóng nền ra
     ngoài viewport, nếu không dải lá sẽ đè lên chữ */
  body { background-size: 150% auto; }

  /* section cao hơn desktop → mép cọ trong ảnh bị kéo dày theo → chừa nhiều hơn */
  :root { --space-pad-top: 250px; --space-pad-bottom: 235px; }

  /* cột chữ lên trên, khối ảnh xuống dưới; hàng 3 hết thò trái */
  .zs-space__inner { grid-template-columns: 1fr; row-gap: 34px; padding-bottom: 0; }
  .zs-space__copy { max-width: none; }
  .zs-mosaic { aspect-ratio: 1130 / 700; }
  .zs-mosaic-bottom { padding-left: var(--gutter); aspect-ratio: 1342 / 340; }

  .zs-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .zs-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0 var(--gutter);
    background: var(--cream-soft);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .zs-nav.is-open { max-height: 380px; }
  .zs-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .zs-nav a:last-child { border-bottom: 0; }
  .zs-nav a::after { display: none; }

  .zs-header__inner { position: relative; justify-content: space-between; gap: 12px; }
  .zs-header__actions { margin-left: auto; }
  .zs-burger { display: flex; }

  /* dưới 820px ảnh hero lên trên, chữ nằm dưới trên nền cream (ảnh gốc quá ngang) */
  .zs-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    overflow: visible;
  }
  .zs-hero__bg { position: relative; inset: auto; }
  .zs-hero__bg img { height: clamp(220px, 44vw, 320px); object-position: 78% center; }
  .zs-hero__inner { padding: 30px var(--gutter) 40px; }
  .zs-hero__copy { max-width: none; padding: 0; }
  .zs-hero__title { white-space: normal; }
  .zs-hero__lead { max-width: none; }
  .zs-hero__script { top: 16px; }

  .zs-services__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .zs-services__note { text-align: left; }

  body { background-size: 200% auto; }

  /* 2 cột: ô lớn trải ngang, các ô còn lại xếp đôi */
  .zs-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px repeat(3, 150px);
    aspect-ratio: auto;
    gap: 8px;
  }
  .zs-mosaic > .zs-tile { grid-row: auto; grid-column: auto; }
  /* phải cùng độ ưu tiên với rule reset ở trên, nếu không ô lớn mất span 2 */
  .zs-mosaic > .zs-tile--lead { grid-column: span 2; }

  .zs-mosaic-bottom {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    aspect-ratio: auto;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 30px;
  }

  .zs-offer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 48px var(--gutter); }
  .zs-offer__copy { max-width: none; }
  /* ảnh nền sáng dần về phía dưới → cần phủ cream đậm hơn để chữ tối vẫn đọc được */
  .zs-offer::before { background: rgba(243, 238, 228, .9); }

  /* dưới 820px cột form không còn đủ rộng cho 4 ô nhập → xếp dọc */
  .zs-voices { padding: 56px var(--gutter) 60px; }
  .zs-voices__grid { grid-template-columns: 1fr; gap: 20px; }
  .zs-branch-grid { grid-template-columns: 1fr; gap: 20px; }
  .zs-branches__inner { padding: 56px var(--gutter) 64px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }

  :root { --space-pad-top: 232px; --space-pad-bottom: 218px; }

  body { font-size: 14.5px; background-size: 290% auto; }

  .zs-header__inner { padding: 12px var(--gutter); gap: 8px; }
  .zs-brand img { width: 55px; }
  .zs-brand__name { font-size: 16px; }
  .zs-brand__tag { font-size: 7px; letter-spacing: .2em; }
  .zs-header__actions { gap: 8px; }
  .zs-header .dn-lang__btn { padding: 8px 10px; }
  .zs-btn--pill { padding: 8px 13px; font-size: 11.5px; }
  .zs-btn--pill svg,
  .zs-btn__more { display: none; }   /* nút rút gọn còn "Đặt lịch" */
  .zs-burger { width: 30px; }

  .zs-hero__title { font-size: 34px; }
  .zs-hero__script { font-size: 13px; top: 12px; right: 12px; }

  .zs-services { padding: 48px var(--gutter) 56px; }
  .zs-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .zs-space__inner { padding: 22px var(--gutter) 0; }
  .zs-mosaic { grid-template-rows: 172px repeat(3, 128px); gap: 7px; }
  .zs-mosaic-bottom { grid-auto-rows: 128px; gap: 7px; margin-top: 7px; padding-bottom: 22px; }
  .zs-tile figcaption { font-size: 13px; left: 9px; bottom: 7px; }
  .zs-tile--lead figcaption { font-size: 15px; left: 11px; bottom: 9px; }

  .zs-offer__pct { font-size: 42px; }
  .zs-offer__badge { width: 200px; }

  .zs-footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .zs-footer__bar { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* mũi tên hai bên ăn mất bề ngang của trích dẫn → bỏ, còn lại chấm + vuốt ngang */
  .zs-voice, .zs-booking { padding: 20px 16px; }
  .zs-slider { padding: 18px 0 0; }
  .zs-slider__nav { display: none; }
  .zs-dots { padding: 14px 0 16px; }
  .zs-quote { gap: 13px; }
  .zs-quote__text { font-size: 13px; }
  .zs-voice__cta { margin-top: 18px; }
  .zs-voice__cta .zs-btn { flex: 1 1 100%; font-size: 12.5px; }
  .zs-gscore__num { font-size: 26px; }
  .zs-branch__map { aspect-ratio: 16 / 9; }
}
