/* ==========================================================================
   City Logistics — site styles
   Palette and forms are drawn from the logo: rich black, signal red, dock grey.
   ========================================================================== */

:root {
  --ink: #231f20;
  --ink-deep: #161415;
  --signal: #ed1f24;
  --signal-dark: #bd1116;
  --paper: #ffffff;
  --concrete: #eceae6;
  --concrete-dark: #d9d5cf;
  --steel: #6e7378;
  --steel-light: #9a9ea2;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 64ch;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.9rem, 1.35rem + 2.4vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.4vw, 4.15rem);
}

/* --- reset ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.021em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  z-index: 50;
}
.skip:focus { left: 0; }

/* --- layout --------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.25rem, 7vw, 5.75rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--concrete { background: var(--concrete); }
.band--ink { background: var(--ink); color: var(--paper); }

.prose { max-width: var(--measure); }

/* Red bar lifted from the underline in the logo. Used to open a section. */
.mark {
  display: block;
  width: 60px;
  height: 6px;
  background: var(--signal);
  margin-bottom: 1.35rem;
}

.section-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p {
  max-width: 54ch;
  margin-top: 0.9rem;
  color: var(--steel);
}
.band--ink .section-head p { color: #b9bcbf; }

/* --- header --------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  padding-block: 0.85rem;
}

.brand { display: inline-block; line-height: 0; }
.brand img { width: clamp(148px, 20vw, 208px); }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.1rem); }

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding-block: 0.35rem;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--signal); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav__call {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  border-bottom: none !important;
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 1rem;
}
.nav__call:hover { background: var(--signal); }

.nav-toggle {
  display: none;
  background: var(--ink);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--signal); border-color: var(--signal); }

.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.band--ink .btn--outline { color: #fff; border-color: #fff; }
.band--ink .btn--outline:hover { background: #fff; color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  background: var(--concrete);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--step-4);
  max-width: 14ch;
}

.hero__lede {
  max-width: 46ch;
  margin-top: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: #3c3a3b;
}

.hero .mark { animation: draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes draw {
  from { width: 0; }
  to { width: 60px; }
}

/* Load ticket: the one showy element on the page, modelled on a freight bill. */
.ticket {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 rgba(35, 31, 32, 0.14);
}

.ticket__head {
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.ticket__head strong {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.ticket__head span {
  font-size: var(--step--1);
  color: var(--steel-light);
  font-variant-numeric: tabular-nums;
}

.ticket__body { padding: 0.4rem 1.25rem 1.25rem; }

.ticket__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px dashed var(--concrete-dark);
  align-items: baseline;
}
.ticket__row:last-of-type { border-bottom: 0; }

.ticket__row dt {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  font-weight: 600;
}
.ticket__row dd {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.ticket__row dd small {
  display: block;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--steel);
  letter-spacing: 0;
}

.ticket__stamp {
  margin: 0 1.25rem 1.25rem;
  border-top: 3px solid var(--signal);
  padding-top: 0.8rem;
  font-size: var(--step--1);
  color: var(--steel);
}

/* --- manifest (services) -------------------------------------------------- */

.manifest { border-top: 4px solid var(--ink); }

.manifest__row {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) minmax(0, 13rem);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--concrete-dark);
  align-items: start;
}

.manifest__row h3 {
  font-size: var(--step-1);
  position: relative;
  padding-left: 1.15rem;
}
.manifest__row h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 5px;
  height: 0.85em;
  background: var(--signal);
}

.manifest__row p { color: #3c3a3b; }

.manifest__note {
  font-size: var(--step--1);
  color: var(--steel);
  line-height: 1.5;
}
.manifest__note b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* --- lanes ---------------------------------------------------------------- */

.lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  margin: 0;
  border-top: 3px solid rgba(255, 255, 255, 0.3);
}

.lane {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.lane__pair {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
}
.lane__pair i {
  font-style: normal;
  color: var(--signal);
  padding-inline: 0.35rem;
  font-size: 1.2em;
  line-height: 1;
}
.lane__freq {
  font-size: var(--step--1);
  color: #b9bcbf;
  white-space: nowrap;
}

/* --- proof strip ---------------------------------------------------------- */

.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.proof__item { border-left: 5px solid var(--signal); padding-left: 1.2rem; }
.proof__item h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.proof__item p { color: #4a4849; font-size: 1rem; }
.band--ink .proof__item p { color: #b9bcbf; }

/* --- timeline (about) ----------------------------------------------------- */

.timeline { border-left: 4px solid var(--concrete-dark); margin: 0; padding: 0; }

.timeline__item {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: 0 0 2.1rem 1.75rem;
  position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0.45rem;
  width: 20px;
  height: 20px;
  background: var(--signal);
}

.timeline__year {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.timeline__item h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.timeline__item p { color: #3c3a3b; }

/* --- split (about / contact) ---------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

.panel {
  background: var(--concrete);
  border-top: 6px solid var(--signal);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.panel h3 { font-size: var(--step-1); margin-bottom: 0.8rem; }
.panel p { color: #3c3a3b; }

.values { display: grid; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.values h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35rem;
  border-top: 3px solid var(--ink);
  padding-top: 0.7rem;
}
.values p { color: #3c3a3b; }

/* --- contact details ------------------------------------------------------ */

.details { margin: 0; border-top: 4px solid var(--ink); }

.details__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--concrete-dark);
  align-items: baseline;
}
.details__row dt {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  font-weight: 600;
}
.details__row dd { margin: 0; }
.details__row dd a {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
  text-decoration: none;
  border-bottom: 3px solid var(--signal);
}
.details__row dd a:hover { background: var(--signal); color: #fff; }
.details__row dd address {
  font-style: normal;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.35;
}
.details__row dd small {
  display: block;
  font-size: var(--step--1);
  color: var(--steel);
  margin-top: 0.3rem;
}

/* --- form ----------------------------------------------------------------- */

.form { display: grid; gap: 1.15rem; }

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 0.7rem 0.85rem;
  width: 100%;
  border-radius: 0;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--signal); outline-offset: 1px; }

.field-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.15rem;
}

.form__note { font-size: var(--step--1); color: var(--steel); }

/* --- callout / cta -------------------------------------------------------- */

.cta__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta__grid h2 { font-size: var(--step-3); max-width: 18ch; }

/* --- footer --------------------------------------------------------------- */

.footer { background: var(--ink-deep); color: #c6c9cb; padding-block: clamp(2.75rem, 5vw, 4rem); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer img { width: 200px; margin-bottom: 1.1rem; }
.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; border-bottom: 2px solid var(--signal); }
.footer address { font-style: normal; line-height: 1.55; }

.footer__base {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--step--1);
  color: var(--steel-light);
}

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .hero__grid,
  .split,
  .split--wide-left { grid-template-columns: minmax(0, 1fr); }

  .manifest__row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .manifest__note { border-left: 3px solid var(--concrete-dark); padding-left: 0.9rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 4px solid var(--ink);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.85rem; border-bottom: 1px solid var(--concrete-dark); }
  .nav a:hover { border-bottom-color: var(--concrete-dark); }
  .nav a[aria-current="page"] { color: var(--signal); }
  .nav__call { margin-top: 0.9rem; text-align: center; }

  .masthead__inner { position: relative; }

  .ticket__row,
  .details__row { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }

  .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .lane { flex-wrap: wrap; gap: 0.15rem 1rem; }
}

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