/* ==========================================================
   Primehaul Transport (Pty) Ltd — site styles
   Brand: Ink Black #181818 · Haul Gold #F5B804 · White/Chrome #FFFFFF
   ========================================================== */
:root {
  --navy: #181818;
  --navy-deep: #0E0E0E;
  --blue: #2E2E2E;
  --amber: #F5B804;
  --amber-dark: #C99400;
  --steel: #8A8A8A;
  --ink: #1B1D21;
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --line: #E3E0D9;
  --muted: #5A6472;
  --ok: #1F7A4D;
  --ok-bg: #E4F3EB;
  --warn-bg: #FFF3DC;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.09);
  --max: 1180px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--white);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--navy); padding: 8px 14px; z-index: 100; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Placeholder tokens — search for class="ph" and replace before going live */
.ph {
  background: var(--warn-bg); color: #7A4B00; border-bottom: 2px dashed var(--amber);
  padding: 0 .3em; border-radius: 3px; font-weight: 600; white-space: nowrap;
}
.dark .ph, .hero .ph, .site-footer .ph, .topbar .ph { background: rgba(245,184,4,.18); color: #FFD591; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #D0D0D0; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar strong { color: var(--amber); font-weight: 600; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.site-footer .brand img { height: 96px; }
.brand svg { width: 42px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--navy); letter-spacing: .01em; }
.brand-sub { font-family: var(--font-head); font-weight: 500; font-size: .62rem; color: var(--amber); letter-spacing: .42em; margin-top: 4px; }
.site-footer .brand-name { color: #fff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { background: var(--paper); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { margin: auto; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch;
         padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: .98rem;
       padding: 12px 22px; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-amber { background: var(--amber); color: var(--navy) !important; }
.btn-amber:hover { background: #FFCB2E; }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--blue); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy) !important; }
.btn-outline:hover { background: var(--navy); color: #fff !important; }
.nav .btn-amber { padding: 10px 18px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #E2E2E2; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: repeating-linear-gradient(115deg, #fff 0 2px, transparent 2px 38px); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: 1.15rem; max-width: 560px; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .82rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; color: #fff; display: inline-flex; gap: 6px; align-items: center; }
.chips svg { width: 14px; height: 14px; color: var(--amber); }
.hero-art { width: 100%; max-width: 600px; height: auto; margin-left: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }

.page-hero { background: var(--navy); color: #E2E2E2; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: repeating-linear-gradient(115deg, #fff 0 2px, transparent 2px 38px); }
.page-hero .container { position: relative; padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: 820px; }
.page-hero p { max-width: 760px; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 12px; color: #A8A8A8; }
.crumbs a { color: #D0D0D0; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero-art { max-width: 560px; }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.bg-paper { background: var(--paper); }
.dark { background: var(--navy); color: #E2E2E2; }
.dark h2, .dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.dark .section-head p { color: #D0D0D0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -48px; position: relative; z-index: 2; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: none; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: 14px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 48px; height: 48px; border-radius: 10px; background: var(--navy); color: var(--amber); display: grid; place-items: center; }
.card .icon svg { width: 24px; height: 24px; }
.card-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; margin-top: 8px; }
.card.accent { border-top: 4px solid var(--amber); }
.dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: #E2E2E2; }
.dark .card .icon { background: var(--amber); color: var(--navy); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--amber); display: block; margin-bottom: 6px; }
.steps h3 { font-size: 1.02rem; margin-bottom: .4em; }
.steps p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: #FBFAF8; }
td:first-child { font-weight: 600; color: var(--navy); }
table.kv td:first-child { width: 42%; }
@media (max-width: 640px) { th, td { padding: 11px 12px; } table { font-size: .9rem; } }

.badge { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: #8A5500; }
.badge-navy { background: #EDEBE4; color: var(--navy); }

/* Callouts */
.callout { border-left: 4px solid var(--amber); background: var(--paper); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout.navy { background: #F2F1EC; border-color: var(--navy); }
.callout p:last-child { margin: 0; }

/* B-BBEE panel */
.bee { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.bee-left { background: var(--navy); color: #E2E2E2; padding: 40px; }
.bee-left h2 { color: #fff; }
.bee-right { background: var(--white); padding: 32px 36px; }
.bee-big { display: flex; gap: 28px; flex-wrap: wrap; margin: 20px 0 8px; }
.bee-big div b { display: block; font-family: var(--font-head); font-size: 2.6rem; color: var(--amber); line-height: 1; }
.bee-big div span { font-size: .9rem; }
.bee-right dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0; }
.bee-right dt, .bee-right dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.bee-right dt { color: var(--muted); font-size: .93rem; }
.bee-right dd { font-weight: 600; color: var(--navy); text-align: right; }
@media (max-width: 860px) { .bee { grid-template-columns: 1fr; } .bee-left, .bee-right { padding: 28px 22px; } }

/* CTA band */
.cta-band { background: var(--amber); padding: 48px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .2em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; color: var(--navy); }

/* Spec list */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.spec div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 14px 16px; }
.spec b { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; }
.spec span { font-size: .9rem; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .full { grid-column: 1 / -1; }
.form fieldset { grid-column: 1 / -1; border: none; padding: 0; margin: 10px 0 0; display: contents; }
.form legend, .form .legend { grid-column: 1 / -1; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.form .legend:first-child { border-top: none; margin-top: 0; padding-top: 0; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; font-size: .98rem; padding: 11px 13px; border: 1px solid #CFCAC0; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(245,184,4,.4); }
textarea { min-height: 110px; resize: vertical; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; display: none; }
.form-status.show { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-card { background: var(--navy); color: #E2E2E2; border-radius: 14px; padding: 30px; }
.contact-card h3 { color: #fff; }
.contact-card a { color: #fff; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-line svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 3px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B4B4B4; font-size: .92rem; padding: 60px 0 24px; }
.site-footer a { color: #E2E2E2; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mt-4 { margin-top: 48px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.pill-list li { background: #F2F1EC; color: var(--navy); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 500; }
#quote-grid { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 900px) { #quote-grid { grid-template-columns: 1fr; } }
.split > *, .grid > * { min-width: 0; }
td .ph, dd .ph { white-space: normal; }
td a { word-break: break-word; }
td { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  table.kv td { display: block; width: auto !important; border-bottom: none; padding-bottom: 2px; }
  table.kv td + td { padding-top: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  table.kv tr:last-child td + td { border-bottom: none; }
  .badge { white-space: normal; }
}

/* Black & gold brand accents */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--amber); }
@media (max-width: 560px) { .brand img { height: 38px; } }
