/* =========================================================
   dé Van – La vie en Beauté · Nagelstudio Heide
   Phong cách: tối giản kiểu Đức (lưới rõ ràng, nhiều khoảng trắng,
   đánh số mục, chữ có chân + chữ không chân), tông hồng đất của thương hiệu.
   ========================================================= */

:root {
  --paper: #f6f1ec;
  --paper-2: #eee4dc;
  --ink: #1d191a;
  --muted: #6c6265;
  --rose: #b0837e;
  --rose-soft: #d9bfb9;
  --plum: #3b242a;
  --night: #1c1517;
  --brass: #a58656;
  --line: rgba(29, 25, 26, .14);
  --line-light: rgba(246, 241, 236, .18);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Sacramento', 'Brush Script MT', cursive;

  --pad: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
figure { margin: 0; }
em { font-style: italic; }
::selection { background: var(--rose-soft); color: var(--ink); }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.eyebrow {
  margin: 0;
  font: 500 .72rem/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: transparent;
  font: 500 .74rem/1 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .ico { width: 17px; height: 17px; fill: currentColor; flex: none; }
.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark::before { background: var(--rose); }
.btn--dark:hover { border-color: var(--rose); }
.btn--line { color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light::before { background: var(--rose-soft); }
.btn--ghost { color: var(--paper); border-color: var(--line-light); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); }
.btn--small { padding: 11px 18px; font-size: .68rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform .5s var(--ease), background .4s, box-shadow .4s;
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; transition: height .4s var(--ease); }
/* Không có JS (hoặc JS hỏng): thanh trên luôn có nền để chữ bên dưới không đè lên menu */
.header.is-scrolled, html:not(.js) .header { background: rgba(246, 241, 236, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled .header__inner { height: 66px; }
.header.is-hidden { transform: translateY(-100%); }

.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.logo__script { font: 400 2.3rem/0.9 var(--script); letter-spacing: .01em; }
.logo__sub { font: 500 .62rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 2px; padding-left: 4px; }

.nav { display: flex; gap: 34px; }
.nav a {
  position: relative; text-decoration: none;
  font: 400 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 0;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta { display: none; }   /* nút đặt lịch trong menu: chỉ hiện ở menu điện thoại */

.header__tools { display: flex; align-items: center; gap: 22px; }
/* Nút DE / VI: viên thuốc 2 ô, nền tối trượt sang ngôn ngữ đang chọn */
.lang {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 3px; border: 1px solid var(--line); border-radius: 99px;
  font: 600 .8rem/1 var(--sans); letter-spacing: .12em;
}
.lang::before {
  content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 99px; background: var(--ink); transition: transform .5s var(--ease);
}
.lang--vi::before, .lang.to-vi::before { transform: translateX(100%); }
.lang.to-de::before { transform: none; }
.lang__btn { position: relative; z-index: 1; min-width: 44px; padding: 10px 11px 9px 13px; border: 0; background: none; color: var(--muted); text-align: center; text-decoration: none; border-radius: 99px; transition: color .4s var(--ease); }
.lang__btn[aria-pressed="true"], .lang__btn[aria-current="true"] { color: var(--paper); }
.lang__btn:not([aria-current="true"]):hover { color: var(--ink); }
.lang.to-vi .lang__btn[hreflang="vi"], .lang.to-de .lang__btn[hreflang="de"] { color: var(--paper); }
.lang.to-vi .lang__btn[hreflang="de"], .lang.to-de .lang__btn[hreflang="vi"] { color: var(--muted); }
.lang__sep { display: none; }

.burger { display: none; width: 42px; height: 42px; border: 0; background: none; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; }
.hero::before {           /* lưới dọc mảnh – dấu ấn thiết kế Đức */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .45;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 28px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px;
  font-size: .66rem; letter-spacing: .14em; color: var(--ink);
}
.status:empty { display: none; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #b9a9a3; }
.status.is-open::before { background: #4f9a6a; box-shadow: 0 0 0 0 rgba(79, 154, 106, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(79, 154, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 154, 106, 0); } }

.hero__title {
  margin: 0;
  font: 500 clamp(3rem, 7.2vw, 6.6rem)/.98 var(--serif);
  letter-spacing: -.015em;
}
.hero__title em, .section__title em, .colors__title em { color: var(--rose); font-weight: 500; }
.hero__lead { max-width: 30em; margin: 30px 0 38px; font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions--3 .btn--phone { padding-inline: 17px; }
.hero__actions--3 .btn--phone .btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 54px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 34px 0 0; margin-right: 34px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font: 500 .66rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font: 500 1.6rem/1 var(--serif); }

.hero__media { position: relative; height: min(76vh, 720px); min-height: 460px; }
.hero__img { position: absolute; overflow: hidden; background: var(--paper-2); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--main { top: 0; right: 6%; width: 64%; height: 84%; }
.hero__img--a { left: 0; top: 34%; width: 33%; height: 52%; border: 8px solid var(--paper); }
.hero__img--b { right: 0; bottom: 0; width: 30%; height: 46%; border: 8px solid var(--paper); }
.badge { position: absolute; left: 14%; top: 4%; width: 150px; height: 150px; animation: spin 26s linear infinite; z-index: 2; }
.badge text { font: 500 13.2px var(--sans); text-transform: uppercase; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hiệu ứng vào trang */
.js .hero__img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js .hero__img img { transform: scale(1.18); transition: transform 2s var(--ease); }
.is-loaded .hero__img { clip-path: inset(0 0 0 0); }
.is-loaded .hero__img img { transform: scale(1); }
.is-loaded .hero__img--a { transition-delay: .25s; }
.is-loaded .hero__img--b { transition-delay: .45s; }
.js .badge { opacity: 0; transition: opacity 1s .9s; }
.is-loaded .badge { opacity: 1; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.is-loaded [data-split=""] .w > span { transform: none; }
/* Tiêu đề các mục: từng chữ trồi lên khi khối tiêu đề cuộn tới */
.js [data-split="reveal"] .w > span { transition-duration: 1s; transition-delay: calc(var(--i) * 60ms + 120ms); }
.js .is-in [data-split="reveal"] .w > span, .js [data-split="reveal"].is-in .w > span { transform: none; }
.js [data-anim="fade"] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.is-loaded [data-anim="fade"] { opacity: 1; transform: none; }
.is-loaded .hero__eyebrow { transition-delay: .1s; }
.is-loaded .hero__lead { transition-delay: .6s; }
.is-loaded .hero__actions { transition-delay: .75s; }
.is-loaded .facts { transition-delay: .9s; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.scroll-hint span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
/* Chỉ dùng transform (trước đây đổi "top" → trình duyệt tính lại bố cục mỗi khung hình) */
@keyframes drip { from { transform: translateY(0); } to { transform: translateY(300%); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font: italic 500 clamp(1.6rem, 3vw, 2.5rem)/1 var(--serif); white-space: nowrap; padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: '✦'; font: normal .9rem var(--sans); color: var(--rose); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 12vw, 170px); position: relative; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--night); color: var(--paper); }
.section--dark .eyebrow, .section--dark .section__no { color: rgba(246, 241, 236, .6); }
.section__head { margin-bottom: clamp(44px, 6vw, 80px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__no {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px;
  font: 500 .8rem/1 var(--sans); letter-spacing: .1em; color: var(--brass);
}
.section__no::after { content: ''; width: 64px; height: 1px; background: currentColor; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__title { margin: 0; font: 500 clamp(2.5rem, 5.4vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.01em; max-width: 14em; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.service:nth-child(even) { margin-top: 72px; }
.service__img { overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper-2); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); filter: saturate(.85); }
.service:hover .service__img img { transform: scale(1.08); filter: saturate(1.05); }
.service__body { padding-top: 22px; border-top: 1px solid var(--line); margin-top: 18px; }
.service__no { font: 500 .74rem/1 var(--sans); letter-spacing: .12em; color: var(--brass); }
.service h3 { margin: 10px 0 10px; font: 500 1.85rem/1.1 var(--serif); }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }
.note { margin: clamp(48px, 6vw, 72px) 0 0; max-width: 44em; font: italic 500 1.35rem/1.5 var(--serif); color: var(--plum); }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.perk { padding: 34px 34px 0 0; }
.perk + .perk { padding-left: 34px; border-left: 1px solid var(--line); }
.perk p { margin: 0; }
.perk__big { font: 500 clamp(2.6rem, 4.5vw, 3.8rem)/1 var(--serif); color: var(--rose); }
.perk__t { margin-top: 10px !important; font: 500 .78rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.perk__d { margin-top: 8px !important; color: var(--muted); font-size: .92rem; }

/* ---------- Preise (bảng giá: kẻ dòng mảnh, số căn phải – kiểu bảng giá Đức) ---------- */
.section--prices { padding-top: 0; }
.prices-wrap {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start;
}
.prices-wrap::before { content: ''; grid-column: 1 / -1; height: 1px; background: var(--line); margin-bottom: clamp(24px, 4vw, 50px); }
.prices__head { position: sticky; top: 110px; margin-bottom: 0; }
.prices__lead { margin: 22px 0 0; color: var(--muted); max-width: 22em; }
.prices { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.prices th, .prices td { padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 300; vertical-align: baseline; }
.prices tbody tr { transition: background .35s var(--ease); }
.prices tbody tr:hover { background: linear-gradient(to right, transparent, rgba(217, 191, 185, .22) 30%, transparent); }
.prices__no { display: inline-block; width: 46px; font: 500 .74rem/1 var(--sans); letter-spacing: .12em; color: var(--brass); }
.prices__name { font: 500 1.55rem/1.2 var(--serif); }
.prices__desc { display: block; padding-left: 46px; margin-top: 4px; color: var(--muted); font-size: .88rem; }
.prices td.prices__dur { padding-inline: 24px; text-align: right; white-space: nowrap; color: var(--muted); font-size: .8rem; letter-spacing: .06em; }
.prices td.prices__price { text-align: right; white-space: nowrap; font: 500 1.55rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.prices td.prices__price.is-request { font: italic 500 1.12rem/1.3 var(--serif); color: var(--plum); }
.prices__book, .service__book {
  display: inline-block; margin-top: 8px; padding-bottom: 2px; text-decoration: none;
  font: 500 .66rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rose);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s;
}
.prices__book { margin-left: 46px; display: block; width: max-content; }
.prices__book:hover, .service__book:hover { color: var(--plum); background-size: 100% 1px; }
.service__book { margin-top: 14px; }
.prices__note { margin: 22px 0 0; color: var(--muted); font-size: .88rem; }
.prices__cta { margin-top: 34px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: transparent; border-radius: 99px;
  padding: 10px 18px; font: 400 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  transition: background .35s, color .35s, border-color .35s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.masonry { --gap: 16px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 4px; column-gap: var(--gap); }
.g-item { position: relative; margin: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.js .g-item { opacity: 0; transform: translateY(30px) scale(.98); }
.g-item.is-in, .js .g-item.is-in { opacity: 1; transform: none; }
.g-item.is-settled { transition-delay: 0s; }
.g-item.no-tr { transition: none !important; }
/* Rê chuột (máy tính): nghiêng 3D nhẹ theo vị trí con trỏ (--rx/--ry do main.js đặt) */
.js .g-item.is-in.is-tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease), opacity .8s var(--ease); transition-delay: 0s; }
.g-item button { display: block; width: 100%; height: calc(100% - var(--gap)); padding: 0; border: 0; background: var(--paper); overflow: hidden; position: relative; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .8s; }
.g-item button::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 21, 23, .72), rgba(28, 21, 23, 0) 52%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.g-item figcaption {
  position: absolute; left: 18px; right: 18px; bottom: calc(var(--gap) + 16px); z-index: 1;
  color: var(--paper); font: italic 500 1.25rem/1.2 var(--serif);
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none;
}
.g-item figcaption small { display: block; font: 500 .62rem/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }
.g-item:hover img { transform: scale(1.06); }
.g-item.is-tilt { z-index: 2; }
.g-item button { transition: box-shadow .5s var(--ease); }
.g-item.is-tilt button { box-shadow: 0 24px 44px -26px rgba(28, 21, 23, .45); }
.g-item:hover button::after, .g-item:focus-within button::after { opacity: 1; }
.g-item:hover figcaption, .g-item:focus-within figcaption { opacity: 1; transform: none; }
.gallery__more { display: flex; justify-content: center; margin-top: 40px; }
.gallery__more[hidden] { display: none; }

/* ---------- Colors band ---------- */
.colors { padding: clamp(70px, 9vw, 120px) 0; text-align: center; overflow: hidden; }
.colors__img { height: clamp(180px, 26vw, 380px); overflow: hidden; }
.colors__zoom { height: 100%; }
.colors__img img { width: 118%; max-width: none; height: 100%; object-fit: cover; margin-left: -9%; }
.colors__text { margin-top: clamp(36px, 5vw, 60px); }
.colors__title { margin: 0 0 14px; font: 500 clamp(2.3rem, 5vw, 4.2rem)/1.05 var(--serif); }
.colors__text p { margin: 0 auto; max-width: 32em; color: var(--muted); }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.studio__media { position: relative; padding-bottom: 14%; }
.studio__img--a { width: 82%; aspect-ratio: 3 / 4; overflow: hidden; }
.studio__img--a img { width: 100%; height: 100%; object-fit: cover; }
.studio__img--b { position: absolute; right: 0; bottom: 0; width: 52%; border: 10px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(28, 21, 23, .35); }
.studio__img--portrait { width: 40%; }   /* ảnh nhỏ dạng đứng (3/4) */
.studio__img--b img { width: 100%; height: auto; }
.studio__lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 40px; max-width: 32em; }
.hours { width: 100%; max-width: 460px; border-collapse: collapse; }
.hours caption { text-align: left; padding-bottom: 14px; }
.hours th, .hours td { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.hours tr.is-today th::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); margin-right: 10px; vertical-align: middle; }
.hours .closed { color: var(--muted); }
.closed-notice { max-width: 460px; margin: 0 0 34px; padding: 18px 20px; border-left: 2px solid var(--rose); background: var(--paper-2); }
.closed-notice .eyebrow { margin-bottom: 10px; color: var(--plum); }
.closed-notice ul { list-style: none; margin: 0; padding: 0; }
.closed-notice li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 4px 0; font-size: .92rem; }
.closed-notice__d { font-weight: 500; font-variant-numeric: tabular-nums; }
.closed-notice__v { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: stretch; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.contact__list li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.contact__k { font: 500 .7rem/1.9 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 241, 236, .55); }
.contact__v { font: 500 1.4rem/1.35 var(--serif); text-decoration: none; }
a.contact__v { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); justify-self: start; }
a.contact__v:hover { background-size: 100% 1px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.map { position: relative; min-height: 460px; background: #2a2023; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px;
  background:
    radial-gradient(circle at 30% 20%, rgba(176, 131, 126, .25), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(246, 241, 236, .05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(246, 241, 236, .05) 39px 40px);
}
.map__pin { width: 42px; height: 42px; fill: var(--rose); margin-bottom: 18px; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.map__t { margin: 0 0 10px; font: 500 1.6rem/1.2 var(--serif); }
.map__d { margin: 0 0 26px; max-width: 30em; font-size: .88rem; color: rgba(246, 241, 236, .7); }
.map__more { margin-top: 18px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 241, 236, .6); text-underline-offset: 4px; }
.map__more:hover { color: var(--paper); }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 40px; background: var(--paper); border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 40px; }
.footer__brand { display: flex; flex-direction: column; line-height: 1; }
.footer__addr { margin: 0; color: var(--muted); font-size: .9rem; }
.footer__addr a { text-decoration: none; }
.footer__links { display: flex; gap: 26px; }
.footer__links a, .footer__links button { border: 0; background: none; padding: 0; text-decoration: none; font: 400 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.footer__links a:hover, .footer__links button:hover { color: var(--rose); }
.footer__copy { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

/* ---------- WhatsApp FAB ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--plum); color: var(--paper);
  box-shadow: 0 14px 34px -10px rgba(28, 21, 23, .55);
  transition: transform .6s var(--ease), background .3s;
}
.js .fab { transform: translateY(120px); }
.fab svg { width: 26px; height: 26px; fill: currentColor; }
.fab.is-visible, .js .fab.is-visible { transform: none; }
.fab:hover { background: var(--rose); }

/* ---------- Lightbox ---------- */
dialog { padding: 0; border: 0; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; background: transparent; color: var(--paper); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 15, 16, .94); backdrop-filter: blur(6px); }
.lb__fig { display: flex; flex-direction: column; align-items: center; max-width: min(92vw, 1100px); }
.lb__fig img { max-height: 82vh; max-width: 100%; width: auto; object-fit: cover; background: rgba(246, 241, 236, .04); will-change: transform; }
.lightbox { touch-action: pan-y pinch-zoom; }
/* Mở/đóng: nền mờ dần, nút và chú thích hiện sau ảnh (ảnh do main.js phóng từ ảnh nhỏ) */
.lightbox[open]::backdrop { animation: fadeIn .45s var(--ease) both; }
.lightbox[open] .lb__nav, .lightbox[open] .lb__close, .lightbox[open] figcaption { animation: fadeIn .45s var(--ease) .22s both; }
.lightbox.is-closing::backdrop { animation: fadeOut .42s var(--ease) both; }
.lightbox.is-closing .lb__nav, .lightbox.is-closing .lb__close, .lightbox.is-closing figcaption { animation: fadeOut .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lb__fig figcaption { display: flex; gap: 22px; align-items: baseline; margin-top: 16px; font: italic 500 1.25rem/1.3 var(--serif); }
.lb__count { font: 400 .72rem/1 var(--sans); letter-spacing: .16em; opacity: .6; font-style: normal; }
.lb__nav, .lb__close {
  position: fixed; z-index: 2; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(246, 241, 236, .25); background: rgba(20, 15, 16, .35); color: var(--paper);
  font: 300 2rem/1 var(--sans); display: grid; place-items: center; transition: background .3s, border-color .3s;
}
.lb__nav:hover, .lb__close:hover { background: var(--paper); color: var(--ink); }
.lb__nav--prev { left: 22px; top: 50%; translate: 0 -50%; }
.lb__nav--next { right: 22px; top: 50%; translate: 0 -50%; }
.lb__close { top: 20px; right: 22px; }

/* ---------- Legal ---------- */
.legal { width: min(760px, 94vw); max-height: 88vh; background: var(--paper); color: var(--ink); border-radius: 2px; }
.legal::backdrop { background: rgba(20, 15, 16, .6); backdrop-filter: blur(4px); }
.legal[open] { animation: lbIn .4s var(--ease); }
.legal__body { padding: clamp(28px, 5vw, 56px); overflow: auto; max-height: 88vh; }
.legal h2 { margin: 0 0 22px; font: 500 2.4rem/1.1 var(--serif); }
.legal h3 { margin: 26px 0 6px; font: 500 1.3rem/1.2 var(--serif); }
.legal p { margin: 0 0 14px; font-size: .94rem; }
.legal__close { position: absolute; top: 14px; right: 14px; border-color: var(--line); background: var(--paper); color: var(--ink); }
.legal__vi { padding: 10px 14px; background: var(--paper-2); font-size: .86rem; }
/* Trang pháp lý riêng (/impressum, /datenschutz) */
.legal-page { padding: calc(66px + clamp(44px, 7vw, 96px)) 0 clamp(70px, 9vw, 130px); }
.legal-page__wrap { max-width: 880px; }
.legal__body--page { padding: 0; max-height: none; overflow: visible; }
.legal-page h1 { margin: 0 0 34px; font: 500 clamp(2.6rem, 5.4vw, 4rem)/1.04 var(--serif); letter-spacing: -.01em; }
.legal-page h2 { margin: 40px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); font: 500 1.5rem/1.2 var(--serif); }
.legal-page p { margin: 0 0 14px; max-width: 46em; font-size: .97rem; }
.legal-page a { text-underline-offset: 3px; }
.legal-page a:hover { color: var(--rose); }
.legal__back { margin: 0 0 26px !important; font: 500 .72rem/1 var(--sans) !important; letter-spacing: .16em; text-transform: uppercase; }
.legal__back a { text-decoration: none; color: var(--muted); }
.legal-page .legal__vi { margin-bottom: 26px; }
.legal__pending { color: var(--muted); font-style: italic; }
.legal__links { margin-top: 44px !important; padding-top: 20px; border-top: 1px solid var(--line); font: 500 .74rem/1 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; }
.todo { background: #fff0a8; color: #5e4700; padding: 1px 6px; outline: 1px dashed #c8a400; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   HIỆU ỨNG (chỉ transform/opacity; trạng thái ẩn chỉ bật khi <html> có lớp "js")
   ========================================================= */

/* ---------- Màn chào: logo "dé Van" tự viết ra, rồi màn kéo lên (~1,2 s, chỉ khi vào trang từ bên ngoài) ---------- */
.splash { display: none; }
.splash-on .splash {
  position: fixed; inset: 0; z-index: 300; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper);
  animation: splashOut .7s cubic-bezier(.76, 0, .24, 1) .78s forwards;
}
.splash__logo { width: min(460px, 80vw); height: auto; overflow: visible; }
.splash text { font: 400 112px var(--script); }
.splash__stroke { fill: none; stroke: var(--ink); stroke-width: .9; stroke-dasharray: 520; stroke-dashoffset: 520; animation: splashDraw .85s cubic-bezier(.5, 0, .2, 1) forwards; }
.splash__fill { fill: var(--ink); opacity: 0; animation: splashFill .4s ease .45s forwards; }
.splash__sub { margin-top: -6px; font: 500 .62rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateY(8px); animation: splashSub .5s var(--ease) .35s forwards; }
@keyframes splashDraw { to { stroke-dashoffset: 0; } }
@keyframes splashFill { to { opacity: 1; } }
@keyframes splashSub { to { opacity: 1; transform: none; } }
@keyframes splashOut { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Thanh tiến độ cuộn: vạch hồng mảnh ở mép dưới thanh trên ---------- */
.header__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1; pointer-events: none;
  background: var(--rose); transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Số mục "01 ——": vạch kẻ tự vẽ ra khi khối tiêu đề hiện ---------- */
.section__no::after { transform-origin: 0 50%; transition: transform 1.2s var(--ease) .25s; }
.js [data-reveal]:not(.is-in) .section__no::after { transform: scaleX(0); }

/* ---------- Ảnh hiện bằng mặt nạ: tấm che thu lên + ảnh thu nhỏ 1.15 → 1 ---------- */
[data-mask] { position: relative; overflow: hidden; }
[data-mask]::after {
  content: ''; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  background: var(--mask-bg, var(--paper)); transform: scaleY(0); transform-origin: 50% 0;
}
.js [data-mask]::after { transform: scaleY(1); transition: transform 1.15s cubic-bezier(.76, 0, .24, 1); transition-delay: calc(var(--d, 0) * 110ms + 80ms); }
.js .is-in [data-mask]::after, .js [data-mask].is-in::after { transform: scaleY(0); }
.js [data-mask] > img, .js [data-mask] > .colors__zoom { transform: scale(1.15); transition: transform 1.7s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 80ms); }
.js .is-in [data-mask] > img, .js .is-in [data-mask] > .colors__zoom,
.js [data-mask].is-in > img, .js [data-mask].is-in > .colors__zoom { transform: scale(1); }
.js .service:hover .service__img > img { transform: scale(1.08); transition-delay: 0s; }

/* ---------- Đếm số ---------- */
.count { display: inline-block; text-align: right; }

/* ---------- Gợn sóng khi bấm nút ---------- */
.ripple {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; background: currentColor; opacity: .2;
  transform: translate(var(--x), var(--y)) scale(0);
  animation: ripple .7s var(--ease) forwards;
}
@keyframes ripple { to { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; } }

/* ---------- Chuyển trang (View Transitions – trình duyệt hỗ trợ mới chạy, không thì bỏ qua) ---------- */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vtOut .32s ease-in both; }
::view-transition-new(root) { animation: vtIn .6s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(18px); } }
/* Đang đổi ngôn ngữ: nội dung mờ đi trước khi sang trang mới */
main, .footer { transition: opacity .3s ease; }
.is-leaving main, .is-leaving .footer { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .header__cta { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(even) { margin-top: 0; }
  .service:nth-child(even), .js .service:nth-child(even).is-in { transform: translateY(48px); }
  .masonry { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
    padding: 0 var(--pad); background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav a { font: 500 clamp(2.4rem, 10vw, 3.4rem)/1.15 var(--serif); letter-spacing: 0; text-transform: none; transform: translateY(20px); transition: transform .6s var(--ease); }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav.is-open a { transform: none; }
  .nav.is-open a:nth-child(2) { transition-delay: .05s; }
  .nav.is-open a:nth-child(3) { transition-delay: .1s; }
  .nav.is-open a:nth-child(4) { transition-delay: .15s; }
  .nav.is-open a:nth-child(5) { transition-delay: .2s; }
  .nav.is-open a:nth-child(6) { transition-delay: .25s; }
  .nav .nav__cta {
    display: inline-flex; margin-top: 22px; padding: 17px 26px; background: var(--ink); color: var(--paper);
    font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  }
  .nav .nav__cta::after { display: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .header { background: var(--paper); }

  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { height: 110vw; max-height: 620px; min-height: 0; order: -1; }
  .badge { width: 110px; height: 110px; left: 4%; top: 2%; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts div { padding-right: 12px; margin-right: 12px; }
  .facts dd { font-size: 1.3rem; }
  .scroll-hint { display: none; }

  .studio, .contact { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .perk, .perk + .perk { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .masonry { grid-template-columns: repeat(2, 1fr); --gap: 10px; }
  .footer__inner { grid-template-columns: 1fr; }
  .prices-wrap { grid-template-columns: 1fr; gap: 0; }
  .prices__head { position: static; margin-bottom: 36px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .map { min-height: 380px; }
}
@media (max-width: 520px) {
  .services { grid-template-columns: 1fr; }
  .service:nth-child(even), .js .service:nth-child(even).is-in { transform: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions--3 .btn--phone .btn__label { position: static; width: auto; height: auto; clip: auto; }
  .lb__nav { top: auto; bottom: 22px; translate: none; }
  .header__tools { gap: 8px; }
  .lang__btn { min-width: 40px; padding: 9px 9px 8px 11px; }
  .g-item figcaption { display: none; }
  .header__tools { gap: 10px; }
  .footer__links { flex-wrap: wrap; gap: 16px 22px; }
}
@media (max-width: 600px) {
  /* Bảng giá trên điện thoại: thời gian xuống dòng dưới tên, giá căn phải */
  .prices, .prices tbody { display: block; }
  .prices tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .prices th, .prices td { padding: 0; border: 0; }
  .prices th { grid-column: 1; grid-row: 1; }
  .prices td.prices__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.35rem; }
  .prices td.prices__price.is-request { font-size: 1rem; white-space: normal; max-width: 7.5em; text-align: right; }
  .prices td.prices__dur { grid-column: 1; grid-row: 2; padding: 4px 0 0 34px; text-align: left; }
  .prices__no { width: 34px; }
  .prices__name { font-size: 1.35rem; }
  .prices__desc { padding-left: 34px; }
  .prices__book { margin-left: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  [data-parallax], [data-parallax-x], .btn, .g-item { transform: none !important; }
  .splash { display: none !important; }
  @view-transition { navigation: none; }
}

/* ============ Banner đồng ý cookie quảng cáo (chỉ có khi bật Meta Pixel) ============ */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__inner { pointer-events: auto; width: min(760px, 100%); background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 4px; padding: 22px 24px; box-shadow: 0 22px 50px -18px rgba(28, 21, 23, .55);
  transform: translateY(24px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.consent.is-open .consent__inner { transform: none; opacity: 1; }
.consent__title { margin: 0 0 8px; font: 500 1.35rem/1.2 var(--serif); }
.consent__text { margin: 0 0 16px; font-size: .92rem; line-height: 1.55; }
.consent__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.consent__btn { flex: 1 1 160px; }
@media (max-width: 560px) { .consent { left: 8px; right: 8px; bottom: 8px; } .consent__inner { padding: 18px; } }
.footer__consent { color: inherit; cursor: pointer; }
.legal__consent { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
