:root {
  --ink: #12302e;
  --ink-soft: #4a615f;
  --bg: #fbf8f2;
  --paper: #ffffff;
  --alt: #f1ece1;
  --brand: #0f5c55;
  --brand-deep: #0a3f3a;
  --gold: #c8923a;
  --line: #06c755;
  --border: #e4dccb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 48, 46, 0.08);
  --hl: #f3dcae;
  --hero-glow: #e6efe6;
  --footer: #082b28;
  --head: "Trirong", serif;
  --head-w: 700;
  --on-dark-hl: #f3dcae;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif; font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--head); font-weight: var(--head-w); line-height: 1.35; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 58px); }
h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 68%, var(--hl) 68%); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; line-height: 1.5; }
p { margin: 0 0 14px; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: 15px; letter-spacing: 0.04em; margin-bottom: 8px; }
.muted { color: var(--ink-soft); }
.fine { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 242, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.3; }
.brand b { display: block; font-size: 17px; }
.brand small { color: var(--ink-soft); font-size: 12.5px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; font-size: 15.5px; color: var(--ink-soft); }
.links a:hover { color: var(--brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-line { background: var(--line); color: #fff; box-shadow: 0 8px 20px rgba(6, 199, 85, 0.28); }
.btn-ghost { border-color: var(--brand); color: var(--brand); }
.btn-ghost.light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 15px; box-shadow: none; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }

.hero { padding: 64px 0 72px; background: radial-gradient(900px 500px at 85% 0%, var(--hero-glow) 0%, transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 34px; padding: 22px 0 0; margin: 0; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--ink-soft); }
.trust b { display: block; font-size: 18px; color: var(--ink); }
.portrait { position: relative; }
.portrait-img { aspect-ratio: 4 / 5; border-radius: 28px; background: linear-gradient(160deg, var(--brand), var(--brand-deep)); display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); font-family: var(--head); font-size: 84px; background-size: cover; background-position: center top; box-shadow: var(--shadow); }
.portrait-img.has-photo span { display: none; }
.portrait-card { position: absolute; left: -18px; bottom: 24px; background: var(--paper); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); display: flex; flex-direction: column; }
.portrait-card b { font-size: 16px; color: var(--ink); }

.section { padding: 80px 0; }
.alt { background: var(--alt); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.ico { font-size: 30px; line-height: 1; margin-bottom: 14px; }

.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 26px 24px; }
.steps span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.calc { background: var(--paper); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.calc label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.calc input { font: inherit; font-size: 19px; font-weight: 600; color: var(--ink); padding: 11px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); text-align: right; font-variant-numeric: tabular-nums; width: 100%; }
.calc input:focus { outline: none; border-color: var(--brand); background: #fff; }
.result { background: var(--brand-deep); color: #fff; border-radius: 16px; padding: 18px 20px; display: grid; margin-top: 6px; }
.result span { font-size: 14.5px; opacity: 0.8; }
.result b { font-size: 40px; line-height: 1.3; color: var(--on-dark-hl); font-variant-numeric: tabular-nums; }
.result small { font-size: 13.5px; opacity: 0.8; line-height: 1.6; }

.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.promise { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.promise li { background: var(--paper); border-left: 5px solid var(--gold); border-radius: 14px; padding: 16px 20px; color: var(--ink-soft); font-size: 15.5px; }
.promise b { display: block; color: var(--ink); font-size: 17px; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.shot { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.shot-sm { max-width: 380px; margin-top: 22px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.gallery figure { margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 12px 18px 14px; font-size: 14.5px; color: var(--ink-soft); }

.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.social span { flex-basis: 100%; font-size: 14.5px; color: var(--ink-soft); }
.soc { padding: 9px 22px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform 0.15s; }
.soc:hover { transform: translateY(-2px); }
.soc-fb { background: #1877f2; }
.soc-tt { background: #111; }
.foot-social { display: flex; gap: 20px; }
.foot-social a { color: #fff; }

details { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--brand); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

.final { background: var(--brand-deep); color: #fff; padding: 76px 0; }
.final p { opacity: 0.85; font-size: 19px; }
.footer { background: var(--footer); color: rgba(255, 255, 255, 0.7); padding: 30px 0 90px; font-size: 13.5px; line-height: 1.75; }
.footer b { color: #fff; }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 62px; height: 62px; border-radius: 50%; background: var(--line); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; text-decoration: none; box-shadow: 0 10px 24px rgba(6, 199, 85, 0.4); }

@media (max-width: 880px) {
  .links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .hero { padding: 36px 0 52px; }
  .hero-in, .calc-wrap, .about, .split { grid-template-columns: 1fr; gap: 34px; }
  .split { gap: 20px; }
  .gallery { grid-template-columns: 1fr; margin-top: 30px; }
  .portrait { max-width: 320px; margin: 0 auto; width: 100%; }
  .portrait-card { left: 12px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .cta-row .btn { width: 100%; }
}

/* คลิปในช่อง */
a.card.clip { display: block; color: inherit; text-decoration: none; }
a.card.clip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.clip .more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--brand); }
.center-row { justify-content: center; margin-top: 28px; }
.soc-yt { background: #e62117; }
.soc-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.gallery[hidden] { display: none; }
