:root {
  --green-950: #04301b;
  --green-900: #073d23;
  --green-800: #0b4f2e;
  --green-700: #10663b;
  --green-500: #2f9a5c;
  --green-100: #e8f3ec;
  --green-50: #f4f9f6;
  --ink: #15201a;
  --muted: #56655c;
  --line: #dce6df;
  --bg: #ffffff;
  --line-brand: #06c755;
  --radius: 14px;
  --gutter: 16px;
  --max: 1160px;
  --bar-h: 64px;
  --font-head: "Prompt", "Noto Sans Thai", sans-serif;
  --font-body: "Sarabun", "Noto Sans Thai", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  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));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .5em; color: var(--green-900); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.nw { white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 28px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background-color .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-line { background: var(--line-brand); color: #fff; }
.btn-line:hover { background: #05b04b; }
.btn-call { background: #fff; color: var(--green-900); }
.btn-call:hover { background: var(--green-100); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-outline:hover { background: var(--green-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- หัวเว็บ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--green-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 44px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 64px;
  background: var(--green-900); padding: 8px var(--gutter) 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 14px 4px; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-nav a[aria-current="page"] { color: #9fe0b8; }
.nav-cta { display: none; }
@media (min-width: 900px) {
  .site-header .wrap { height: 76px; }
  .brand img { height: 52px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { padding: 8px 12px; border: 0; font-size: 1rem; border-radius: 8px; }
  .site-nav a:hover { background: rgba(255,255,255,.08); }
  .nav-cta { display: inline-flex; min-height: 44px; font-size: .98rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--green-950); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,48,27,.15) 0%, rgba(4,48,27,.55) 45%, rgba(4,48,27,.94) 100%);
}
.hero .wrap {
  position: relative; z-index: 1;
  min-height: calc(100svh - 64px - var(--bar-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; padding-bottom: 36px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 8.5vw, 4rem); font-weight: 700; margin-bottom: .35em; }
.hero h1 .accent { color: #a8e6c0; }
.hero h1 .h1-sub { display: block; margin-top: .3em; font-size: .6em; font-weight: 600; color: #fff; }
.hero .lead { font-size: clamp(1.05rem, 3.6vw, 1.3rem); max-width: 34em; margin-bottom: 1.4em; opacity: .95; }
.hero .btn-row .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .hero .btn-row .btn { flex: 0 0 auto; } }
@media (min-width: 900px) {
  .hero::after { background: linear-gradient(90deg, rgba(4,48,27,.95) 0%, rgba(4,48,27,.75) 40%, rgba(4,48,27,.1) 75%); }
  .hero .wrap { min-height: min(720px, calc(100vh - 76px)); justify-content: center; padding: 80px var(--gutter); }
  .hero-text { max-width: 600px; }
}

/* ---------- แถบจุดเด่น ---------- */
.facts { background: var(--green-800); color: #fff; }
.facts ul {
  list-style: none; margin: 0; padding: 18px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
}
.facts li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.facts b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.facts svg { width: 22px; height: 22px; flex: none; color: #a8e6c0; margin-top: 2px; }
@media (min-width: 900px) { .facts ul { grid-template-columns: repeat(4, 1fr); padding: 24px 0; } }

/* ---------- ส่วนต่าง ๆ ---------- */
.section { padding: 56px 0; }
section[id] { scroll-margin-top: 72px; }
.section-alt { background: var(--green-50); }
.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .9rem; font-weight: 500;
  color: var(--green-700); letter-spacing: .02em; margin-bottom: 6px;
}
@media (min-width: 900px) { .section { padding: 88px 0; } }

/* บริการ */
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.service img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 600px) { .service img { aspect-ratio: 4 / 3; } }
.service-body { padding: 18px 20px 22px; }
.service-body p { color: var(--muted); margin: 0; }
.service-cta {
  background: var(--green-900); color: #fff; border: 0;
  justify-content: center; padding: 28px 24px;
}
.service-cta h3 { color: #fff; }
.service-cta p { color: rgba(255,255,255,.85); margin-bottom: 18px; }

/* ทำไมเลือกเรา */
.why { display: grid; gap: 32px; align-items: center; }
.why-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.why-list li { display: flex; gap: 14px; }
.why-num {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
}
.why-list h3 { margin-bottom: .2em; }
.why-list p { color: var(--muted); margin: 0; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ขั้นตอน */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 18px 72px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-800); color: #fff;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 600;
}
.steps h3 { margin-bottom: .15em; }
.steps p { margin: 0; color: var(--muted); }
.steps .time { display: inline-block; margin-top: 6px; font-size: .92rem; color: var(--green-700); font-weight: 600; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { padding: 70px 20px 22px; } }
.note { color: var(--muted); font-size: .95rem; margin-top: 16px; }

/* ผลงาน */
.works { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .works { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.work { margin: 0; }
.work-btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 12px; overflow: hidden; background: var(--green-100);
}
.work-btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .3s; }
.work-btn:hover img { transform: scale(1.03); }
.work figcaption { padding: 8px 2px 4px; line-height: 1.4; }
.work figcaption b { display: block; font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink); }
.work figcaption span { font-size: .9rem; color: var(--muted); }
.center { text-align: center; margin-top: 28px; }

/* หัวหน้าย่อย */
.page-head { background: var(--green-900); color: #fff; padding: 36px 0 32px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: .25em; }
.page-head p { margin: 0; opacity: .9; }
.section-tight { padding-top: 24px; }

/* ปุ่มกรองประเภท */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--font-head); font-size: .95rem; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }
@media (min-width: 800px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 20px; } }

/* ปิดท้าย */
.closing { background: var(--green-900); color: #fff; text-align: center; }
.closing h2 { color: #fff; font-size: clamp(1.3rem, 5.6vw, 2.3rem); }
.closing p { max-width: 32em; margin: 0 auto 1.5em; opacity: .92; font-size: 1.1rem; }
.closing .btn-row { justify-content: center; }

/* ---------- ท้ายเว็บ ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.85); padding: 44px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid h3 { color: #fff; font-size: 1.05rem; margin-bottom: .6em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-logo img { height: 56px; width: auto; margin-bottom: 12px; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .88rem; opacity: .7; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- แถบปุ่มลอยมือถือ ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  box-shadow: 0 -4px 18px rgba(0,0,0,.12);
}
.mobile-bar .btn { min-height: 48px; padding: 0 .8em; }
.mobile-bar .btn-call { background: var(--green-800); color: #fff; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- รูปใหญ่ (lightbox) ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 12px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 6px; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; font-family: var(--font-head); }
.lightbox-close {
  position: absolute; top: 10px; right: 10px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}

:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- หน้าบริการ ---------- */
.svc-block + .svc-block { border-top: 1px solid var(--line); }
.svc-block h2 { margin-bottom: .3em; }
.svc-lead { font-size: 1.08rem; max-width: 40em; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2310663b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.svc-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.svc-thumbs .work-btn img { aspect-ratio: 1; }
@media (min-width: 800px) { .svc-thumbs { gap: 14px; max-width: 900px; } }
.svc-actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .svc-actions .btn { flex: 0 0 auto; } }

/* ---------- เกี่ยวกับเรา ---------- */
.prose p { color: var(--muted); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team-grid figure { margin: 0; }
.team-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.team-grid figcaption { padding: 8px 2px 0; font-family: var(--font-head); font-size: .95rem; }
@media (min-width: 800px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--font-head); font-weight: 500; font-size: 1.08rem; color: var(--green-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--green-100); color: var(--green-800);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 20px 18px; }
.faq-a ul { margin: 0 0 1em; padding-left: 1.2em; }
.faq-a li { margin-bottom: 4px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- ติดต่อ ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.contact-cards { display: grid; gap: 10px; margin-bottom: 28px; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  text-decoration: none; color: var(--muted); line-height: 1.4;
}
.contact-card:hover { border-color: var(--green-500); }
.contact-card b { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.cc-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-800); color: #fff; }
.cc-icon svg { width: 24px; height: 24px; }
.cc-line { background: var(--line-brand); }
.cc-fb { background: #1877f2; }
.cc-tt { background: #111; }
.h-sm { font-size: 1.15rem; margin-bottom: .3em; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; margin-bottom: 14px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
