/* =========================================================
   Aviz Marketing & Consultant · website design system
   Warm & friendly. 8px grid, 16px corners, 96px between sections.
   ========================================================= */

:root {
  /* Colour tokens. Accents = AViz Brand Kit (07-Brand-System/11-Brand-Kit.md) */
  --bg: #FFF8F0;
  --card: #FFFFFF;
  --ink: #2B1D14;
  --soft: #7A6656;
  --accent: #F68F04;      /* Growth Orange: buttons, CTA band */
  --accent-2: #E2B863;    /* Aviz Gold: top bar, tags, highlights on dark */
  --on-accent: #2B1D14;   /* dark text on orange = 6.9:1 (white would be 2.4:1) */
  --accent-text: #A85500; /* deeper Growth Orange for text and icons on light backgrounds = 5:1 */

  /* Derived from the tokens above (states and hairlines only) */
  --accent-press: #D97A00;
  --ink-2: #3A2A1F;
  --cream-text: #F6EBDD;
  --line: #EBDCCB;
  --tint: #FBEBD7;

  /* Type */
  --f-head: "Fraunces", "Noto Serif Thai", Georgia, serif;
  --f-body: "DM Sans", "Noto Sans Thai", system-ui, -apple-system, sans-serif;

  /* Space (8px grid) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --section: 96px;
  --gutter: 40px;
  --max: 1200px;

  /* Shape and depth */
  --r: 16px;
  --r-sm: 12px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(43, 29, 20, .06), 0 4px 16px rgba(43, 29, 20, .05);
  --shadow-lg: 0 2px 4px rgba(43, 29, 20, .06), 0 16px 40px rgba(43, 29, 20, .12);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 200ms;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="th"] body { line-height: 1.7; }
html[lang="th"] * { letter-spacing: 0 !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--s-2); }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 5.6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.125rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.5rem, 2vw, 1.75rem); line-height: 1.2; }

/* Thai headings need room for tone marks */
html:where([lang="th"]) h1 { font-size: clamp(2.375rem, 4.6vw, 4.25rem); line-height: 1.3; }
html:where([lang="th"]) h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); line-height: 1.35; }
html:where([lang="th"]) h3 { line-height: 1.4; }

em.hl { font-style: italic; color: var(--accent-text); }
html[lang="th"] em.hl { font-style: normal; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 16px;
  font-weight: 700;
  color: var(--soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
html[lang="th"] .eyebrow { text-transform: none; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }

.lead { font-size: 20px; color: var(--soft); max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: var(--s-6); }
.section-head .lead { margin-top: var(--s-2); margin-bottom: 0; }
.muted { color: var(--soft); }
.nw { white-space: nowrap; }
.fine { font-size: 16px; color: var(--soft); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-2); top: -64px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

/* Visible focus everywhere */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible { outline-color: var(--accent-2); }

.icon, .icon-sm { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon { width: 24px; height: 24px; }
.icon-sm { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: 19px;           /* 19px bold = WCAG large text */
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(43, 29, 20, .12);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(246, 143, 4, .32); }
.btn:active { transform: translateY(0); background: var(--accent-press); box-shadow: 0 1px 0 rgba(43, 29, 20, .2); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--r-pill); }
.on-dark .btn:focus-visible { outline-color: var(--accent-2); }

.btn-light { --btn-bg: var(--card); --btn-fg: var(--ink); }
.btn-light:hover { box-shadow: 0 8px 20px rgba(43, 29, 20, .22); }
.btn-light:active { background: var(--tint); }
.band .btn-light:focus-visible { outline-color: var(--ink); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--ink); box-shadow: none;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn-ghost:active { background: var(--ink-2); color: var(--bg); }

.btn-outline-light {
  --btn-bg: transparent; --btn-fg: #FFF8F0;
  border-color: rgba(255, 248, 240, .7); box-shadow: none;
}
.btn-outline-light:hover { background: #FFF8F0; color: var(--ink); border-color: #FFF8F0; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.btn-outline-light:active { background: var(--tint); color: var(--ink); }

.btn-sm { min-height: 48px; padding: 10px 20px; font-size: 19px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; text-decoration-color: var(--accent-2);
  transition: gap var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}
.link-arrow:hover { gap: 12px; text-decoration-color: var(--accent); }

/* ---------- Announcement bar (from the reference's top strip) ---------- */
.topbar { background: var(--accent-2); color: var(--ink); font-size: 16px; }
.topbar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 8px var(--s-2); text-decoration: none; font-weight: 500; text-align: center;
}
.topbar a:hover span.u { text-decoration: underline; text-underline-offset: 4px; }
.topbar strong { font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 240, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(43, 29, 20, .06); }

.nav { display: flex; align-items: center; gap: var(--s-3); min-height: 80px; }

.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; padding: 6px 0; }
.wordmark-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 30px; letter-spacing: -0.01em; }
.wordmark-name span { color: var(--accent); }
.wordmark-tag { white-space: nowrap; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .18em !important; text-transform: uppercase; color: var(--soft); margin-top: 6px; }

.nav-links { display: flex; align-items: center; gap: var(--s-1); list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border-radius: var(--r-pill); text-decoration: none; font-weight: 500; font-size: 18px;
  transition: background-color var(--dur) var(--ease);
}
.nav-links a:hover { background: var(--tint); }
.nav-links a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.lang-switch { display: inline-flex; padding: 3px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--card); }
.lang-switch button {
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--soft); font: 700 16px/1 var(--f-body); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--ink); }

.menu-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu { display: none; }

/* ---------- Home hero (split, warm-dark panel like the reference) ---------- */
.hero { padding-top: var(--s-3); }
.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  min-height: 640px;
  background: var(--ink);
  color: var(--cream-text);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; padding: var(--s-10) var(--s-4) var(--s-10) var(--s-8); display: flex; flex-direction: column; justify-content: center; }
.hero-copy .eyebrow { color: var(--accent-2); }
.hero-copy .eyebrow::before { background: var(--accent-2); }
.hero-copy h1 { color: #FFF8F0; max-width: 12ch; }
html[lang="th"] .hero-copy h1 { max-width: none; }
html[lang="th"] .hero-copy h1 em.hl { white-space: nowrap; }
.hero-copy h1 em.hl { color: var(--accent-2); }
.hero-sub { font-size: 20px; color: var(--cream-text); max-width: 46ch; margin: var(--s-3) 0 var(--s-3); opacity: .92; }

.checks { list-style: none; display: grid; gap: 12px; margin-bottom: var(--s-4); }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; font-weight: 500; color: #FFF8F0; }
.checks .icon { color: var(--accent-2); margin-top: 2px; }
html[lang="th"] .checks .icon { margin-top: 4px; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.hero-actions .link-arrow { color: #FFF8F0; }

.hero-media { position: relative; min-height: 100%; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(43, 29, 20, .55) 14%, rgba(43, 29, 20, 0) 38%);
}
.hero-badge {
  position: absolute; z-index: 2; right: var(--s-3); bottom: 88px;
  display: flex; align-items: center; gap: 12px;
  background: var(--card); color: var(--ink); border-radius: var(--r-sm);
  padding: 12px 16px; box-shadow: var(--shadow-lg); max-width: 300px;
}
.hero-badge .dot { width: 12px; height: 12px; border-radius: 50%; background: #4C9A5B; box-shadow: 0 0 0 4px rgba(76, 154, 91, .18); flex: none; }
.hero-badge strong { display: block; font-size: 17px; line-height: 1.3; }
.hero-badge span { display: block; font-size: 16px; color: var(--soft); line-height: 1.4; }

/* ---------- Proof strip ---------- */
.proof { margin-top: calc(var(--s-6) * -1); position: relative; z-index: 3; }
.proof-card {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-lg);
  margin: 0 var(--s-4);
}
.proof-item { padding: var(--s-3) var(--s-3); border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-num { font-family: var(--f-head); font-weight: 600; font-size: 40px; line-height: 1.1; display: flex; align-items: center; gap: 8px; }
.proof-num .icon { color: var(--accent-text); width: 28px; height: 28px; }
.proof-num--award { font-size: 32px; white-space: nowrap; }
.proof-label { font-size: 16px; color: var(--soft); margin: 6px 0 0; line-height: 1.5; }
.proof-quote { display: flex; flex-direction: column; justify-content: center; background: var(--tint); border-radius: 0 var(--r) var(--r) 0; }
.proof-quote blockquote { margin: 0; font-family: var(--f-head); font-size: 21px; line-height: 1.4; }
html[lang="th"] .proof-quote blockquote { line-height: 1.6; font-size: 20px; }
.proof-quote figcaption { font-size: 16px; color: var(--soft); margin-top: 8px; }

/* ---------- Bento offer grid ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-3); }
.offer {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s-4); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.offer:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.offer h3 { margin-bottom: 12px; }
.offer p { color: var(--soft); }
.offer .price { margin-top: auto; padding-top: var(--s-3); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.offer .price b { font-family: var(--f-head); font-weight: 600; font-size: 40px; line-height: 1; color: var(--ink); }
.offer .price small { font-size: 16px; color: var(--soft); }
.offer .tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--tint); color: var(--ink); margin-bottom: var(--s-2);
}
.offer .more { margin-top: var(--s-2); }

.offer--feature { grid-column: span 7; grid-row: span 2; padding: 0; overflow: hidden; }
.offer--feature .offer-media { aspect-ratio: 16 / 9; overflow: hidden; }
.offer--feature .offer-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.offer--feature:hover .offer-media img { transform: scale(1.03); }
.offer--feature .offer-body { padding: var(--s-4); display: flex; flex-direction: column; flex: 1; }
.offer--feature h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.offer--feature .price b { font-size: 56px; }
.offer--feature .tag { background: var(--accent-2); }

.offer--free { grid-column: span 5; background: var(--accent-2); border-color: transparent; }
.offer--free p { color: var(--ink); }
.offer--free .tag { background: var(--card); }
.offer--free .price small { color: var(--ink); }
.offer--free .btn { margin-top: var(--s-2); align-self: flex-start; }
.offer--free:hover { box-shadow: 0 16px 40px rgba(226, 184, 99, .45); }

.offer--core { grid-column: span 5; }
.offer--half { grid-column: span 6; }

.bento-note { margin-top: var(--s-3); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.why {
  background: var(--card); border-radius: var(--r); padding: var(--s-4); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why .big { font-family: var(--f-head); font-weight: 600; font-size: 72px; line-height: 1; color: var(--accent-text); display: block; margin-bottom: var(--s-3); }
html[lang="th"] .why .big { line-height: 1.15; }
.why h3 { margin-bottom: 12px; }
.why p { color: var(--soft); margin: 0; }
.why:nth-child(2) { margin-top: var(--s-6); }
.why:nth-child(3) { margin-top: var(--s-3); }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--s-8); align-items: center; }
.how-media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.how-media img { width: 100%; height: 100%; object-fit: cover; }
.how-media .stamp {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  background: var(--card); border-radius: var(--r-sm); padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-size: 16px; max-width: 280px;
}
.how-media .stamp strong { display: block; font-size: 18px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-2); }
.step {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: var(--s-3);
  padding: var(--s-3); background: var(--card); border-radius: var(--r); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); font-family: var(--f-head); font-weight: 600; font-size: 26px; color: var(--ink);
}
.step:first-child .step-num { background: var(--accent); color: var(--on-accent); }
.step h3 { font-size: 24px; margin: 4px 0 8px; }
.step p { color: var(--soft); margin: 0; }
.how .btn { margin-top: var(--s-4); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.review {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--r);
  padding: var(--s-4); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review .qmark { font-family: "Fraunces", serif; font-size: 72px; line-height: .6; color: var(--accent-2); height: 36px; margin-bottom: var(--s-2); }
.review blockquote { margin: 0 0 var(--s-3); font-size: 19px; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: var(--s-2); border-top: 1px solid var(--line); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--tint); font-family: "Fraunces", serif; font-weight: 600; font-size: 20px; color: var(--ink);
}
.review figcaption div > strong { display: block; font-size: 18px; line-height: 1.3; }
.review figcaption div > span { display: block; font-size: 16px; color: var(--soft); line-height: 1.4; }
.reviews-note { margin-top: var(--s-3); }

/* ---------- CTA band ---------- */
.band {
  position: relative; overflow: hidden;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r); padding: var(--s-10) var(--s-8);
  display: grid; grid-template-columns: 1.4fr auto; gap: var(--s-4) var(--s-6); align-items: center;
}
.band h2 { color: var(--on-accent); max-width: 18ch; }
.band p { font-size: 20px; font-weight: 700; margin: var(--s-2) 0 0; max-width: 46ch; }
.band .band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.band .band-actions .fine { color: var(--on-accent); font-weight: 700; font-size: 19px; }
.band .band-actions a.fine { text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  border: 28px solid rgba(255, 255, 255, .18); border-radius: 50%; pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 0; padding: var(--s-10) 0 var(--s-4); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: var(--s-5); }
.footer-grid h2 { font-family: var(--f-body); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: var(--s-2); }
html[lang="th"] .footer-grid h2 { text-transform: none; }
.footer-grid p, .footer-grid li { font-size: 17px; }
.footer-list { list-style: none; display: grid; gap: 4px; }
.footer-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-list .icon-sm { color: var(--accent-text); }
.map {
  width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-sm); margin-top: var(--s-2);
  background: var(--tint); filter: sepia(.25) saturate(.9);
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-8); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: 16px; color: var(--soft); }

.page-contact .site-footer .map { display: none; }

/* ---------- Booking popup (Google Calendar booking page in a dialog) ---------- */
.booking-dialog {
  width: min(960px, calc(100vw - 32px)); height: min(820px, calc(100vh - 48px));
  max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--r);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.booking-dialog[open] { animation: booking-in var(--dur) var(--ease); }
.booking-dialog::backdrop { background: rgba(43, 29, 20, .55); }
@keyframes booking-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.booking-panel { display: flex; flex-direction: column; height: 100%; }
.booking-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 12px 12px 12px var(--s-3); border-bottom: 1px solid var(--line); }
.booking-head h2 { font-size: 22px; line-height: 1.35; }
.booking-close {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink);
  transition: background-color var(--dur) var(--ease);
}
.booking-close:hover { background: var(--tint); }
.booking-dialog iframe { flex: 1; width: 100%; border: 0; background: var(--card); }
.booking-foot { margin: 0; padding: 10px var(--s-3); border-top: 1px solid var(--line); }
.booking-foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }
html:has(.booking-dialog[open]) { overflow: hidden; }

/* ---------- Mobile sticky action bar ---------- */
.action-bar { display: none; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: var(--s-8); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: center; }
.page-hero h1 { margin-bottom: var(--s-3); }
.page-hero .lead { margin-bottom: var(--s-4); }
.page-hero-media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media .hero-badge { left: var(--s-3); right: auto; bottom: var(--s-3); }

/* ---------- Prose / story ---------- */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: start; }
.story-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; position: sticky; top: 120px; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.prose p { font-size: 19px; }
.prose p.pull { font-family: var(--f-head); font-weight: 600; font-size: 28px; line-height: 1.35; color: var(--ink); border-left: 4px solid var(--accent); padding-left: var(--s-3); margin: var(--s-4) 0; }
html[lang="th"] .prose p.pull { line-height: 1.6; font-size: 26px; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); counter-reset: pr; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.principle .n { font-family: var(--f-head); font-weight: 600; font-size: 24px; color: var(--accent-text); display: block; margin-bottom: var(--s-2); }
.principle h3 { margin-bottom: 12px; }
.principle p { color: var(--soft); margin: 0; }

.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.cred { background: var(--card); border-radius: var(--r); padding: var(--s-3); border: 1px solid var(--line); }
.cred b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 36px; line-height: 1.15; margin-bottom: 8px; }
.cred span { display: block; font-size: 17px; color: var(--soft); }
.cred em { display: block; font-style: normal; font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 8px; }

.brands { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin-top: var(--s-3); }
.brands li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 18px; font-weight: 500; font-size: 17px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); }
.panel--tint { background: var(--tint); border-color: transparent; }
.panel h3 { margin-bottom: var(--s-2); }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon-sm { color: var(--accent-text); margin-top: 4px; }
.ticks.ticks--x .icon-sm { color: var(--soft); }

/* ---------- Services detail ---------- */
.audience { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin-top: var(--s-2); }
.audience li { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 500; font-size: 17px; }
.audience .icon-sm { color: var(--accent-text); }

.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.pain { padding: var(--s-4); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.pain .n { font-family: var(--f-head); font-weight: 600; font-size: 24px; color: var(--accent-text); }
.pain h3 { font-size: 24px; margin: 8px 0 12px; }
.pain p { color: var(--soft); margin: 0; }

.svc { display: grid; grid-template-columns: 340px 1fr; gap: var(--s-6); padding: var(--s-5); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow var(--dur) var(--ease); }
.svc + .svc { margin-top: var(--s-3); }
.svc:hover { box-shadow: var(--shadow-lg); }
.svc--feature { border: 2px solid var(--accent-2); }
.svc-side .tag { display: inline-flex; font-size: 16px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); background: var(--tint); margin-bottom: var(--s-2); }
.svc--feature .svc-side .tag { background: var(--accent-2); }
.svc-side h3 { font-size: clamp(1.75rem, 2.4vw, 2.125rem); margin-bottom: var(--s-2); }
.svc-price b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 48px; line-height: 1.05; }
.svc-price small { display: block; font-size: 16px; color: var(--soft); margin-top: 6px; }
.svc-side .btn { margin-top: var(--s-3); }
.svc-body > p:first-child { font-size: 20px; }
.svc-body h4 { font-family: var(--f-body); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: var(--s-3) 0 12px; }
html[lang="th"] .svc-body h4 { text-transform: none; }
.month { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-2); }
.month > div { background: var(--bg); border-radius: var(--r-sm); padding: var(--s-3); }
.month strong { display: block; margin-bottom: 8px; }

.faq { max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; transition: box-shadow var(--dur) var(--ease); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2);
  min-height: 64px; padding: 16px var(--s-3); font-weight: 700; font-size: 19px; border-radius: var(--r);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--dur) var(--ease); color: var(--accent-text); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-3) var(--s-3); margin: 0; color: var(--soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-6); align-items: start; }
.channels { display: grid; gap: var(--s-2); }
.channel {
  display: grid; grid-template-columns: 56px 1fr; gap: var(--s-2); align-items: center;
  padding: var(--s-3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.channel .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--accent-text); }
.channel--primary { background: var(--ink); color: var(--cream-text); border-color: var(--ink); }
.channel--primary .ic { background: var(--accent); color: var(--on-accent); }
.channel--primary span { color: var(--cream-text) !important; }
.channel strong { display: block; font-size: 19px; }
.channel span { display: block; font-size: 16px; color: var(--soft); }

.form-card { background: var(--card); border-radius: var(--r); padding: var(--s-5); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin-bottom: 8px; }
.field { margin-top: var(--s-3); }
.field label { display: block; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.field .hint { display: block; font-weight: 400; font-size: 16px; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  font: 400 18px/1.5 var(--f-body); color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232B1D14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #D9C2AA; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 4px rgba(226, 184, 99, .55); }
.field .error-msg { display: none; align-items: center; gap: 8px; margin-top: 8px; font-size: 16px; font-weight: 700; color: #A3321A; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A3321A; background: #FFF3EF; }
.field.has-error .error-msg { display: flex; }
.form-summary { display: none; margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: #FFF3EF; border: 2px solid #A3321A; color: #7E2612; font-weight: 700; }
.form-summary.is-visible { display: block; }
.form-actions { margin-top: var(--s-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.form-success { display: none; text-align: left; }
.form-success.is-visible { display: block; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #E6F2E6; color: #2E6B3A; margin-bottom: var(--s-3); }
.form-success pre {
  white-space: pre-wrap; font: 400 17px/1.6 var(--f-body); background: var(--bg); border: 1px dashed var(--line);
  border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); margin: var(--s-3) 0;
}
.form-success .row { display: flex; flex-wrap: wrap; gap: 12px; }
.is-hidden { display: none !important; }

.address-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-4); align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4); }
.address-block .map { margin-top: 0; aspect-ratio: auto; min-height: 320px; height: 100%; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .offer:hover, .why:hover, .step:hover, .review:hover { transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .nav-links a { padding: 8px 10px; }
  .proof-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-quote { grid-column: 1 / -1; border-radius: 0 0 var(--r) var(--r); border-top: 1px solid var(--line); }
  .proof-item:nth-child(3) { border-right: 0; }
}

@media (max-width: 1024px) {
  .nav-links, .site-header .nav > .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(43, 29, 20, .12);
    padding: var(--s-2) var(--gutter) var(--s-4);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .mobile-menu ul { list-style: none; display: grid; gap: 4px; margin-bottom: var(--s-3); }
  .mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 52px; padding: 0 var(--s-2); border-radius: var(--r-sm); text-decoration: none; font-size: 20px; font-weight: 500; }
  .mobile-menu a:not(.btn):hover, .mobile-menu a[aria-current="page"] { background: var(--tint); }

  .hero-panel { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .hero-copy { padding: var(--s-8) var(--s-3) var(--s-8) var(--s-5); }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .offer--feature { grid-column: span 6; grid-row: auto; }
  .offer--free, .offer--core, .offer--half { grid-column: span 3; }
  .why-grid, .reviews, .principles, .pains { grid-template-columns: 1fr 1fr; }
  .why:nth-child(2), .why:nth-child(3) { margin-top: 0; }
  .why:nth-child(3), .review:nth-child(3), .principle:nth-child(3), .pain:nth-child(3) { grid-column: 1 / -1; }
  .how { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .band { grid-template-columns: 1fr; padding: var(--s-8) var(--s-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-grid, .story, .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .creds { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; gap: var(--s-3); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --section: 72px; }
  body { font-size: 18px; padding-bottom: 88px; }
  .nav { min-height: 68px; gap: 12px; }
  .wordmark-name { font-size: 26px; }
  .wordmark-tag { font-size: 10.5px; letter-spacing: .08em !important; }
  .topbar { font-size: 16px; }
  .hide-sm { display: none; }
  .hero-media { height: 400px; }

  .hero { padding-top: var(--s-2); }
  .hero-panel { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 420px; }
  .hero-media img { object-position: 45% 18%; }
  .hero-media::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(43, 29, 20, .5) 18%, rgba(43, 29, 20, 0) 45%); }
  .hero-badge { left: var(--s-2); right: auto; bottom: var(--s-2); padding: 10px 14px; }
  .proof-num--award { font-size: 28px; }
  .hero-copy { padding: var(--s-3) var(--s-3) var(--s-5); }
  .hero-sub { font-size: 18px; }
  .hero-actions .btn { width: 100%; }

  .proof { margin-top: var(--s-3); }
  .proof-card { grid-template-columns: 1fr 1fr; margin: 0; }
  .proof-item { padding: var(--s-2) var(--s-2) var(--s-3); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .proof-num { font-size: 32px; }
  .proof-quote { padding: var(--s-3) var(--s-2); }

  .bento { grid-template-columns: 1fr; gap: var(--s-2); }
  .offer--feature, .offer--free, .offer--core, .offer--half { grid-column: auto; }
  .offer { padding: var(--s-3); }
  .offer--feature { padding: 0; }
  .offer--feature .offer-body { padding: var(--s-3); }
  .offer--feature .price b { font-size: 44px; }
  .offer--free .btn { width: 100%; }

  .why-grid, .reviews, .principles, .pains, .creds, .two-col { grid-template-columns: 1fr; }
  .why:nth-child(3), .review:nth-child(3), .principle:nth-child(3), .pain:nth-child(3) { grid-column: auto; }
  .why { padding: var(--s-3); }
  .why .big { font-size: 56px; margin-bottom: var(--s-2); }

  .how { grid-template-columns: 1fr; gap: var(--s-4); }
  .how-media { aspect-ratio: 4 / 3; }
  .how .btn { width: 100%; }
  .step { grid-template-columns: 48px 1fr; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-3); }
  .step-num { width: 48px; height: 48px; font-size: 20px; }
  .step h3 { font-size: 21px; }

  .review { padding: var(--s-3); }
  .band { padding: var(--s-6) var(--s-3); }
  .band .btn { width: 100%; }
  .band .band-actions { align-items: stretch; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .site-footer { padding-top: var(--s-8); }

  .page-hero { padding-top: var(--s-3); }
  .page-hero-grid, .story, .contact-grid, .address-block { grid-template-columns: 1fr; }
  .page-hero-media { order: -1; aspect-ratio: 4 / 4.2; }
  .story-media { position: static; }
  .page-hero .btn { width: 100%; }
  .svc { padding: var(--s-3); }
  .month { grid-template-columns: 1fr; }
  .panel { padding: var(--s-3); }
  .form-card { padding: var(--s-3); }
  .form-actions .btn { width: 100%; }
  .address-block { padding: var(--s-2); }
  .address-block .map { min-height: 260px; }

  .booking-dialog { width: 100vw; height: 100dvh; border-radius: 0; margin: 0; }
  .booking-head { padding-left: var(--s-2); }
  .booking-head h2 { font-size: 20px; }
  .booking-foot { padding: 6px var(--s-2) calc(6px + env(safe-area-inset-bottom)); }

  .action-bar {
    display: flex; gap: 12px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 12px var(--s-2) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(43, 29, 20, .1);
  }
  .action-bar .btn { flex: 1; min-height: 56px; padding: 12px 14px; }
  .action-bar .btn .icon-sm { display: none; }
  .action-bar .call {
    width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center;
    border: 2px solid var(--ink); color: var(--ink); text-decoration: none;
  }
  .action-bar .call:active { background: var(--tint); }
}
