/* ===== LHM — Brand styles ===== */
:root {
  --red: #D81F2A;
  --red-dark: #A8141D;
  --ink: #16181D;
  --grey: #5B606B;
  --grey-light: #9AA0AC;
  --line: #ECEDEF;
  --bg: #FFFFFF;
  --bg-soft: #F7F8F9;
  --max: 1400px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", "Noto Sans Thai", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }

p { color: var(--grey); }

a { color: inherit; text-decoration: none; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.lead { font-size: 1.15rem; color: var(--grey); max-width: 620px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(216,31,42,0.22); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(216,31,42,0.3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Navbar ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.04em;
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--grey); transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--red); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 16px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero { padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 24px; }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 640px; }
.stat .num { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.stat .num span { color: var(--red); }
.stat .label { font-size: 0.9rem; color: var(--grey); margin-top: 4px; }

/* ===== Hero banner (ภาพเต็มจอ + ข้อความทับ) ===== */
.hero-banner {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 74px);
  min-height: calc(100dvh - 74px);
  display: flex; align-items: flex-end;
  padding: 0;
  background: linear-gradient(120deg, #16181D 0%, #3a0d12 55%, #A8141D 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(8,9,12,.90) 0%, rgba(8,9,12,.78) 16%, rgba(8,9,12,.45) 38%,
    rgba(8,9,12,.12) 62%, rgba(8,9,12,0) 85%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 28px 32px; }
.hero-banner .eyebrow { color: #fff; opacity: .95; }
.hero-banner h1 { color: #fff; }
.hero-banner .lead { color: rgba(255,255,255,.9); }
.hero-banner .stat .num { color: #fff; }
.hero-banner .stat .num span { color: #fff; }
.hero-banner .stat .label { color: rgba(255,255,255,.8); }
.hero-banner .hero-ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.hero-banner .hero-ghost:hover { border-color: #fff; background: rgba(255,255,255,.14); }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== บทนำ / แนะนำบริษัท ===== */
.intro .section-head { margin-bottom: 32px; }
.intro-text {
  max-width: 760px; margin: 0 auto; text-align: center;
  font-size: 1.18rem; line-height: 2; color: var(--grey);
}
.intro-text strong { color: var(--ink); font-weight: 600; }
.motto {
  max-width: 720px; margin: 40px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 36px 28px; text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff5f5, #fdeaea);
  border: 1px solid #f6d4d6;
}
.motto-line {
  font-family: "Space Grotesk", "Noto Sans Thai", sans-serif;
  font-weight: 600; color: var(--red-dark); letter-spacing: -0.01em;
}
.motto-line.big { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 700; color: var(--red); }

/* ===== จุดขาย: บัตรประชาชนใบเดียว ===== */
.idcard-headline { font-size: clamp(1.6rem, 4.2vw, 2.5rem); }
.idcard-headline .hl { color: var(--red); }
.idcard-steps {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 20px 30px; margin-top: 52px;
}
.idstep {
  flex: 0 1 230px; display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative;
}
.idstep .step-ic {
  width: 104px; height: 104px; color: var(--grey);
  padding: 16px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg-soft); transition: transform .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.idstep:hover .step-ic { transform: translateY(-6px); color: var(--red); border-color: #f6d4d6; }
.idstep .step-no {
  margin-top: -14px; width: 28px; height: 28px; line-height: 28px;
  background: var(--red); color: #fff; border-radius: 50%;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(216,31,42,.3);
}
.idstep h3 { margin-top: 14px; font-size: 1.2rem; }
.idstep p { margin-top: 6px; font-size: .95rem; max-width: 220px; }
.idcard-arrow {
  align-self: center; font-size: 2rem; color: var(--red); opacity: .55;
  font-family: "Space Grotesk", sans-serif; margin-top: 40px;
}
@media (max-width: 720px) {
  .idcard-arrow { margin-top: 0; transform: rotate(90deg); }
  .idstep { flex-basis: 100%; }
}

/* ===== เอกสารที่ใช้สมัครงาน ===== */
.doc-card {
  max-width: 620px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 36px; box-shadow: 0 10px 30px rgba(22,24,29,.05);
}
.doc-list { list-style: none; display: grid; gap: 16px; }
.doc-list li { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; color: var(--ink); }
.doc-list li + li { border-top: 1px solid var(--line); padding-top: 16px; }
.doc-list .ck {
  flex: 0 0 26px; width: 26px; height: 26px; line-height: 26px; text-align: center;
  background: var(--red); color: #fff; border-radius: 50%; font-size: .9rem; font-weight: 700;
}
.doc-list b { color: var(--red); font-weight: 600; }

/* ===== Feature grid ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(22,24,29,0.08); border-color: transparent; }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: #FCE9EA; color: var(--red);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; }

/* product card */
.product {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(22,24,29,0.1); }
.product .thumb { height: 190px; background: linear-gradient(135deg, #F2F3F5, #E6E8EB); display: grid; place-items: center; color: var(--grey-light); position: relative; }
.product .thumb .tag { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; letter-spacing: 0.04em; }
.product .body { padding: 22px 24px; }
.product .news-date { display: inline-block; font-size: 0.78rem; color: var(--red); font-weight: 600; letter-spacing: 0.03em; margin-bottom: 7px; }
.product h3 { font-size: 1.1rem; margin-bottom: 6px; }
.product p { font-size: 0.9rem; }
a.product { display: block; color: inherit; text-decoration: none; }
.product .news-link { display: inline-block; margin-top: 12px; color: var(--red); font-weight: 600; font-size: 0.9rem; }
a.product:hover .news-link { text-decoration: underline; }

/* model card footer (motorcycles) */
.product .moto-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.product .moto-foot .price { font-weight: 600; color: var(--red); font-size: 0.95rem; }
.product .moto-foot .moto-btn { padding: 8px 18px; font-size: 0.85rem; box-shadow: 0 4px 0 var(--red-dark); }
.product .moto-foot .moto-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--red-dark); }
.product .moto-foot .moto-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-dark); }

/* ===== Split / about ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.media-box {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #1B1D22, #2C2F36);
  min-height: 380px; display: grid; place-items: center; color: #fff;
  position: relative;
}
.media-box .badge { position: absolute; bottom: 26px; left: 26px; background: var(--red); padding: 14px 22px; border-radius: 12px; font-family: "Space Grotesk", sans-serif; font-weight: 600; }

.value-list { list-style: none; }
.value-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.value-list li:last-child { border-bottom: none; }
.value-list .dot { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #FCE9EA; color: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.value-list h4 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.value-list p { font-size: 0.92rem; }

/* ===== CTA band ===== */
.cta-band { background: var(--ink); border-radius: 22px; padding: clamp(44px, 6vw, 72px); text-align: center; color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B9BEC8; max-width: 520px; margin: 16px auto 32px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.98rem; background: var(--bg-soft); transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-item .ic { width: 44px; height: 44px; border-radius: 11px; background: #FCE9EA; color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.info-item h4 { font-family: "Inter", sans-serif; font-size: 1rem; margin-bottom: 2px; }
.info-item p { font-size: 0.93rem; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 60px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer p { font-size: 0.92rem; max-width: 280px; margin-top: 14px; }
.footer h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-light); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.93rem; color: var(--grey); transition: color 0.2s; }
.footer ul a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--grey-light); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Page header ===== */
.page-head { padding: clamp(60px, 9vw, 100px) 0 clamp(30px, 5vw, 50px); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 20px; }
.breadcrumb { font-size: 0.85rem; color: var(--grey-light); margin-bottom: 18px; }
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--red); }


.logo img.mark{width:40px;height:40px;object-fit:cover;border-radius:9px;background:none}

/* ===== Branches page ===== */
.province { margin-bottom: 56px; }
.province-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.province-head h2 { font-size: 1.5rem; }
.province-head .count { background: #FCE9EA; color: var(--red); font-size: 0.78rem; font-weight: 600; padding: 5px 13px; border-radius: 100px; }
.branch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.branch:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(22,24,29,0.09); }
.branch .thumb { height: 168px; background: linear-gradient(135deg, #F2F3F5, #E6E8EB); display: grid; place-items: center; color: var(--grey-light); font-size: 0.85rem; position: relative; }
.branch .thumb .hq { position: absolute; top: 13px; left: 13px; background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; }
.branch .body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.branch h3 { font-size: 1.08rem; }
.branch .ph { font-size: 0.92rem; color: var(--grey); display: flex; align-items: center; gap: 8px; }
.branch .ph .pic { color: var(--red); }
.branch .ph a { color: var(--ink); font-weight: 600; }
.branch .ph .empty { color: var(--grey-light); font-style: italic; font-weight: 400; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-bottom: 4px; }
.bbtn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; border-radius: 14px; font-size: 0.86rem; font-weight: 600;
  border: none; cursor: pointer; letter-spacing: .01em;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), filter 0.2s var(--ease);
}
.bbtn:hover { transform: translateY(-3px); filter: brightness(1.04); }
.bbtn:active { transform: translateY(1px); }
/* ปุ่ม 3D ทันสมัย: ไล่เฉดสี + ขอบล่างเข้ม + เงาลอยนุ่ม + ไฮไลต์ขอบบน */
.bbtn.map { background: linear-gradient(180deg,#FFF1F2,#FCE9EA 60%,#F8DCDE); color: var(--red); flex-basis: 100%; box-shadow: 0 4px 0 #F0C8CC, 0 10px 18px rgba(216,31,42,.14), inset 0 1px 0 rgba(255,255,255,.75); }
.bbtn.map:hover { box-shadow: 0 6px 0 #F0C8CC, 0 16px 26px rgba(216,31,42,.18), inset 0 1px 0 rgba(255,255,255,.75); }
.bbtn.map:active { box-shadow: 0 1px 0 #F0C8CC, 0 5px 10px rgba(216,31,42,.14), inset 0 1px 0 rgba(255,255,255,.75); }
.bbtn.line { background: linear-gradient(180deg,#1CC368,#12A150 55%,#0E8B45); color: #fff; box-shadow: 0 4px 0 #0B6B36, 0 10px 18px rgba(14,107,54,.32), inset 0 1px 0 rgba(255,255,255,.3); }
.bbtn.line:hover { box-shadow: 0 6px 0 #0B6B36, 0 16px 26px rgba(14,107,54,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.bbtn.line:active { box-shadow: 0 1px 0 #0B6B36, 0 5px 10px rgba(14,107,54,.3), inset 0 1px 0 rgba(255,255,255,.3); }
.bbtn.mess { background: linear-gradient(180deg,#2E9EFF,#0084FF 55%,#0070DC); color: #fff; box-shadow: 0 4px 0 #005FBA, 0 10px 18px rgba(0,95,186,.3), inset 0 1px 0 rgba(255,255,255,.3); }
.bbtn.mess:hover { box-shadow: 0 6px 0 #005FBA, 0 16px 26px rgba(0,95,186,.38), inset 0 1px 0 rgba(255,255,255,.3); }
.bbtn.mess:active { box-shadow: 0 1px 0 #005FBA, 0 5px 10px rgba(0,95,186,.28), inset 0 1px 0 rgba(255,255,255,.3); }
.bbtn.chat { background: linear-gradient(180deg,#ffffff,var(--bg-soft)); color: var(--ink); box-shadow: 0 4px 0 var(--line), 0 10px 18px rgba(22,24,29,.10), inset 0 1px 0 rgba(255,255,255,.85); }
.bbtn.chat:active { box-shadow: 0 1px 0 var(--line), 0 5px 10px rgba(22,24,29,.08), inset 0 1px 0 rgba(255,255,255,.85); }
/* ปุ่มที่ยังไม่มีข้อมูล (เช่น รอลิงก์แผนที่) โทนเทา กดไม่ได้ */
.bbtn.disabled { background: linear-gradient(180deg,#F2F3F5,#E4E6E9 60%,#D8DADD); color: #9AA0A6; flex-basis: 100%; box-shadow: 0 4px 0 #C7CACE, inset 0 1px 0 rgba(255,255,255,.5); cursor: default; pointer-events: none; }
.bbtn.disabled:hover, .bbtn.disabled:active { transform: none; filter: none; box-shadow: 0 4px 0 #C7CACE, inset 0 1px 0 rgba(255,255,255,.5); }

/* ===== รูปจริง (วางไฟล์ในโฟลเดอร์ images แล้วขึ้นเอง) ===== */
/* img.photo จะคลุมเต็มช่อง ถ้าไม่มีไฟล์ onerror จะลบตัวเองออก เผยช่อง placeholder เดิม */
.thumb, .media-box { position: relative; overflow: hidden; }
.photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.thumb .tag, .thumb .hq, .media-box .badge { z-index: 2; }
.media-box .photo { object-position: center; }

/* ===== Responsive (ทุกอุปกรณ์) ===== */
/* โน้ตบุ๊ก/เดสก์ท็อปจอแคบ — ลดช่องไฟเมนู 7 รายการไม่ให้ล้น */
@media (max-width: 1200px) {
  .nav-links { gap: 22px; }
}
/* แท็บเล็ต / iPad แนวนอน — การ์ด 3 คอลัมน์ → 2 คอลัมน์ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
/* iPad (แนวนอน/แนวตั้ง) และเล็กกว่า — เปลี่ยนเป็นเมนูแฮมเบอร์เกอร์ */
@media (max-width: 1024px) {
  .nav-links { position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--line); box-shadow: 0 24px 44px rgba(0,0,0,0.07); transform: translateY(-135%); transition: transform 0.35s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 15px 28px; font-size: 1rem; }
  .nav-links a.active::after { display: none; }
  .burger { display: flex; }
  .nav-cta .btn { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
/* มือถือจอใหญ่ — การ์ดเหลือ 1 คอลัมน์ */
@media (max-width: 680px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 22px; max-width: 100% !important; }
  .province-head h2 { font-size: 1.3rem; }
}
/* มือถือทั่วไป */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .logo { font-size: 0.92rem; gap: 8px; }
  .logo img.mark { width: 36px; height: 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer p { max-width: 100%; }
  .cta-band { padding: 40px 24px; }
  .hero-content { padding: 0 4px 36px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .doc-card { padding: 24px 20px; }
  .doc-list li { font-size: 1rem; }
  .motto { padding: 28px 20px; }
}

/* ===== หน้าสินค้า: แถบหมวดหมู่ (chips) ===== */
.cat-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 100px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 600; font-size: 0.92rem; color: var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.cat-chip:hover { transform: translateY(-2px); background: #FCE9EA; border-color: var(--red); color: var(--red); }

/* ===== แถบประกาศโปรโมชั่น (announce bar) ===== */
.announce-bar { background: var(--red); color:#fff; font-size:.92rem; font-weight:600; text-align:center; padding:10px 42px 10px 18px; position:relative; line-height:1.45; }
.announce-bar a { color:#fff; text-decoration:underline; text-underline-offset:2px; }
.announce-bar .ab-close { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:none; color:#fff; font-size:1.2rem; line-height:1; cursor:pointer; padding:4px 9px; opacity:.85; }
.announce-bar .ab-close:hover { opacity:1; }

/* ===== ปุ่มแชทลอย (floating contact) ===== */
.float-chat { position:fixed; right:18px; bottom:18px; z-index:200; display:flex; flex-direction:column; gap:11px; }
.float-chat a { width:54px; height:54px; border-radius:50%; display:grid; place-items:center; color:#fff; font-size:1.5rem; box-shadow:0 8px 20px rgba(0,0,0,.24), inset 0 2px 3px rgba(255,255,255,.35), inset 0 -4px 7px rgba(0,0,0,.2); transition:transform .2s var(--ease), box-shadow .2s var(--ease); position:relative; }
.float-chat a:hover { transform:translateY(-3px) scale(1.06); box-shadow:0 13px 26px rgba(0,0,0,.3), inset 0 2px 3px rgba(255,255,255,.4), inset 0 -4px 7px rgba(0,0,0,.2); }
.float-chat .fc-line { background:radial-gradient(circle at 32% 27%, #2FD67C, #12A150 58%, #0C8040); }
.float-chat .fc-call { background:radial-gradient(circle at 32% 27%, #F0494F, var(--red) 58%, #B01620); }
.float-chat a::after { content:attr(data-label); position:absolute; right:64px; top:50%; transform:translateY(-50%); background:var(--ink); color:#fff; font-size:.78rem; font-weight:600; padding:5px 10px; border-radius:8px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .2s; }
.float-chat a:hover::after { opacity:.95; }
@media (max-width:480px){ .float-chat{ right:13px; bottom:13px; gap:9px; } .float-chat a{ width:48px; height:48px; font-size:1.3rem; } .float-chat a::after{ display:none; } }

/* ปุ่มลอย Messenger */
.float-chat .fc-mess { background:radial-gradient(circle at 32% 27%, #46A9FF, #0084FF 58%, #0067CC); }
.float-chat a svg { width:27px; height:27px; }

/* ===== หน้ารับสมัครงาน: โปสเตอร์ ===== */
.jobs-poster { max-width: 720px; margin: 0 auto; }
.jobs-poster img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(22,24,29,.10); display: block; }

/* ===== หน้ารับสมัคร: ติดต่อฝ่ายบุคคล ===== */
.hr-contact { max-width: 560px; margin: 48px auto 0; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: 0 10px 30px rgba(22,24,29,.06); }
.hr-contact .hr-lead { color: var(--grey); font-size: .96rem; }
.hr-contact h3 { margin-top: 6px; font-size: 1.3rem; }
.hr-contact h3 span { font-weight: 400; color: var(--grey); font-size: 1rem; }
.hr-contact .hr-tel { display: inline-block; margin-top: 14px; color: var(--red); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; }
.hr-contact .hr-time { color: var(--grey); font-size: .95rem; margin-top: 8px; }

/* ===== Hero: Ken Burns ซูมช้า ๆ (เฉพาะแบนเนอร์หน้าแรก) ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-banner .hero-bg {
    transform-origin: 60% 40%;
    animation: kenburns 24s ease-in-out infinite alternate;
    will-change: transform;
  }
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.13); }
}

/* ===== อินโทรโลโก้ตอนเปิดหน้าแรก ===== */
.intro-splash { position: fixed; inset: 0; z-index: 9999; background: #16181D; display: flex; align-items: center; justify-content: center; transition: opacity .55s var(--ease); }
.intro-splash img { width: 120px; height: 120px; border-radius: 26px; box-shadow: 0 16px 50px rgba(216,31,42,.4); animation: splashpop 1s var(--ease) both; }
.intro-splash.hide { opacity: 0; pointer-events: none; }
@keyframes splashpop { 0% { transform: scale(.55); opacity: 0; } 55% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .intro-splash { display: none; } }

/* ===== การ์ดเอียงตามเมาส์ (3D tilt) ===== */
.product, .card, .branch { transition: transform .2s var(--ease), box-shadow .3s var(--ease); }

/* ===== ลูกเล่นพรีเมียม (ฉีดอัตโนมัติจาก script.js) ===== */

/* แถบความคืบหน้าการเลื่อนหน้า (อยู่บนสุด เหนือ nav) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--red), #ff5a64);
  z-index: 300; pointer-events: none;
  box-shadow: 0 0 10px rgba(216,31,42,.5);
  transition: width .08s linear;
}

/* เมนูหดตอนสกอลล์ลง */
.nav { transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.nav-inner { transition: height .3s var(--ease); }
.nav.scrolled { background: rgba(255,255,255,.92); box-shadow: 0 6px 22px rgba(22,24,29,.08); }
.nav.scrolled .nav-inner { height: 58px; }

/* ระลอกคลื่นตอนกดปุ่ม (ripple) */
.btn, .bbtn, .nav-cta .btn, .float-chat a { position: relative; overflow: hidden; }
.ripple-ink {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,.5); pointer-events: none;
  animation: rippleGo .6s var(--ease) forwards; mix-blend-mode: soft-light;
}
@keyframes rippleGo { to { transform: scale(2.6); opacity: 0; } }

/* คอนเฟตตีตอนส่งฟอร์มสำเร็จ */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 320; overflow: hidden; }
.confetti-bit { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; will-change: transform, opacity; animation: confFall linear forwards; }
@keyframes confFall { to { transform: translateY(105vh) rotate(720deg); opacity: .15; } }

/* รีวิวลูกค้าเลื่อนอัตโนมัติ */
.reviews-strip { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 0; overflow: hidden; }
.reviews-strip .rv-head { text-align: center; margin-bottom: 26px; }
.reviews-strip .rv-head .gp { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 1.25rem; }
.reviews-strip .rv-head .stars { color: #FBBC04; letter-spacing: 2px; font-size: 1.05rem; margin-top: 6px; }
.reviews-strip .rv-head .sub { color: var(--grey); font-size: .92rem; margin-top: 4px; }
.reviews-mask { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reviews-track { display: flex; gap: 18px; width: max-content; animation: rvScroll 46s linear infinite; }
.reviews-strip:hover .reviews-track { animation-play-state: paused; }
.review-card { width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: 0 10px 26px rgba(22,24,29,.06); flex: 0 0 auto; }
.review-card .rc-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.review-card .rc-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1rem; background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.review-card .rc-name { font-weight: 700; font-size: .95rem; }
.review-card .rc-stars { color: #FBBC04; font-size: .82rem; letter-spacing: 1px; }
.review-card .rc-text { color: var(--grey); font-size: .92rem; line-height: 1.65; }
@keyframes rvScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .scroll-progress, .ripple-ink, .confetti-bit { display: none !important; }
  .reviews-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ===== ค้นหาสาขาใกล้ฉัน (branches.html) — เพิ่มเมื่อ 2026-07-17 ===== */
.branch-finder { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 28px; }
.finder-status { margin: 0; font-size: 14px; color: var(--grey); flex-basis: 100%; }
.finder-status.error { color: var(--red); }
.dist-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--red); background: rgba(216,31,42,0.08); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.branch.nearest { border: 2px solid var(--red); box-shadow: 0 12px 30px rgba(216,31,42,0.16); }
.branch.nearest .dist-badge { background: var(--red); color: #fff; }
.branch.nearest .dist-badge::before { content: "🏆 ใกล้ที่สุด · "; }
.dist-badge.unknown { color: var(--grey-light); background: var(--bg-soft); }
