/* ============================================================
   Shippung — China→Thailand freight forwarder
   Design system: Modernist (flat, 2px rules, 0 radius, mono red)
   Fonts: Prompt (headings/ui) + Sarabun (body)
   ============================================================ */

:root {
  --ink:        #111111;
  --ground:     #ffffff;
  --accent:     #e24a10;
  --accent-700: #b7360a;
  --accent-tint:#ffe9e0;
  --select:     #ffd9c9;
  --panel:      #f5f4f3;
  --panel-2:    #e9e7e5;
  --line:       #111111;
  --muted:      #5c5753;
  --font-head: 'Prompt', system-ui, sans-serif;
  --font-body: 'Sarabun', system-ui, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .u-head { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

::selection { background: var(--select); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; border-bottom: 2px solid var(--line); }
.section--tight { padding: 36px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark a { color: #fff; }
.section--dark a:hover { color: var(--accent); }
.section--accent { background: var(--accent); color: #fff; }
.section--panel { background: var(--panel); }
.kicker {
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section--dark .kicker, .section--accent .kicker { color: #fff; opacity: .85; }
.hr { height: 0; border: 0; border-top: 2px solid var(--line); margin: 0; }
.lead { font-size: 17px; max-width: 58ch; color: var(--muted); }
.section--dark .lead, .section--accent .lead { color: rgba(255,255,255,.88); }

/* ---------- top utility bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 20px; background: var(--ink); color: #fff; font-size: 12.5px;
}
.topbar a { color: #fff; }
.langsw { display: flex; gap: 2px; }
.langsw button {
  padding: 3px 10px; border: 0; background: #2b2b2b; color: #fff;
  font-size: 12px; cursor: pointer; font-family: var(--font-head);
}
.langsw button:hover { background: #4a4a4a; }
.langsw button[aria-pressed="true"] { background: var(--accent); font-weight: 600; }
.langnote {
  padding: 10px 20px; background: var(--accent-tint);
  border-bottom: 2px solid var(--line); font-size: 13.5px; display: none;
}
.langnote.show { display: block; }

/* ---------- main nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; background: #fff; border-bottom: 2px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { height: 30px; width: auto; }
.nav__brand b { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.nav__menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav__menu a {
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  padding: 7px 10px;
}
.nav__menu a:hover { color: var(--accent); }
.nav__menu a[aria-current="page"] { color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--accent); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; border: 2px solid var(--line); background: #fff; padding: 7px 10px; cursor: pointer; font-family: var(--font-head); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border: 2px solid var(--ink); cursor: pointer;
  background: #fff; color: var(--ink); transition: background .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-link {
  display: inline-block; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink);
  border-bottom: 2px solid var(--accent); line-height: 1.3;
}
.btn-link:hover { color: var(--accent); }

/* ---------- pills (toggle group) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 9px 15px; border: 2px solid var(--ink); font-family: var(--font-head);
  font-weight: 600; font-size: 14px; cursor: pointer; background: #fff; color: var(--ink);
  white-space: nowrap;
}
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pill:hover { background: var(--panel); }
.pill[aria-pressed="true"]:hover { background: #000; }

/* ---------- hero ---------- */
.hero { padding: 46px 0 40px; border-bottom: 2px solid var(--line); }
.hero h1 { font-size: clamp(30px, 6vw, 56px); font-weight: 700; letter-spacing: -0.03em; }
.hero .lead { margin-top: 18px; font-size: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ticker {
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap;
}
.ticker__track { display: inline-flex; gap: 0; padding: 11px 0; animation: ticker 26s linear infinite; }
.ticker__track span { padding: 0 26px; font-family: var(--font-head); font-weight: 500; font-size: 14px; }
.ticker__track span::after { content: "◆"; color: var(--accent); margin-left: 26px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- service grid ---------- */
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.svc__cell { border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 26px 22px; display: flex; flex-direction: column; gap: 8px; }
.svc__no { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.svc__cell h3 { font-size: 20px; }
.svc__cell p { margin: 0; color: var(--muted); font-size: 15px; }
.svc__cell .btn-link { margin-top: auto; align-self: flex-start; }

/* ---------- feature list ---------- */
.feat { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.feat__item { border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 20px 18px; }
.feat__item b { font-family: var(--font-head); display: block; margin-bottom: 4px; font-size: 15.5px; }
.feat__item span { color: var(--muted); font-size: 14.5px; }
.section--dark .feat__item span { color: rgba(255,255,255,.72); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 2px solid #fff; border-left: 2px solid #fff; }
.stat { border-right: 2px solid #fff; border-bottom: 2px solid #fff; padding: 24px 20px; }
.stat b { font-family: var(--font-head); font-weight: 700; font-size: 38px; display: block; letter-spacing: -0.02em; line-height: 1; }
.stat span { font-size: 14px; color: rgba(255,255,255,.8); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.step { border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 22px 18px; }
.step b { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--accent); display: block; line-height: 1; margin-bottom: 10px; }
.step h4 { font-size: 16.5px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; border: 2px solid var(--line); font-size: 15px; }
.table th, .table td { border: 2px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.table thead th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; }
.table tbody tr:nth-child(even) { background: var(--panel); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.card { border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.card .card__kicker { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card__meta { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--ink); }

/* ---------- image placeholder (grayscale per DS) ---------- */
.grayscale { filter: grayscale(1) contrast(1.02); }
.imgslot {
  background:
    repeating-linear-gradient(135deg, #ededed 0 14px, #e4e4e4 14px 28px);
  border: 2px solid var(--line); min-height: 240px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #8a8681; font-size: 13.5px; padding: 20px; font-family: var(--font-head);
}

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--line); }
.calc__form { padding: 24px; border-right: 2px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.calc__out { padding: 24px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.calc__price { font-family: var(--font-head); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; line-height: 1.05; }
.calc__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; border-top: 2px solid #333; padding-top: 10px; }
.calc__row span:first-child { color: rgba(255,255,255,.62); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.input {
  padding: 12px 13px; border: 2px solid var(--line); background: #fff; color: var(--ink);
  width: 100%;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; }

/* ---------- quote form ---------- */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note { font-size: 13px; color: var(--muted); }
.thanks { border: 2px solid var(--line); padding: 30px 26px; background: var(--panel); }
.thanks h3 { font-size: 24px; margin-bottom: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 44px 0 28px; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer__grid h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.footer__brand b { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.footer__brand p { color: rgba(255,255,255,.7); font-size: 14px; max-width: 34ch; margin: 10px 0 0; }
.footer__col a, .footer__col div { display: block; font-size: 14.5px; margin-bottom: 8px; color: rgba(255,255,255,.82); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 2px solid #333; margin-top: 32px; padding-top: 18px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- utilities ---------- */
.stack > * + * { margin-top: 14px; }
.flush { padding-left: 0; padding-right: 0; }
.center { text-align: center; }
.mt0{margin-top:0}.mt8{margin-top:8px}.mt16{margin-top:16px}.mt24{margin-top:24px}
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 12px; gap: 0; }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: 11px 6px; border-bottom: 1px solid #eee; }
  .nav__toggle { display: inline-flex; }
  .nav { position: sticky; }
  .calc { grid-template-columns: 1fr; }
  .calc__form { border-right: 0; border-bottom: 2px solid var(--line); }
  .two-col { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}
