/* ==========================================================================
   DCTHA — Premium European Auto Parts, Thailand
   Single stylesheet. No build step.
   ========================================================================== */

/* --- design tokens -------------------------------------------------------- */
:root {
  --ink:        #08090B;
  --ink-2:      #0D0F13;
  --surface:    #14171C;
  --surface-2:  #1B1F26;
  --line:       rgba(255, 255, 255, .09);
  --line-2:     rgba(255, 255, 255, .18);

  --fg:         #EDEBE6;
  --fg-dim:     #969CA5;
  --fg-faint:   #646A73;

  --gold:       #C9A961;
  --gold-soft:  #E6D6A8;
  --gold-dim:   rgba(201, 169, 97, .14);
  --red:        #E0352B;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --shell: 1280px;
  --gut: clamp(20px, 5vw, 64px);

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: "Anuphan", "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Noto Sans Thai", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
}

p { margin: 0; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- bilingual switching --------------------------------------------------
   Both languages ship in the HTML so each is indexable and the page still
   reads correctly with JavaScript disabled. We only ever *hide* — never force
   a display value — so elements keep their natural block/inline behaviour.   */
html[data-lang="th"] .en { display: none !important; }
html[data-lang="en"] .th { display: none !important; }

/* --- layout helpers ------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--ink-2); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --- typography ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
}

.h-display {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.h-section {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  letter-spacing: -.025em;
}

.lede {
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 58ch;
}

.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .h-section { margin-top: 14px; }
.sec-head .lede { margin-top: 18px; }

.gold { color: var(--gold); }
.pn { font-family: var(--mono); font-size: .82em; letter-spacing: .02em; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: #140F02; }
.btn--gold:hover { background: var(--gold-soft); }

.btn--ghost { border-color: var(--line-2); color: var(--fg); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.btn--line { background: #06C755; color: #04260F; }
.btn--line:hover { background: #22DE72; }

.btn svg { width: 17px; height: 17px; flex: none; }

/* --- header --------------------------------------------------------------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease),
              backdrop-filter .35s var(--ease);
}

.hdr.is-stuck {
  background: rgba(8, 9, 11, .88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.hdr__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

/* logo */
.logo { display: flex; align-items: center; gap: 12px; flex: none; }

.logo__mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(201, 169, 97, .16), transparent 70%);
}

.logo__txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-size: 15px; font-weight: 700; letter-spacing: .18em; }
.logo__sub {
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* nav */
.nav { display: flex; gap: 4px; margin-left: auto; }

.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 450;
  color: var(--fg-dim);
  border-radius: var(--r-sm);
  transition: color .2s var(--ease);
}

.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--gold); }

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
}

.hdr__side { display: flex; align-items: center; gap: 12px; flex: none; }

/* language toggle */
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.lang button {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--fg-faint);
  transition: background .2s, color .2s;
}

.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.lang button:not([aria-pressed="true"]):hover { color: var(--fg); background: rgba(255, 255, 255, .05); }

.hdr__cta { padding: 10px 20px; font-size: 13px; }

/* burger */
.burger { display: none; width: 42px; height: 42px; place-items: center; }
.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--fg);
  position: relative;
  transition: background .2s;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  transform: scale(1.04);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, .92) 0%, rgba(8, 9, 11, .44) 38%, rgba(8, 9, 11, .97) 92%),
    radial-gradient(120% 90% at 18% 85%, rgba(8, 9, 11, .9), transparent 62%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__body { max-width: 52rem; }
.hero .h-display { margin-top: 20px; }
.hero .lede { margin-top: 24px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(48px, 7vw, 76px);
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stats > div { background: var(--ink); padding: 22px 20px; }
.stats dt {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--gold);
  line-height: 1.1;
}
.stats dd {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* --- brand marquee -------------------------------------------------------- */
.brands {
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding-block: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.brands__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: slide 38s linear infinite;
}

.brands:hover .brands__track { animation-play-state: paused; }

.brands__track span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--fg-faint);
  white-space: nowrap;
  transition: color .3s;
}

.brands__track span:hover { color: var(--gold); }

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- category grid -------------------------------------------------------- */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.cat {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  min-height: 330px;
  isolation: isolate;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.cat:hover { border-color: rgba(201, 169, 97, .5); transform: translateY(-4px); }

.cat__img { position: absolute; inset: 0; z-index: -2; }
.cat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .46;
  transition: transform .7s var(--ease), opacity .4s var(--ease);
}
.cat:hover .cat__img img { transform: scale(1.07); opacity: .58; }

.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 9, 11, .3) 0%, rgba(8, 9, 11, .82) 58%, rgba(8, 9, 11, .96) 100%);
}

.cat__body {
  position: relative;
  height: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

.cat__tag {
  position: absolute;
  top: 22px;
  left: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--gold);
}

.cat h3 { font-size: 1.3rem; }
.cat p { margin-top: 10px; font-size: 14px; color: var(--fg-dim); line-height: 1.6; }

.cat__more {
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cat__more::after {
  content: "→";
  transition: transform .3s var(--ease);
}

.cat:hover .cat__more::after { transform: translateX(5px); }

/* --- service cards -------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 75%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.service:hover { border-color: rgba(201, 169, 97, .45); transform: translateY(-4px); }
.service:hover::before { opacity: 1; }

.service__ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 20px;
}

.service__ico svg { width: 23px; height: 23px; }

.service h3 { font-size: 1.14rem; }
.service p { margin-top: 11px; font-size: 14.5px; color: var(--fg-dim); line-height: 1.68; }

.service__tag {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(201, 169, 97, .36);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold);
}

/* --- brand wall ----------------------------------------------------------
   Stockist wall. Deliberately uniform typographic treatment rather than a
   patchwork of borrowed logo files: it reads as premium, stays consistent on
   a dark page, and avoids redistributing artwork we have no licence for.   */
.brandwall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.brandtile {
  --bc: var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 28px 30px;
  background: var(--ink-2);
  transition: background .35s var(--ease);
}

.brandtile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--bc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.brandtile:hover { background: var(--surface-2); }
.brandtile:hover::before { transform: scaleX(1); }

.brandtile__name {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--fg);
}

.brandtile__origin {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bc);
}

.brandtile__desc {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--fg-dim);
  margin-top: 2px;
}

.brandtile__spec {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--fg-faint);
  border-top: 1px solid var(--line);
}

/* --- emergency rescue band ------------------------------------------------ */
.rescue {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #1A0A09 0%, var(--ink-2) 58%);
  border-block: 1px solid rgba(224, 53, 43, .3);
}

.rescue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 150% at 12% 50%, rgba(224, 53, 43, .18), transparent 65%);
}

.rescue__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  flex-wrap: wrap;
}

.rescue__ico {
  flex: none;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(224, 53, 43, .14);
  border: 1px solid rgba(224, 53, 43, .45);
  color: var(--red);
}

.rescue__ico svg { width: 29px; height: 29px; }

.rescue__body { flex: 1 1 320px; }

.rescue__body h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.02em;
}

.rescue__body p {
  margin-top: 10px;
  color: var(--fg-dim);
  font-size: 15px;
  max-width: 62ch;
  line-height: 1.68;
}

.rescue__cta { flex: none; display: flex; flex-direction: column; gap: 10px; }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #F04A40; }

.rescue__note {
  font-size: 12px;
  color: var(--fg-faint);
  text-align: center;
}

/* --- coverage / delivery strip -------------------------------------------- */
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.zones span {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--fg-dim);
  transition: border-color .25s, color .25s;
}

.zones span:hover { border-color: rgba(201, 169, 97, .45); color: var(--fg); }

/* --- emergency hero (battery landing page) -------------------------------- */
.ehero {
  position: relative;
  padding-top: 142px;
  padding-bottom: clamp(44px, 6vw, 72px);
  overflow: hidden;
  background: linear-gradient(145deg, #1C0A08 0%, var(--ink) 55%);
  border-bottom: 1px solid rgba(224, 53, 43, .26);
}

.ehero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 120% at 15% 25%, rgba(224, 53, 43, .22), transparent 62%);
}

.ehero__inner { position: relative; }
.ehero .h-display { font-size: clamp(2.1rem, 5.4vw, 3.9rem); margin-top: 18px; }
.ehero .lede { margin-top: 20px; }

.ehero__call {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 18px 30px 18px 22px;
  border-radius: var(--r-md);
  background: var(--red);
  color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 12px 38px rgba(224, 53, 43, .3);
}

.ehero__call:hover { transform: translateY(-3px); box-shadow: 0 16px 46px rgba(224, 53, 43, .42); }

.ehero__call svg { width: 30px; height: 30px; flex: none; }
.ehero__call b { display: block; font-size: clamp(1.3rem, 3.4vw, 1.75rem); font-weight: 700; letter-spacing: .01em; line-height: 1.15; }
.ehero__call small { display: block; font-size: 12px; opacity: .88; letter-spacing: .06em; margin-top: 2px; }

.ehero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
}

.ehero__quick li {
  list-style: none;
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--fg-dim);
}

.ehero__quick li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--red);
  border-bottom: 1.5px solid var(--red);
  transform: rotate(-45deg);
}

/* nav highlight for the emergency page */
.nav .nav__sos { color: #F07A72; }
.nav .nav__sos:hover { color: #FF9E97; }
.nav .nav__sos[aria-current="page"] { color: var(--red); }
.nav .nav__sos[aria-current="page"]::after { background: var(--red); }

/* --- symptom checklist ---------------------------------------------------- */
.symptoms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.symptom {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(224, 53, 43, .55);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--fg-dim);
}

.symptom b { color: var(--fg); font-weight: 600; display: block; margin-bottom: 3px; }

.symptom__n {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red);
  padding-top: 3px;
}

/* --- FAQ (native details/summary, no JS) ---------------------------------- */
.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1rem, 1.7vw, 1.08rem);
  font-weight: 550;
  color: var(--fg);
  transition: color .2s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-right: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}

.faq details[open] summary::after { transform: rotate(-135deg); }

.faq__a {
  padding: 0 2px 24px;
  font-size: 14.8px;
  line-height: 1.75;
  color: var(--fg-dim);
  max-width: 76ch;
}

.faq__a strong { color: var(--fg); font-weight: 600; }

/* --- split feature band --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split--flip .split__media { order: 2; }

.split__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__media--tall { aspect-ratio: 3 / 4; }

.split__body .h-section { margin-top: 14px; }
.split__body .lede { margin-top: 18px; }

.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 13px; }

.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.6;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 13px;
  height: 7px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

.ticks strong { color: var(--fg); font-weight: 600; }

.split__body .btn { margin-top: 32px; }

/* --- product grid --------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.filters button {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--fg-dim);
  transition: all .25s var(--ease);
}

.filters button:hover { color: var(--fg); border-color: var(--line-2); }

.filters button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.card:hover { border-color: rgba(201, 169, 97, .45); transform: translateY(-3px); }

.card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.card:hover .card__img img { transform: scale(1.06); }

/* Placeholder for lines we stock but have not photographed yet. Honest and
   deliberate-looking beats borrowing an unrelated warehouse shot. */
.card__img--soon {
  display: grid;
  place-items: center;
  gap: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 12px, transparent 12px 24px),
    var(--surface-2);
}

.card__img--soon span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: center;
  padding-inline: 16px;
}

.card__img--soon b {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  opacity: .55;
  letter-spacing: .04em;
}

/* Fitment / advisory notice above the catalogue */
.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  margin-bottom: 32px;
  border: 1px solid rgba(201, 169, 97, .32);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-dim);
}

.notice strong { color: var(--fg); font-weight: 600; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 3px; }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--fg-dim);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(8, 9, 11, .82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-2);
  color: var(--fg);
}

.badge--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.badge--oem  { background: rgba(224, 53, 43, .92); color: #fff; border-color: transparent; }

.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }

.card__brand {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.card h3 { font-size: 1.02rem; line-height: 1.4; font-weight: 550; }
.card p { font-size: 13.5px; color: var(--fg-dim); line-height: 1.6; }

.card__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__pn { font-family: var(--mono); font-size: 11.5px; color: var(--fg-faint); }

.card__ask {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold);
  white-space: nowrap;
}

/* --- numbered value props ------------------------------------------------- */
.vals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.val { background: var(--ink-2); padding: 32px 28px; }

.val__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
}

.val h3 { margin-top: 16px; font-size: 1.1rem; }
.val p { margin-top: 10px; font-size: 14px; color: var(--fg-dim); line-height: 1.65; }

/* --- contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.ccards { display: grid; gap: 14px; }

.ccard {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .3s var(--ease);
}

a.ccard:hover { border-color: rgba(201, 169, 97, .5); }

.ccard__ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  color: var(--gold);
}

.ccard__ico svg { width: 19px; height: 19px; }

.ccard__k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.ccard__v { margin-top: 4px; font-size: 1.02rem; font-weight: 500; line-height: 1.45; }
.ccard__note { margin-top: 3px; font-size: 13px; color: var(--fg-dim); }

.map {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 420px;
  background: var(--surface);
}

.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* hours table */
.hours { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 400; }
.hours th { color: var(--fg-dim); font-weight: 400; }
.hours td { text-align: right; font-family: var(--mono); font-size: 13px; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 140% at 50% 0%, rgba(201, 169, 97, .11), transparent 70%);
}

.cta-band__inner { position: relative; text-align: center; }
.cta-band .lede { margin: 18px auto 0; }
.cta-band .hero__actions { justify-content: center; }

/* --- footer --------------------------------------------------------------- */
.ftr { background: var(--ink); padding-block: clamp(48px, 6vw, 72px) 32px; }

.ftr__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.ftr__blurb { margin-top: 20px; font-size: 14px; color: var(--fg-dim); max-width: 34ch; line-height: 1.7; }

.ftr h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 18px;
}

.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ftr li a, .ftr li span { font-size: 14px; color: var(--fg-dim); transition: color .2s; }
.ftr li a:hover { color: var(--gold); }

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 12.5px;
  color: var(--fg-faint);
}

.ftr__disclaimer {
  margin-top: 18px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--fg-faint);
  max-width: 92ch;
}

/* --- floating LINE button ------------------------------------------------- */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 100px;
  background: #06C755;
  color: #04260F;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 34px rgba(6, 199, 85, .32);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.fab:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(6, 199, 85, .44); }
.fab svg { width: 20px; height: 20px; }

/* --- page header (sub-pages) ---------------------------------------------- */
.phead {
  padding-top: 150px;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 10% 0%, rgba(201, 169, 97, .08), transparent 60%),
    var(--ink-2);
}

.phead .h-display { font-size: clamp(2rem, 5vw, 3.4rem); margin-top: 16px; }
.phead .lede { margin-top: 18px; }

/* --- scroll reveal -------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.rv.is-in { opacity: 1; transform: none; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 1040px) {
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    /* Anchored at the very top (not below the bar) so translateY(-100%)
       clears the viewport completely — offsetting the top would leave the
       panel's lower links peeking out under the header. */
    inset: 0 0 auto 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 88px var(--gut) 26px;
    background: rgba(8, 9, 11, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    transition: transform .4s var(--ease);
    visibility: hidden;
    z-index: 1;
  }

  .nav.is-open { visibility: visible; }

  /* The open panel is fixed-positioned and would otherwise paint over the
     static header bar, swallowing taps on the burger and the language
     toggle — i.e. no way to close the menu. Lift the bar above it. */
  .hdr__bar > .logo,
  .hdr__side { position: relative; z-index: 2; }

  .nav.is-open { transform: translateY(0); }

  .nav a { padding: 15px 0; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }

  .burger { display: grid; }
  .hdr__cta { display: none; }
  .hdr__bar { gap: 14px; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__media, .split__media--tall { aspect-ratio: 16 / 10; }

  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero { min-height: auto; padding-top: 120px; }

  /* Full-width stacked buttons here, so the default nowrap only serves to
     push long labels (e.g. "โทรด่วน 080-076-8858") past the viewport on
     very narrow screens such as a folding phone's cover display. */
  .hero__actions .btn,
  .rescue__cta .btn { flex: 1 1 100%; white-space: normal; text-align: center; }

  .rescue__cta { width: 100%; }
  .brands__track { gap: 40px; }
  .ftr__top { grid-template-columns: 1fr; }
  .fab { right: 14px; bottom: 14px; padding: 12px 17px; font-size: 13px; }
  .logo__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* --- print ---------------------------------------------------------------- */
@media print {
  .hdr, .fab, .brands, .hero__bg { display: none !important; }
  body { background: #fff; color: #000; }
}
