/* ==========================================================================
   Hengdeli city sites — shared foundation
   All type is intentionally >= 12px. Layout is fluid from 320px to 1920px.
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper, #f4f0e9);
  color: var(--ink, #1c1b19);
  font-family: var(--font-sans, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: var(--primary, #c10016); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary, #c10016);
  outline-offset: 4px;
}

.container {
  width: min(var(--max, 1320px), calc(100% - var(--gutter, 64px)));
  margin-inline: auto;
}

.section { padding-block: clamp(72px, 9vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 92px); }
.section--dark { background: var(--ink, #1c1b19); color: var(--paper, #f4f0e9); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--primary, #c10016);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(40px, 5.2vw, 76px); letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.02em; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; }
p { font-size: clamp(15px, 1.15vw, 17px); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.85; }

.serif { font-family: var(--font-serif, "Songti SC", "Noto Serif SC", "STSong", Georgia, serif); }
.muted { color: var(--muted, #6f6a62); }
.primary { color: var(--primary, #c10016); }

.btn {
  --btn-bg: var(--primary, #c10016);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
  border-radius: var(--btn-radius, 0);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--primary-dark, #930012); border-color: var(--primary-dark, #930012); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover {
  background: var(--ink, #1c1b19);
  border-color: var(--ink, #1c1b19);
  color: var(--paper, #f4f0e9);
}
.btn--light { --btn-bg: #fff; --btn-fg: #171717; border-color: #fff; }
.btn--light:hover { background: #ece7de; border-color: #ece7de; }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--primary, #c10016);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: gap .25s ease, opacity .25s ease;
}
.text-link:hover { gap: 16px; opacity: .76; }
.text-link svg { width: 16px; height: 16px; flex: 0 0 auto; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 18px;
  background: #fff;
  color: #111;
  border: 2px solid var(--primary, #c10016);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: none; }

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

/* Small labels are never below 12px */
.tag, .micro, .meta, .fact-label, .caption {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .08em;
}

/* Scroll reveal — content remains visible without JS */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

/* Booking dialog */
.booking-modal[hidden] { display: none; }
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 10, 10, .7);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.booking-modal__panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(90vh, 880px);
  overflow-y: auto;
  background: var(--modal-bg, #f7f3ec);
  color: var(--ink, #1a1a1a);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line, rgba(0,0,0,.18));
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.booking-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
}
.booking-modal__kicker {
  color: var(--primary, #c10016);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.booking-modal__title {
  margin: 10px 0 8px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
}
.booking-modal__intro {
  color: var(--muted, #6f6a62);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.booking-form { display: grid; gap: 15px; }
.booking-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted, #655f57);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line, #cfc7ba);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary, #c10016);
  box-shadow: 0 0 0 2px rgba(193, 0, 22, .12);
}
.field [aria-invalid="true"] { border-color: #c10016; }
.form-note { font-size: 12px; line-height: 1.6; color: var(--muted, #6f6a62); }
.form-error { color: #a90013; font-size: 13px; min-height: 18px; }
.form-success {
  padding: 18px;
  border-left: 3px solid var(--primary, #c10016);
  background: rgba(193, 0, 22, .06);
}
.form-success h3 { font-family: var(--font-serif, Georgia, serif); font-size: 24px; margin-bottom: 6px; }
.form-success p { font-size: 14px; line-height: 1.8; }
.form-success a { color: var(--primary, #c10016); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Breadcrumb / inner page shared primitives */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted, #6f6a62);
}
.breadcrumbs a:hover { color: var(--primary, #c10016); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs [aria-current="page"] { color: var(--ink, currentColor); }

.inner-hero { position: relative; overflow: hidden; }
.inner-hero__copy { position: relative; z-index: 1; }
.inner-hero h1 { overflow-wrap: anywhere; }
.inner-hero__lead { max-width: 66ch; color: var(--muted, #6f6a62); }

.page-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.page-aside { position: sticky; top: 110px; }
.page-toc { display: grid; gap: 4px; }
.page-toc a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.12));
  font-size: 13px;
  color: var(--muted, #6f6a62);
  transition: color .2s ease, padding-left .2s ease;
}
.page-toc a:hover { color: var(--primary, #c10016); padding-left: 5px; }
.page-toc .is-current { color: var(--ink, #181818); font-weight: 600; }
.aside-sticky-cta {
  margin-top: 26px;
  padding: 22px;
  background: var(--paper-soft, #efe9df);
  border: 1px solid var(--line, rgba(0,0,0,.1));
}
.aside-sticky-cta p { font-size: 13px; line-height: 1.65; margin-bottom: 14px; }
.aside-sticky-cta a { font-weight: 700; color: var(--primary, #c10016); }
.aside-sticky-cta__btn { width: 100%; margin-top: 12px; }
.form-success__close { margin-top: 16px; }
.page-main { min-width: 0; }
.page-section { padding: 0 0 clamp(42px, 5vw, 68px); scroll-margin-top: 112px; }
.page-section h2 { font-size: clamp(26px, 2.8vw, 40px); margin-bottom: 16px; }
.page-section h3 { margin: 26px 0 10px; font-size: clamp(19px, 1.7vw, 23px); }
.page-section p { margin-bottom: 15px; color: var(--body, #3c3934); }
.page-section p:last-child { margin-bottom: 0; }
.page-section ul { display: grid; gap: 9px; margin: 16px 0 20px; }
.page-section ul li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.8; color: var(--body, #3c3934); }
.page-section ul li::before {
  content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--primary, #c10016);
}
.callout {
  margin: 24px 0;
  padding: 22px 24px;
  border-left: 3px solid var(--primary, #c10016);
  background: var(--paper-soft, #efe9df);
}
.callout strong { display: block; margin-bottom: 5px; color: var(--ink, #171717); font-size: 14px; letter-spacing: .04em; }
.callout p { margin: 0; font-size: 14px; }

.faq-list { border-top: 1px solid var(--line, rgba(0,0,0,.16)); }
.faq-item { border-bottom: 1px solid var(--line, rgba(0,0,0,.16)); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 600;
  line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--primary, #c10016);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__answer { padding: 0 0 22px; max-width: 76ch; }
.faq-item__answer p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--body, #4b4640); }

.data-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.data-table caption { text-align: left; font-size: 12px; color: var(--muted, #6f6a62); margin-bottom: 8px; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line, rgba(0,0,0,.14)); text-align: left; vertical-align: top; }
.data-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6f6a62); font-weight: 600; }
.data-table td:first-child { color: var(--ink, #171717); font-weight: 600; }

/* Generic slider mechanics */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  gap: var(--slide-gap, 20px);
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.slider__slide { flex: 0 0 var(--slide-width, 100%); }
.slider__controls { display: flex; gap: 8px; align-items: center; margin-top: 20px; }
.slider__btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line, rgba(0,0,0,.25)); background: transparent; color: inherit;
  transition: background .2s ease, color .2s ease;
}
.slider__btn:hover { background: var(--primary, #c10016); border-color: var(--primary, #c10016); color: #fff; }
.slider__dots { display: flex; gap: 6px; margin-left: 8px; }
.slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: currentColor; opacity: .25; }
.slider__dot.is-active { opacity: 1; background: var(--primary, #c10016); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center;
  padding: 24px; background: rgba(8,8,8,.92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 82vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 22px;
}
.lightbox__caption { color: rgba(255,255,255,.72); font-size: 12px; margin-top: 12px; text-align: center; }

/* Back to top */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line, rgba(0,0,0,.25)); background: var(--paper, #f4f0e9); color: var(--ink, #111);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary, #c10016); color: #fff; border-color: var(--primary, #c10016); }

/* Footer legal */
.legal-note { font-size: 12px; line-height: 1.75; opacity: .64; }
.footer-source { font-size: 12px; line-height: 1.8; opacity: .72; }
.footer-source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-source a:hover { opacity: .78; }

@media (max-width: 1024px) {
  :root { --gutter: 44px; }
  .page-layout { grid-template-columns: 1fr; gap: 32px; }
  .page-aside { position: static; display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 32px; }
  html { scroll-padding-top: 82px; }
  .section { padding-block: 64px; }
  .btn { min-height: 48px; padding: 12px 20px; }
  .booking-modal { padding: 10px; }
  .booking-modal__panel { max-height: 94vh; padding: 28px 20px 24px; }
  .booking-form .field-row { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }
  .topbar__note { display: none !important; }
  .topbar__hours { display: none !important; }
  .topbar__inner { justify-content: flex-end !important; }
}
@media (max-width: 420px) {
  :root { --gutter: 28px; }
  h1 { font-size: clamp(34px, 12vw, 46px); }
  .btn-row { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
