/* ============================================================
   MyTow — design system v2 "Malam Lebuhraya"
   Palette: asphalt dark + signal red (logo) + road white.
   Signature: state plate-letter chips; tow-truck hazard stripe dividers.
   Display: Archivo Black (road-sign steel). Body: Archivo.
   ============================================================ */

:root {
  --asphalt: #14161b;
  --lane: #1d2026;
  --lane-edge: #2a2e37;
  --red: #d92027;
  --red-deep: #a81419;
  --paper: #f5f6f3;
  --paper-dim: #e9eae5;
  --ink: #1a1c21;
  --gray: #6f7580;
  --gray-light: #b9bec7;
  --amber: #ffb020;
  --wa: #1fae54;
  --radius: 12px;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
}

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

h1, h2, h3, .display {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a { color: var(--red); }
img { max-width: 100%; display: block; }

/* ---------- hazard stripe (tow-truck rear marking) ---------- */
.hazard {
  height: 9px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 16px,
    var(--paper) 16px 32px
  );
  border-top: 1px solid var(--red-deep);
  border-bottom: 1px solid var(--red-deep);
}

/* ---------- plate chip (Malaysian registration prefix) ---------- */
.plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 40px;
  padding: 0 10px;
  background: #0d0f12;
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  border-radius: 7px;
  border: 1.5px solid #3a3f49;
  box-shadow: inset 0 0 0 2px #14161b, 0 2px 5px rgba(0, 0, 0, 0.45);
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--asphalt);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--lane-edge);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; border-radius: 6px; }
.brand-text {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  color: #fff;
}
.brand-text span { color: var(--red); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  color: var(--gray-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { color: #fff; }
.nav .nav-call {
  background: var(--red);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
}
.nav .nav-call:hover { background: var(--red-deep); color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--asphalt);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.38;
}
.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 22, 27, 0.96) 30%, rgba(20, 22, 27, 0.55) 70%, rgba(20, 22, 27, 0.35));
}
.hero .wrap { position: relative; padding: 86px 22px 78px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 6px, #fff 6px 12px);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  max-width: 13ch;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead {
  font-size: 18px;
  color: var(--gray-light);
  max-width: 52ch;
  margin-bottom: 30px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(217, 32, 39, 0.35); }
.btn-red:hover { background: var(--red-deep); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid var(--lane-edge); }
.btn-ghost:hover { border-color: var(--gray-light); }
.hero-chips { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 38px; }
.chip { display: flex; align-items: center; gap: 9px; color: var(--gray-light); font-size: 14.5px; }
.chip strong { color: #fff; font-size: 15px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: 0 0 auto; }

/* ---------- sections ---------- */
.section { padding: 74px 0; }
.section-dark { background: var(--asphalt); color: #fff; }
.section-dim { background: var(--paper-dim); }
.sec-head { max-width: 640px; margin-bottom: 42px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 10px 0 12px; }
.section-dark .sec-head p, .section-dark p { color: var(--gray-light); }
.sec-head p { color: var(--gray); font-size: 17px; }

/* ---------- service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1.5px solid #e2e3de;
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color 0.15s, transform 0.12s;
}
.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card .ic { font-size: 30px; margin-bottom: 12px; display: block; }
.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--gray); }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--red); }
.section-dark .card {
  background: var(--lane);
  border-color: var(--lane-edge);
  color: #fff;
}
.section-dark .card p { color: var(--gray-light); }

/* ---------- coverage grid ---------- */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cover-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--lane);
  border: 1.5px solid var(--lane-edge);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.cover-card:hover { border-color: var(--red); background: #23262e; }
.cover-card .name { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.cover-card .sub { font-size: 12.5px; color: var(--gray-light); }

/* ---------- steps (real sequence: call → dispatch → tow) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step-card {
  background: #fff;
  border: 1.5px solid #e2e3de;
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 20px;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 17px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(217, 32, 39, 0.35);
}
.step-card h3 { font-size: 18px; margin: 8px 0 8px; }
.step-card p { font-size: 15px; color: var(--gray); }

/* ---------- photo strip ---------- */
.photo-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; }
.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lane);
}
.img-frame.wide { aspect-ratio: 16 / 10; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-cap { font-size: 13px; color: var(--gray); margin-top: 8px; }

/* ---------- prose (location/service pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 38px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.breadcrumbs { font-size: 13.5px; color: var(--gray); margin: 22px 0 6px; }
.breadcrumbs a { color: var(--gray); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.page-head { padding: 40px 0 30px; }
.page-head h1 { font-size: clamp(28px, 4.2vw, 42px); max-width: 22ch; }
.page-head .lead { color: var(--gray); font-size: 17.5px; max-width: 60ch; margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1.5px solid #e2e3de;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; }
.faq details[open] { border-color: var(--red); }
.faq details p { margin-top: 10px; color: var(--gray); font-size: 15.5px; }

/* ---------- form ---------- */
.form-card {
  background: #fff;
  border: 1.5px solid #e2e3de;
  border-radius: var(--radius);
  padding: 30px 28px;
  max-width: 560px;
}
.section-dark .form-card { background: var(--lane); border-color: var(--lane-edge); }
.form-card label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 4px; }
.section-dark .form-card label { color: var(--gray-light); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d5d6d0;
  border-radius: 9px;
  font-size: 16px;
  font-family: inherit;
  background: var(--paper);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-card .btn { width: 100%; justify-content: center; margin-top: 18px; }
.form-note { font-size: 13px; color: var(--gray); margin-top: 10px; }
.gotcha { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 66px 0;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 10px; }
.cta-band p { opacity: 0.95; margin-bottom: 26px; font-size: 17px; }
.cta-band .btn-white { background: #fff; color: var(--red); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.5); }

/* ---------- footer ---------- */
footer {
  background: var(--asphalt);
  color: var(--gray-light);
  padding: 56px 0 90px;
  font-size: 14.5px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-grid h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--gray-light); text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid var(--lane-edge);
  margin-top: 40px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--gray);
}

/* ---------- floating mobile CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.3);
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 15px 8px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
}
.mobile-cta .m-call { background: var(--red); }
.mobile-cta .m-wa { background: var(--wa); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cover-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--asphalt);
    flex-direction: column;
    padding: 18px 22px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--lane-edge);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .steps, .photo-grid { grid-template-columns: 1fr; }
  .cover-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 52px; }
  .hero .wrap { padding: 60px 22px 56px; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
