/* ==========================================================================
   Site stylesheet. Brand colours live in :root – change them there only.
   ========================================================================== */

:root {
  --navy: #0f2a47;
  --navy-2: #173a5e;
  --navy-ink: #0a1d33;
  --orange: #f28c28;
  --orange-dark: #d9741a;
  --ink: #16212e;
  --text: #33404f;
  --muted: #5a6878;
  --steel: #f3f6f9;
  --steel-2: #e3e9ef;
  --line: #d5dde6;
  --white: #ffffff;
  --wa: #1fa855;
  --radius: 8px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .22);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .45);
  --max: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Archivo", system-ui, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  caret-color: var(--navy-2);
}
main { flex: 1; }
::selection { background: var(--navy-2); color: #fff; }
html { scrollbar-color: #9fb0c2 var(--steel); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--steel); }
::-webkit-scrollbar-thumb { background: #9fb0c2; border-radius: 6px; border: 3px solid var(--steel); }

img, svg { display: block; max-width: 100%; }
a { color: var(--navy-2); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.1; font-stretch: 112%; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 105%; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
.num, table { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-steel { background: var(--steel); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { font-size: 1.125rem; color: var(--muted); }

/* ---------- EN / BM ---------- */
body:not(.lang-ms) [lang="ms"] { display: none !important; }
body.lang-ms [lang="en"] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 1.05rem/1 "Archivo", sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--orange); color: var(--navy-ink); }
.btn-primary:hover { background: var(--orange-dark); color: var(--navy-ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #188a45; color: #fff; }
.btn-line { border-color: currentColor; background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.utility { background: var(--navy-ink); color: #c4d0dd; font-size: .9rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.utility a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility svg { width: 16px; height: 16px; }
.utility .u-left, .utility .u-right { display: flex; gap: 22px; align-items: center; }
.lang-toggle { background: none; border: 1px solid #3b5573; color: #fff; border-radius: 4px; padding: 3px 10px; font: 600 .85rem "Archivo", sans-serif; cursor: pointer; }
.lang-toggle:hover { border-color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { height: 44px; width: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-name { font: 800 1.3rem/1 "Archivo", sans-serif; font-stretch: 115%; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 6px; }
.nav a:hover { color: var(--navy-2); background: var(--steel); }
.nav a[aria-current="page"] { color: var(--navy-2); background: var(--steel); }
.nav .btn { margin-left: 10px; min-height: 46px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.menu-btn svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); padding: 8px 24px 24px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--steel-2); border-radius: 0; }
  .nav a[aria-current="page"] { background: none; }
  .nav .btn { margin: 16px 0 0; }
  .utility .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy) url("../img/hero-kl-interchange.jpg") center / cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,29,51,.96) 0%, rgba(15,42,71,.88) 45%, rgba(15,42,71,.55) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 470px); gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 76px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: 1.25rem; color: #d3dde8; max-width: 44ch; margin-bottom: 28px; }
.hero .contact-line { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #d3dde8; }
.hero .contact-line a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.hero .contact-line a:hover { color: #fff; text-decoration: underline; }
.hero .contact-line svg { width: 20px; height: 20px; }

.quote-panel { background: var(--white); color: var(--text); border-radius: 12px; padding: 30px; box-shadow: var(--shadow-lg); }
.quote-panel h2 { font-size: 1.6rem; margin-bottom: 4px; }
.quote-panel .sub { color: var(--muted); margin-bottom: 20px; font-size: 1rem; }
.qp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qp-grid .full { grid-column: 1 / -1; }
.quote-panel .btn { margin-top: 6px; }
.quote-panel .more { display: block; text-align: center; margin-top: 14px; font-size: .95rem; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
  .hero h1 { max-width: 18ch; }
}
/* Phones: keep the working quote in the first screen */
@media (max-width: 600px) {
  .hero .wrap { padding-top: 28px; padding-bottom: 36px; gap: 20px; }
  .hero h1 { font-size: 1.9rem; }
  .hero .lede, .hero .contact-line { display: none; }
  .quote-panel { padding: 20px 16px; }
  .quote-panel h2 { font-size: 1.35rem; }
  .quote-panel .sub { margin-bottom: 14px; }
  .qp-grid { gap: 10px; }
  .footer-base { padding-bottom: 72px; }
}
@media (max-width: 340px) { .qp-grid { grid-template-columns: 1fr; } }

/* ---------- Promises strip ---------- */
.promises { background: var(--navy-ink); color: #fff; }
.promises ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.promises li { display: flex; gap: 14px; align-items: center; padding: 24px 22px; border-left: 1px solid #22405f; font-weight: 600; line-height: 1.35; }
.promises li:first-child { border-left: 0; padding-left: 0; }
.promises svg { width: 30px; height: 30px; color: #9fc0e0; flex: none; }
@media (max-width: 960px) {
  .promises ul { grid-template-columns: 1fr 1fr; }
  .promises li { border-left: 0; padding: 16px 0; }
}
@media (max-width: 520px) { .promises ul { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--navy); color: #fff; padding: 60px 0 52px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: #c9d5e2; font-size: 1.15rem; margin: 0; }

/* ---------- Lorry size picker (signature interaction) ---------- */
.picker { background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.picker-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.picker-tab { background: none; border: 0; border-right: 1px solid var(--line); padding: 22px 12px 16px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 700 1rem "Archivo", sans-serif; color: var(--muted); position: relative; }
.picker-tab:last-child { border-right: 0; }
.picker-tab .silhouette { height: 52px; width: 100%; display: flex; align-items: flex-end; justify-content: center; color: #9fb0c2; transition: color .3s var(--ease); }
.picker-tab .silhouette svg { height: 100%; width: auto; max-width: 100%; }
.picker-tab:hover { color: var(--ink); }
.picker-tab:hover .silhouette { color: var(--navy-2); }
.picker-tab[aria-selected="true"] { color: var(--navy); background: var(--steel); }
.picker-tab[aria-selected="true"] .silhouette { color: var(--navy); }
.picker-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--navy); }
.picker-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 36px 40px; align-items: center; }
.picker-stage { position: relative; color: var(--navy); }
.picker-stage svg { width: 100%; height: auto; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.picker-stage.enter svg { transform: translateX(-24px); opacity: 0; }
.picker-stage .scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 6px; }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; }
.specs dt { color: var(--muted); font-weight: 500; }
.specs dd { margin: 0; color: var(--ink); font-weight: 700; }
.picker-body h3 { font-size: 1.6rem; margin-bottom: 6px; }
.picker-body .suits { color: var(--muted); margin-bottom: 20px; }
.picker-body .btn { margin-top: 24px; }
@media (max-width: 860px) {
  .picker-body { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
}
/* Phones: sizes become a 3 + 2 grid of labelled chips; the large stage shows the drawing */
@media (max-width: 600px) {
  .picker-tabs { grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
  .picker-tab { grid-column: span 2; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; min-height: 48px; justify-content: center; font-size: .9rem; line-height: 1.15; text-align: center; }
  .picker-tab:nth-child(4) { grid-column: 2 / span 2; }
  .picker-tab:last-child { border-right: 1px solid var(--line); }
  .picker-tab .silhouette { display: none; }
  .picker-tab[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
  .picker-tab[aria-selected="true"]::after { display: none; }
}

/* ---------- Route diagram ---------- */
.route-map { background: var(--steel); border-radius: 12px; padding: 24px; color: var(--navy); }
.route-map svg { width: 100%; height: auto; overflow: visible; }
.route-map text { font-family: "Archivo", sans-serif; fill: var(--ink); }
.route-map .rm-place { font-size: 17px; font-weight: 700; }
.route-map .rm-base { font-size: 19px; font-weight: 800; font-stretch: 112%; }
.route-map .rm-time { font-size: 14px; fill: var(--muted); }
body:not(.lang-ms) .route-map tspan[lang="ms"], body.lang-ms .route-map tspan[lang="en"] { display: none; }
/* On phones the diagram's labels get too small to read; the table carries the same facts. */
@media (max-width: 600px) { .route-map { display: none; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 1.2rem "Archivo", sans-serif; }
.steps li::after { content: ""; position: absolute; top: 23px; left: 58px; right: -20px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Split rows (industries, about) ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows svg { width: 40px; height: 40px; color: var(--navy-2); }
.rows h3 { margin-bottom: .25em; }
.rows p { margin: 0; color: var(--muted); }

/* ---------- Routes table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 8px; }
thead th:first-child { border-top-left-radius: 6px; }
thead th:last-child { border-top-right-radius: 6px; }
table { width: 100%; border-collapse: collapse; }
caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: .92rem; padding: 14px 20px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--steel-2); vertical-align: top; }
thead th { background: var(--steel); color: var(--ink); font-weight: 700; font-size: .95rem; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--ink); font-weight: 700; }
tbody tr:hover { background: #fafbfd; }
.wide-table { min-width: 720px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--navy-2); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #fff; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 60px; padding-bottom: 60px; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { color: #c9d5e2; margin: 0; }

/* ---------- Forms ---------- */
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #b7c3d0; border-radius: 6px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #6b7988; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8597aa; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(242,140,40,.45); }
.field textarea { min-height: 120px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.15); }
.req { color: #b42318; }
.form-status { display: none; padding: 14px 16px; border-radius: 6px; font-weight: 600; margin-top: 12px; }
.form-status.ok { display: block; background: #e6f4ec; color: #14532d; }
.form-status.err { display: block; background: #fdecea; color: #8a1c12; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form-group { grid-column: 1 / -1; font-size: 1.6rem; margin: 18px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.form-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.aside { background: var(--steel); border-radius: 12px; padding: 28px; position: sticky; top: 100px; }
.aside h3 { font-size: 1.15rem; }
.aside ol, .aside ul { padding-left: 1.2em; margin: 0 0 22px; }
.aside li { margin-bottom: 8px; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } .aside { position: static; } }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-list .ico { width: 44px; height: 44px; border-radius: var(--radius); background: var(--steel); color: var(--navy-2); display: grid; place-items: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); }
.map { width: 100%; min-height: 420px; height: 100%; border: 0; border-radius: 12px; background: var(--steel); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: #a9b8c8; padding: 64px 0 28px; font-size: .97rem; }
.site-footer a { color: #e4ebf2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-stretch: 100%; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 40px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid #22405f; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.wa-float:hover { transform: translateY(-2px); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.is-hidden { display: none !important; }
