/* Valita Spa — giao diện website giới thiệu (bản xem trước) */
:root {
  --cream: #fffcf9;
  --sand: #fcf6ee;
  --blush: #fdf0f1;
  --rose-soft: #f3d3d6;
  --rose: #a94b63;
  --rose-hover: #8f3a51;
  --rose-deep: #833950;
  --ink: #4d3e42;
  --muted: #6e5f64;
  --line: #f0e4df;
  --champagne: #dcc391;
  --champagne-soft: #f6ecd8;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 8px 28px rgba(150, 90, 105, 0.07);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose-hover); }
h1, h2, h3 { font-family: var(--serif); color: var(--rose-deep); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section.alt { background: var(--sand); }
.section.blush { background: var(--blush); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--rose); margin-bottom: .8em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rose); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Dải thông báo bản xem trước */
.preview-bar { background: var(--rose-deep); color: #fff; font-size: .82rem; text-align: center; padding: 6px 12px; line-height: 1.4; }

/* Thanh đầu trang */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 249, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; line-height: 1; color: var(--rose-deep); }
.brand img { height: 46px; width: auto; mix-blend-mode: multiply; }
.brand-text { display: inline-flex; flex-direction: column; }
.foot-logo { width: 150px; height: auto; mix-blend-mode: multiply; margin-bottom: 10px; }
.about-logo { width: min(100%, 320px); height: auto; margin: 0 auto; mix-blend-mode: multiply; }
.qr-card { margin-top: 20px; text-align: center; }
.qr-card img { width: 220px; height: auto; margin: 0 auto 10px; border-radius: 12px; background: #fff; }
.qr-card p { margin: 0; }
.brand b { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: .06em; }
.brand small { font-size: .62rem; letter-spacing: .5em; text-transform: uppercase; color: var(--rose); margin-top: 4px; padding-left: 3px; }
.nav-toggle { width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white); border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--rose-deep); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow); }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 14px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--rose); font-weight: 700; }
.nav a.btn { display: flex; margin-top: 14px; width: 100%; border-bottom: 0; color: #fff; padding: 12px 26px; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; background: var(--rose); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--rose); cursor: pointer; font-size: 1rem; font-family: var(--sans); transition: background .2s, color .2s; }
.btn:hover { background: var(--rose-hover); border-color: var(--rose-hover); color: #fff; }
.btn.ghost { background: transparent; color: var(--rose); }
.btn.ghost:hover { background: var(--blush); color: var(--rose-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 88% 6%, rgba(253, 228, 232, .85), transparent 68%), radial-gradient(760px 420px at 0% 100%, rgba(248, 238, 219, .8), transparent 70%), var(--cream); }
.hero .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--champagne); vertical-align: middle; margin-right: 12px; }
.hero-grid { display: grid; gap: 32px; align-items: center; padding-block: clamp(36px, 7vw, 80px); }
.hero p.lead { margin-bottom: 1.4em; }
.arch { position: relative; width: min(calc(100% - 20px), 360px); margin: 0 auto; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; background: linear-gradient(165deg, #fff6f6 0%, #fce6e9 50%, #f6d3d8 100%); overflow: hidden; box-shadow: 0 0 0 7px #fff, 0 0 0 8px var(--champagne), 0 18px 40px rgba(150, 90, 105, .10); }
.arch::before { content: ""; position: absolute; inset: 0; background: url("../img/blossom.svg") no-repeat 70% 28% / 78%; opacity: .85; }
.arch::after { content: ""; position: absolute; inset: 0; background: url("../img/blossom.svg") no-repeat 12% 88% / 46%; opacity: .6; }
.arch figcaption { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; text-align: center; font-size: .78rem; color: var(--rose-deep); }
.hero-note { margin-top: 10px; text-align: center; font-size: .8rem; color: var(--muted); }

/* Thẻ & lưới */
.grid { display: grid; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--champagne); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: .6em; }
.card .more { color: var(--rose); font-weight: 600; font-size: .95rem; }
.icon { width: 52px; height: 52px; border-radius: 16px; background: var(--blush); color: var(--rose); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; }
.values .card { text-align: left; }

/* Khối chờ bổ sung */
.pending { border: 1.5px dashed var(--rose-soft); background: rgba(253, 240, 241, .75); border-radius: var(--radius); padding: 22px 24px; color: var(--muted); }
.pending b { color: var(--rose-deep); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); font-size: .82rem; font-weight: 600; white-space: nowrap; }

/* Tiêu đề trang con */
.page-hero { background: linear-gradient(180deg, var(--blush), var(--cream)); padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Danh sách */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding: 8px 0 8px 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 16px; height: 16px; border-radius: 50%; background: var(--rose-soft); box-shadow: inset 0 0 0 4px var(--blush); }
.two-col { display: grid; gap: 28px; }
.note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--rose-soft); padding-left: 14px; }

/* Bảng giá */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rose-soft); background: var(--white); color: var(--rose-deep); text-decoration: none; font-size: .92rem; font-weight: 500; }
.chip:hover { background: var(--blush); }
.price-group { margin-bottom: 44px; scroll-margin-top: 90px; }
.price-group h2 { margin-bottom: .4em; }
.price-sub { font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--rose); margin: 18px 0 4px; }
.price-list { border-top: 1px solid var(--line); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.price-row .pn small { color: var(--muted); margin-left: 6px; }
.price-row .pv { font-weight: 700; color: var(--rose-deep); white-space: nowrap; }
.price-row .old { font-weight: 400; color: var(--muted); margin-right: 6px; }
.price-row .until { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; text-align: right; }
.card.promo h3 small { font-family: var(--sans); font-size: .8em; color: var(--muted); font-weight: 400; }
.promo-price { font-family: var(--serif); font-size: 1.5rem; color: var(--rose-deep) !important; margin: 4px 0 6px; }
.card.promo .pill { margin-bottom: 10px; }

/* Thư viện */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; background: linear-gradient(150deg, #fdeeee, #f6d6da); display: flex; align-items: flex-end; }
.tile:nth-child(3n+2) { background: linear-gradient(150deg, #fcf6ee, #f2e2cf); }
.tile:nth-child(3n) { background: linear-gradient(150deg, #fff6f6, #f7dadd); }
.tile::before { content: ""; position: absolute; inset: 0; background: url("../img/blossom.svg") no-repeat 80% 20% / 62%; opacity: .75; }
.tile span { position: relative; width: 100%; padding: 28px 12px 10px; font-size: .82rem; color: var(--rose-deep); background: linear-gradient(0deg, rgba(255,252,249,.92), rgba(255,252,249,0)); }

/* Biểu mẫu minh hoạ */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--rose-deep); font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d9c3bd; border-radius: 14px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.form-msg { display: none; padding: 16px 18px; border-radius: 14px; background: var(--blush); color: var(--rose-deep); font-weight: 500; }
.form-msg.show { display: block; }

/* Chân trang */
.site-footer { background: linear-gradient(180deg, #fdf4f2, #f9e8eb); color: var(--ink); border-top: 1px solid var(--champagne); padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--rose); text-decoration: underline; }
.site-footer h3 { color: var(--rose-deep); font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.foot-grid { display: grid; gap: 28px; }
.foot-brand b { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .06em; color: var(--rose-deep); display: block; }
.foot-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(131, 57, 80, .14); font-size: .85rem; color: var(--muted); }

/* Nút đặt lịch cố định trên điện thoại */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 252, 249, .96); border-top: 1px solid var(--line); }
.sticky-cta { display: flex; gap: 10px; }
.sticky-cta .btn { flex: 1; padding-left: 12px; padding-right: 12px; }
.site-footer p { margin: 0 0 .8em; }
body { padding-bottom: 76px; }

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .nav-toggle { display: none; }
  .nav { display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none; }
  .nav ul { display: flex; align-items: center; gap: 4px; }
  .nav a { border: 0; padding: 10px 12px; border-radius: 999px; font-size: .96rem; }
  .nav a:hover { background: var(--blush); }
  .nav a.btn { display: inline-flex; margin: 0 0 0 8px; width: auto; padding: 10px 22px; min-height: 44px; }
  .nav a.btn:hover { background: var(--rose-hover); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .two-col { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
  .grid.c4 { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Ảnh người dùng tải lên */
.arch.has-photo::before, .arch.has-photo::after { display: none; }
.arch.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch.has-photo figcaption { display: none; }
.tile.photo::before { display: none; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.photo figcaption { position: relative; width: 100%; padding: 28px 12px 10px; font-size: .82rem; color: var(--rose-deep); background: linear-gradient(0deg, rgba(255,252,249,.94), rgba(255,252,249,0)); }

/* Bảng giá gộp: mỗi dịch vụ một dòng (Lẻ / 5 buổi / 10 buổi) */
.pt { border-top: 1px solid var(--line); }
.pt-head { display: none; }
.pt-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pt-name { flex: 1 1 100%; font-weight: 500; }
.pt-cell { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 700; color: var(--rose-deep); background: var(--blush); border-radius: 999px; padding: 3px 12px; font-size: .95rem; }
.pt-cell::before { content: attr(data-l); font-weight: 400; color: var(--muted); font-size: .82rem; }
.pt-cell.none { display: none; }
.pt-cell .old { font-weight: 400; color: var(--muted); }
.pt-cell .until { margin-left: 4px; font-weight: 400; color: var(--muted); font-size: .75rem; }
@media (min-width: 720px) {
  .pt-head, .pt-row { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(var(--n), minmax(0, 1fr)); gap: 10px; align-items: center; }
  .pt-head { padding: 10px 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rose); border-bottom: 1px solid var(--line); }
  .pt-head span + span, .pt-cell { text-align: right; }
  .pt-name { flex: none; }
  .pt-cell, .pt-cell.none { display: block; background: none; padding: 0; border-radius: 0; font-size: 1rem; }
  .pt-cell::before { content: none; }
  .pt-cell.none { font-weight: 400; color: #b9aaae; }
}
