/* ==========================================================================
   Truck Malaysia — Design System
   Commercial automotive style: white background, black/grey, Isuzu-red accent
   Mobile-first. No heavy animation. Fast-loading (system fonts, no webfonts).
   ========================================================================== */

:root {
  --color-black: #14161a;
  --color-red: #d5001c;
  --color-red-dark: #a60016;
  --color-grey-900: #1f2328;
  --color-grey-700: #4a4f57;
  --color-grey-500: #6b7280;
  --color-grey-300: #d6d9de;
  --color-grey-100: #f2f3f5;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1da851;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(20, 22, 26, 0.08);
  --shadow-md: 0 4px 16px rgba(20, 22, 26, 0.12);
  --shadow-lg: 0 12px 32px rgba(20, 22, 26, 0.16);

  --container-max: 1180px;

  /* mobile sticky bottom bar height, used to pad page bottom */
  --mobile-bar-height: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-grey-900);
  background: var(--color-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-bar-height);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 1em; color: var(--color-grey-700); }

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

section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 80px 0; } }

.section-title {
  font-size: 26px;
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--color-grey-500);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  .section-title { font-size: 34px; }
}

/* ==========================================================================
   Buttons / CTAs (reusable CTA component)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  min-height: 48px;
  line-height: 1.1;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-red-dark); }

.btn-dark {
  background: var(--color-black);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-outline {
  background: transparent;
  border-color: var(--color-grey-900);
  color: var(--color-grey-900);
}
.btn-outline:hover { background: var(--color-grey-900); color: #fff; }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-sm { padding: 10px 16px; font-size: 14px; min-height: 40px; }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.cta-row.center { justify-content: center; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--color-grey-300);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--color-black);
}
.brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--color-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
}
.brand small { display: block; font-weight: 600; font-size: 10px; color: var(--color-grey-500); letter-spacing: 0.04em; }

.main-nav {
  display: none;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-grey-700);
}
.main-nav a:hover, .main-nav a.active { color: var(--color-red); }

.header-cta {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-grey-300);
  background: #fff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--color-grey-300);
  background: #fff;
  padding: 8px 20px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-grey-100);
}
.mobile-nav .cta-row { margin-top: 14px; }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-black) 0%, #2a2e35 100%);
  color: #fff;
  overflow: hidden;
  padding: 44px 0 40px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(213,0,28,0.35), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: 30px;
  color: #fff;
  margin-bottom: 14px;
}
.hero .hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 16.5px;
  max-width: 560px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-whatsapp); }

@media (min-width: 900px) {
  .hero { padding: 76px 0; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero h1 { font-size: 44px; }
  .hero .hero-sub { font-size: 18px; }
}

/* ==========================================================================
   Trust badges (reusable component)
   ========================================================================== */
.trust-strip {
  background: var(--color-grey-100);
  border-bottom: 1px solid var(--color-grey-300);
  padding: 18px 0;
}
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: center;
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-grey-900);
  padding: 6px;
}
.trust-badge svg { width: 26px; height: 26px; color: var(--color-red); }
@media (min-width: 768px) {
  .trust-badges { grid-template-columns: repeat(5, 1fr); }
}

/* Compact inline trust line, used near CTAs */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--color-grey-500);
  font-weight: 600;
}
.trust-line span { display: flex; align-items: center; gap: 6px; }
.trust-line svg { width: 16px; height: 16px; color: var(--color-whatsapp); flex-shrink: 0; }
.hero .trust-line { color: rgba(255,255,255,0.75); }
.hero .trust-line svg { color: var(--color-whatsapp); }

/* ==========================================================================
   Cards — model cards, service cards, use-case cards (reusable)
   ========================================================================== */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.model-card .model-photo {
  margin: -22px -22px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.model-card h3 { font-size: 19px; }
.model-card .model-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.model-card dl {
  margin: 10px 0 16px;
  font-size: 13.5px;
}
.model-card dt { font-weight: 700; color: var(--color-grey-900); margin-top: 8px; }
.model-card dd { margin: 2px 0 0; color: var(--color-grey-500); }
.model-card .btn { margin-top: auto; }

.usecase-card {
  text-align: center;
  align-items: center;
}
.usecase-card .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-grey-100);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.usecase-card .icon-circle svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 18px; }
.service-card .benefit {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: 10px;
}
.service-card .btn { margin-top: auto; }

/* Quick truck selector cards */
.selector-card {
  border-top: 4px solid var(--color-red);
}
.selector-card .suggested {
  background: var(--color-grey-100);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.selector-card .suggested strong { color: var(--color-grey-900); }

/* ==========================================================================
   Promo / offer cards (D-Max page) — editable placeholders
   ========================================================================== */
.promo-card {
  border: 2px dashed var(--color-grey-300);
  background: #fffaf5;
  position: relative;
}
.promo-card .promo-flag {
  position: absolute;
  top: -12px;
  left: 18px;
  background: var(--color-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.promo-card h3 { font-size: 17px; }
.promo-card .promo-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-red);
  margin: 6px 0;
}
.promo-note {
  font-size: 12px;
  color: var(--color-grey-500);
  font-style: italic;
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--color-grey-100);
  border-radius: var(--radius-md);
}
.step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 10px;
}
.step h4 { font-size: 15.5px; margin-bottom: 4px; }
.step p { font-size: 13.5px; margin: 0; }

/* ==========================================================================
   Body construction gallery / image placeholders (reusable component)
   ========================================================================== */
.img-placeholder {
  background: repeating-linear-gradient(135deg, var(--color-grey-100), var(--color-grey-100) 10px, #e9eaed 10px, #e9eaed 20px);
  border: 1px dashed var(--color-grey-300);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-grey-500);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  aspect-ratio: 4 / 3;
  width: 100%;
}
.img-placeholder svg { width: 30px; height: 30px; opacity: 0.6; }
.img-placeholder .ph-label { color: var(--color-grey-900); }
.img-placeholder .ph-size { font-weight: 500; color: var(--color-grey-500); font-size: 11px; }

.hero-photo.img-placeholder { aspect-ratio: 4/3; border-color: rgba(255,255,255,0.3); background: repeating-linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px); color: rgba(255,255,255,0.7); }
.hero-photo.img-placeholder .ph-label { color: #fff; }

.gallery-strip { grid-auto-flow: column; grid-auto-columns: 240px; overflow-x: auto; display: grid; gap: 14px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.gallery-strip .img-placeholder { scroll-snap-align: start; }

/* ==========================================================================
   FAQ accordion (reusable component)
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-grey-300);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-grey-900);
  padding: 18px 30px 18px 0;
  position: relative;
  cursor: pointer;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 22px;
  font-weight: 400;
  color: var(--color-red);
  transition: transform 0.15s ease;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 0 18px; color: var(--color-grey-700); font-size: 14.5px; }

/* ==========================================================================
   Forms (reusable lead form component)
   ========================================================================== */
.form-card {
  background: #fff;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-grey-900);
}
.field .optional-tag { font-weight: 500; color: var(--color-grey-500); font-size: 12px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-grey-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  min-height: 48px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-red);
}
.form-divider {
  border-top: 1px dashed var(--color-grey-300);
  margin: 18px 0;
  padding-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-grey-500);
}
.form-success {
  display: none;
  background: #eafbf1;
  border: 1px solid var(--color-whatsapp);
  color: #12633b;
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ==========================================================================
   Sticky WhatsApp float button (desktop + mobile)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: calc(var(--mobile-bar-height) + 16px);
  z-index: 600;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.whatsapp-float svg { width: 30px; height: 30px; }
@media (min-width: 1024px) {
  .whatsapp-float { bottom: 26px; }
}

/* ==========================================================================
   Sticky mobile bottom bar
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 590;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 1px solid var(--color-grey-300);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.mobile-bottom-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  height: var(--mobile-bar-height);
}
.mobile-bottom-bar svg { width: 21px; height: 21px; }
.mobile-bottom-bar .bar-whatsapp { background: var(--color-whatsapp); color: #fff; }
.mobile-bottom-bar .bar-call { color: var(--color-grey-900); }
.mobile-bottom-bar .bar-quote { color: var(--color-red); }
@media (min-width: 1024px) {
  .mobile-bottom-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ==========================================================================
   Proof / reviews
   ========================================================================== */
.review-card { background: var(--color-grey-100); }
.review-card .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 8px; font-size: 15px; }
.review-card .reviewer { font-weight: 700; margin-top: 12px; font-size: 13.5px; }
.review-card .reviewer span { color: var(--color-grey-500); font-weight: 500; display: block; font-size: 12px; }

/* ==========================================================================
   Final CTA band
   ========================================================================== */
.cta-band {
  background: var(--color-black);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-grey-900);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 90px;
  font-size: 13.5px;
}
@media (min-width: 1024px) { .site-footer { padding-bottom: 40px; } }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: rgba(255,255,255,0.5);
  font-size: 12.5px;
}
.social-row { display: flex; gap: 10px; margin-top: 10px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.social-row svg { width: 16px; height: 16px; }

/* ==========================================================================
   Breadcrumb / page intro (for SEO subpages)
   ========================================================================== */
.page-intro {
  background: var(--color-grey-100);
  border-bottom: 1px solid var(--color-grey-300);
  padding: 28px 0;
}
.breadcrumb { font-size: 13px; color: var(--color-grey-500); margin-bottom: 10px; }
.breadcrumb a { color: var(--color-grey-700); font-weight: 600; }
.breadcrumb a:hover { color: var(--color-red); }
.page-intro h1 { font-size: 26px; margin-bottom: 8px; }
@media (min-width: 768px) { .page-intro h1 { font-size: 32px; } }
.page-intro .hero-sub { color: var(--color-grey-700); max-width: 680px; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.bg-grey { background: var(--color-grey-100); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
