/* ============================================================
   Perfection Automotive — core stylesheet
   Palette: black / red / silver / grey   Type: Sukhumvit Set + Oswald
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  /* surfaces */
  --ink:        #08080a;
  --ink-2:      #0d0d10;
  --surface:    #141418;
  --surface-2:  #1b1b21;
  --line:       rgba(255, 255, 255, .075);
  --line-2:     rgba(255, 255, 255, .14);

  /* brand */
  --red:        #c4121f;
  --red-hi:     #e4252f;
  --red-deep:   #7d0d14;
  --silver:     #dfe2e7;
  --silver-2:   #a2a8b2;
  --muted:      #7b818b;

  /* type */
  --th: 'Sukhumvit Set', 'Anuphan', 'Noto Sans Thai', -apple-system, sans-serif;
  --en: 'Oswald', 'Sukhumvit Set', sans-serif;

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

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--th);
  font-weight: 400;
  background: var(--ink);
  color: var(--silver);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

/* ── shared bits ───────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.alt { background: var(--ink-2); }

.eyebrow {
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red-hi);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--red);
  flex: none;
}
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: #fff; }

.h-display {
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: -.01em;
  line-height: 1.22;
  margin-block: 18px 20px;
}
.h-display em { font-style: normal; color: var(--red-hi); }
.h-display .en { font-family: var(--en); text-transform: uppercase; letter-spacing: .01em; }

.lede { color: var(--silver-2); font-size: clamp(15px, 1.3vw, 17px); max-width: 62ch; }

.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--th);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 30px -12px var(--red); }
.btn-red:hover { background: var(--red-hi); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); color: var(--silver); }
.btn-ghost:hover { border-color: var(--silver-2); color: #fff; transform: translateY(-2px); }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05b34c; transform: translateY(-2px); }

.link-more {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--silver-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .2s;
}
.link-more:hover { color: var(--red-hi); gap: 14px; }

/* ── top bar ───────────────────────────────────────────────── */

.topbar {
  background: #000;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; gap: 22px; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg { width: 13px; height: 13px; color: var(--red-hi); }
.topbar-social { display: flex; align-items: center; gap: 4px; }
.topbar-social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: color .2s;
}
.topbar-social a:hover { color: #fff; }
.topbar-social svg { width: 15px; height: 15px; }
.topbar-social a.topbar-tel {
  white-space: nowrap;
  font-family: var(--en);
  letter-spacing: .06em;
  color: #fff;
  font-size: 14px;
  width: auto; height: auto;
  padding-left: 14px;
  margin-left: 8px;
  border-left: 1px solid var(--line-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.topbar-social a.topbar-tel:hover { color: var(--red-hi); }
.topbar-tel svg { width: 14px; height: 14px; color: var(--red-hi); }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(8, 8, 10, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(8, 8, 10, .96); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.nav-logo img { height: 40px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--silver-2);
  position: relative;
  padding-block: 6px;
  transition: color .2s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right .28s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.nav-menu a:hover::after, .nav-menu a.active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius);
  color: #fff;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

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

.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 92px) clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -30%;
  height: 130%;
  background:
    radial-gradient(46% 52% at 22% 30%, rgba(196, 18, 31, .17), transparent 70%),
    radial-gradient(40% 40% at 82% 12%, rgba(255, 255, 255, .05), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-logo { width: clamp(150px, 17vw, 205px); margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(32px, 4.2vw, 51px);
  line-height: 1.2;
  letter-spacing: -.015em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--red-hi); display: inline-block; }
.hero-sub { color: var(--silver-2); font-size: clamp(15px, 1.35vw, 17.5px); max-width: 54ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(18px, 3vw, 40px);
  justify-content: start;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-stats dt { font-family: var(--en); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; color: #fff; line-height: 1; }
.hero-stats dt small { font-size: .5em; color: var(--red-hi); margin-left: 2px; }
.hero-stats dd { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.4; }

/* hero image stack */
.hero-media { position: relative; }
.hero-media .shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px #000;
}
.hero-media .shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.hero-media .shot::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(8, 8, 10, .55));
}
.hero-badge {
  position: absolute;
  left: -22px; bottom: 34px;
  z-index: 2;
  background: rgba(20, 20, 24, .92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 24px 48px -20px #000;
  max-width: 84%;
}
.hero-badge img { width: 58px; height: 58px; object-fit: cover; border-radius: 2px; flex: none; }
.hero-badge .t { font-family: var(--en); font-size: 13px; letter-spacing: .12em; color: var(--red-hi); text-transform: uppercase; }
.hero-badge .d { font-size: 13.5px; color: var(--silver); line-height: 1.45; }

/* ── marquee of capabilities ───────────────────────────────── */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding-block: 15px;
}
.ticker-track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--silver-2);
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-inline: 17px;
}
.ticker-track span::after { content: ''; width: 5px; height: 5px; background: var(--red); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── business lines ────────────────────────────────────────── */

.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.line-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.line-card:hover { border-color: rgba(196, 18, 31, .55); transform: translateY(-5px); }
.line-card .pic { position: relative; overflow: hidden; }
.line-card .pic img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.line-card:hover .pic img { transform: scale(1.06); }
.line-card .pic::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface) 2%, rgba(20,20,24,.15) 60%, transparent);
}
.line-card .no {
  position: absolute; z-index: 2; left: 20px; top: 16px;
  font-family: var(--en); font-size: 40px; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35);
  line-height: 1;
}
.line-body { padding: 4px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.line-body h3 { font-size: 20px; }
.line-body h3 .en { font-family: var(--en); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; color: var(--red-hi); display: block; margin-bottom: 4px; font-weight: 500; }
.line-body p { font-size: 14.5px; color: var(--silver-2); line-height: 1.75; }
.line-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 6px; }
.line-tags i {
  font-style: normal; font-size: 11.5px; letter-spacing: .04em;
  color: var(--silver-2);
  border: 1px solid var(--line-2); border-radius: 100px;
  padding: 4px 11px;
}

/* ── brand strip ───────────────────────────────────────────── */

.brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.brand {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  padding: 26px 14px;
  text-align: center;
  transition: border-color .3s, transform .3s, background .3s;
}
.brand:hover { border-color: rgba(196,18,31,.5); transform: translateY(-4px); }
.brand b {
  display: block;
  font-family: var(--en);
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
.brand span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; letter-spacing: .04em; }

/* ── services grid ─────────────────────────────────────────── */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc {
  background: var(--ink);
  padding: 34px 30px 36px;
  position: relative;
  transition: background .3s;
}
.svc::before {
  content: '';
  position: absolute; inset: 0 auto 0 0; width: 2px;
  background: var(--red);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s;
}
.svc:hover { background: var(--surface); }
.svc:hover::before { transform: scaleY(1); }
.svc-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--red-hi);
  margin-bottom: 20px;
  transition: border-color .3s, background .3s;
}
.svc:hover .svc-ico { border-color: rgba(196,18,31,.6); background: rgba(196,18,31,.1); }
.svc-ico svg { width: 22px; height: 22px; }
.svc h3 { font-size: 17.5px; margin-bottom: 9px; }
.svc h3 .en { display: block; font-family: var(--en); font-size: 11.5px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; font-weight: 500; margin-bottom: 5px; }
.svc p { font-size: 14px; color: var(--silver-2); line-height: 1.75; }

/* ── why / process ─────────────────────────────────────────── */

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.why-list { display: grid; gap: 8px; }
.why-item {
  display: flex; gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s, transform .3s;
}
.why-item:hover { border-color: rgba(196,18,31,.45); transform: translateX(5px); }
.why-item .n {
  font-family: var(--en); font-size: 13px; letter-spacing: .1em;
  color: var(--red-hi); flex: none; padding-top: 4px; width: 26px;
}
.why-item h4 { font-size: 16px; margin-bottom: 5px; }
.why-item p { font-size: 13.8px; color: var(--silver-2); line-height: 1.7; }

.why-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
.why-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 42% 42%; }
.why-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 46px 24px 22px;
  background: linear-gradient(to top, rgba(8,8,10,.97) 18%, rgba(8,8,10,.62) 58%, transparent);
  font-size: 13.5px; color: var(--silver);
}
.why-media figcaption b { display: block; font-family: var(--en); font-size: 12px; letter-spacing: .18em; color: var(--red-hi); text-transform: uppercase; margin-bottom: 3px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
.step { border-top: 2px solid var(--line-2); padding-top: 20px; position: relative; transition: border-color .3s; }
.step:hover { border-color: var(--red); }
.step .n { font-family: var(--en); font-size: 12px; letter-spacing: .2em; color: var(--red-hi); }
.step h4 { font-size: 16px; margin: 8px 0 6px; }
.step p { font-size: 13.5px; color: var(--silver-2); line-height: 1.7; }

/* ── works gallery ─────────────────────────────────────────── */

.works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 12px;
}
.work {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: var(--surface);
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.work:hover img { transform: scale(1.07); }
.work figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(8,8,10,.95) 20%, transparent);
  font-size: 13.5px; line-height: 1.5; color: #fff;
  transform: translateY(8px); opacity: 0;
  transition: transform .35s, opacity .35s;
}
.work figcaption b { display: block; font-family: var(--en); font-size: 11px; letter-spacing: .16em; color: var(--red-hi); text-transform: uppercase; margin-bottom: 3px; }
.work:hover figcaption { transform: none; opacity: 1; }
.work.tall { grid-row: span 2; }
.work.wide { grid-column: span 2; }

/* ── facility ──────────────────────────────────────────────── */

.facility { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; }
.facility figure { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.facility figure:hover img { transform: scale(1.06); }
.facility figcaption {
  position: absolute; inset: auto 0 0 0; padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(8,8,10,.92), transparent);
  font-family: var(--en); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: #fff;
}
.facility .big { grid-column: span 2; grid-row: span 2; }

/* ── reviews ───────────────────────────────────────────────── */

.rating {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.rating .score { font-family: var(--en); font-size: 46px; font-weight: 600; color: #fff; line-height: 1; }
.stars { color: #f5b301; letter-spacing: 3px; font-size: 15px; }
.rating small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .3s, transform .3s;
}
.review:hover { border-color: var(--line-2); transform: translateY(-4px); }
.review p { font-size: 14.2px; color: var(--silver-2); line-height: 1.8; flex: 1; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .av {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 15px; color: #fff;
}
.review .who b { display: block; font-size: 13.8px; color: #fff; font-weight: 600; }
.review .who span { font-size: 12px; color: var(--muted); }

/* ── contact ───────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); }
.info-item { display: flex; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.info-item:first-of-type { padding-top: 0; }
.info-ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--red-hi);
}
.info-ico svg { width: 18px; height: 18px; }
.info-item h4 { font-family: var(--en); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 5px; }
.info-item p { font-size: 15px; color: var(--silver); line-height: 1.65; }
.info-item a { display: block; font-size: 15px; color: var(--silver); line-height: 1.9; }
.info-item a:hover { color: var(--red-hi); }
.info-item small { color: var(--muted); font-size: 13px; }

.socials { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.socials a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--silver-2);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.socials a:hover { color: #fff; border-color: var(--red); background: rgba(196,18,31,.14); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.map-frame {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  display: flex; flex-direction: column;
  background: var(--surface);
}
/* invert + hue-rotate flips the map to a dark theme while keeping hues (and the red pin) intact */
.map-frame iframe { width: 100%; flex: 1; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.72) brightness(1.04) contrast(.9); min-height: 320px; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.map-foot p { font-size: 13.5px; color: var(--silver-2); }

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

.cta-band {
  position: relative;
  text-align: center;
  background:
    linear-gradient(rgba(8,8,10,.93), rgba(8,8,10,.97)),
    url('../img/shop-front.webp') center 30% / cover;
  border-block: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 44px); margin-bottom: 16px; }
.cta-band p { color: var(--silver-2); max-width: 56ch; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

footer { background: #000; border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(28px, 4vw, 60px); }
.foot-brand img { height: 46px; width: auto; margin-bottom: 20px; }
.foot-brand p { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 42ch; }
footer h4 { font-family: var(--en); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 500; }
.foot-links { list-style: none; display: grid; gap: 11px; }
.foot-links a { font-size: 14px; color: var(--muted); transition: color .2s, padding-left .2s; }
.foot-links a:hover { color: #fff; padding-left: 5px; }
.foot-contact p, .foot-contact a { display: block; font-size: 14px; color: var(--muted); line-height: 1.85; }
.foot-contact a:hover { color: var(--red-hi); }
.foot-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: #4b4f56;
}

/* ── floating LINE ─────────────────────────────────────────── */

.float-line {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  background: #06c755; color: #fff;
  padding: 13px 20px 13px 16px;
  border-radius: 100px;
  font-weight: 600; font-size: 14.5px;
  box-shadow: 0 14px 34px -10px rgba(6, 199, 85, .6);
  transition: transform .25s, box-shadow .25s;
}
.float-line:hover { transform: translateY(-3px) scale(1.02); }
.float-line svg { width: 21px; height: 21px; }

/* ── lightbox ──────────────────────────────────────────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 4, 5, .96);
  display: none;
  place-items: center;
  padding: 5vh 5vw;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--silver-2); }
.lightbox figcaption b { display: block; font-family: var(--en); letter-spacing: .16em; color: var(--red-hi); font-size: 12px; text-transform: uppercase; margin-bottom: 4px; }
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-2);
  color: #fff; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(196,18,31,.7); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 2vw; top: 50%; transform: translateY(-50%); }

/* ── reveal on scroll ──────────────────────────────────────── */

.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  * { transition-duration: .01ms !important; }
}

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

@media (max-width: 1080px) {
  .lines, .services, .reviews { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .works, .facility { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; }
  .hero-badge { left: 12px; }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-media img { aspect-ratio: 16 / 10; }
  .topbar-info { display: none; }
  .topbar .wrap { justify-content: flex-end; }

  .nav-menu {
    position: fixed;
    inset: 114px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8,8,10,.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 22px;
    transform: translateY(-14px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-menu a::after { display: none; }
  .nav-toggle { display: grid; }
  .nav-cta .btn { display: none; }
}

@media (max-width: 700px) {
  .lines, .services, .reviews, .steps { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .works, .facility { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .work.wide { grid-column: span 2; }
  .facility .big { grid-column: span 2; grid-row: span 2; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: auto; }
  .float-line span { display: none; }
  .float-line { padding: 15px; }
  .work figcaption { opacity: 1; transform: none; font-size: 12px; }
}

/* ── FAQ accordion ─────────────────────────────────────────── */

.faq { max-width: 880px; margin-inline: auto; }

/* Thai text — no tracking, Oswald has no Thai glyphs */
.faq-group {
  font-family: var(--th);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--red-hi);
  margin: 34px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.faq-group:first-child { margin-top: 0; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .3s, background .3s;
}
.faq-item[open] { border-color: rgba(196, 18, 31, .45); background: var(--surface-2); }
.faq-item:hover { border-color: var(--line-2); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 22px;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.6;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red-hi); }

/* chevron */
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 22px; top: 26px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--red-hi);
  border-bottom: 2px solid var(--red-hi);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(225deg); }

.faq-a { padding: 0 24px 20px 22px; animation: faqIn .3s ease; }
.faq-a p { font-size: 14.8px; color: var(--silver-2); line-height: 1.85; }
.faq-a p + p, .faq-a ul + p, .faq-a ol + p { margin-top: 12px; }
.faq-a strong { color: var(--silver); font-weight: 600; }
.faq-a ul, .faq-a ol { margin: 12px 0 0; padding-left: 20px; }
.faq-a li { font-size: 14.8px; color: var(--silver-2); line-height: 1.8; margin-bottom: 7px; }
.faq-a ul { list-style: none; padding-left: 0; }
.faq-a ul li { position: relative; padding-left: 20px; }
.faq-a ul li::before {
  content: '';
  position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px;
  background: var(--red);
  transform: rotate(45deg);
}
.faq-a ol li::marker { color: var(--red-hi); font-weight: 600; }

@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .faq-item summary { font-size: 15px; padding: 16px 46px 16px 18px; }
  .faq-item summary::after { right: 18px; top: 23px; }
  .faq-a { padding: 0 18px 18px; }
}
