:root {
  --cream: #f8f4ec;
  --cream-2: #efe8da;
  --ink: #1c2430;
  --ink-soft: #4a5565;
  --navy: #203a63;
  --navy-deep: #14253f;
  --gold: #b3925a;
  --gold-text: #7a5b25;
  --line: #ddd3c0;
  --font-body: Inter, "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --bar-h: 64px;
}
html[lang="th"] {
  --font-body: "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
}
html[lang="zh-Hans"] {
  --font-body: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-head: "Cormorant Garamond", "Songti SC", "Noto Serif SC", SimSun, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--navy-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .75rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 244, 236, .96); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { text-decoration: none; color: var(--navy-deep); display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.brand-text { display: inline-flex; flex-direction: column; }
.brand-emblem { height: 40px; width: auto; mix-blend-mode: multiply; }
.brand-name { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; letter-spacing: .12em; }
.brand-sub { font-size: .6rem; letter-spacing: .38em; color: var(--gold-text); margin-top: 4px; text-transform: uppercase; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 0; display: inline-block; border-bottom: 2px solid transparent; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--navy-deep); }

.lang { display: flex; gap: 4px; font-size: .88rem; }
.lang a { text-decoration: none; color: var(--ink-soft); padding: 6px 8px; border-radius: 4px; }
.lang a[aria-current="true"] { background: var(--navy); color: #fff; }
.lang a:not([aria-current]):hover { background: var(--cream-2); }

.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; color: var(--navy-deep); cursor: pointer; }

@media (max-width: 899px) {
  .header-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .menu-btn { display: inline-block; margin-left: auto; }
  .nav { display: none; width: 100%; order: 5; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 0 12px; }
  .nav a { padding: 10px 0; width: 100%; }
  .lang { order: 4; width: 100%; padding-bottom: 4px; }
}

/* hero */
.hero { background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #2e4f7d 100%); color: #f4efe3; position: relative; overflow: hidden; }
.hero-in { position: relative; padding: 88px 20px 96px; min-height: min(74vh, 640px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: #fff; max-width: 15ch; }
html[lang="th"] .hero h1, html[lang="zh-Hans"] .hero h1 { max-width: 20ch; }
.hero .eyebrow { color: #e3cfa6; }
.hero p.sub { font-size: 1.15rem; max-width: 34rem; margin-bottom: 1.6rem; color: #e8e2d4; }
.hero.split { display: grid; grid-template-columns: 1fr; }
.hero-fig { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--navy-deep); }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero.split .hero-in { padding: 36px 20px 48px; min-height: 0; }
@media (min-width: 900px) {
  .hero.split { grid-template-columns: minmax(420px, 5fr) minmax(0, 7fr); }
  .hero.split h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); max-width: none; }
  .hero-fig { order: 2; max-height: 720px; }
  .hero-fig::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 120px; z-index: 1; background: linear-gradient(90deg, var(--navy-deep), rgba(20, 37, 63, 0)); }
  .hero.split .hero-in { order: 1; padding: 72px 40px 72px max(20px, calc((100vw - 1120px) / 2 + 20px)); justify-content: center; }
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 26px; border-radius: 999px; font: inherit; font-weight: 500; text-decoration: none; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; }
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy-deep); }
.btn.ghost:hover { background: var(--cream-2); color: var(--navy-deep); }
.hero .btn { background: #fff; color: var(--navy-deep); border-color: #fff; }
.hero .btn:hover { background: var(--cream); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--cream-2); }
.rule { width: 56px; height: 2px; background: var(--gold); margin: 0 0 24px; border: 0; }

.grid { display: grid; gap: 20px; }
.hl { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { padding: 22px 0 0; border-top: 1px solid var(--gold); }
.card h3 { margin-bottom: .25em; font-size: 1.3rem; }
.card p { margin: 0; color: var(--ink-soft); }
.for { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.price-feature { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.price-big { font-family: var(--font-head); font-size: clamp(2.4rem, 8vw, 3.6rem); color: var(--navy-deep); font-weight: 600; line-height: 1; }

/* villa sections */
.vsec { display: grid; gap: 4px 32px; padding: 28px 0; border-top: 1px solid var(--line); grid-template-columns: 1fr; }
.vsec:first-of-type { border-top: 0; }
.vsec h2 { font-size: 1.5rem; margin: 0; }
.vsec p { margin: 0; color: var(--ink-soft); }
@media (min-width: 760px) { .vsec { grid-template-columns: 1fr 1.6fr; align-items: baseline; } }

/* rates */
.rates { border-top: 1px solid var(--navy); }
.rate-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rate-row .day { font-size: 1.05rem; }
.rate-row .amt { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; color: var(--navy-deep); white-space: nowrap; }
.rate-row .amt small { font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: var(--ink-soft); margin-left: 6px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
dl.facts dt { color: var(--ink-soft); }
dl.facts dd { margin: 0; font-weight: 500; }
.note { color: var(--ink-soft); font-size: .95rem; }

/* gallery */
.gal-area { margin-bottom: 44px; }
.gal-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gal-item { position: relative; display: block; border-radius: 4px; overflow: hidden; background: var(--cream-2); aspect-ratio: 4 / 3; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-ph { display: grid; place-items: center; text-align: center; padding: 16px; aspect-ratio: 4 / 3; border: 1px dashed var(--gold); border-radius: 4px; color: var(--ink-soft); background: repeating-linear-gradient(135deg, var(--cream-2), var(--cream-2) 10px, var(--cream) 10px, var(--cream) 20px); font-size: .95rem; }
.badge { position: absolute; left: 8px; bottom: 8px; background: rgba(20, 37, 63, .85); color: #fff; font-size: .72rem; padding: 3px 9px; border-radius: 999px; }
.home-gal { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 16px; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(10, 18, 30, .88); }
dialog.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; margin: 0 auto; border-radius: 4px; }
dialog.lightbox button { position: fixed; top: 12px; right: 12px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; background: #fff; color: var(--navy-deep); font: inherit; cursor: pointer; }

/* contact */
.chan { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 32px; }
.chan .box { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: #fffdf8; }
.chan .box .big { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--navy-deep); margin: 0 0 12px; display: block; text-decoration: none; }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.links a { display: inline-block; padding: 6px 0; }

/* cta */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }
.cta .lead { margin-left: auto; margin-right: auto; }

/* footer */
.site-footer { background: var(--navy-deep); color: #d7dbe3; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.4rem; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.site-footer address { font-style: normal; }
.site-footer .links a { color: #e8e2d4; }
.copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: #aeb6c4; }

/* mobile contact bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(248, 244, 236, .98); border-top: 1px solid var(--line); }
.mobile-bar .btn { flex: 1; min-height: 48px; padding: 8px 12px; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mobile-bar { left: auto; right: 24px; bottom: 24px; width: auto; padding: 0; background: none; border: 0; }
  .mobile-bar .btn { flex: none; box-shadow: 0 6px 20px rgba(20, 37, 63, .25); padding: 10px 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
