/* Marketing to Success: site styles (v2: สีจากโลโก้ น้ำเงิน + เขียวมะนาว) */

:root {
  --ink: #0b1530;
  --ink-2: #16234a;
  --blue: #1f4fa8;
  --blue-600: #2a62c9;
  --blue-50: #eef3fd;
  --blue-100: #dde7fb;
  --lime: #8cc63f;
  --lime-600: #6fa62a;
  --lime-50: #f2f9e8;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1b2236;
  --muted: #5a6478;
  --line: #e3e7ef;
  --line-strong: #cdd4e1;
  --accent: #e8743b;
  --accent-50: #fdf0e8;
  --danger: #c4362c;
  --danger-50: #fdeceb;
  --ok: #1f7a4d;
  --ok-50: #e6f5ec;

  --font: "Anuphan", "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  --r-s: 12px;
  --r: 18px;
  --r-l: 28px;
  --shadow-s: 0 1px 2px rgb(11 21 48 / 6%);
  --shadow: 0 2px 6px rgb(11 21 48 / 5%), 0 12px 32px rgb(11 21 48 / 8%);
  --shadow-l: 0 24px 60px rgb(11 21 48 / 16%);
  --wrap: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7;
  color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 700; line-height: 1.25; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lime); color: var(--ink); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgb(31 79 168 / 25%); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .ico { width: 1.15em; height: 1.15em; flex: none; transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.lime:hover { background: #9dd44f; border-color: #9dd44f; color: var(--ink); box-shadow: 0 8px 20px rgb(140 198 63 / 35%); }
.btn.outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.outline:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-s); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 35%); }
.btn.ghost-light:hover { background: rgb(255 255 255 / 10%); border-color: #fff; color: #fff; box-shadow: none; }
.btn.small { min-height: 42px; padding: 8px 18px; font-size: .94rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.danger { background: var(--surface); color: var(--danger); border-color: #efc1bd; }
.btn.danger:hover { background: var(--danger-50); color: var(--danger); border-color: var(--danger); box-shadow: none; }

/* ---------- Header (แถบเมนูลอย) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: padding .25s var(--ease); }
.site-header .nav {
  height: 60px; display: flex; align-items: center; gap: 20px; padding: 0 10px 0 18px;
  background: rgb(255 255 255 / 82%); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid rgb(227 231 239 / 90%); border-radius: 999px; box-shadow: var(--shadow-s);
}
.site-header.scrolled .nav { box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .98rem; letter-spacing: .03em; white-space: nowrap; }
.brand-text small { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--blue-50); color: var(--blue); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-cta { min-height: 44px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
@media (min-width: 981px) {
  .nav-panel { display: flex; align-items: center; }
  .nav-panel .panel-cta { display: none; }
}
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-panel {
    position: fixed; left: 20px; right: 20px; top: calc(var(--header-h) + 4px);
    padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-l);
    display: none; transform-origin: top center;
  }
  .nav-panel.open { display: block; animation: drop .22s var(--ease); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 14px 16px; border-radius: var(--r-s); font-size: 1.08rem; }
  .nav-panel .btn { width: 100%; margin-top: 10px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .brand-text small { display: none; } .site-header .nav { padding-left: 14px; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section.mint { background: var(--surface); }
.section.dark { background: var(--ink); color: #c9d2e6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .86rem; font-weight: 600; letter-spacing: .04em; color: var(--blue);
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--lime); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-head p { max-width: 480px; color: var(--muted); margin: 0; }
.lead { font-size: 1.16rem; color: var(--muted); }
.muted { color: var(--muted); }
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head p { margin-top: 10px; }
}

/* ---------- Page hero (หน้าย่อย) ---------- */
.page-hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(140 198 63 / 18%), transparent); pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .3em; }
.page-hero p { max-width: 700px; color: var(--muted); font-size: 1.12rem; margin: 0; }
.breadcrumb { display: inline-flex; gap: 6px; font-size: .9rem; color: var(--muted); margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 36px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgb(42 98 201 / 14%), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgb(140 198 63 / 16%), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  font-size: .9rem; font-weight: 500; color: var(--text);
}
.kicker b { padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: .82rem; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--blue); }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--lime); opacity: .55; z-index: -1; border-radius: 4px; }
.hero p.lead { max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .93rem; color: var(--text); }
.hero-facts svg { width: 18px; height: 18px; color: var(--lime-600); flex: none; }
.hero-visual { position: relative; padding: 20px 10px 30px 30px; }
.hero-visual .frame { position: relative; aspect-ratio: 4 / 4.6; border-radius: 36px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-l); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgb(255 255 255 / 94%); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  font-size: .92rem; line-height: 1.35;
}
.float-card strong { display: block; color: var(--ink); font-size: 1rem; }
.float-card span { color: var(--muted); font-size: .85rem; }
.float-card .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--lime-50); color: var(--lime-600); }
.float-card .fi.blue { background: var(--blue-50); color: var(--blue); }
.float-card .fi svg { width: 22px; height: 22px; }
.float-card.a { left: 0; top: 46px; animation: bob 6s ease-in-out infinite; }
.float-card.b { right: 0; bottom: 90px; animation: bob 6s ease-in-out 1.5s infinite; }
.hero-visual .tag { margin: 14px 0 0; padding-left: 6px; color: var(--muted); font-size: .85rem; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 920px) {
  .hero { padding: 20px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { max-width: 480px; margin-inline: auto; padding: 10px 0 20px; }
  .float-card.a { left: -6px; top: 20px; }
  .float-card.b { right: -6px; bottom: 36px; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-weight: 600; font-size: 1.05rem; white-space: nowrap; color: #dfe6f5; }
.marquee span::after { content: "✦"; color: var(--lime); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stat strip ---------- */
.strip { background: transparent; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip-item { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.strip-item b { display: block; color: var(--ink); font-size: 1.2rem; margin-bottom: 2px; }
.strip-item span { font-size: .94rem; color: var(--muted); }
@media (max-width: 760px) { .strip-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .strip-item { padding: 16px; } }

/* ---------- Category bento ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px;
  border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden;
}
a.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.cat .num { font-size: .84rem; font-weight: 600; color: var(--muted); }
.cat .cat-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px; background: var(--blue-50); color: var(--blue); transition: background .25s, color .25s; }
.cat .cat-ico svg { width: 26px; height: 26px; }
a.cat:hover .cat-ico { background: var(--lime); color: var(--ink); }
.cat h3 { margin: 0; font-size: 1.18rem; }
.cat p { margin: 0; color: var(--muted); font-size: .98rem; }
.cat .more { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--blue); font-size: .95rem; text-decoration: none; }
.cat.feature { grid-column: span 2; background: var(--ink); border-color: var(--ink); color: #c9d2e6; justify-content: flex-end; }
.cat.feature h3 { color: #fff; font-size: 1.5rem; }
.cat.feature p { color: #c9d2e6; }
.cat.feature .cat-ico { background: rgb(255 255 255 / 10%); color: var(--lime); }
.cat.feature .more { color: var(--lime); }
.cat.feature::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(140 198 63 / 35%), transparent);
}
@media (max-width: 920px) { .cat-grid { grid-template-columns: 1fr 1fr; } .cat.feature { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } .cat { padding: 22px; } }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { opacity: .6; margin-left: 4px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-media { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3.4; background: var(--blue-50); overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .5s var(--ease); }
.work:hover .work-media img { transform: scale(1.05); }
.work-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-body h3 { margin: 0; font-size: 1.14rem; }
.work-body p { margin: 0; color: var(--muted); font-size: .97rem; }
.work-cat { font-size: .84rem; font-weight: 600; color: var(--blue); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0 0; }
.tags li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.img-badge {
  position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; line-height: 1.4; background: rgb(255 255 255 / 92%); backdrop-filter: blur(6px); color: var(--ink);
}
.img-badge.concept { background: var(--accent); color: #fff; }
.work.placeholder { border: 1.5px dashed var(--line-strong); background: transparent; }
.work.placeholder:hover { transform: none; box-shadow: none; }
.work.placeholder .work-media { cursor: default; display: grid; place-items: center; color: var(--line-strong); background: transparent; }
.work.placeholder .work-media svg { width: 56px; height: 56px; }
.work-body .more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
@media (max-width: 960px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .95rem; margin-top: 28px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--blue); }
.note p { margin: 0; }
fieldset .note { margin-top: 16px; }

dialog.lightbox { width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-l); overflow: hidden; background: #fff; box-shadow: var(--shadow-l); }
dialog.lightbox[open] { animation: pop .25s var(--ease); }
dialog.lightbox::backdrop { background: rgb(11 21 48 / 70%); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-grid { display: grid; grid-template-columns: 1.15fr 1fr; max-height: calc(100dvh - 24px); }
.lb-media { position: relative; background: var(--bg); display: grid; place-items: center; min-height: 0; }
.lb-media img { width: 100%; height: 100%; max-height: calc(100dvh - 24px); object-fit: contain; }
.lb-body { padding: 32px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.lb-body h2 { font-size: 1.6rem; margin: 0; }
.lb-body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .97rem; }
.lb-body dt { color: var(--muted); }
.lb-body dd { margin: 0; }
.lb-close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 94%); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); color: var(--ink); }
.lb-close svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .lb-grid { grid-template-columns: 1fr; overflow: auto; }
  .lb-media { display: block; }
  .lb-media img { height: auto; max-height: 55dvh; margin-inline: auto; }
  .lb-body { padding: 22px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; position: relative; }
.step { position: relative; padding: 26px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 18px; font-size: 2.6rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue);
}
.step:hover::before { color: var(--lime); -webkit-text-stroke-color: var(--lime-600); }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
.section.dark .step { background: var(--ink-2); border-color: rgb(255 255 255 / 8%); }
.section.dark .step p { color: #aab6d0; }
.section.dark .step::before { -webkit-text-stroke-color: var(--lime); }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--lime-600); }
.logo-card { background: var(--surface); border-radius: var(--r-l); border: 1px solid var(--line); padding: 56px; display: grid; place-items: center; box-shadow: var(--shadow); }
.logo-card img { width: min(100%, 360px); }
.svc { padding: 34px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.svc .split { gap: 40px; }
.svc h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc-head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.svc-head .cat-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex: none; }
.svc-head .cat-ico svg { width: 28px; height: 28px; }
.svc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@media (max-width: 600px) { .svc { padding: 24px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); font-size: 1.3rem; font-weight: 500; line-height: 1; transition: transform .2s, background .2s;
}
.faq details[open] summary::after { content: "−"; background: var(--lime); }
.faq .answer { padding: 0 24px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px; border-radius: 36px; background: var(--ink); color: #c9d2e6;
}
.cta-band::before { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgb(140 198 63 / 40%), transparent); }
.cta-band::after { content: ""; position: absolute; left: 30%; top: -140px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgb(42 98 201 / 45%), transparent); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.cta-band .btn.light { background: var(--lime); border-color: var(--lime); }
.cta-band .btn.light:hover { background: #fff; border-color: #fff; }
@media (max-width: 860px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 26px; border-radius: var(--r-l); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; min-height: 92px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s; }
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.contact-card .icon { width: 50px; height: 50px; border-radius: 16px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
a.contact-card:hover .icon { background: var(--lime); color: var(--ink); }
.contact-card .icon svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--muted); font-size: .88rem; }
.contact-card strong { display: block; font-size: 1.1rem; color: var(--ink); word-break: break-word; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
@media (max-width: 980px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 36px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .form-card { padding: 22px; border-radius: var(--r); } }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; padding: 0; display: flex; align-items: center; gap: 10px; }
legend .n { display: none; }
.fieldset-hint { color: var(--muted); font-size: .96rem; margin: 0 0 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
fieldset > .field.full { margin-bottom: 20px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.field > label, .group-label { font-weight: 600; font-size: .98rem; color: var(--ink); }
.req { color: var(--danger); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: .9rem; }
.hint { color: var(--muted); font-size: .9rem; margin: 0; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s);
  background: var(--surface); font: inherit; font-size: 16px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: #b3bdd0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgb(42 98 201 / 15%); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .choice-group.invalid .choice { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: .9rem; margin: 0; }
.choice-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice-group.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); cursor: pointer; font-size: .98rem; line-height: 1.35; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: var(--blue-600); }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 600; color: var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue-600); outline-offset: 2px; }
@media (max-width: 600px) {
  .choice-group, .choice-group.compact { grid-template-columns: 1fr 1fr; gap: 8px; }
  .choice { padding: 10px 12px; font-size: .94rem; gap: 8px; }
}
.inline-check { display: flex; align-items: flex-start; gap: 10px; font-size: .98rem; cursor: pointer; }
.inline-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--r-s); font-size: .98rem; margin-bottom: 18px; }
.alert.error { background: var(--danger-50); color: #82231c; border: 1px solid #f2c4c0; }
.alert.ok { background: var(--ok-50); color: #134b31; border: 1px solid #bce2cc; }
.alert.info { background: var(--blue-50); color: var(--ink); border: 1px solid var(--blue-100); }
.alert a { color: inherit; font-weight: 600; }
.alert p:last-child { margin: 0; }
.alert .row-actions { margin-top: 10px; }
.submit-area { display: grid; gap: 16px; }
.turnstile-box { min-height: 65px; }
.privacy-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* Wizard (ฟอร์มทีละขั้น) */
.wizard-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 30px; padding: 0; counter-reset: wz; }
.wizard-steps li { flex: 1; counter-increment: wz; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.wizard-steps li::before { content: ""; height: 6px; border-radius: 6px; background: var(--line); transition: background .3s; }
.wizard-steps li span::before { content: counter(wz) ". "; }
.wizard-steps li.done::before { background: var(--lime); }
.wizard-steps li.current::before { background: var(--blue); }
.wizard-steps li.current { color: var(--ink); font-weight: 700; }
.wizard-panel[data-hidden="true"] { display: none; }
.wizard-panel.enter { animation: fadein .3s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wizard-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.wizard-nav .spacer { flex: 1; }
.review { display: grid; gap: 12px; margin-bottom: 22px; }
.review-block { padding: 18px 20px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.review-block h3 { font-size: 1rem; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-block h3 button { border: 0; background: none; color: var(--blue); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; padding: 6px 4px; }
.review-block dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: .95rem; }
.review-block dt { color: var(--muted); }
.review-block dd { margin: 0; word-break: break-word; white-space: pre-wrap; }
@media (max-width: 600px) { .wizard-steps li { font-size: .8rem; } .wizard-nav .btn { flex: 1; } }

.side-card { padding: 28px; border-radius: var(--r-l); background: var(--ink); color: #c9d2e6; position: sticky; top: calc(var(--header-h) + 24px); }
.side-card h2 { font-size: 1.15rem; color: #fff; }
.side-card ol { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: sc; font-size: .96rem; }
.side-card ol li { counter-increment: sc; display: flex; gap: 12px; align-items: flex-start; }
.side-card ol li::before { content: counter(sc); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgb(140 198 63 / 18%); color: var(--lime); font-weight: 700; font-size: .85rem; }
.side-card .contact-mini { display: grid; gap: 4px; border-top: 1px solid rgb(255 255 255 / 10%); padding-top: 16px; }
.side-card .contact-mini a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font-weight: 600; text-decoration: none; }
.side-card .contact-mini a:hover { color: var(--lime); }
.side-card .contact-mini .muted { color: #8f9bb8; font-weight: 400; }
.side-card .contact-mini svg { width: 20px; height: 20px; flex: none; color: var(--lime); }
@media (max-width: 980px) { .side-card { position: static; } }

.success { text-align: center; padding: 16px 0; }
.success .big-check { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; animation: pop .4s var(--ease); }
.success .big-check svg { width: 40px; height: 40px; }
.order-no { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 14px 0 8px; padding: 14px 20px; border-radius: var(--r); background: var(--blue-50); border: 1.5px dashed var(--blue); }
.order-no code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.next-steps { text-align: left; max-width: 520px; margin: 24px auto; display: grid; gap: 10px; padding-left: 1.2em; color: var(--muted); }
.success .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Track */
.track-card { max-width: 660px; margin-inline: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .93rem; background: var(--blue-50); color: var(--blue); }
.status-pill.cancelled, .status-pill.s-cancelled { background: var(--danger-50); color: var(--danger); }
.status-pill.delivered, .status-pill.s-delivered { background: var(--ok-50); color: var(--ok); }
.status-pill.s-new { background: var(--accent-50); color: #b5531f; }
.progress { list-style: none; padding: 0; margin: 22px 0; }
.progress li { position: relative; padding: 0 0 20px 36px; color: var(--muted); }
.progress li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.progress li::after { content: ""; position: absolute; left: 11px; top: 23px; bottom: -3px; width: 2px; background: var(--line); }
.progress li:last-child::after { display: none; }
.progress li.done { color: var(--text); }
.progress li.done::before { background: var(--lime); border-color: var(--lime); }
.progress li.done::after { background: var(--lime); }
.progress li.current { color: var(--ink); font-weight: 700; }
.progress li.current::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-100); }
.progress time { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9aa6c2; padding: 72px 0 28px; font-size: .97rem; margin-top: 40px; }
.site-footer a { color: #e3e9f7; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-grid h2 { font-size: .95rem; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer-brand img { width: 46px; background: #fff; border-radius: 12px; padding: 6px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 10%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 6px; padding: 6px;
    background: rgb(11 21 48 / 92%); backdrop-filter: blur(12px); border-radius: 999px; box-shadow: var(--shadow-l);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; color: #fff; }
  .action-bar a.primary { background: var(--lime); color: var(--ink); }
  .action-bar svg { width: 19px; height: 19px; }
  body.has-action-bar { padding-bottom: 84px; }
}

/* ---------- 404 & gate ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; line-height: 1; margin-bottom: 10px; color: transparent; -webkit-text-stroke: 2px var(--blue); }
.notfound .row-actions { justify-content: center; }
.admin-gate { background: var(--bg); }
.gate { max-width: 520px; margin: 15vh auto; padding: 36px; background: var(--surface); border-radius: var(--r-l); border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow); }

/* ---------- Prose ---------- */
.prose { max-width: 800px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h2:first-of-type { margin-top: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .96rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); }
@media (max-width: 600px) { .prose { padding: 22px; } }

/* ---------- Utilities ---------- */
hr.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.prewrap { white-space: pre-wrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.center { text-align: center; }
.stack { display: grid; gap: 16px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Admin ---------- */
body.admin { background: var(--bg); }
body.admin .site-header .nav { gap: 12px; }
.admin-user { font-size: .9rem; }
.admin-main { padding: 20px 0 64px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-toolbar h1 { font-size: 1.9rem; margin: 0; }
.admin-search { display: flex; gap: 10px; margin-bottom: 16px; }
.admin-search input { flex: 1; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; }
.orders-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.orders-table th, .orders-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.orders-table th { background: var(--bg); font-weight: 600; white-space: nowrap; color: var(--muted); font-size: .88rem; }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table tbody tr:hover { background: #fafbfe; }
.orders-table tr.is-new td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.order-link { font-family: ui-monospace, Consolas, monospace; font-weight: 600; white-space: nowrap; }
.pager { justify-content: center; align-items: center; margin-top: 16px; }
@media (max-width: 760px) {
  .orders-table thead { display: none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }
  .orders-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .orders-table td { border: 0; padding: 4px 16px; }
  .orders-table td::before { content: attr(data-label); display: block; font-size: .8rem; color: var(--muted); }
}
dialog.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(580px, 100%); padding: 0; border: 0; background: var(--bg); box-shadow: var(--shadow-l); }
dialog.drawer::backdrop { background: rgb(11 21 48 / 45%); backdrop-filter: blur(2px); }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: ui-monospace, Consolas, monospace; font-size: 1.25rem; margin: 0; }
.drawer-body { padding: 20px 24px 40px; display: grid; gap: 18px; }
.drawer-body > section, .drawer-body > form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.drawer-body h3 { font-size: 1.02rem; margin-bottom: 10px; }
.lb-close.static { position: static; box-shadow: none; background: var(--bg); flex: none; }
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.events li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line); }
.events time { color: var(--muted); font-size: .85rem; }
.danger-zone { border-color: #f0c8c4 !important; }
.chip { display: inline-flex; align-items: center; text-decoration: none; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.cat-ico .ico, .fi .ico { width: 26px; height: 26px; vertical-align: 0; }
.section.dark .eyebrow { color: var(--lime); } .section.dark .section-head p { color: #aab6d0; }
#review-title { font-size: 1.45rem; }
@media (max-width: 760px) {
  .svc-nav { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .svc-nav::-webkit-scrollbar { display: none; }
  .svc-nav .chip { flex: none; }
}
