@font-face { font-family: "LE Lao"; src: url("fonts/NotoSansLao-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LE Lao"; src: url("fonts/NotoSansLao-SemiBold.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "LE Lao"; src: url("fonts/NotoSansLao-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
/* Thai glyphs (the Nong Khai warehouse address) — the Lao face has none */
@font-face { font-family: "LE Thai"; src: url("fonts/NotoSansThai-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "LE Thai"; src: url("fonts/NotoSansThai-SemiBold.ttf") format("truetype"); font-weight: 500 900; font-display: swap; }

:root {
  color-scheme: light;
  --orange: #F26B1D;       /* the posters' orange */
  --orange-deep: #C44E00;  /* text + buttons on light ground (AA) */
  --orange-ink: #8F3800;
  --sun: #FFB547;
  --cream: #FFF4E2;
  --paper: #FFFCF6;
  --tint: #FFE3C2;
  --ink: #2A1B0F;
  --ink-soft: #6F5B47;
  --line: #F0DBB8;
  --green: #177A42;
  --green-tint: #DBF0E1;
  --blue: #1F5E7A;
  --red: #B42318;
  --shadow: 0 1px 2px rgba(42, 27, 15, .06), 0 10px 28px rgba(42, 27, 15, .10);
  --font: "LE Lao", "LE Thai", "Noto Sans Lao", "Noto Sans Thai", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); }
h1, h2, h3 { line-height: 1.3; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(24px, 4.4vw, 34px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
.mono { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; }
.btn-main { background: var(--orange-deep); color: #fff; }
.btn-main:hover { background: var(--orange-ink); }
.btn-soft { background: var(--paper); color: var(--orange-ink); border: 1.5px solid var(--line); }
.btn-soft:hover { border-color: var(--orange); }
.btn-white { background: #fff; color: var(--orange-ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- notice + header */
.notice { background: var(--ink); color: #FFE9CF; font-size: 14px; text-align: center; padding: 8px 16px; }
header.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 244, 226, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand b { font-size: 17px; letter-spacing: .04em; font-weight: 800; }
.brand small { display: block; font-size: 12px; color: var(--ink-soft); letter-spacing: 0; line-height: 1.2; font-weight: 500; }
nav.main { display: flex; gap: 4px; }
nav.main a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--tint); color: var(--orange-ink); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper);
    align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
}

/* ---------- hero */
.hero { position: relative; overflow: hidden; background: var(--orange); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background: repeating-linear-gradient(-35deg, transparent 0 34px, rgba(255, 255, 255, .5) 34px 36px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; padding-block: 40px 48px; }
.hero .kicker { display: inline-flex; gap: 8px; align-items: center; background: rgba(0, 0, 0, .16); padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 7vw, 58px); font-weight: 900; margin-top: 14px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: #FFF0B8; }
.hero .lead { font-size: clamp(16px, 2.4vw, 19px); margin-top: 12px; max-width: 34em; color: #FFF6EC; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 22px; font-size: 14px; font-weight: 600; color: #FFF6EC; }
.route span.dot { width: 8px; height: 8px; border-radius: 50%; background: #FFF0B8; display: inline-block; }
.route i { font-style: normal; opacity: .7; }
.stack { position: relative; height: clamp(300px, 46vw, 470px); }
.stack img { position: absolute; width: 58%; border-radius: 16px; box-shadow: 0 18px 40px rgba(60, 20, 0, .35); border: 4px solid #fff; background: #fff; }
.stack img:nth-child(1) { left: 0; top: 8%; transform: rotate(-7deg); }
.stack img:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
.stack img:nth-child(3) { left: 22%; bottom: 0; transform: rotate(-1deg); z-index: 1; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 28px 36px; }
  .stack { height: 330px; max-width: 420px; }
}

/* ---------- sections */
section.band { padding-block: 56px; }
section.band.alt { background: var(--paper); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.sec-head p { color: var(--ink-soft); max-width: 40em; margin-top: 6px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--orange-deep); text-transform: uppercase; }

/* ---------- tracking */
.track-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); margin-top: -34px; position: relative; z-index: 2; }
.track-card form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.track-card input { flex: 1 1 240px; min-width: 0; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  padding: 0 16px; font: 600 17px var(--mono); letter-spacing: .03em; color: var(--ink); }
.track-card input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 107, 29, .2); }
.track-out { margin-top: 16px; display: grid; gap: 12px; }
.track-item { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.steps div { text-align: center; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.steps div::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.steps div.on { color: var(--orange-ink); }
.steps div.on::before { background: var(--orange); }
.msg { padding: 12px 14px; border-radius: 12px; background: var(--tint); color: var(--orange-ink); font-size: 15px; }
.msg.err { background: #FDE8E6; color: var(--red); }

/* ---------- facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.fact b { display: block; font-size: 24px; font-weight: 900; color: var(--orange-deep); line-height: 1.25; }
.fact span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- posters (promos + services) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post button.img { all: unset; cursor: zoom-in; display: block; aspect-ratio: 1 / 1; background: var(--tint); }
.post button.img:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.post button.img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post .txt { padding: 12px 14px 14px; display: grid; gap: 4px; flex: 1; align-content: start; }
.post .txt h3 { font-size: 16px; }
.post .txt p { font-size: 14px; color: var(--ink-soft); white-space: pre-line; }
.post .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--tint); color: var(--orange-ink); }
.badge.news { background: #E3EFF4; color: var(--blue); }
.grid-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .services { grid-template-columns: minmax(0, 1fr); } }
.svc { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px; }
.svc button { all: unset; cursor: zoom-in; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--tint); }
.svc button img { width: 100%; height: 100%; object-fit: cover; }
.svc h3 { font-size: 17px; }
.svc p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-top: 2px; }

/* ---------- steps (how to order) */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.how ol li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; }
.how ol li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; font-size: 20px;
  display: grid; place-items: center; }
.how ol li p { color: var(--ink-soft); font-size: 15px; }

/* ---------- address label */
.label { background: #fff; border: 2px dashed var(--orange); border-radius: 20px; padding: 18px; display: grid; gap: 12px; }
.label .row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.label .row > span:first-child { font-size: 13px; color: var(--ink-soft); font-weight: 600; padding-top: 3px; }
.label .val { font-family: var(--font); font-weight: 600; font-size: 16px; word-break: break-word; }
.label hr { border: 0; border-top: 1px dashed var(--line); margin: 2px 0; width: 100%; }
@media (max-width: 480px) { .label .row { grid-template-columns: minmax(0, 1fr) auto; } .label .row > span:first-child { grid-column: 1 / -1; padding: 0; } }
.fields { display: grid; gap: 12px; }
.fields label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.fields input, .fields select { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; font: 500 16px var(--font); color: var(--ink); width: 100%; }
.fields input:focus, .fields select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 107, 29, .2); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: minmax(0, 1fr); } }
.copy { all: unset; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--orange-deep); padding: 4px 10px; border-radius: 999px; background: var(--tint); white-space: nowrap; }
.copy.done { background: var(--green-tint); color: var(--green); }

/* ---------- branches */
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.branch { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.branch .k { font-size: 12px; font-weight: 700; color: var(--orange-deep); letter-spacing: .04em; }
.branch .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- app band */
.appband { background: var(--ink); color: #FFF3E3; border-radius: 26px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.appband h2 { color: #fff; }
.appband p { color: #E9D8C4; margin-top: 6px; }
.appband .cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .appband { grid-template-columns: minmax(0, 1fr); } }

/* ---------- download page */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.dl-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 12px; align-content: start; }
.dl-card .icon { width: 56px; height: 56px; border-radius: 16px; }
.dl-card ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; color: var(--ink-soft); font-size: 15px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; font-size: 14px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- footer */
footer.foot { background: #1F140B; color: #E9D8C4; margin-top: 56px; padding-block: 40px 28px; font-size: 15px; }
footer.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
footer.foot h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
footer.foot a { color: #FFD3A6; text-decoration: none; }
footer.foot a:hover { text-decoration: underline; }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer.foot .fine { grid-column: 1 / -1; border-top: 1px solid #3A2A1B; padding-top: 16px; font-size: 13px; color: #B9A58F; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (max-width: 760px) { footer.foot .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(94vw, 620px); width: 100%; }
dialog.lb::backdrop { background: rgba(25, 12, 3, .82); }
dialog.lb img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 16px; background: #fff; }
dialog.lb .cap { color: #fff; margin-top: 10px; display: grid; gap: 4px; }
dialog.lb .cap p { color: #F1E3D3; font-size: 15px; white-space: pre-line; }
dialog.lb .bar { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; z-index: 60; box-shadow: var(--shadow); }

/* ---------- floating chat button */
.chat-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  background: #0866FF; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(8, 102, 255, .35); }
.chat-fab svg { width: 24px; height: 24px; }
.chat-fab:hover { background: #0a58d6; }
@media print { .chat-fab { display: none; } }
