/* ==========================================================
   CAMION FREIGHT — design tokens
   ========================================================== */
:root{
  --asphalt:      #1B1D21;
  --asphalt-soft: #2A2D33;
  --steel:        #1E3A5F;
  --steel-light:  #3C5A80;
  --highway:      #F5B700;
  --highway-dark: #C99200;
  --concrete:     #F1F2F0;
  --concrete-line:#DEE1DE;
  --white:        #FFFFFF;
  --slate:        #565C63;
  --slate-light:  #8A9099;
  --signal:       #C1272D;

  --font-display: 'Oswald', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius: 4px;
  --shadow-card: 0 20px 50px -20px rgba(27,29,33,0.35);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--asphalt);
  background:var(--concrete);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1200px; margin:0 auto; padding:0 24px; }

h1,h2,h3{
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:0.02em;
  margin:0;
  color:var(--asphalt);
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:13px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--highway-dark);
  margin:0 0 12px;
  font-weight:600;
}
.eyebrow-center{ text-align:center; }
.section-title{
  font-size:clamp(28px,4vw,40px);
  margin-bottom:44px;
}
.eyebrow-center + .section-title{ text-align:center; }

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

/* ==========================================================
   HEADER
   ========================================================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--asphalt);
  border-bottom:3px solid var(--highway);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-logo{ height:36px; width:auto; }
.brand-logo-fallback{
  display:none;
  height:36px; width:36px;
  background:var(--highway);
  color:var(--asphalt);
  font-family:var(--font-display);
  font-weight:700;
  align-items:center; justify-content:center;
  border-radius:3px;
  font-size:15px;
}
.brand-word{
  font-family:var(--font-display);
  color:var(--white);
  font-size:19px;
  letter-spacing:0.04em;
  font-weight:600;
}
.brand-word em{ color:var(--highway); font-style:normal; }

.main-nav{ display:flex; gap:32px; }
.main-nav a{
  color:var(--concrete);
  font-size:14px;
  font-weight:500;
  letter-spacing:0.03em;
  position:relative;
  padding:4px 0;
}
.main-nav a:hover{ color:var(--highway); }

.header-phone{
  display:flex; flex-direction:column; align-items:flex-end;
  border-left:1px solid rgba(255,255,255,0.15);
  padding-left:20px;
}
.header-phone-label{
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--slate-light);
  text-transform:uppercase;
  letter-spacing:0.1em;
}
.header-phone-number{
  font-family:var(--font-mono);
  color:var(--highway);
  font-size:16px;
  font-weight:600;
}

/* ==========================================================
   HERO + MANIFEST FORM
   ========================================================== */
.hero{
  background:
    linear-gradient(180deg, var(--asphalt) 0%, var(--asphalt) 100%, var(--concrete) 55%, var(--concrete) 100%);
  padding:64px 0 0;
  position:relative;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:48px;
  align-items:start;
  padding-bottom:64px;
}
.hero-copy{ padding-top:32px; color:var(--white); }
.hero-copy .eyebrow{ color:var(--highway); }
.hero-copy h1{
  color:var(--white);
  font-size:clamp(36px,4.4vw,54px);
  line-height:1.05;
  margin-bottom:20px;
}
.hero-sub{
  color:var(--concrete-line);
  font-size:17px;
  line-height:1.6;
  max-width:46ch;
  margin:0 0 24px;
}
.hero-points{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap:10px;
}
.hero-points li{
  font-family:var(--font-mono);
  font-size:14px;
  color:var(--concrete);
  padding-left:22px;
  position:relative;
}
.hero-points li::before{
  content:'';
  position:absolute; left:0; top:6px;
  width:10px; height:2px;
  background:var(--highway);
}

/* --- manifest card --- */
.manifest-card{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  overflow:hidden;
  border:1px solid var(--concrete-line);
}
.manifest-head{
  background:var(--steel);
  color:var(--white);
  padding:14px 24px;
  display:flex; justify-content:space-between; align-items:center;
  font-family:var(--font-mono);
}
.manifest-title{
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-size:12px;
  font-weight:600;
}
.manifest-id{ font-size:12px; color:var(--highway); }

#quoteForm{ padding:24px; }

.route-row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:12px;
  align-items:end;
  margin-bottom:18px;
}
.route-line{
  display:flex; align-items:center; gap:4px;
  height:44px;
  padding-bottom:2px;
}
.pin{
  width:9px; height:9px; border-radius:50%;
  background:var(--asphalt);
  flex-shrink:0;
}
.pin-start{ background:var(--highway); }
.pin-end{ background:var(--signal); }
.dashes{
  flex:1;
  height:2px;
  min-width:20px;
  background-image:repeating-linear-gradient(90deg, var(--slate-light) 0 6px, transparent 6px 12px);
}

.autocomplete-field{ position:relative; }
.suggestions{
  list-style:none;
  margin:4px 0 0;
  padding:6px;
  position:absolute;
  top:100%; left:0; right:0;
  background:var(--white);
  border:1.5px solid var(--concrete-line);
  border-radius:3px;
  box-shadow:0 14px 30px -10px rgba(27,29,33,0.25);
  z-index:20;
  max-height:240px;
  overflow-y:auto;
}
.suggestions li{
  padding:9px 10px;
  font-size:13.5px;
  border-radius:3px;
  cursor:pointer;
  color:var(--asphalt);
}
.suggestions li .s-sub{
  display:block;
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--slate-light);
  margin-top:1px;
}
.suggestions li:hover,
.suggestions li.active{
  background:var(--concrete);
}
.suggestions li.s-empty,
.suggestions li.s-loading{
  cursor:default;
  color:var(--slate-light);
  font-style:italic;
}
.suggestions li.s-empty:hover,
.suggestions li.s-loading:hover{ background:none; }

.geo-attribution{
  font-family:var(--font-mono);
  font-size:10.5px;
  color:var(--slate-light);
  margin:6px 0 18px;
  text-align:right;
}
.geo-attribution a{ color:var(--slate-light); text-decoration:underline; }

.field-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:14px;
}
.field{ margin-bottom:14px; }
.route-row .field{ margin-bottom:0; }
.field label{
  display:block;
  font-family:var(--font-mono);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--slate);
  margin-bottom:6px;
}
.field label .optional{ text-transform:none; color:var(--slate-light); letter-spacing:0; }

.field input,
.field select,
.field textarea{
  width:100%;
  font-family:var(--font-body);
  font-size:14px;
  padding:11px 12px;
  border:1.5px solid var(--concrete-line);
  border-radius:3px;
  background:var(--concrete);
  color:var(--asphalt);
  transition:border-color .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color:var(--steel);
  outline:none;
  background:var(--white);
}
.field textarea{ resize:vertical; min-height:52px; font-family:var(--font-body); }

.btn-primary{
  background:var(--highway);
  color:var(--asphalt);
  border:none;
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-size:15px;
  font-weight:600;
  padding:15px 22px;
  border-radius:3px;
  cursor:pointer;
  transition:background .15s, transform .1s;
}
.btn-primary:hover{ background:var(--highway-dark); }
.btn-primary:active{ transform:translateY(1px); }
.btn-block{ width:100%; display:block; }

.form-fineprint{
  font-size:12px;
  color:var(--slate-light);
  text-align:center;
  margin:10px 0 0;
}

/* result panel */
.result-panel{ padding:24px; border-top:2px dashed var(--concrete-line); }
.result-head{
  display:flex; justify-content:space-between; align-items:center;
  font-family:var(--font-mono);
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:12px;
  color:var(--slate);
  margin-bottom:10px;
}
.result-close{
  background:none; border:1px solid var(--concrete-line);
  color:var(--slate); font-family:var(--font-mono);
  font-size:11px; text-transform:uppercase; letter-spacing:0.08em;
  padding:5px 10px; border-radius:3px; cursor:pointer;
}
.result-close:hover{ border-color:var(--steel); color:var(--steel); }
.result-price{
  font-family:var(--font-display);
  font-size:38px;
  color:var(--steel);
  margin-bottom:8px;
}
.result-meta{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--slate);
  display:flex; flex-wrap:wrap; gap:14px;
  margin-bottom:14px;
}
.result-meta span{ white-space:nowrap; }
.result-note{
  font-size:13px; color:var(--slate); line-height:1.5;
  margin:0 0 16px;
}

/* ==========================================================
   EQUIPMENT
   ========================================================== */
.equipment{ padding:80px 0; background:var(--white); }
.equipment-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2px;
  background:var(--concrete-line);
  border:1px solid var(--concrete-line);
}
.eq-card{
  background:var(--white);
  padding:32px 28px;
}
.eq-icon{
  width:40px; height:40px;
  margin-bottom:18px;
  background:var(--concrete);
  border-radius:3px;
  position:relative;
}
.eq-icon::after{
  content:'';
  position:absolute; inset:10px;
  background:var(--steel);
  clip-path:polygon(0 60%, 60% 60%, 60% 20%, 85% 20%, 100% 45%, 100% 80%, 0 80%);
}
.eq-card h3{ font-size:19px; margin-bottom:8px; }
.eq-card p{ font-size:14px; color:var(--slate); line-height:1.55; margin:0; }

/* ==========================================================
   HOW IT WORKS
   ========================================================== */
.how{ padding:80px 0; background:var(--concrete); border-top:1px solid var(--concrete-line); border-bottom:1px solid var(--concrete-line); }
.how-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}
.how-num{
  font-family:var(--font-mono);
  font-size:14px;
  color:var(--highway-dark);
  font-weight:600;
  display:block;
  margin-bottom:14px;
}
.how-step h3{ font-size:20px; margin-bottom:10px; }
.how-step p{ font-size:14px; color:var(--slate); line-height:1.6; margin:0; }

/* ==========================================================
   STATS
   ========================================================== */
.stats{ background:var(--asphalt); padding:52px 0; }
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  text-align:center;
}
.stat{ border-left:1px solid rgba(255,255,255,0.12); padding:0 12px; }
.stat:first-child{ border-left:none; }
.stat-num{
  display:block;
  font-family:var(--font-display);
  font-size:36px;
  color:var(--highway);
  margin-bottom:6px;
}
.stat-label{
  font-family:var(--font-mono);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--concrete-line);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer{ background:var(--steel); color:var(--concrete); padding:64px 0 0; }
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:32px;
  padding-bottom:44px;
  border-bottom:1px solid rgba(255,255,255,0.14);
}
.footer-word{ color:var(--white); font-size:20px; }
.footer-brand p{ font-size:13px; color:var(--concrete-line); margin-top:10px; max-width:26ch; }
.footer-col h4{
  font-family:var(--font-mono);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.1em;
  color:var(--highway);
  margin-bottom:14px;
  font-weight:600;
}
.footer-col a, .footer-col p{
  display:block;
  font-size:13px;
  color:var(--concrete-line);
  margin-bottom:10px;
  line-height:1.6;
}
.footer-col a:hover{ color:var(--highway); }
.footer-label{ color:var(--slate-light); font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:0.06em; }

.footer-bottom{
  display:flex; justify-content:space-between;
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--slate-light);
  padding:20px 0;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .equipment-grid{ grid-template-columns:repeat(2,1fr); }
  .how-steps{ grid-template-columns:1fr; gap:32px; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); gap:24px; }
  .stat{ border-left:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .main-nav{ display:none; }
}
@media (max-width: 600px){
  .route-row{ grid-template-columns:1fr; }
  .route-line{ transform:rotate(90deg); width:44px; margin:0 auto; }
  .field-row{ grid-template-columns:1fr; }
  .equipment-grid{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:6px; }
  .header-phone-label{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}
