/* Ben Massage: riverside teak, saffron and Mekong sunset */
:root {
  --teak: #2b1a12;
  --teak-2: #43291c;
  --paper: #fbf6ee;
  --cream: #f3eadb;
  --sand: #e6d7bf;
  --gold: #a87526;
  --gold-soft: #e0bb72;
  --sunset: #d4612a;
  --river: #587783;
  --ink: #2a1e17;
  --muted: #6d5b4d;
  --line: rgba(42, 30, 23, .14);
  --serif: "Noto Serif Thai", Georgia, serif;
  --sans: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  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: 400 1.0625rem/1.75 var(--sans);
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--paper); padding: 8px 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

:lang(th) .eyebrow, :lang(th) .facts small, :lang(th) .visit-info dt { letter-spacing: .02em; text-transform: none; font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .7em 1.4em; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--sunset); color: #fff; }
.btn-primary:hover { background: #bf5321; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--teak); color: var(--cream); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; color: var(--gold-soft); }
.brand span { font: 600 1.25rem/1 var(--serif); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: .95rem; }
.nav a { text-decoration: none; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav .lang { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: .2em .8em; font-weight: 600; }
@media (max-width: 760px) { .nav a:not(.lang) { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; align-items: end; color: #fff; isolation: isolate; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(28,16,10,.92) 0%, rgba(28,16,10,.55) 38%, rgba(28,16,10,.05) 70%),
    linear-gradient(to bottom, rgba(28,16,10,.55), transparent 22%);
}
.hero .wrap { padding-block: 120px clamp(48px, 8vw, 96px); }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1.12; margin: .35em 0 .3em; max-width: 16ch; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 34rem; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.rating { display: inline-flex; align-items: center; gap: .6em; color: rgba(255,255,255,.9); font-size: .95rem; text-decoration: none; }
.rating .stars { color: var(--gold-soft); letter-spacing: .1em; }
.rating:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Facts band */
.facts { background: var(--teak); color: var(--cream); }
.facts ul { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 26px 22px; border-left: 1px solid rgba(224,187,114,.28); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts small { display: block; color: var(--gold-soft); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.facts strong { font: 600 clamp(1.1rem, 2.2vw, 1.45rem)/1.35 var(--serif); }
.facts a { text-decoration: none; }
@media (max-width: 700px) {
  .facts ul { grid-template-columns: 1fr; }
  .facts li { border-left: 0; border-top: 1px solid rgba(224,187,114,.22); padding: 16px 0; }
  .facts li:first-child { border-top: 0; }
}

section { padding-block: clamp(64px, 10vw, 120px); }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head h2 { margin: .3em 0 .45em; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Menu */
.prices { background: var(--paper); }
.prices-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.prices .section-head { position: sticky; top: 32px; }
.lotus-rule { display: flex; align-items: center; gap: 14px; color: var(--gold); margin-top: 28px; }
.lotus-rule::before, .lotus-rule::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.lotus-rule svg { width: 26px; height: 26px; }
.note { font-size: .92rem; color: var(--muted); }
.menu-head, .menu-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 84px); gap: 12px; align-items: baseline; }
.menu-head { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: .82rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.menu-head span { text-align: right; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.menu-prices { display: contents; }
.menu-name h3 { font-size: 1.3rem; }
.menu-name p { margin: .25em 0 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.menu-price { text-align: right; }
.menu-price small { display: none; }
.menu-price span { font: 600 1.25rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.menu-row:hover .menu-name h3 { color: var(--sunset); }
@media (max-width: 860px) {
  .prices-grid { grid-template-columns: 1fr; }
  .prices .section-head { position: static; margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .menu-head { display: none; }
  .menu-row { grid-template-columns: 1fr; gap: 14px; }
  .menu-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .menu-price { text-align: left; background: var(--cream); border-radius: 10px; padding: 10px 12px; }
  .menu-price small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
  .menu-price span { font-size: 1.15rem; }
}

/* Riverside */
.riverside { background: var(--teak); color: var(--cream); position: relative; overflow: hidden; }
.riverside::before {
  content: ""; position: absolute; inset: auto -10% 0 -10%; height: 55%;
  background: radial-gradient(60% 80% at 70% 100%, rgba(212,97,42,.38), transparent 70%);
  pointer-events: none;
}
.riverside .eyebrow { color: var(--gold-soft); }
.riverside .section-head p { color: rgba(243,234,219,.8); }
.river-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 36px); align-items: end; }
.river-copy p { color: rgba(243,234,219,.85); }
.river-copy .callout { margin-top: 24px; padding: 18px 20px; border: 1px solid rgba(224,187,114,.35); border-radius: var(--radius); }
.river-copy .callout strong { color: var(--gold-soft); display: block; font-family: var(--serif); font-size: 1.1rem; }
.phone-frame { border-radius: 26px; overflow: hidden; border: 6px solid rgba(255,255,255,.08); aspect-ratio: 9 / 16; background: #1a0f0a; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.phone-frame video { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: inherit; opacity: .75; margin-top: 10px; }
.river-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 960px) {
  .river-grid { grid-template-columns: 1fr 1fr; }
  .river-copy { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .river-grid { grid-template-columns: 1fr; }
  .phone-frame { max-width: 300px; }
}

/* Shop */
.shop { background: var(--cream); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery figure:nth-child(2), .gallery figure:nth-child(3) { grid-column: span 5; }
.gallery figure { display: flex; flex-direction: column; }
.gallery img { width: 100%; flex: 1; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.gallery figure:nth-child(2) img, .gallery figure:nth-child(3) img { aspect-ratio: 16 / 10; }
.gallery figcaption { color: var(--muted); }
.shop-points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shop-points li { border-top: 2px solid var(--gold); padding-top: 14px; }
.shop-points strong { display: block; font: 600 1.15rem/1.4 var(--serif); margin-bottom: 4px; }
.shop-points span { color: var(--muted); font-size: .96rem; }
@media (max-width: 760px) {
  .gallery figure:nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
  .shop-points { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px;
  padding: 22px 0; font: 600 1.15rem/1.45 var(--serif);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--gold); font: 400 1.6rem/1 var(--sans); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: 18px; max-width: 46rem; }

/* Visit */
.visit { background: var(--paper); padding-top: 0; }
.visit-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 22px; overflow: hidden; background: var(--teak); color: var(--cream); }
.visit-info { padding: clamp(28px, 5vw, 56px); }
.visit-info .eyebrow { color: var(--gold-soft); }
.visit-info h2 { margin: .35em 0 .6em; }
.visit-info dl { margin: 0 0 28px; display: grid; gap: 16px; }
.visit-info dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.visit-info dd { margin: 2px 0 0; font-size: 1.05rem; }
.visit-info dd a { text-decoration: none; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit-actions .btn-line { border-color: rgba(243,234,219,.6); color: var(--cream); }
.map { min-height: 420px; background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 860px) { .visit-card { grid-template-columns: 1fr; } .map, .map iframe { min-height: 320px; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(243,234,219,.75); font-size: .92rem; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer strong { color: var(--cream); font-family: var(--serif); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .action-bar {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px;
    position: fixed; inset: auto 0 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(43,26,18,.94); backdrop-filter: blur(8px);
  }
  .action-bar .btn { min-height: 50px; padding-inline: .8em; }
  .action-bar .btn-ghost { border-color: rgba(243,234,219,.5); }
  .hero-actions .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-list summary::after { transition: none; }
}

/* Guide pages */
.hero-short { min-height: min(72svh, 640px); }
.hero-short h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
.crumbs { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.guide { background: var(--paper); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.prose { max-width: 44rem; }
.prose .intro { font-size: 1.15rem; }
.prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 1.6em 0 .6em; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.2rem; margin: 1.3em 0 .35em; color: var(--teak-2); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.guide-card { position: sticky; top: 24px; background: var(--teak); color: var(--cream); border-radius: 22px; padding: clamp(24px, 3vw, 36px); }
.guide-card .eyebrow { color: var(--gold-soft); }
.guide-card h2 { font-size: 1.8rem; margin: .3em 0 .4em; }
.guide-card p { color: rgba(243,234,219,.82); }
.guide-card dl { margin: 0 0 24px; display: grid; gap: 12px; }
.guide-card dt { font-size: .85rem; color: var(--gold-soft); font-weight: 600; }
.guide-card dd { margin: 0; }
.guide-actions { display: grid; gap: 10px; }
.guide-card .btn-line { border-color: rgba(243,234,219,.6); color: var(--cream); }
.near-wat { margin-top: 28px; }
.near-wat a { color: var(--sunset); font-weight: 600; }
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { position: static; }
}

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--teak); color: var(--cream); padding: 40px var(--gutter); }
.notfound svg { width: 48px; height: 48px; color: var(--gold-soft); margin: 0 auto 18px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .4em; }
.notfound p { color: rgba(243,234,219,.8); }
.notfound .btn { margin: 6px; }
