/* =========================================================
   ATG LOGISTICS — design tokens (v2, brand-aligned)
   Alford Transportation Group LLC dba ATG Logistics
   Palette sampled directly from the shield logo.
   ========================================================= */

:root {
  --purple-deep:  #12002E;   /* near-black purple, header/footer */
  --purple:       #2B0868;   /* core brand purple */
  --purple-mid:   #401A8C;   /* panel / card bg */
  --purple-light: #6E3FD1;   /* glow / hover accents */
  --gold:         #F0B90D;   /* primary accent, CTAs */
  --gold-bright:  #FFD948;   /* highlight / glow */
  --gold-dim:     #C4930A;   /* hover state */
  --silver:       #D7DAE0;   /* chrome text on dark */
  --silver-dim:   #9A9FAA;
  --paper:        #F6F4F1;   /* light section bg */
  --ink:          #150A2B;   /* text on light bg */

  --display: "Oswald", "Arial Narrow", sans-serif;
  --script:  "Poppins", "Arial", sans-serif;
  --body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

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

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.06em; }

p { color: var(--purple-mid); max-width: 60ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-dim);
  display: inline-block;
}

.tagline {
  font-family: var(--script);
  font-weight: 800;
  font-style: italic;
  color: var(--gold-bright);
  text-shadow: 0 2px 14px rgba(240, 185, 13, 0.35);
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  padding: 14px 26px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--purple-deep);
  border-color: var(--gold);
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(240,185,13,0.28); }

.btn-ghost {
  background: transparent;
  color: var(--silver);
  border-color: var(--purple-light);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-dark {
  background: var(--purple-deep);
  color: var(--paper);
  border-color: var(--purple-deep);
}
.btn-dark:hover { background: var(--purple); }

/* ---------- header / nav ---------- */
header.site {
  background: var(--purple-deep);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}
.brand img { height: 56px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; }
.brand .mark {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--silver);
}
.brand .mark span { color: var(--gold-bright); }
.brand .sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--silver-dim);
  margin-top: 4px;
  text-transform: uppercase;
}

nav.primary { display: flex; align-items: center; gap: 6px; }
nav.primary a {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver-dim);
  padding: 10px 14px;
  border-radius: 3px;
  transition: color 0.15s ease, background 0.15s ease;
}
nav.primary a:hover { color: var(--silver); background: var(--purple); }
nav.primary a.active { color: var(--gold-bright); }
nav.primary a.cta {
  margin-left: 8px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--purple-deep);
  font-weight: 600;
}
nav.primary a.cta:hover { filter: brightness(1.05); color: var(--purple-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--purple-light);
  border-radius: 3px;
  color: var(--silver);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    border-bottom: 3px solid var(--gold);
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 12px 6px; }
  nav.primary a.cta { text-align: center; margin-left: 0; margin-top: 6px; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 15% -10%, rgba(110,63,209,0.55), transparent 55%),
    linear-gradient(180deg, var(--purple-deep) 0%, #1B073F 60%, var(--purple-deep) 100%),
    repeating-linear-gradient(115deg, rgba(240,185,13,0.035) 0 2px, transparent 2px 46px);
  color: var(--paper);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--paper); }
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero .lede {
  color: var(--silver);
  font-size: 1.1rem;
  max-width: 54ch;
  margin-bottom: 34px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-banner {
  margin-top: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(240,185,13,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.hero-banner img { width: 100%; }

/* ---------- pipeline: signature element ---------- */
.pipeline {
  --n: 4;
  margin: 56px 0 0;
  position: relative;
}
.pipeline-track {
  position: relative;
  height: 3px;
  background: var(--purple-light);
  border-radius: 2px;
  margin: 0 6px;
  opacity: 0.5;
}
.pipeline-track::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 46px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: travel 4.5s linear infinite;
  border-radius: 2px;
}
@keyframes travel {
  0%   { left: -10%; }
  100% { left: 105%; }
}
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  margin-top: -3px;
}
.pipeline-step {
  position: relative;
  padding-top: 26px;
  text-align: left;
}
.pipeline-step::before {
  content: attr(data-step);
  position: absolute;
  top: -9px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--purple-deep);
  border: 2px solid var(--gold);
  color: var(--gold-bright);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pipeline-step h3 { color: var(--paper); margin-bottom: 6px; font-size: 0.95rem; }
.pipeline-step p { color: var(--silver-dim); font-size: 0.88rem; margin: 0; max-width: 26ch; }

@media (max-width: 760px) {
  .pipeline-steps { grid-template-columns: 1fr; gap: 26px; }
  .pipeline-track { display: none; }
  .pipeline-step::before { top: 0; }
}

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--purple-deep); color: var(--paper); }
section.alt h2, section.alt h1 { color: var(--paper); }
section.alt p { color: var(--silver); }
section.tight { padding: 54px 0; }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--purple-deep);
  color: var(--paper);
  padding: 30px 26px;
  border-radius: 4px;
  border-top: 3px solid var(--gold);
}
.card h3 { color: var(--paper); margin-bottom: 10px; }
.card p { color: var(--silver-dim); font-size: 0.94rem; margin: 0; }
.card .num {
  font-family: var(--mono);
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--purple-light);
  border-bottom: 1px solid var(--purple-light);
  padding: 30px 0;
}
.stat-row .stat b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--gold-bright);
}
.stat-row .stat span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
@media (max-width: 760px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

.manifest {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--silver-dim);
  border-left: 4px solid var(--purple);
  padding: 20px 22px;
  color: var(--ink);
}
.manifest dt { color: var(--purple); letter-spacing: 0.06em; }
.manifest dd { margin: 0 0 12px; color: #4A3E6B; }

/* ---------- checklist (What We Do) ---------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 15px;
}
.checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--paper);
  font-size: 0.98rem;
  line-height: 1.4;
}
.checklist li::before {
  content: "✓";
  color: var(--gold-bright);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.68rem;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.more-note {
  font-family: var(--mono);
  font-style: italic;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin: 18px 0 0 35px;
}

/* ---------- forms ---------- */
form.contact-form {
  display: grid;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--silver-dim);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--purple-mid); }

/* ---------- footer ---------- */
footer.site {
  background: #0B001E;
  color: var(--silver-dim);
  padding: 46px 0 30px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
footer.site .f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
footer.site .f-brand img { height: 40px; width: auto; }
footer.site .f-brand span.name {
  font-family: var(--display);
  color: var(--paper);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
footer.site .f-brand span.name b { color: var(--gold-bright); font-weight: 600; }
footer.site .f-legal {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #6B6478;
  margin-top: 18px;
  line-height: 1.7;
}
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver-dim);
}
footer.site nav a:hover { color: var(--gold-bright); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pipeline-track::after { animation: none; left: 0; width: 100%; opacity: 0.35; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}