@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&display=swap');

/* ============================================================
   brand.css — the pages for brands Perfection supplies to order
   (Waido · MANHART · Trust/GReddy).

   One template, three accents. The shared ground is a warm near-black
   so the accent — Waido orange, MANHART gold, GReddy red — is the only
   thing that changes between them. Set the flavour with a class on
   <body>: b-waido | b-manhart | b-trust.

   Loads on top of core.css and defines the whole token contract.
   ============================================================ */

:root {
  --ink:        #0b0b0c;
  --ink-2:      #101012;
  --surface:    #16161a;
  --surface-2:  #1d1d22;
  --line:       rgba(255, 255, 255, .08);
  --line-2:     rgba(255, 255, 255, .16);

  --accent:      #ff6a1f;
  --accent-hi:   #ff8b4d;
  --accent-deep: #7a2c05;
  --accent-rgb:  255, 106, 31;

  --text:   #eceded;
  --text-2: #9b9ba1;
  --muted:  #85858c;

  --font-body:    'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  --font-display: 'Archivo', 'IBM Plex Sans Thai', sans-serif;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 3px;
}

body.b-manhart {
  --accent: #c9a24a; --accent-hi: #e0bd6e; --accent-deep: #6b5220; --accent-rgb: 201, 162, 74;
}
body.b-trust {
  --accent: #d61f26; --accent-hi: #f04a50; --accent-deep: #6d0f13; --accent-rgb: 214, 31, 38;
}

/* ── type ──────────────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.display em { font-style: normal; color: var(--accent); }
.display .th {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: clamp(15px, 1.5vw, 20px); line-height: 1.5;
  letter-spacing: 0; text-transform: none; color: var(--text-2); margin-top: 14px;
}

.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ''; width: 34px; height: 2px; background: var(--accent); flex: none; }
.kicker.center { justify-content: center; }

.lede { color: var(--text-2); max-width: 62ch; margin-top: 18px; font-size: 16.5px; }

.sec-head { margin-bottom: clamp(34px, 4vw, 54px); }
.sec-head.center { text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head .display { margin-top: 16px; }

/* ── nav ───────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 70;
  background: rgba(11, 11, 12, .72); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(11, 11, 12, .93); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }

.nav-back {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--text-2); transition: color .2s, gap .2s;
}
.nav-back:hover { color: #fff; gap: 13px; }
.nav-back img { height: 26px; width: auto; opacity: .85; }
.nav-back svg { width: 15px; height: 15px; flex: none; }

.nav-here {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
}
.nav-here small {
  font-family: var(--font-body); font-weight: 400; letter-spacing: 0;
  text-transform: none; font-size: 12.5px; color: var(--muted);
}

/* ── hero ──────────────────────────────────────────────────── */

.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 84px); overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(72% 90% at 82% 0%, rgba(var(--accent-rgb), .16), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
/* Trust Kikaku sent parts photography but no hero shot and no logo, so its
   hero runs full width and its name is set in the display face. */
.hero-grid.solo { grid-template-columns: 1fr; }
.hero-grid.solo .hero-sub, .hero-grid.solo .lede { max-width: 66ch; }

.brand-logo { height: clamp(56px, 7vw, 84px); width: auto; margin-bottom: 26px; }
.brand-logo.ph-slot { width: min(300px, 72%); height: auto; margin-bottom: 26px; }

.origin {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 100px;
  padding: 7px 16px 7px 12px; font-size: 13px; color: var(--text-2); margin-bottom: 22px;
}
.origin b { color: var(--text); font-weight: 600; }
.origin .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-sub { color: var(--text-2); max-width: 54ch; margin-top: 22px; font-size: 16.5px; }

.badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 8px 14px; font-size: 12.5px; color: var(--text-2);
  background: rgba(255, 255, 255, .025);
}
.badge b { color: var(--accent); font-size: 10px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-shot img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }

/* ── logo fallback ─────────────────────────────────────────────
   Until a brand sends its logo file, the slot shows the brand name in
   the page's display face — a deliberate wordmark, not a hole.        */

.brand-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 26px;
}

/* ── panels: one per model / programme ─────────────────────── */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tab {
  font-family: var(--font-display); font-weight: 700;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 20px; color: var(--muted);
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.active { color: #fff; background: var(--accent); border-color: var(--accent); }

.panels { display: grid; gap: clamp(20px, 2.4vw, 30px); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  overflow: hidden;
}
.panel[hidden] { display: none; }
.panel-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.panel-media.one { grid-template-columns: 1fr; }
/* three-up, for a parts wall rather than a pair of beauty shots */
.panel-media.three { grid-template-columns: repeat(3, 1fr); }
/* the frame owns the shape, so a real photo and an empty slot occupy
   exactly the same space — no reflow when the files land */
.panel-media figure { position: relative; background: var(--ink-2); aspect-ratio: 16 / 10; }
.panel-media.one figure { aspect-ratio: 21 / 9; }
.panel-media img {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border: 0; border-radius: 0;
}
.panel-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent);
}

.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px) 0;
}
.panel-head h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.01em; text-transform: uppercase; line-height: 1.1;
}
.panel-head .fit { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.flag {
  flex: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: var(--radius);
  background: var(--accent); color: #fff;
}
.flag.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); }

.items { padding: clamp(16px, 2vw, 24px) clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px); display: grid; gap: 1px; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.item:first-child { border-top: 0; }
.item-name { font-weight: 600; font-size: 15.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.item p { color: var(--muted); font-size: 13.5px; margin-top: 5px; max-width: 62ch; }
.chip {
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px;
  border: 1px solid var(--line-2); color: var(--text-2);
}
.chip.full { background: rgba(var(--accent-rgb), .16); border-color: rgba(var(--accent-rgb), .45); color: var(--accent-hi); }
.chip.hp { background: rgba(255, 255, 255, .05); color: var(--text); }

.ask {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); color: var(--text);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.ask svg { width: 15px; height: 15px; }
.ask:hover { background: #06c755; border-color: #06c755; color: #fff; transform: translateY(-2px); }

/* ── how ordering works ────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
/* a class, not an inline style, so the breakpoints below can still win */
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 26px 22px; position: relative;
}
.step::before {
  counter-increment: s; content: '0' counter(s);
  font-family: var(--font-display); font-weight: 900; font-size: 30px;
  color: rgba(var(--accent-rgb), .3); display: block; margin-bottom: 12px; line-height: 1;
}
.step h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* ── terms ─────────────────────────────────────────────────── */

.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.term { background: var(--ink-2); padding: 26px clamp(20px, 2.4vw, 30px); }
.term dt {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.term dd { margin-top: 10px; color: var(--text-2); font-size: 14.5px; }
.term dd b { display: block; color: var(--text); font-size: 18px; font-weight: 600; margin-bottom: 4px; }

.note {
  margin-top: 22px; padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: rgba(var(--accent-rgb), .06);
  color: var(--text-2); font-size: 13.5px;
}

/* ── cta ───────────────────────────────────────────────────── */

.cta { background: var(--ink-2); text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(52% 74% at 50% 100%, rgba(var(--accent-rgb), .2), transparent 70%);
}
.cta .wrap { position: relative; z-index: 2; }
.cta p { color: var(--text-2); max-width: 56ch; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── footer ────────────────────────────────────────────────── */

footer { background: #000; border-top: 1px solid var(--line); padding-block: clamp(44px, 5vw, 62px) 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.foot-grid p { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 44ch; }
footer h4 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.foot-links { list-style: none; display: grid; gap: 10px; }
.foot-links a, .foot-contact a, .foot-contact p { font-size: 14px; color: var(--muted); line-height: 1.8; transition: color .2s; }
.foot-links a:hover, .foot-contact a:hover { color: var(--accent-hi); }
.foot-contact a { display: block; }

.by-company {
  margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line);
  padding-block: 24px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.by-company a { display: inline-flex; align-items: center; gap: 14px; transition: opacity .25s; }
.by-company a:hover { opacity: .72; }
.by-company img { height: 38px; width: auto; opacity: .9; }
.by-company span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.by-company small { font-size: 12.5px; color: var(--muted); }

/* ── responsive ────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .steps, .steps.three { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
}
@media (max-width: 620px) {
  .nav-here small { display: none; }
  .panel-media, .panel-media.three { grid-template-columns: 1fr; }
  .item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ask { width: 100%; justify-content: center; }
  .steps, .steps.three, .terms, .foot-grid { grid-template-columns: 1fr; }
  .by-company { flex-direction: column; align-items: flex-start; }
}

/* ── นิ้วโป้งต้องกดโดน ─────────────────────────────────────────
   ลิงก์ตัวหนังสือใน footer และหน้าติดต่อสูงราว 20px ซึ่งเล็กเกินไป
   สำหรับการกดบนมือถือ ขยายพื้นที่กดโดยไม่ขยับหน้าตาบนจอคอม   */
@media (max-width: 700px) {
  .foot-links a, .foot-contact a {
    display: block;
    min-height: 40px;
    padding-block: 9px;
    line-height: 1.5;
  }
}

/* language switch — same button in every nav */
.lang-btn {
  flex: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 0 12px; height: 42px; min-width: 50px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: none; color: var(--text); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.lang-btn:hover { border-color: var(--accent); color: #fff; background: rgba(var(--accent-rgb), .12); }
