:root {
  --ink: #1a1a17;
  --paper: #f7f3ec;
  --muted: #6b6459;
  --line: #ddd3c2;
  --deep: #24352b;
  --clay: #a2542f;
  --card: #fffdf9;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .brand strong, .fact b {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { text-decoration: none; line-height: 1.1; }
.brand strong { display: block; font-size: 22px; }
.brand span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); opacity: 0.72; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--clay); }
nav a.tel { color: var(--muted); }

/* hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.30) 45%, rgba(0,0,0,0.72) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; margin: 0 0 18px; max-width: 17ch; }
.hero p { max-width: 54ch; font-size: 18px; color: #efe8dd; margin: 0 0 28px; }

.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}

/* buttons */
.btn {
  display: inline-block; padding: 13px 22px;
  background: var(--deep); color: #fff;
  text-decoration: none; font-size: 14px; letter-spacing: 0.02em;
  border: 1px solid var(--deep);
}
.btn:hover { background: #1a271f; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }
.btn.light { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn.light:hover { background: var(--deep); color: #fff; }

/* sections */
section { padding: 72px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 40ch; }

/* villa cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { text-decoration: none; display: block; background: var(--card); border: 1px solid var(--line); }
.card figure { margin: 0; overflow: hidden; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.03); }
.card-body { padding: 20px 22px 24px; }
.card h3 { font-size: 23px; margin: 0 0 6px; }
.card .meta { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.card .more { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--clay); }

/* why direct */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why { list-style: none; margin: 0; padding: 0; }
.why li { padding: 18px 0; border-top: 1px solid var(--line); }
.why li:last-child { border-bottom: 1px solid var(--line); }
.why b { display: block; font-weight: 600; margin-bottom: 3px; }
.why span { color: var(--muted); font-size: 15px; }

.quote { border-left: 3px solid var(--clay); padding: 4px 0 4px 22px; margin: 0; }
.quote p { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 21px; line-height: 1.5; margin: 0 0 10px; }
.quote cite { font-style: normal; font-size: 13px; color: var(--muted); }

/* villa page */
.villa-hero { min-height: 62vh; }
.villa-hero h1 { font-size: clamp(30px, 4.4vw, 52px); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.fact b { display: block; font-size: 23px; line-height: 1.2; }
.fact span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 64px; padding: 56px 0 80px; align-items: start; }
.prose h2 { font-size: 27px; margin: 42px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; max-width: 62ch; }

.rooms { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.rooms li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rooms li span:last-child { color: var(--muted); }

.amenities { columns: 2; column-gap: 32px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.amenities li { padding: 5px 0; break-inside: avoid; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }

/* enquiry */
.enquiry { position: sticky; top: 98px; background: var(--card); border: 1px solid var(--line); padding: 26px; }
.enquiry h2 { font-size: 22px; margin: 0 0 6px; }
.enquiry p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.enquiry .btn { display: block; text-align: center; margin-bottom: 10px; }
.enquiry dl { margin: 18px 0 0; font-size: 14px; }
.enquiry dt { color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.enquiry dd { margin: 2px 0 12px; }


/* language switcher */
.langs { display: flex; align-items: center; gap: 14px; }
.langs a { text-decoration: none; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.langs a:hover { color: var(--clay); }
.langs a.on { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--clay); }

/* per-language typography */
html[lang="km"] body { font-family: "Noto Sans Khmer", "Khmer UI", "Khmer Sangam MN", "Noto Sans", sans-serif; line-height: 1.95; }
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3, html[lang="km"] .fact b, html[lang="km"] .quote p {
  font-family: "Noto Sans Khmer", "Khmer UI", "Khmer Sangam MN", sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}
html[lang="km"] .rooms li, html[lang="km"] .amenities li, html[lang="km"] .why li { line-height: 1.9; }
html[lang="km"] .hero h1 { line-height: 1.3; }
html[lang="zh"] body, html[lang="ja"] body { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans SC", "Noto Sans JP", sans-serif; }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 {
  font-family: "PingFang SC", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans SC", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
}

/* floating WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 620px) {
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* contact band */
.band { background: var(--deep); color: #f2ece0; padding: 72px 0; }
.band h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; }
.band p { color: #c2bcae; max-width: 56ch; }
.band .btn { background: #f2ece0; color: var(--deep); border-color: #f2ece0; }
.band .btn.light { background: transparent; color: #f2ece0; border-color: rgba(242,236,224,0.5); margin-left: 10px; }

/* footer */
footer { background: #18221c; color: #a9a294; padding: 52px 0 34px; font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot h3 { color: #e8e2d5; font-size: 18px; margin: 0 0 10px; }
.foot a { color: #d8d1c3; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .small { font-size: 12px; line-height: 1.7; color: #8b8578; margin-top: 26px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .enquiry { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 66vh; }
}

@media (max-width: 620px) {
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
  .langs { order: 2; margin-left: auto; gap: 12px; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 16px; }
  nav a.tel { display: none; }
  .amenities { columns: 1; }
  .gallery { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .band .btn.light { margin-left: 0; margin-top: 10px; }
}
