/* ============================================================
   AT Mobile — site.css  (design system v2.1 "Morning Counter")
   โทนสว่างครีมอบอุ่น — owner ไม่เอา hero ดำ-แดง (2026-07-07)
   ใช้กับ: index.html + used-phones + repair + pawn + installment
   ⚠️ blog/* ยังใช้ style.css เดิม — ห้ามลบ style.css
   ============================================================ */

:root {
  /* palette */
  --night:        #221C17;   /* warm dark — footer เท่านั้น */
  --night-2:      #2B241E;
  --porcelain:    #FAF6EE;   /* base สว่างอุ่น */
  --porcelain-2:  #F3ECDF;   /* section tint */
  --sand:         #EDE3D0;   /* band เน้น */
  --card:         #FFFFFF;
  --ink:          #2A231D;   /* text หลัก */
  --ink-soft:     #6E6357;
  --ink-faint:    #9C8F80;
  --cream:        #F4EFE6;   /* text บน footer มืด */
  --cream-dim:    rgba(244,239,230,.64);
  --cream-faint:  rgba(244,239,230,.38);
  --red:          #D6482F;   /* แดงอุ่น friendly */
  --red-hot:      #E85A3E;
  --red-soft:     rgba(214,72,47,.08);
  --gold:         #D9A43B;
  --green-line:   #06C755;
  --line-l:       rgba(42,35,29,.12);
  --line-d:       rgba(244,239,230,.13);

  /* type */
  --font-body: 'IBM Plex Sans Thai', 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* shape */
  --r-pill: 999px;
  --r-card: 22px;
  --r-sm: 12px;

  --container: 1140px;
  --pad: 24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.28; word-break: keep-all; overflow-wrap: break-word; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

/* grain — เนื้อกระดาษบางๆ */
.grain { position: relative; }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* mono label — DNA ของดีไซน์นี้ */
.mono-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.mono-tag::before { content: "///"; margin-right: .55em; color: var(--red); opacity: .55; }

/* ---------- header (สว่าง) ---------- */
#header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,238,.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-l);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { width: 34px; height: 34px; }
.logo-text { color: var(--ink); font-weight: 600; font-size: 1.06rem; letter-spacing: .01em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); font-size: .89rem; font-weight: 500;
  padding: 7px 12px; border-radius: var(--r-pill);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(42,35,29,.06); }
.nav-links a.nav-active { color: var(--red); background: var(--red-soft); }
.header-phone {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  color: #fff; background: var(--red);
  padding: 9px 18px; border-radius: var(--r-pill);
  box-shadow: 0 8px 22px -10px rgba(214,72,47,.55);
  transition: transform .18s, background .18s;
}
.header-phone:hover { background: var(--red-hot); transform: translateY(-1px); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 8px; }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--porcelain); border-top: 1px solid var(--line-l);
  padding: 10px 24px 22px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--ink-soft); padding: 13px 4px; font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid var(--line-l);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { color: var(--ink); }
.mobile-nav .mobile-phone-link { color: var(--red); font-family: var(--font-mono); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  padding: 14px 28px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 28px -10px rgba(214,72,47,.6); }
.btn-red:hover { background: var(--red-hot); }
/* btn-cream = ปุ่มเข้มหลักบนพื้นสว่าง (คงชื่อ class เดิม) */
.btn-cream { background: var(--ink); color: var(--porcelain); box-shadow: 0 10px 28px -12px rgba(42,35,29,.5); }
.btn-cream:hover { background: #3A312A; }
.btn-line { background: var(--green-line); color: #fff; box-shadow: 0 10px 28px -10px rgba(6,199,85,.5); }
.btn-line:hover { background: #08d75e; }
.btn-ghost-dark { border-color: rgba(42,35,29,.3); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); background: rgba(42,35,29,.04); }
.btn-ghost-light { border-color: rgba(42,35,29,.3); color: var(--ink); }
.btn-ghost-light:hover { border-color: var(--ink); }

/* ---------- hero (สว่างอุ่น) ---------- */
.hero {
  position: relative; color: var(--ink);
  background: linear-gradient(175deg, #FDFAF3 0%, var(--porcelain) 55%, var(--porcelain-2) 100%);
  padding: 84px 0 72px; overflow: hidden;
}
.hero-glow {
  position: absolute; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,72,47,.1), transparent 62%);
  top: -320px; right: -220px;
}
.hero-glow--2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(217,164,59,.12), transparent 60%);
  top: auto; right: auto; bottom: -300px; left: -180px;
}
.hero-rule { display: none; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr);
  gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em;
  color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line-l); border-radius: var(--r-pill);
  padding: 7px 15px; margin-bottom: 26px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-line); box-shadow: 0 0 0 4px rgba(6,199,85,.16); }
.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  font-weight: 700; letter-spacing: -.015em; line-height: 1.14;
  margin-bottom: 18px;
}
.hero-h1-accent { color: var(--red); }
.hero-devices {
  display: flex; flex-wrap: wrap; gap: 0 14px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em;
  color: var(--ink-faint); margin-bottom: 20px;
}
.hero-devices span + span::before { content: "·"; margin-right: 14px; color: var(--red); }
.hero-sub { font-size: 1.05rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 38px; max-width: 560px; }
.hero-ctas .btn { flex: 1 1 0; min-width: 190px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line-l);
  padding-top: 22px; max-width: 520px;
}
.stat { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line-l); }
.stat:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.stat strong { display: block; font-family: var(--font-mono); font-size: 1.22rem; font-weight: 600; color: var(--red); line-height: 1.3; }
.stat span { font-size: .74rem; color: var(--ink-faint); }

/* hero side — store card (ป้ายเวลาแบบ directory) */
.store-card {
  border: 1px solid var(--line-l); border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 24px 50px -30px rgba(42,35,29,.3);
  padding: 28px;
}
.store-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line-l); padding-bottom: 15px; margin-bottom: 16px;
}
.store-card-head strong { font-size: 1.02rem; font-weight: 600; }
.store-card-head .mono-tag::before { content: ""; margin: 0; }
.store-rows { display: flex; flex-direction: column; gap: 12px; font-size: .88rem; }
.store-row { display: flex; justify-content: space-between; gap: 14px; }
.store-row dt { color: var(--ink-faint); flex-shrink: 0; }
.store-row dd { color: var(--ink); text-align: right; font-weight: 500; }
.store-row dd.mono { font-family: var(--font-mono); font-size: .82rem; }
.store-card-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-l);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.store-card-foot svg { color: var(--gold); flex-shrink: 0; }

/* services quick-links card (มุมขวา hero ทุกหน้า) */
.svc-links { display: flex; flex-direction: column; }
.svc-links li { border-bottom: 1px dashed var(--line-l); }
.svc-links li:last-child { border-bottom: 0; }
.svc-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px; font-size: .92rem; font-weight: 500; color: var(--ink);
  transition: color .18s;
}
.svc-num {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  color: var(--ink-faint); letter-spacing: .08em; flex-shrink: 0;
  transition: color .18s;
}
.svc-name { flex: 1; min-width: 0; }
.svc-links a svg { color: var(--ink-faint); flex-shrink: 0; transition: color .18s, transform .18s; }
.svc-links a:hover { color: var(--red); }
.svc-links a:hover .svc-num, .svc-links a:hover svg { color: var(--red); }
.svc-links a:hover svg { transform: translateX(3px); }
.svc-links a.svc-current { color: var(--red); font-weight: 600; }
.svc-links a.svc-current .svc-num { color: var(--red); }

/* ---------- ticker ---------- */
.ticker {
  background: var(--red); color: #fff;
  overflow: hidden; padding: 11px 0;
  border-top: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.08);
}
.ticker-track {
  display: flex; gap: 0; width: max-content;
  animation: tickerRun 34s linear infinite;
}
.ticker span {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .14em;
  white-space: nowrap; padding: 0 26px; position: relative;
}
.ticker span::after { content: "✦"; position: absolute; right: -7px; opacity: .6; }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section--tint { background: var(--porcelain-2); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .mono-tag { display: inline-block; margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px;
}
.section-h2-mark { color: var(--red); }
.section-sub { color: var(--ink-soft); font-size: 1rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- services directory (หน้าแรก) ---------- */
.dir-list { border-top: 1px solid var(--line-l); }
.dir-row {
  display: grid;
  grid-template-columns: 74px minmax(0,1.05fr) minmax(0,1.3fr) 44px;
  gap: 26px; align-items: center;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line-l);
  position: relative;
  transition: background .2s;
}
.dir-row:hover { background: rgba(255,255,255,.85); }
.dir-num {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  color: var(--ink-faint); letter-spacing: .1em;
}
.dir-row:hover .dir-num { color: var(--red); }
.dir-name { font-size: 1.28rem; font-weight: 650; letter-spacing: -.005em; min-width: 0; }
.dir-name small {
  display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .1em; color: var(--ink-faint); margin-top: 3px; text-transform: uppercase;
}
.dir-desc { font-size: .92rem; color: var(--ink-soft); min-width: 0; }
.dir-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-l);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.dir-row:hover .dir-arrow { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
.dir-note {
  margin-top: 22px; font-size: .88rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.dir-note a { color: var(--red); font-weight: 600; border-bottom: 1px solid rgba(214,72,47,.35); }

/* ---------- brand cards ---------- */
.brand-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
/* การ์ด 4 ใบ (buy-phone) — 2×2 ไม่ให้ใบที่ 4 ตกแถวล่างตัวเดียว */
.brand-cards--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.brand-card {
  min-width: 0; background: var(--card);
  border: 1px solid var(--line-l); border-radius: var(--r-card);
  overflow: hidden; position: relative;
  transition: transform .22s, box-shadow .22s;
}
.brand-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -22px rgba(42,35,29,.25); }
.brand-card::after {
  content: attr(data-num);
  position: absolute; top: 14px; left: 16px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .12em;
  color: #fff; background: rgba(42,35,29,.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.brand-visual { position: relative; aspect-ratio: 3 / 1.05; overflow: hidden; background: var(--porcelain-2); }
.brand-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.brand-card:hover .brand-photo { transform: scale(1.045); }
.brand-body { padding: 24px 26px 28px; }
.brand-body h3 { font-size: 1.18rem; margin-bottom: 7px; }
.brand-body > p { font-size: .89rem; color: var(--ink-soft); margin-bottom: 15px; }
.brand-model-list { display: flex; flex-direction: column; gap: 7px; }
.brand-model-list li {
  font-size: .87rem; color: var(--ink); padding-left: 19px; position: relative;
}
.brand-model-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 1.5px; background: var(--red);
}
.brands-note {
  margin-top: 34px; text-align: center; font-size: .92rem; color: var(--ink-soft);
}
.brands-note a { color: var(--red); font-weight: 600; }
.brands-note .tel-num { font-family: var(--font-mono); }

/* ---------- band (แถบเน้น — สว่างอุ่นเข้มขึ้นหนึ่งสเต็ป) ---------- */
.band {
  position: relative; color: var(--ink);
  background: linear-gradient(170deg, var(--sand) 0%, var(--porcelain-2) 100%);
  border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l);
  padding: 74px 0; overflow: hidden;
}
.band-glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,72,47,.12), transparent 62%);
  right: -240px; top: -260px; pointer-events: none;
}
.band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr); gap: 48px; align-items: center; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 14px 0 12px; }
.band p { color: var(--ink-soft); max-width: 34em; }
.band p strong { color: var(--ink); }
.band-features { margin: 22px 0 30px; display: flex; flex-direction: column; gap: 11px; }
.band-features li { display: flex; align-items: center; gap: 11px; font-size: .95rem; }
.band-features svg { color: var(--green-line); flex-shrink: 0; }
.band-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.band-aside {
  background: var(--card);
  border: 1px dashed var(--line-l); border-radius: var(--r-card);
  padding: 26px; font-size: .9rem; color: var(--ink-soft);
}
.band-aside strong { color: var(--ink); }
.band-aside .mono-tag { display: inline-block; margin-bottom: 10px; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.step {
  min-width: 0; background: var(--card);
  border: 1px solid var(--line-l); border-radius: var(--r-card);
  padding: 30px 28px;
  position: relative;
  transition: transform .22s, box-shadow .22s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -22px rgba(42,35,29,.22); }
.step-num {
  font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600;
  color: transparent; -webkit-text-stroke: 1.3px var(--red);
  line-height: 1; margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--ink-soft); }
.process-cta { text-align: center; margin-top: 40px; }

/* ---------- features (why us) ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.feature {
  min-width: 0; padding: 26px 24px;
  border: 1px solid var(--line-l); border-radius: var(--r-card);
  background: var(--card);
  transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(214,72,47,.4); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { font-size: .88rem; color: var(--ink-soft); }

/* ---------- reviews ---------- */
.trust-banner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  background: var(--card);
  border: 1px solid var(--line-l);
  border-radius: var(--r-card); padding: 34px 40px; margin-bottom: 36px;
  box-shadow: 0 20px 44px -28px rgba(42,35,29,.25);
}
.trust-stat { min-width: 120px; }
.trust-num { display: block; font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--red); line-height: 1.25; }
.trust-stat span { font-size: .8rem; color: var(--ink-soft); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.review-card {
  min-width: 0; background: var(--card);
  border: 1px solid var(--line-l); border-radius: var(--r-card);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.review-stars { color: var(--gold); font-size: .86rem; letter-spacing: .18em; }
.review-text { font-size: .92rem; color: var(--ink); flex: 1; }
.review-footer { display: flex; align-items: center; gap: 12px; border-top: 1px dashed var(--line-l); padding-top: 15px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.review-avatar--blue { background: #2E5AA8; }
.review-avatar--green { background: #1F8A4C; }
.review-footer strong { display: block; font-size: .9rem; line-height: 1.4; }
.review-footer small { font-size: .76rem; color: var(--ink-faint); }
.reviews-cta { text-align: center; margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line-l); }
.faq-item { border-bottom: 1px solid var(--line-l); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 21px 6px; font-size: 1.01rem; font-weight: 600;
  transition: color .18s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.25rem; font-weight: 500;
  color: var(--red); flex-shrink: 0; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--red); }
.faq-answer { padding: 0 6px 22px; font-size: .93rem; color: var(--ink-soft); max-width: 62em; }
.faq-answer a { color: var(--red); font-weight: 600; border-bottom: 1px solid rgba(214,72,47,.35); }

/* ---------- blog preview cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.article-card {
  min-width: 0; background: var(--card);
  border: 1px solid var(--line-l); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -22px rgba(42,35,29,.24); }
.article-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--porcelain-2); }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.article-tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: var(--red-soft);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.article-card h3 { font-size: 1.04rem; line-height: 1.45; }
.article-excerpt { font-size: .86rem; color: var(--ink-soft); flex: 1; }
.article-read-more { font-family: var(--font-mono); font-size: .76rem; font-weight: 600; color: var(--red); }
.blog-more { text-align: center; margin-top: 38px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 26px; align-items: stretch; }
.contact-channels { display: flex; flex-direction: column; gap: 14px; }
.contact-btn {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line-l); border-radius: var(--r-card);
  padding: 18px 22px;
  transition: transform .2s, border-color .2s;
}
.contact-btn:hover { transform: translateX(4px); border-color: rgba(214,72,47,.45); }
.contact-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red);
}
.contact-btn--line .contact-icon { background: rgba(6,199,85,.1); color: var(--green-line); }
.contact-btn--google-review .contact-icon { background: rgba(217,164,59,.14); color: var(--gold); }
.contact-btn strong { display: block; font-size: .98rem; line-height: 1.4; }
.contact-btn small { font-size: .8rem; color: var(--ink-soft); font-family: var(--font-mono); }
.contact-info-box {
  border: 1px dashed var(--line-l); border-radius: var(--r-card);
  padding: 18px 22px; font-size: .88rem; color: var(--ink-soft);
}
.contact-info-box p { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.contact-info-box svg { flex-shrink: 0; margin-top: 4px; color: var(--red); }
.map-container { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-l); min-height: 340px; }
.map-container iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- footer (มืดอุ่น — จุดเดียวที่เข้ม) ---------- */
.footer { background: var(--night); color: var(--cream-dim); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--line-d); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo span { color: var(--cream); font-weight: 600; font-size: 1.05rem; }
.footer-brand p { font-size: .88rem; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 500; color: var(--cream-dim);
  border: 1px solid var(--line-d); border-radius: var(--r-pill);
  padding: 7px 14px; transition: color .18s, border-color .18s;
}
.footer-social a:hover { color: var(--cream); border-color: var(--cream-dim); }
.footer h4 {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cream-faint);
  margin-bottom: 18px;
}
.footer-services li { padding: 5px 0; font-size: .89rem; }
.footer-services a { transition: color .18s; }
.footer-services a:hover { color: var(--cream); }
.footer-contact p { padding: 5px 0; font-size: .89rem; }
.footer-contact a:hover { color: var(--cream); }
.footer-bottom { padding-top: 24px; font-size: .78rem; color: var(--cream-faint); font-family: var(--font-mono); }

/* ---------- floating contact buttons (โทร + LINE — เล็ก ลอยขวาล่าง ทุกหน้า) ---------- */
.float-contact {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(42,35,29,.4);
  transition: transform .18s, box-shadow .18s;
}
.float-btn:hover { transform: translateY(-2px) scale(1.06); }
.float-btn--phone { background: var(--red); }
.float-btn--phone:hover { background: var(--red-hot); }
.float-btn--line { background: var(--green-line); }
.float-btn--line:hover { background: #08d75e; }

/* ---------- service page (shared) ---------- */
.page-hero {
  position: relative; color: var(--ink);
  background: linear-gradient(175deg, #FDFAF3 0%, var(--porcelain) 55%, var(--porcelain-2) 100%);
  padding: 66px 0 60px; overflow: hidden;
}
.page-hero .hero-glow { top: -360px; }
.breadcrumb {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--ink-faint); margin-bottom: 26px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .bc-sep { color: var(--red); }
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.85fr); gap: 52px; align-items: center; }
.page-hero h1 { font-size: clamp(1.95rem, 4.4vw, 3.1rem); font-weight: 700; letter-spacing: -.012em; line-height: 1.18; margin-bottom: 16px; }
.page-hero .hero-sub { margin-bottom: 26px; }
.page-hero .hero-ctas { margin-bottom: 0; }

/* info list (เงื่อนไข/สิ่งที่ต้องเตรียม) */
.spec-card {
  background: var(--card); border: 1px solid var(--line-l); border-radius: var(--r-card);
  padding: 30px;
}
.spec-card h3 { font-size: 1.06rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.spec-card h3 svg { color: var(--red); }
.spec-list { display: flex; flex-direction: column; gap: 11px; }
.spec-list li { display: flex; gap: 11px; font-size: .92rem; color: var(--ink); align-items: flex-start; }
.spec-list li svg { flex-shrink: 0; margin-top: 5px; color: var(--red); }
.spec-list li.spec-no svg { color: var(--ink-faint); }
.spec-list li.spec-no { color: var(--ink-soft); }

/* option cards (จำนำ/ขายฝาก/ฝากเครื่อง ฯลฯ) */
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.option-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.option-card {
  min-width: 0; background: var(--card);
  border: 1px solid var(--line-l); border-radius: var(--r-card);
  padding: 30px 28px; position: relative;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s, box-shadow .22s;
}
.option-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -22px rgba(42,35,29,.22); }
.option-card .mono-tag::before { content: ""; margin: 0; }
.option-card h3 { font-size: 1.22rem; }
.option-card > p { font-size: .91rem; color: var(--ink-soft); flex: 1; }
.option-points { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line-l); padding-top: 14px; }
.option-points li { font-size: .86rem; color: var(--ink); padding-left: 19px; position: relative; }
.option-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 1.5px; background: var(--red); }
.option-card--hi { border-color: rgba(214,72,47,.5); box-shadow: 0 16px 40px -22px rgba(214,72,47,.35); }

/* two-col editorial block */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: start; }
.split-body p { margin-bottom: 14px; color: var(--ink); font-size: .96rem; }
.split-body p strong { font-weight: 650; }
.split-body .mini-note {
  font-size: .84rem; color: var(--ink-soft);
  border-left: 2px solid var(--red); padding: 4px 0 4px 16px; margin-top: 20px;
}

/* CTA strip ท้ายหน้า service */
.cta-strip { text-align: center; }
.cta-strip .band-inner { display: block; }
.cta-strip h2 { margin-bottom: 10px; }
.cta-strip p { margin: 0 auto 28px; }
.cta-strip .band-ctas { justify-content: center; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   responsive — 960 / 768 / 480
   ============================================================ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .header-phone { margin-left: auto; }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .store-card { max-width: 460px; }
  .band-inner { grid-template-columns: 1fr; gap: 34px; }
  .brand-cards, .steps, .steps--4, .features, .reviews-grid, .article-grid, .option-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split, .contact-grid, .option-grid--2 { grid-template-columns: 1fr; }
  .dir-row { grid-template-columns: 54px minmax(0,1fr) 44px; }
  .dir-desc { grid-column: 2 / 3; grid-row: 2; margin-top: -12px; padding-bottom: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 54px; }
  .hero-badge { display: none; } /* เปลืองพื้นที่จอมือถือ — ข้อมูลซ้ำกับการ์ดติดต่อ (owner 2026-07-07) */
  .trust-banner { padding: 28px; gap: 18px; }
  .trust-stat { min-width: 42%; }
}
@media (max-width: 480px) {
  :root { --pad: 18px; }
  .header-inner { gap: 12px; }
  .logo-text { font-size: .98rem; }
  .header-phone { padding: 8px 13px; font-size: .76rem; }
  .brand-cards, .steps, .steps--4, .features, .reviews-grid, .article-grid, .option-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 2.1rem; }
  /* แถวรุ่น: จบแถวเดียว ย่อขนาด */
  .hero-devices { margin-bottom: 16px; font-size: .64rem; gap: 0 8px; flex-wrap: nowrap; letter-spacing: .03em; }
  .hero-devices span + span::before { margin-right: 8px; }
  .hero-sub { font-size: .98rem; margin-bottom: 24px; }
  .hero-ctas { margin-bottom: 26px; }
  /* สถิติ = การ์ดเล็ก 2×2 สมมาตร กึ่งกลาง */
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 0; padding-top: 4px; max-width: none; }
  .stat {
    border: 1px solid var(--line-l); border-right: 1px solid var(--line-l);
    background: var(--card); border-radius: 14px;
    padding: 12px 6px; margin: 0; text-align: center;
  }
  .stat strong { font-size: 1.04rem; }
  .dir-name { font-size: 1.08rem; }
  .dir-row { gap: 14px; padding: 20px 2px; }
  .dir-arrow { width: 36px; height: 36px; }
  .btn { padding: 13px 22px; font-size: .9rem; }
  .hero-ctas { flex-direction: column; max-width: none; }
  .hero-ctas .btn { width: 100%; min-width: 0; }
  .trust-num { font-size: 1.5rem; }
  .float-btn { width: 44px; height: 44px; }
}
