:root {
  --brand: #127d85;
  --brand-dark: #0b4f57;
  --accent: #f2854d;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6f76;
  --line: #e4e6ea;
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #3fb8bd;
    --brand-dark: #0b3a40;
    --bg: #0f1113;
    --card: #1b1e21;
    --text: #f2f2f4;
    --muted: #a0a4ab;
    --line: #2b2f34;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", "Sukhumvit Set", sans-serif;
  line-height: 1.65;
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Language switch: elements carry lang="en" or lang="th" */
html[data-lang="en"] [lang="th"]:not(html),
html[data-lang="th"] [lang="en"]:not(html) { display: none !important; }

header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 6px 10px; border-radius: 10px; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.lang-toggle {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
}

.hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: 72px 0 0; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 16px; font-weight: 900; }
.hero p { font-size: 1.15rem; opacity: .9; margin: 0 0 28px; }
.hero .shot { max-width: 340px; justify-self: center; margin-bottom: -6px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.hero .copy { padding-bottom: 72px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none; border-radius: 14px; padding: 10px 18px; font-weight: 700;
}
.badge small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; line-height: 1.1; }
.badge span { line-height: 1.15; }

section { padding: 64px 0; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 12px; line-height: 1.25; }
.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 32px; max-width: 680px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.card .icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; background: color-mix(in srgb, var(--brand) 14%, transparent); margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

.gallery { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.gallery img { width: 240px; flex: none; border-radius: 18px; scroll-snap-align: start; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pricing .card.pro { border: 2px solid var(--brand); }
.pricing ul { padding-left: 1.1em; margin: 10px 0 0; color: var(--muted); }

.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.doc li { margin: 4px 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 700; cursor: pointer; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.button { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .copy { padding-bottom: 8px; }
  .hero .shot { max-width: 260px; }
  nav a.hide-sm { display: none; }
}
