/* Nunito (SIL OFL 1.1, xem assets/fonts/OFL-Nunito.txt). Font biến thiên, độ đậm 400–800. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ivory: #F8F4ED;
  --paper: #FFFCF8;
  --charcoal: #3A332E;
  --bronze: #A67951;
  --bronze-deep: #7E5434;
  --bronze-press: #6B4A32;
  --taupe: #C7B6A5;
  --line: #E4D8CB;
  --muted: #5E534A;
  --error: #8E2F2A;
  --shadow: 0 12px 32px rgba(58, 51, 46, 0.08);
  --serif: "Nunito", "Segoe UI", Arial, sans-serif;
  --sans: "Nunito", "Segoe UI", Arial, sans-serif;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--bronze-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }

.page {
  width: min(1000px, calc(100% - 32px));
  margin-inline: auto;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ivory);
}

.demo {
  margin: 0;
  padding: 5px 12px;
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.topbar { border-bottom: 1px solid var(--line); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand img,
.footer-brand img {
  display: block;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand img {
  height: 64px;
  max-width: 42vw;
}

.call,
.btn,
.dock-call,
.dock-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: 14px;
  background: var(--bronze-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.call { padding: 0 14px; font-size: 16px; }

.hero { padding: 22px 0 8px; }

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2.3rem, 11vw, 4.2rem);
  letter-spacing: 0;
}

h1 .line { display: block; }

h1 .accent { color: var(--bronze); }

.lede {
  margin-top: 12px;
  font-size: 1.125rem;
  font-weight: 600;
}

.quiet {
  margin-top: 6px;
  color: var(--muted);
}

.hero .btn {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  font-size: 17px;
  padding: 0 18px;
}

.hero-photo {
  margin: 18px 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: #E8DDD0;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: sepia(0.12) saturate(0.92) contrast(1.03);
}

.gallery-wrap,
.facts-wrap,
.signup,
.steps-wrap,
.visit { padding-top: 28px; }

h2 {
  font-size: clamp(1.55rem, 6.4vw, 2.2rem);
  margin-bottom: 12px;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.facts li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 14px;
  min-height: 92px;
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.facts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 16px 20px;
}

#dang-ky { scroll-margin-top: 96px; }

.field { margin-top: 16px; }

fieldset {
  border: 0;
  margin: 16px 0 0;
  padding: 0;
  min-width: 0;
}

legend,
.field > label,
.sub-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.sub-label { margin-top: 12px; }

.hint {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input[type="text"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #D9CBBC;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%233A332E' d='M1 1.2 6 6.8 11 1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--bronze-deep);
  outline-offset: 1px;
  border-color: var(--bronze-deep);
}

input[aria-invalid="true"],
select[aria-invalid="true"] { border-color: var(--error); }

.ages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.age {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1.5px solid #E0D3C5;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}

.age input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}

.age:has(input:checked) {
  background: var(--bronze-deep);
  border-color: var(--bronze-deep);
  color: #fff;
}

.age:has(input:focus-visible) {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
}

.choices { display: grid; gap: 8px; }

.slot-extra { margin-top: 8px; }

.slot-live { margin-bottom: 4px; }

.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin: 0 -2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.day {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1.5px solid #E0D3C5;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  gap: 2px;
  cursor: pointer;
  scroll-snap-align: start;
}

.day-name { font-weight: 800; line-height: 1.2; }

.day-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.2; }

.day[aria-selected="true"] {
  background: var(--bronze-deep);
  border-color: var(--bronze-deep);
  color: #fff;
}

.day[aria-selected="true"] .day-sub { color: #F3E6D6; }

.day.has-pick:not([aria-selected="true"]) { border-color: var(--bronze-deep); background: #F6EDE3; }

.day:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.slot {
  position: relative;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px 8px;
  min-height: 60px;
  border: 1.5px solid #E0D3C5;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}

.slot-input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.slot-time { font-weight: 800; font-size: 1.02rem; }

.slot-period {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.slot-period:first-child { margin-top: 0; }

.slot-seats { font-size: 0.82rem; color: #4F7A4A; }

.slot.low .slot-seats { color: #9A5B1E; }

.slot:has(input:checked) {
  border-color: var(--bronze-deep);
  background: #F6EDE3;
  box-shadow: inset 0 0 0 1px var(--bronze-deep);
}

.slot:has(input:checked) .slot-time::before { content: "✓ "; color: var(--bronze-deep); }

.slot:has(input:focus-visible) { outline: 2px solid var(--charcoal); outline-offset: 2px; }

.slot-empty,
.slot-picked,
.slot-meta {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.slot-empty {
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8EBE6;
  color: var(--charcoal);
}

.slot-picked { color: var(--charcoal); font-weight: 600; }

.choice-desc a { font-weight: 700; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 12px;
  border: 1.5px solid #E0D3C5;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--bronze-deep);
  background: #F6EDE3;
  box-shadow: inset 3px 0 0 var(--bronze-deep);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
}

.choice input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: 0 0 22px;
  border: 1.5px solid var(--taupe);
  border-radius: 50%;
  background: #fff;
}

.choice input:checked {
  border-color: var(--bronze-deep);
  background: radial-gradient(circle, var(--bronze-deep) 0 6px, #fff 7px);
}

.choice.check input { border-radius: 6px; }

.choice.check input:checked {
  border-color: var(--bronze-deep);
  background: var(--bronze-deep) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2' d='M3 8.2 6.2 11.5 13 4.5'/></svg>") center / 14px no-repeat;
}

.choice-title { display: block; font-weight: 600; line-height: 1.35; }

.choice-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.92rem;
}

.alert {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #F8EBE6;
  color: var(--charcoal);
}

.alert p { margin: 0; }

.alert a { display: inline-block; margin-top: 8px; font-weight: 600; }

.btn {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  font-size: 17px;
  padding: 0 18px;
}

.btn:disabled { opacity: 0.7; cursor: progress; }

.btn.secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--taupe);
}

.privacy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.thanks { padding: 8px 2px 4px; }

.thanks-lead { font-weight: 400; }

.demo-note {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.thanks-actions { display: grid; gap: 8px; }

.thanks-actions .btn { margin-top: 0; }

.thanks-actions .btn:first-child { margin-top: 16px; }

.text-btn {
  margin-top: 4px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--bronze-deep);
  font-weight: 600;
  cursor: pointer;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 64px;
  position: relative;
  min-height: 72px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #F3E6D6;
  color: var(--bronze-deep);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 800;
}

.steps h3 { font-size: 1.2rem; }

.steps p { margin-top: 4px; color: var(--muted); }

.visit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 16px 16px;
}

.address {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.25;
}

.visit-card .btn { margin-top: 14px; }

.hours { margin: 16px 0 0; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.hours dt { font-weight: 600; }

.hours dd { margin: 0; }

.hotline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--charcoal);
  color: var(--ivory);
  text-decoration: none;
}

.hotline span { font-size: 0.92rem; color: var(--taupe); }

.hotline strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.site-footer {
  margin-top: 28px;
  padding: 22px 0 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
}

.footer-brand img {
  height: 92px;
}

.site-footer p + p { margin-top: 4px; }

.site-footer a { color: var(--charcoal); font-weight: 600; }

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  gap: 8px;
  transition: transform 0.2s ease;
}

.dock.is-hidden {
  transform: translateY(140%);
  pointer-events: none;
}

.dock-call { flex: 0 0 76px; min-height: 52px; }

.dock-go { flex: 1; min-height: 52px; font-size: 16px; }

.noscript {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  margin: 0;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Thư viện ảnh trượt ngang (CSS scroll-snap, không dùng thư viện). */
.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.gallery-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  padding: 2px 16px 6px;
  margin: 0 -16px;
  list-style: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery li {
  flex: 0 0 auto;
  height: min(96vw, 440px);
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: #E8DDD0;
  box-shadow: var(--shadow);
}

.gallery li.wide { aspect-ratio: 4 / 3; max-width: calc(100vw - 32px); }

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

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--taupe);
  cursor: pointer;
}

.gallery-dots button[aria-current="true"] { width: 22px; border-radius: 4px; background: var(--bronze-deep); }

@media (hover: hover) {
  .btn:hover,
  .call:hover,
  .dock-call:hover,
  .dock-go:hover { background: var(--bronze-press); }
  .btn.secondary:hover { background: #F6EDE3; }
}

@media (min-width: 880px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
    padding-top: 36px;
  }
  .hero-photo { margin: 0; aspect-ratio: 5 / 4; }
  .hero .btn { width: auto; min-width: 240px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .card { max-width: 680px; margin-inline: auto; padding: 28px 28px 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .visit-card { max-width: 680px; }
  .dock { display: none; }
  .site-footer { padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
