/* =========================================================
   Villa 61 — Naisoso Island, Fiji
   Shared stylesheet
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --ink:      #18302f;
  --ink-soft: #2c4543;
  --teal:     #0f5350;
  --teal-2:   #14716c;
  --sand:     #f7f2e8;
  --sand-2:   #efe6d5;
  --gold:     #bf9d63;
  --gold-dk:  #a8854b;
  --white:    #ffffff;
  --muted:    #5d6b69;
  --line:     rgba(24,48,47,.14);
  --shadow-s: 0 6px 18px rgba(20,40,39,.08);
  --shadow-m: 0 18px 50px rgba(20,40,39,.16);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --radius: 4px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--sand);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
p  { margin-bottom: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 1rem;
  display: inline-block;
}
.eyebrow.light { color: var(--gold); }

.lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.bg-sand2 { background: var(--sand-2); }
.bg-ink   { background: var(--ink); color: #d8e0df; }
.bg-teal  { background: var(--teal); color: #e7efee; }
.center   { text-align: center; }
.measure  { max-width: 660px; }
.measure.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 1.05em 2.1em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #1d1505; }
.btn-gold:hover { background: var(--gold-dk); box-shadow: var(--shadow-s); }
.btn-ink { background: var(--ink); color: var(--sand); }
.btn-ink:hover { background: var(--teal); }
.btn-outline { border-color: currentColor; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.btn-outline.light { color: #fff; }
.btn-outline.light:hover { background: #fff; color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 22px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  background: rgba(247,242,232,.96);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.5rem; color: #fff; letter-spacing: .5px;
  transition: color .35s ease;
}
.brand span {
  font-size: .62rem; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255,255,255,.8); margin-top: 4px;
  transition: color .35s ease;
}
.scrolled .brand b { color: var(--ink); }
.scrolled .brand span { color: var(--gold-dk); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 400; color: rgba(255,255,255,.92); position: relative;
  transition: color .3s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links .btn { color: #1d1505; }
.nav-cta { margin-left: 6px; }

/* Language switch (EN ⇄ 中文) */
.lang-switch {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .72rem; letter-spacing: .14em;
  padding: .5em .95em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.38);
  white-space: nowrap;
  transition: color .3s ease, border-color .3s ease;
}
.lang-switch::after { display: none; }          /* no underline sweep */
.lang-switch:hover { color: var(--gold); border-color: var(--gold); }
.scrolled .lang-switch { border-color: var(--line); }
.scrolled .lang-switch:hover { border-color: var(--gold); }
.lang-switch .globe { font-size: .9em; opacity: .75; }

/* Villa switch (Villa 61 ⇄ Villa 102) — same pill treatment as .lang-switch */
.villa-switch {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .72rem; letter-spacing: .14em;
  padding: .5em .95em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.38);
  white-space: nowrap;
  transition: color .3s ease, border-color .3s ease;
}
.villa-switch::after { display: none; }
.villa-switch:hover { color: var(--gold); border-color: var(--gold); }
.scrolled .villa-switch { border-color: var(--line); }
.scrolled .villa-switch:hover { border-color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; height: 2px; width: 100%; background: #fff;
  transition: .3s ease;
}
.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,28,27,.55) 0%, rgba(10,28,27,.25) 40%, rgba(10,28,27,.7) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 80px; }
.hero h1 { color: #fff; margin-bottom: .4rem; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero .hero-sub {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem,2.4vw,1.7rem);
  color: rgba(255,255,255,.92); margin-bottom: 1.6rem;
}
.hero-meta {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 2.2rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--gold); font-style: normal; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.8); font-size: .68rem; letter-spacing: .25em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(rgba(255,255,255,.7), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%,100%{opacity:.3; transform:scaleY(.6);} 50%{opacity:1; transform:scaleY(1);} }

/* page-hero (interior pages) */
.page-hero {
  position: relative; min-height: 56vh; display: flex; align-items: flex-end;
  color: #fff; padding-bottom: 56px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,28,27,.45), rgba(10,28,27,.72));
}
.page-hero .hero-bg { z-index: 0; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero .crumb { color: rgba(255,255,255,.8); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero .crumb a:hover { color: var(--gold); }

/* ---------- Stats bar ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-s);
}
.stats div { padding: 30px 16px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { font-family: var(--serif); font-size: 2.4rem; color: var(--teal); display: block; line-height: 1; }
.stats span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-m); }
.split-body h2 { margin-bottom: 1rem; }
.split + .split { margin-top: clamp(48px, 7vw, 96px); }

/* ---------- Highlight cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.card .ic { font-size: 1.7rem; color: var(--gold-dk); margin-bottom: 16px; display: block; }
.card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 14px;
  grid-auto-flow: dense;
}
.gallery a { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery a::after {
  content: ''; position: absolute; inset: 0; background: rgba(15,83,80,0);
  transition: background .35s ease;
}
.gallery a:hover img { transform: scale(1.06); }
.gallery a:hover::after { background: rgba(15,83,80,.18); }
.g-feature { grid-column: span 8; grid-row: span 2; }
.g-wide { grid-column: span 6; }
.g-tall { grid-column: span 4; grid-row: span 2; }
.g-std  { grid-column: span 4; }
.g-half { grid-column: span 6; }
.g-quarter { grid-column: span 3; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,20,19,.94);
  display: none; align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .25s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lb-close { top: 4vh; right: 4vw; width: 46px; height: 46px; }
.lb-count { position: absolute; bottom: 4vh; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .2em; }

/* ---------- Bedrooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.room {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.room .num { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-dk); letter-spacing: .1em; }
.room h4 { font-size: 1.25rem; margin: 6px 0 4px; }
.room p { color: var(--muted); margin: 0; font-size: .9rem; }

/* ---------- Room category cards ----------
   A 6-column track so a row can read 2-up (span 3) or 3-up (span 2) without
   leaving an orphan card: the two masters sit 2-up, the mid rooms 3-up. */
.room-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.room-card {
  grid-column: span 2; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.room-card.wide { grid-column: span 3; }
.rc-media { display: block; position: relative; overflow: hidden; cursor: pointer; }
.rc-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.room-card:hover .rc-media img { transform: scale(1.05); }
.rc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.rc-tag {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dk); font-weight: 500;
}
.rc-body h3 { font-size: 1.5rem; margin: 6px 0 .5rem; }
.rc-body > p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.rc-feat { margin-top: auto; display: grid; gap: 6px; }
.rc-feat li { display: flex; gap: 10px; font-size: .88rem; color: var(--ink-soft); }
.rc-feat li::before { content: '✦'; color: var(--gold); font-size: .72rem; line-height: 2.1; }

/* ---------- Photo card (experiences, features) ---------- */
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.card-photo:hover img { transform: scale(1.05); }
.card-photo .cp-body { padding: 30px 30px 32px; flex: 1; display: flex; flex-direction: column; }
.card-photo .cp-body h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.card-photo .cp-body p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.card-photo .cp-link {
  margin-top: 16px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dk); font-weight: 500;
}
.card-photo .cp-link:hover { color: var(--teal); }

/* ---------- Kit list (what's provided, e.g. water toys) ---------- */
.kit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; margin-top: 18px; }
.kit-list li { display: flex; gap: 12px; align-items: baseline; font-size: .98rem; }
.kit-list li i { font-style: normal; color: var(--gold); font-size: .8rem; }
.bg-ink .kit-list li { color: #cdd7d6; }

/* ---------- Gallery group heading ---------- */
.gal-head {
  display: flex; align-items: baseline; gap: 18px; margin: 56px 0 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
}
.gal-head:first-of-type { margin-top: 0; }
.gal-head h3 { font-size: 1.5rem; }
.gal-head span { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
/* jump links above the gallery sections */
.gal-jump { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gal-jump a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.gal-jump a:hover { color: var(--teal); border-bottom-color: var(--gold); }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

/* ---------- Note / callout ---------- */
.note {
  border-left: 2px solid var(--gold); padding: 4px 0 4px 20px;
  color: var(--muted); font-size: .95rem;
}

/* ---------- Amenities ---------- */
.amen-group { margin-bottom: 38px; }
.amen-group h3 { font-size: 1.3rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.amen-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; }
.amen-list li { display: flex; gap: 12px; font-size: .96rem; color: var(--ink-soft); }
.amen-list li::before { content: '✦'; color: var(--gold); font-size: .8rem; line-height: 1.9; }

/* ---------- Reviews ---------- */
.rating-hero { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.rating-hero .big { font-family: var(--serif); font-size: 3.4rem; color: var(--teal); line-height: 1; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.rating-bars { max-width: 520px; margin: 28px auto 0; }
.rbar { display: grid; grid-template-columns: 110px 1fr 42px; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .85rem; }
.rbar .track { height: 5px; background: var(--sand-2); border-radius: 4px; overflow: hidden; }
.rbar .fill { height: 100%; background: var(--teal-2); border-radius: 4px; }

.reviews-grid { columns: 2; column-gap: 28px; }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 26px; margin-bottom: 28px; break-inside: avoid; box-shadow: var(--shadow-s);
}
.review .stars { font-size: .95rem; margin-bottom: 12px; display: block; }
.review p { font-size: 1rem; color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review .who .av {
  width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.2rem;
}
.review .who b { font-weight: 500; color: var(--ink); font-family: var(--sans); font-size: .95rem; }
.review .who span { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .05em; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: rgba(12,40,38,.74); z-index: 1; }
.cta-band .hero-bg { z-index: 0; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }

/* ---------- Location ---------- */
.map-frame { width: 100%; height: 440px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-m); filter: saturate(.95); }
.dist-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dist-list li b { font-family: var(--serif); color: var(--teal); font-size: 1.15rem; white-space: nowrap; }
.dist-list li span { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: .98rem; color: var(--ink); background: var(--white);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,83,80,.1);
}
.field textarea { resize: vertical; min-height: 130px; }
.contact-info .ci { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci .ic { color: var(--gold-dk); font-size: 1.2rem; }
.contact-info .ci b { display: block; color: var(--ink); font-weight: 500; }
.contact-info .ci span { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aebbb9; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 1.1rem; letter-spacing: .04em; margin-bottom: 18px; font-family: var(--sans); font-weight: 500; }
.site-footer .brand b { color: #fff; font-size: 1.7rem; }
.site-footer .brand span { color: var(--gold); }
.site-footer .f-about { max-width: 320px; margin-top: 14px; font-size: .95rem; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a, .site-footer .f-contact { font-size: .95rem; transition: color .25s ease; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: #7e918f;
}

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Hidden initial state only applies when JS is active (html.js); without
   JS every .reveal block stays fully visible. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Chinese (Simplified) typography ----------
   Latin faces stay FIRST in each stack, so "Villa 61", numbers and any
   English words keep the Cormorant/Jost look while Chinese glyphs — which
   Cormorant and Jost do not contain — fall through to the system CJK face.
   Deliberately no Google CJK webfont: fonts.googleapis.com is unreachable
   from mainland China, and PingFang / Microsoft YaHei / Noto are already
   present on effectively every device. */
:root {
  --serif-zh: 'Cormorant Garamond', 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', 'SimSun', Georgia, serif;
  --sans-zh:  'Jost', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Hiragino Sans GB', system-ui, sans-serif;
}
html[lang^="zh"] body { font-family: var(--sans-zh); line-height: 1.85; }
html[lang^="zh"] h1, html[lang^="zh"] h2,
html[lang^="zh"] h3, html[lang^="zh"] h4 {
  font-family: var(--serif-zh);
  line-height: 1.32;                 /* CJK needs more room than 1.1 */
  letter-spacing: .02em;
}
/* CJK glyphs read larger at the same size — pull the display sizes back */
html[lang^="zh"] h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
html[lang^="zh"] h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
html[lang^="zh"] h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
/* Wide Latin tracking looks broken on Chinese — tighten it everywhere */
html[lang^="zh"] .eyebrow      { letter-spacing: .16em; }
html[lang^="zh"] .btn          { letter-spacing: .08em; font-size: .84rem; }
html[lang^="zh"] .nav-links a  { letter-spacing: .06em; font-size: .88rem; }
html[lang^="zh"] .hero-meta    { letter-spacing: .04em; }
html[lang^="zh"] .stats span,
html[lang^="zh"] .field label,
html[lang^="zh"] .page-hero .crumb,
html[lang^="zh"] .scroll-cue   { letter-spacing: .1em; }
html[lang^="zh"] .brand span   { letter-spacing: .18em; }
/* Synthetic obliques mangle CJK — the browser shears the glyphs */
html[lang^="zh"] .hero-sub,
html[lang^="zh"] .review p     { font-style: normal; }
html[lang^="zh"] .review p     { line-height: 1.65; }
/* Chinese has no case, so uppercase is a no-op — but it would still
   uppercase any Latin mixed in mid-sentence, which we don't want */
html[lang^="zh"] .stats span,
html[lang^="zh"] .amen-group h3 { text-transform: none; }
/* Attribution line under a translated guest review */
.review .src {
  display: block; margin-top: 10px; font-size: .78rem; color: var(--muted);
  font-family: var(--sans); font-style: normal; letter-spacing: .04em;
}

/* ---------- Responsive ---------- */
/* Eight nav items + language pill + CTA get tight before the hamburger
   breakpoint takes over at 760px — tighten the run rather than let it wrap. */
@media (max-width: 1080px) and (min-width: 761px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: .74rem; letter-spacing: .08em; }
  .lang-switch, .villa-switch { padding: .45em .75em; }
  .nav-links .btn { padding: .9em 1.4em; }
}
@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .room-card, .room-card.wide { grid-column: span 3; }
  .reviews-grid { columns: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(1), .stats div:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--ink); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 26px; padding: 40px; transform: translateX(100%);
    transition: transform .4s cubic-bezier(.7,0,.2,1); box-shadow: var(--shadow-m);
  }
  .nav-open .nav-links { transform: translateX(0); }
  .nav-links a { color: #fff !important; font-size: 1rem; }
  .nav-toggle { display: block; z-index: 110; }
  .nav-open .nav-toggle span { background: #fff !important; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .room-card, .room-card.wide { grid-column: span 6; }
  .kit-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; }
  .g-feature, .g-wide, .g-tall, .g-std, .g-half, .g-quarter { grid-column: span 6; grid-row: span 1; }
  .amen-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .rooms { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 14px; font-size: .72rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}
