/* ==========================================================================
   ASH FREIGHT LOGISTICS — Stylesheet
   Design language: "highway livery" — deep navy + steel blue + haulage gold,
   drawn from the fleet signage and company mark. Signature devices:
   the manifest stat-strip and the Durban <-> Johannesburg route line.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colour: navy + steel from the fleet livery, gold from the cab pinstripe */
  --navy-900: #08192E;
  --navy-800: #0A2036;
  --navy-700: #0F2A48;
  --navy-600: #15375F;
  --steel-500: #2E7FBE;
  --steel-400: #4C9BDB;
  --steel-100: #E4F0FA;
  --gold-600: #B9812A;
  --gold-500: #D9A441;
  --gold-400: #E8BE6C;
  --gold-100: #FBF0DC;
  --paper-50: #F5F8FB;
  --paper-100: #EAF0F5;
  --ink-900: #182233;
  --ink-700: #35455C;
  --ink-500: #5C6B80;
  --white: #FFFFFF;
  --success-600: #276749;
  --error-600: #B23A2E;

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2vw, 3.6rem);
  --step-5: clamp(3rem, 2.2rem + 3.2vw, 4.8rem);

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --nav-height: 84px;
  --nav-height-scrolled: 66px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(8, 25, 46, 0.08), 0 1px 1px rgba(8, 25, 46, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(8, 25, 46, 0.28);
  --shadow-lg: 0 24px 48px -16px rgba(8, 25, 46, 0.38);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper-50);
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: var(--step-3); text-transform: uppercase; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { max-width: 62ch; }
p.wide { max-width: none; }

/* Focus visibility — never suppressed */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

::selection { background: var(--gold-400); color: var(--navy-900); }

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--paper { background: var(--paper-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.section--navy .eyebrow, .section--dark .eyebrow { color: var(--gold-400); }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-500); font-size: var(--step-1); margin-top: 0.9rem; }
.section--navy .section-head p { color: #B9C7D9; }

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--6 { grid-template-columns: repeat(2, 1fr); }
}

.diagonal-cut {
  position: relative;
}
.diagonal-cut::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 34px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  display: none;
}

/* Gold pinstripe divider — echoes the cab livery */
.pinstripe {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--gold-500) 18%, var(--gold-400) 50%, var(--gold-500) 82%, transparent 100%);
}
.pinstripe--diag {
  height: 46px;
  overflow: hidden;
  position: relative;
}
.pinstripe--diag span {
  position: absolute;
  inset: -10px -10%;
  background: linear-gradient(100deg, transparent 44%, var(--gold-500) 47%, var(--gold-400) 49.5%, var(--gold-500) 52%, transparent 55%);
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn--gold:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--navy-600);
  color: var(--navy-800);
}
.btn--outline-dark:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.7em 1.3em; font-size: 0.78rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* --------------------------------------------------------------------------
   5. SITE HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(8, 25, 46, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--dur-med) var(--ease-out);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 50%, transparent);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.nav-bar {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: height var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled .nav-bar { height: var(--nav-height-scrolled); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand img {
  height: 46px;
  width: auto;
  transition: height var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled .brand img { height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
}
.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #D7E1EC;
  padding-block: 0.4rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-extra {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #C7D5E4;
}
.nav-phone svg { width: 16px; height: 16px; stroke: var(--gold-400); flex-shrink: 0; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 620;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.burger span { top: 50%; transform: translateY(-50%); }
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { 
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 360px);
    height: 100vh;
    background: linear-gradient(180deg, var(--navy-900), #06101F 120%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--nav-height) + 1rem) 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease-out);
    box-shadow: -20px 0 60px rgba(0,0,0,0.35);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { width: 100%; padding-block: 0.95rem; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links a::after { display: none; }
  .nav-extra .btn { display: none; }
  .nav-phone { display: none; }
  .burger { display: inline-flex; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(4,10,20,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-med) var(--ease-out);
    z-index: 510;
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* --------------------------------------------------------------------------
   6. HERO (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  background: var(--navy-900) url('../images/ashfreight-hero-bg.jpg') center right / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,15,28,0.94) 0%, rgba(8,20,38,0.88) 32%, rgba(8,25,46,0.55) 56%, rgba(8,25,46,0.25) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 640px) 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}
.hero-copy { color: var(--white); padding-block: clamp(6rem, 14vw, 2rem) 2rem; }
.hero-copy .eyebrow { color: var(--gold-400); }
.hero-copy h1 {
  font-size: var(--step-5);
  color: var(--white);
  margin-bottom: 1.1rem;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--gold-400);
}
.hero-copy p.lede {
  font-size: var(--step-1);
  color: #CBD8E8;
  max-width: 46ch;
  margin-bottom: 2.1rem;
}
.hero .btn-group { margin-bottom: 0; }

/* Reveal-on-load choreography */
.hero-copy .eyebrow, .hero-copy h1, .hero-copy p.lede, .hero-copy .btn-group {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in var(--dur-slow) var(--ease-out) forwards;
}
.hero-copy .eyebrow { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.16s; }
.hero-copy p.lede { animation-delay: 0.32s; }
.hero-copy .btn-group { animation-delay: 0.46s; }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy .eyebrow, .hero-copy h1, .hero-copy p.lede, .hero-copy .btn-group { animation: none; opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   7. ROUTE MAP — signature element (Durban <-> Johannesburg tracking line)
   -------------------------------------------------------------------------- */
.route-panel {
  position: relative;
  z-index: 2;
  display: none;
}
@media (min-width: 901px) {
  .route-panel {
    display: block;
    background: rgba(8, 20, 38, 0.6);
    border: 1px solid rgba(232, 190, 108, 0.25);
    border-radius: 14px;
    padding: 1.75rem 1.75rem 1.25rem;
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
  }
  .route-panel-status {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 1rem;
  }
  .route-panel-status .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #57C97B;
    box-shadow: 0 0 0 3px rgba(87,201,123,0.25);
    flex-shrink: 0;
  }
}
.route-map { width: 100%; height: auto; overflow: visible; }
.route-map .route-line {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  stroke-dashoffset: 0;
  animation: route-flow 3.2s linear infinite;
  opacity: 0.9;
}
.route-map .route-spur {
  fill: none;
  stroke: rgba(232, 190, 108, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
  stroke-linecap: round;
}
@keyframes route-flow { to { stroke-dashoffset: -32; } }

.route-map .node-ring {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  animation: node-ping 2.6s var(--ease-out) infinite;
}
.route-map .node-ring.delay { animation-delay: 1.3s; }
@keyframes node-ping {
  0% { opacity: 0.85; transform: scale(0.4); }
  80% { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(2.6); }
}
.route-map .node-dot { fill: var(--gold-400); }
.route-map .node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: #CBD8E8;
  text-transform: uppercase;
}
.route-map .node-city { font-family: var(--font-mono); font-size: 13px; font-weight: 600; fill: var(--white); }
.route-map .truck-marker {
  offset-path: path("M140,50 C220,50 260,120 330,160");
  offset-rotate: 0deg;
  animation: truck-travel 5.5s linear infinite;
}
@keyframes truck-travel {
  0% { offset-distance: 0%; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .route-map .route-line { animation: none; }
  .route-map .node-ring { animation: none; opacity: 0; }
  .route-map .truck-marker { animation: none; opacity: 1; offset-distance: 50%; }
}
.route-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8FA3BC;
  text-align: center;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   8. MANIFEST STAT STRIP — signature component
   -------------------------------------------------------------------------- */
.manifest {
  background: var(--navy-800);
  border-top: 3px dashed rgba(232,190,108,0.35);
  border-bottom: 3px dashed rgba(232,190,108,0.35);
  position: relative;
}
.manifest .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
}
.manifest-item {
  text-align: center;
  padding-inline: 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.manifest-item:last-child { border-right: none; }
.manifest-num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
}
.manifest-num .unit { font-size: 0.5em; color: #C7D5E4; }
.manifest-label {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9FB0C6;
}
@media (max-width: 900px) {
  .manifest .container { grid-template-columns: repeat(3, 1fr); row-gap: 1.5rem; }
  .manifest-item:nth-child(3) { border-right: none; }
}
@media (max-width: 560px) {
  .manifest .container { grid-template-columns: repeat(2, 1fr); }
  .manifest-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .manifest-item:nth-child(even) { border-right: none; }
}

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--paper-100);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: background var(--dur-med) var(--ease-out);
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--gold-400); fill: none; }
.card:hover .card-icon { background: var(--gold-500); }
.card:hover .card-icon svg { stroke: var(--navy-900); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.55rem; }
.card p { color: var(--ink-500); font-size: 0.96rem; }

.card--dark {
  background: var(--navy-800);
  border-color: rgba(255,255,255,0.08);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: #B9C7D9; }
.card--dark .card-icon { background: rgba(232,190,108,0.12); }
.card--dark .card-icon svg { stroke: var(--gold-400); }

.icon-list { display: grid; gap: 0.9rem; }
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
}
.icon-list svg {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.2em;
  stroke: var(--gold-500); fill: none;
}
.section--navy .icon-list svg { stroke: var(--gold-400); }

.pullquote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--navy-900);
  border-left: 4px solid var(--gold-500);
  padding-left: 1.4rem;
  max-width: 44rem;
  text-wrap: balance;
}
.section--navy .pullquote { color: var(--white); }

/* --------------------------------------------------------------------------
   10. PAGE BANNER (inner pages)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: var(--navy-900) url('../images/ashfreight-header.jpg') center / cover no-repeat;
  padding-top: var(--nav-height);
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,25,46,0.55) 0%, rgba(6,15,28,0.94) 100%);
}
.page-banner .container { position: relative; z-index: 2; padding-bottom: 2.6rem; }
.page-banner .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 0.7rem;
  display: flex;
  gap: 0.5em;
  align-items: center;
}
.page-banner .breadcrumb a { color: #C7D5E4; }
.page-banner .breadcrumb a:hover { color: var(--white); }
.page-banner h1 { color: var(--white); font-size: var(--step-4); margin-bottom: 0.6rem; }
.page-banner p { color: #CBD8E8; font-size: var(--step-0); max-width: 50ch; }

/* --------------------------------------------------------------------------
   11. TIMELINE (About — Our Story)
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--gold-500) 0 6px, transparent 6px 12px);
}
.timeline-item { position: relative; padding-bottom: 2.2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.4rem; top: 0.2rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid var(--gold-500);
}
.timeline-year {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--gold-600);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.3rem;
}
.timeline-item h4 { margin-bottom: 0.35rem; }
.timeline-item p { color: var(--ink-500); }

/* --------------------------------------------------------------------------
   12. FLEET / DEPOT TABLES
   -------------------------------------------------------------------------- */
.stat-table { width: 100%; border-collapse: collapse; }
.stat-table th, .stat-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--paper-100);
  font-size: 0.96rem;
}
.stat-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
}
.stat-table td.num { font-family: var(--font-mono); font-weight: 600; color: var(--navy-800); text-align: right; }
.stat-table tr:last-child td { border-bottom: none; }

.bar-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.bar-item { display: grid; grid-template-columns: 11rem 1fr 3.5rem; align-items: center; gap: 1rem; }
.bar-item .label { font-size: 0.9rem; color: var(--ink-700); }
.bar-track { height: 10px; background: var(--paper-100); border-radius: 99px; overflow: hidden; }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--steel-500), var(--gold-500));
  border-radius: 99px;
  width: 0;
  transition: width 1.1s var(--ease-out);
}
.bar-item .count { font-family: var(--font-mono); font-weight: 600; text-align: right; color: var(--navy-800); }
@media (max-width: 620px) {
  .bar-item { grid-template-columns: 6.5rem 1fr 2.5rem; }
}

/* --------------------------------------------------------------------------
   13. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(100deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: -6%;
  width: 40%;
  background: linear-gradient(100deg, transparent 40%, rgba(232,190,108,0.12) 48%, transparent 56%);
}
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}
.cta-band h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.cta-band p { color: #C7D5E4; }
.cta-band-text { max-width: 34rem; }

/* --------------------------------------------------------------------------
   14. FORMS
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 0.45rem;
}
.field label .req { color: var(--gold-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1.5px solid #D6E0EA;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.98rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--steel-500);
  box-shadow: 0 0 0 4px rgba(46,127,190,0.15);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid {
  border-color: var(--error-600);
}
.field-hint { font-size: 0.8rem; color: var(--ink-500); margin-top: 0.35rem; }

/* Honeypot — visually hidden, still in tab/DOM flow for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-100);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.form-status {
  display: none;
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.form-status.is-success { display: block; background: #EAF6EF; color: var(--success-600); border: 1px solid #BFE3CD; }
.form-status.is-error { display: block; background: #FBEAE8; color: var(--error-600); border: 1px solid #F0C4BE; }

/* --------------------------------------------------------------------------
   15. CONTACT CARDS
   -------------------------------------------------------------------------- */
.office-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.office-card-head {
  background: var(--navy-900);
  color: var(--white);
  padding: 1.5rem 1.75rem;
  position: relative;
}
.office-card-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--gold-500);
}
.office-card-head .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: block;
  margin-bottom: 0.3rem;
}
.office-card-body { padding: 1.75rem; display: grid; gap: 1rem; }
.office-detail { display: flex; gap: 0.9rem; align-items: flex-start; }
.office-detail svg { width: 20px; height: 20px; stroke: var(--steel-500); fill: none; flex-shrink: 0; margin-top: 0.15em; }
.office-detail .k { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); display: block; margin-bottom: 0.15rem; }
.office-detail a:hover { color: var(--steel-500); }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #B9C7D9;
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { color: #8FA3BC; font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { color: #B9C7D9; font-size: 0.94rem; transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7C90A8;
}
.footer-bottom a { color: #7C90A8; }
.footer-bottom a:hover { color: var(--gold-400); }

/* --------------------------------------------------------------------------
   17. SCROLL-REVEAL
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.37s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.44s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  z-index: 400;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-400); }
.back-to-top svg { width: 20px; height: 20px; }

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }

/* --------------------------------------------------------------------------
   18. RESPONSIVE FIXES — HERO / BANNER
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { padding-block: calc(var(--nav-height) + 2.5rem) 3rem; text-align: left; }
  .hero-copy p.lede { max-width: none; }
  .page-banner { min-height: 240px; }
}
@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   19. VALUES / CHIPS (About page)
   -------------------------------------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 980px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
.value-chip {
  text-align: center;
  padding: 1.75rem 1rem;
  border: 1px solid var(--paper-100);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.value-chip:hover { transform: translateY(-4px); border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.value-chip .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-600);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.6rem;
}
.value-chip h4 { font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   20. INSURANCE TABLE CARD
   -------------------------------------------------------------------------- */
.insurance-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .insurance-wrap { grid-template-columns: 1fr; } }
.liability-card {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.liability-card::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(232,190,108,0.06) 0 2px, transparent 2px 14px);
}
.liability-card > * { position: relative; z-index: 1; }
.liability-figure {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  color: var(--gold-400);
  font-weight: 600;
  margin-block: 0.4rem 0.2rem;
}
.liability-card p { color: #C7D5E4; }

/* --------------------------------------------------------------------------
   21. CAREERS STRIP
   -------------------------------------------------------------------------- */
.career-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .career-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .career-row { grid-template-columns: 1fr; } }
.career-chip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--paper-100);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}
.career-chip svg { width: 22px; height: 22px; stroke: var(--steel-500); fill: none; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   22. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .back-to-top, .burger, .nav-scrim, .route-panel { display: none !important; }
  .hero, .page-banner { min-height: auto; background: none !important; color: #000 !important; }
  .hero::before, .page-banner::before { display: none !important; }
  .hero-copy, .page-banner h1, .page-banner p { color: #000 !important; }
  body { background: #fff; }
}

/* --------------------------------------------------------------------------
   23. NO-JS FALLBACK
   Progressive enhancement safety net: content must stay usable if
   JavaScript fails to load. html starts with class="no-js"; main.js
   removes it on execution.
   -------------------------------------------------------------------------- */
.no-js .reveal,
.no-js .reveal-stagger > * {
  opacity: 1;
  transform: none;
}
.no-js .burger { display: none; }
@media (max-width: 900px) {
  .no-js .nav-links {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    background: none;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem 0 0;
    box-shadow: none;
  }
  .no-js .nav-links a { color: #D7E1EC; border-bottom: none; padding-block: 0.4rem; width: auto; }
}
.no-js .bar-fill { width: var(--fallback-width, 60%); }

/* --------------------------------------------------------------------------
   24. MOBILE NAV CTA (shown only inside the slide-out panel)
   -------------------------------------------------------------------------- */
.nav-mobile-cta { display: none; }
@media (max-width: 900px) {
  .nav-mobile-cta {
    display: block;
    margin-top: 1.75rem;
    border-bottom: none !important;
  }
  .nav-mobile-cta .btn { width: 100%; }
  .nav-mobile-phone {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-top: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #C7D5E4;
  }
  .nav-mobile-phone svg { width: 16px; height: 16px; stroke: var(--gold-400); }
}

/* --------------------------------------------------------------------------
   25. CONTACT CTA CARDS (Call / Email / WhatsApp)
   -------------------------------------------------------------------------- */
.contact-cta-card {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.contact-cta-card .card-icon { margin-inline: auto; }
.contact-cta-card h3 { color: var(--navy-900); margin-bottom: 0.3rem; }
.contact-cta-card p {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--steel-500);
  transition: color var(--dur-fast) var(--ease-out);
}
.contact-cta-card:hover p { color: var(--gold-600); }
