/* =========================================================
   SOBANTWANA PROJECTS — STYLESHEET
   Palette:
     --asphalt      #17191B   deep road-surface black 
     --asphalt-2    #23262A   lifted charcoal panels
     --safety       #FFC629   safety-sign yellow
     --teal         #14625F   brand knot teal
     --teal-deep    #0C3E3C   pressed teal
     --warn         #C8372C   hazard red
     --paper        #F6F4EE   warm off-white
     --ink          #1D2022   body text on paper
   Type:
     Display / hero  -> 'Archivo Black' (stencilled, heavy, road-sign weight)
     Headings/eyebrow -> 'Barlow Condensed' (condensed, DOT-signage cadence)
     Body             -> 'Barlow' (clean, legible workhorse)
========================================================= */

:root {
  --asphalt: #17191b;
  --asphalt-2: #23262a;
  --asphalt-3: #2e3236;
  --safety: #ffc629;
  --safety-dim: #d9a91d;
  --teal: #14625f;
  --teal-deep: #0c3e3c;
  --teal-bright: #1c8a85;
  --warn: #c8372c;
  --paper: #f6f4ee;
  --paper-2: #eeebe1;
  --ink: #1d2022;
  --ink-soft: #55595c;

  --font-display: 'Archivo Black', 'Barlow Condensed', sans-serif;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;

  --radius: 4px;
  --wrap: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 3px solid var(--safety);
  outline-offset: 2px;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn .icon { width: 14px; height: 14px; fill: currentColor; }
.btn-primary {
  background: var(--safety);
  color: var(--asphalt);
  box-shadow: 0 3px 0 var(--safety-dim);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--safety-dim); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--safety-dim); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 2px solid rgba(246,244,238,0.35);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(246,244,238,0.08); }
.btn-call {
  background: var(--teal);
  color: var(--paper);
  font-size: 16px;
  padding: 10px 18px;
}
.btn-call:hover { background: var(--teal-bright); }

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--asphalt);
  border-bottom: 3px solid var(--safety);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.knot { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--font-head);
  color: var(--safety);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-top: 2px;
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 0.03em;
  color: var(--paper);
  position: relative;
  padding-block: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 3px;
  background: var(--safety);
  transition: right 0.2s ease;
}
.main-nav a:hover::after { right: 0; }

.header-call .icon { fill: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav-toggle span { display: block; height: 3px; background: var(--paper); border-radius: 2px; }

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--asphalt) 0%, #101213 100%);
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 120px;
  isolation: isolate;
}

.hero-road {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.road-lane {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.05), transparent);
}
.dash-line {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%) perspective(600px) rotateX(55deg);
  width: 14px;
  height: 0;
  background: repeating-linear-gradient(
    to top,
    var(--safety) 0px, var(--safety) 46px,
    transparent 46px, transparent 84px
  );
  border-radius: 2px;
  transition: height 1.6s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 0 10px rgba(255,198,41,0.35));
}
.dash-line.draw { height: 92%; }

.hero-inner { position: relative; max-width: 720px; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--safety);
  margin-bottom: 18px;
  display: inline-block;
}
.eyebrow--dark { color: var(--teal); }

.hero-title {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero-lede {
  color: rgba(246,244,238,0.78);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-sign {
  position: absolute;
  right: 6%;
  bottom: -30px;
  width: 150px;
  opacity: 0.9;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.4));
  display: none;
}
.sign-board {
  background: var(--safety);
  border: 6px solid var(--asphalt);
  border-radius: 6px;
  padding: 14px;
  transform: rotate(-4deg);
}
.sign-arrow { fill: var(--asphalt); }

@media (min-width: 900px) {
  .hero-sign { display: block; }
}

/* ---------- marquee strip ---------- */
.marquee {
  background: var(--safety);
  overflow: hidden;
  border-block: 3px solid var(--asphalt);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--asphalt);
  padding: 10px 20px;
  white-space: nowrap;
}
@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   SERVICES
========================================================= */
.services { padding-block: 96px; background: var(--paper); }
.section-head { max-width: 560px; margin-bottom: 52px; }
.section-head h2, .about h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: var(--asphalt-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--paper);
  padding: 34px 28px;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--paper-2); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--asphalt);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg {
  width: 28px; height: 28px;
  fill: var(--safety);
  stroke: var(--safety);
}
.service-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--ink);
}
.service-card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* =========================================================
   FLEET
========================================================= */
.fleet { background: var(--teal-deep); padding-block: 96px; color: var(--paper); }
.fleet-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.fleet .eyebrow--dark { color: var(--safety); }
.fleet h2 { font-size: clamp(28px, 3.6vw, 38px); color: var(--paper); margin-bottom: 20px; }
.fleet-text { color: rgba(246,244,238,0.82); font-size: 17px; margin-bottom: 26px; max-width: 480px; }
.fleet-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 0.01em;
}
.fleet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  background: var(--safety);
  border-radius: 2px;
}

.fleet-card {
  background: var(--teal);
  border-radius: 10px;
  padding: 40px;
  border: 2px solid rgba(255,198,41,0.25);
}
.truck-illustration { width: 100%; height: auto; }
.truck-illustration rect:first-child { fill: var(--paper); }
.cab-window { fill: var(--teal-deep); }
.wheel { fill: var(--asphalt); }
.sign-crate { fill: var(--safety); }

@media (max-width: 800px) {
  .fleet-inner { grid-template-columns: 1fr; }
}

/* ---------- fleet photo gallery ---------- */
.fleet-gallery {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
}
.fleet-photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255,198,41,0.25);
  aspect-ratio: 4 / 3;
  background: var(--teal);
}
.fleet-photo-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.fleet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.fleet-photo:hover img { transform: scale(1.06); }

@media (max-width: 520px) {
  .fleet-gallery { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- fleet lightbox ---------- */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10,11,12,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0;
  max-width: min(1000px, 92vw);
  max-height: 88vh;
}
.lightbox-figure img {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--asphalt-2);
  border: 2px solid rgba(255,198,41,0.3);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.lightbox-close:hover { border-color: var(--safety); }
.lightbox-close .icon { width: 18px; height: 18px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--asphalt-2);
  border: 2px solid rgba(255,198,41,0.3);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.lightbox-nav:hover { border-color: var(--safety); }
.lightbox-nav .icon { width: 20px; height: 20px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* =========================================================
   ABOUT
========================================================= */
.about { padding-block: 90px; background: var(--paper); }
.about .section-head { margin-bottom: 24px; }
.about-text {
  max-width: 760px;
  font-size: 18px;
  color: var(--ink-soft);
}

/* =========================================================
   CONTACT
========================================================= */
.contact {
  background: var(--asphalt);
  padding-block: 96px;
  position: relative;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 78px, rgba(255,198,41,0.06) 78px, rgba(255,198,41,0.06) 98px
  );
  pointer-events: none;
}
.contact-inner { position: relative; }
.contact-copy { max-width: 520px; margin-bottom: 46px; }
.contact-copy h2 { color: var(--paper); font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.contact-copy p { color: rgba(246,244,238,0.75); font-size: 17px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 720px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--asphalt-2);
  border: 2px solid var(--asphalt-3);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.contact-card:hover { border-color: var(--safety); transform: translateY(-2px); }
.contact-card .icon { width: 20px; height: 20px; fill: var(--safety); flex-shrink: 0; }
.contact-label {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.55);
  display: block;
}
.contact-value {
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--paper);
  display: block;
  margin-top: 2px;
}
.contact-card { grid-template-columns: auto 1fr; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  background: #0f1112;
  padding-block: 22px;
  border-top: 3px solid var(--safety);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(246,244,238,0.55);
  font-family: var(--font-head);
  letter-spacing: 0.02em;
}

/* =========================================================
   RESPONSIVE / MOBILE NAV
========================================================= */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--asphalt);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 30px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-top: 1px solid var(--asphalt-3);
  }
  .main-nav a { width: 100%; padding-block: 16px; border-bottom: 1px solid var(--asphalt-3); font-size: 19px; }
  body.nav-open .main-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; }
  .header-call { display: none; }
}

@media (max-width: 520px) {
  .hero { padding-top: 64px; padding-bottom: 80px; }
  .services, .about, .fleet, .contact { padding-block: 64px; }
}
