/* Static subpages (/floor-plans, /location, /facilities, /faq and /zh/...), built by scripts/build-subpages.py.
   The homepage's own light brochure (src/index.css + src/site/*.tsx): warm paper, dark ink, one bronze accent,
   Cormorant Garamond light for headings, Manrope for text, hairline rules, the framed hero photograph and the ruled
   figures row, sections alternating paper and paper-2, plans on white sheets, the ink enquiry band. */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d7;
  --ink: #1f1b16;
  --ink-70: rgba(31, 27, 22, 0.72);
  --ink-55: rgba(31, 27, 22, 0.6);
  --rule: rgba(31, 27, 22, 0.15);
  --bronze: #9a7442;
  --bronze-deep: #7a5a30;
  --gold: #d8b77f;
  --display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans: "Manrope", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--bronze); color: var(--paper); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; text-wrap: balance; }
.zh h1, .zh h2, .zh h3 { letter-spacing: 0.02em; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .wrap { padding: 0 48px; } }

.eyebrow { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--bronze); }
.zh .eyebrow { letter-spacing: 0.12em; }

/* ---- header (homepage Nav) ---- */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(31, 27, 22, 0.1); background: rgba(244, 239, 230, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; line-height: 1.15; min-width: 0; }
.brand-name { display: block; font-family: var(--display); font-size: 21px; letter-spacing: 0.05em; }
@media (min-width: 640px) { .brand-name { white-space: nowrap; } }
.brand-sub { display: none; font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-55); }
@media (min-width: 640px) { .brand-sub { display: block; } }
.links { display: none; gap: 26px; font-size: 13px; color: var(--ink-70); }
.links a { text-decoration: none; transition: color 0.2s; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 6px; }
@media (min-width: 1024px) { .links { display: flex; } }
.actions { display: flex; align-items: center; gap: 14px; font-size: 13px; flex-shrink: 0; }
.lang { text-decoration: none; white-space: nowrap; }
.lang:hover { color: var(--bronze); }
.cta-line { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--bronze); text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.cta-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta-line .wide { display: none; }
@media (min-width: 640px) { .cta-line .wide { display: inline; } .cta-line .short { display: none; } }
.menu summary { list-style: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary svg path { d: path("M6 6l12 12M18 6L6 18"); }
.menu .panel { position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-top: 1px solid rgba(31, 27, 22, 0.1); border-bottom: 1px solid rgba(31, 27, 22, 0.1); padding: 0 24px 16px; }
.menu .panel a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(31, 27, 22, 0.1); font-family: var(--display); font-size: 22px; text-decoration: none; }
.menu .panel a[aria-current="page"] { color: var(--bronze-deep); }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---- hero (homepage Hero) ---- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero { text-align: center; padding: 40px 0 32px; }
@media (min-width: 768px) { .hero { padding: 56px 0 32px; } }
.hero > .wrap > * { animation: rise 0.6s cubic-bezier(0.23, 1, 0.32, 1) both; }
.crumb { font-size: 12px; color: var(--ink-55); margin-bottom: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--bronze); }
.hero h1 { margin-top: 20px; font-size: clamp(2.5rem, 6.6vw, 5.4rem); line-height: 1; }
.zh .hero h1 { line-height: 1.15; }
.rule { width: 56px; height: 1px; background: var(--bronze); margin: 28px auto; }
.lede { max-width: 38rem; margin: 0 auto; font-size: 16px; line-height: 1.7; color: var(--ink-70); }
.btns { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; background: var(--ink); color: var(--paper); font-size: 14px; letter-spacing: 0.03em; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: var(--bronze); }
.btn.line { background: transparent; color: var(--ink); border: 1px solid rgba(31, 27, 22, 0.25); }
.btn.line:hover { border-color: var(--ink); }
.frame { position: relative; max-width: 70rem; margin: 56px auto 0; }
@media (min-width: 768px) { .frame { margin-top: 72px; } }
.frame span { position: absolute; inset: 0; transform: translate(12px, 12px); border: 1px solid rgba(154, 116, 66, 0.55); }
@media (min-width: 768px) { .frame span { transform: translate(20px, 20px); } }
.frame img { position: relative; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.facts { margin: 64px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div { padding: 24px 8px; }
.facts div:nth-child(2n) { border-left: 1px solid rgba(31, 27, 22, 0.12); }
.facts div:nth-child(n + 3) { border-top: 1px solid rgba(31, 27, 22, 0.12); }
@media (min-width: 768px) {
  .facts { margin-top: 80px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts div { padding: 32px 12px; }
  .facts div:nth-child(n + 2) { border-left: 1px solid rgba(31, 27, 22, 0.12); }
  .facts div:nth-child(n + 3) { border-top: 0; }
}
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-55); }
.facts dd { margin: 8px 0 0; font-family: var(--display); font-weight: 300; font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.2; }
.facts div:first-child dd { color: var(--bronze); }

/* ---- sections ---- */
.sec { padding: 88px 0; }
@media (min-width: 768px) { .sec { padding: 120px 0; } }
.sec.paper2 { background: var(--paper-2); }
.sec h2 { margin-top: 16px; max-width: 46rem; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; }
.sec-body { margin-top: 36px; }
.sec-body > p, .sec-body .duo + p { max-width: 44rem; margin: 0 0 20px; font-size: 16px; line-height: 1.75; color: var(--ink-70); }
.sec-body p strong { color: var(--ink); font-weight: 600; }
.sec-body .note { font-size: 13px; color: var(--ink-55); margin-top: 16px; }

/* tables: hairline rows, like the homepage location list */
.tablewrap { margin: 28px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--rule); }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablewrap th { text-align: left; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-55); padding: 14px 16px 12px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tablewrap td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-70); vertical-align: top; }
.tablewrap td:first-child { color: var(--ink); }
.tablewrap td:not(:first-child) { font-variant-numeric: tabular-nums; }
.tablewrap td.n { white-space: nowrap; }
.tablewrap.wide table { min-width: 640px; }
@media (max-width: 639px) { .tablewrap table { font-size: 14px; } }

/* plan sheets */
.sheet { margin: 0; }
.sheet a { display: flex; align-items: center; justify-content: center; background: #fff; padding: 16px; cursor: zoom-in; }
@media (min-width: 768px) { .sheet a { padding: 28px; } }
.sheet img { max-height: 560px; width: auto; max-width: 100%; object-fit: contain; }
.sheet figcaption, .photo figcaption { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--ink-55); }
.keyplan, .map { margin: 32px 0 0; }
.duo, .trio { display: grid; gap: 24px; margin: 32px 0; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; } .trio { grid-template-columns: repeat(3, 1fr); } }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.photo.wide { margin: 32px 0 0; }
.photo.wide img { aspect-ratio: 21 / 9; }
@media (max-width: 639px) { .photo.wide img { aspect-ratio: 3 / 2; } }

.plan { display: grid; gap: 28px; padding: 48px 0; border-top: 1px solid var(--rule); }
.plan:first-of-type { margin-top: 8px; }
@media (min-width: 900px) { .plan { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; } }
.plan .sheet a { aspect-ratio: 4 / 3; }
.plan .sheet img { max-height: 100%; }
.plan h3 { margin-top: 10px; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; }
.figs { margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; border-top: 1px solid var(--rule); padding-top: 18px; }
.figs dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-55); }
.figs dd { margin: 4px 0 0; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.size { margin: 16px 0 0; font-size: 13px; color: var(--ink-55); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li, .zone li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.65; color: var(--ink-70); margin-bottom: 8px; }
.ticks li::before, .zone li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 4px; height: 4px; background: var(--bronze); }
.fit { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--ink-70); }
.fit strong { color: var(--ink); font-weight: 600; }

/* facility zones */
.zones { display: grid; gap: 0 40px; margin: 32px 0; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .zones { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .zones { grid-template-columns: repeat(3, 1fr); } .zones.one { grid-template-columns: 1fr 1fr; } }
.zone { padding: 24px 0 12px; border-bottom: 1px solid var(--rule); }
.zone-name { margin: 0; font-family: var(--display); font-size: 25px; line-height: 1.2; color: var(--bronze-deep); }
.zone-where { margin: 4px 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-55); }
.zone ul { list-style: none; margin: 0; padding: 0; }

/* distances */
.distgrid { display: grid; gap: 8px 40px; }
@media (min-width: 900px) { .distgrid { grid-template-columns: 1fr 1fr; } }
.dist-h { margin: 24px 0 0; font-family: var(--display); font-size: 25px; line-height: 1.2; color: var(--bronze-deep); }
.distgroup .tablewrap { margin-top: 12px; }

/* FAQ (homepage Faq) */
.faq { max-width: 56rem; border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: 21px; font-weight: 400; line-height: 1.3; }
.zh .qa h3 { font-size: 19px; }
.qa .plus { font-family: var(--sans); font-size: 18px; color: var(--bronze); transition: transform 0.2s; flex-shrink: 0; }
.qa[open] .plus { transform: rotate(45deg); }
.qa p { max-width: 46rem; margin: 0; padding: 0 0 24px; font-size: 15px; line-height: 1.75; color: var(--ink-70); }

/* enquiry band (homepage Enquiry) */
.enquire { background: var(--ink); color: var(--paper); padding: 88px 0; }
@media (min-width: 768px) { .enquire { padding: 120px 0; } }
.enquire .wrap { display: grid; gap: 32px; }
@media (min-width: 768px) { .enquire .wrap { grid-template-columns: 5fr 6fr; gap: 64px; } }
.eyebrow.gold { color: var(--gold); }
.enquire h2 { margin-top: 16px; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; }
.enquire p { margin: 0 0 24px; font-size: 15px; line-height: 1.8; color: rgba(244, 239, 230, 0.7); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--paper); }
.enquire .tel { margin-top: 16px; font-size: 13px; }

/* footer (homepage Footer, with the page links) */
footer { border-top: 1px solid rgba(31, 27, 22, 0.12); padding: 28px 0 96px; font-size: 12px; line-height: 1.7; color: var(--ink-55); }
@media (min-width: 768px) { footer { padding-bottom: 32px; } footer .wrap { padding-right: 112px; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 13px; color: var(--ink-70); margin-bottom: 8px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-links a:hover { color: var(--bronze); }
footer p { margin: 4px 0; }

/* WhatsApp float (homepage WhatsAppFloat) */
.wa { position: fixed; right: 16px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(31, 27, 22, 0.28); transition: background 0.2s, color 0.2s; }
.wa:hover { background: var(--bronze); color: var(--paper); }
.wa svg { width: 20px; height: 20px; }
@media (min-width: 768px) { .wa { right: 32px; bottom: 32px; } }

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