/* =====================================================================
   VALUABLE LOGISTICS — CORE BRAND STYLESHEET
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,500;0,600;0,700;0,800;0,900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --ink:        #12201A;
  --evergreen:  #1F4D3A;
  --evergreen-2:#15362A;
  --evergreen-3:#2C6148;
  --snow:       #F4F1E9;
  --paper:      #FBFAF6;
  --tan:        #C9A876;
  --tan-pale:   #E8DCC2;
  --gold:       #AD8A3E;
  --charcoal:   #262B26;
  --muted:      #5B6359;
  --white:      #FFFFFF;
  --line:       #DAD4C3;
  --line-dark:  #2E3B33;

  /* Type */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Scale */
  --step-1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.35rem);
  --step2:  clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step3:  clamp(2rem, 1.6rem + 2vw, 2.75rem);
  --step4:  clamp(2.6rem, 2rem + 3vw, 3.9rem);

  --radius: 3px;
  --radius-lg: 6px;
  --container: 1180px;
  --gap: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-weight: 800; font-size: var(--step4); }
h2 { font-weight: 800; font-size: var(--step3); }
h3 { font-weight: 700; font-size: var(--step1); }

p { margin: 0 0 1em; max-width: 62ch; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 900px) {
  .container { padding: 0 2.5rem; }
}

section { padding: clamp(3rem, 6vw, 6.5rem) 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step0);
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: #C29F4F; }
.btn-gold:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-light:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-outline-dark:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.btn-block { width: 100%; justify-content: center; }

/* ---------------- Nav ---------------- */
.hiring-banner {
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.hiring-banner a { text-decoration: underline; text-underline-offset: 2px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 32, 26, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.hiring-banner + .site-nav { top: 34px; }

.nav-inner {
  display: block;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

@media (min-width: 640px) {
  .nav-inner { display: flex; align-items: center; height: 76px; padding-top: 0; padding-bottom: 0; }
  .nav-brand { font-size: 1.15rem; margin-right: 1.5rem; margin-bottom: 0; flex: none; }
}
.nav-brand .mark {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 1px;
  flex: none;
  margin-right: 0.6rem;
}

/* Tabs are always visible across the top, on every screen size — no
   hamburger, no dropdown. On narrow viewports the tab strip is its own
   full-width block below the brand name, so it's never squeezed by
   flex sharing space with the brand and Apply button. */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}
.nav-links::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
  .nav-links { flex: 1 1 auto; min-width: 0; width: auto; }
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, color 0.15s ease;
  padding: 0.5rem 0.6rem;
  margin-right: 0.25rem;
  border-radius: var(--radius);
  white-space: nowrap;
  flex: none;
}
a.nav-active-link,
.nav-links a.active,
.nav-links a.active:hover {
  background-color: var(--gold) !important;
  color: var(--ink) !important;
}
.nav-links a:hover:not(.active) { background: rgba(255,255,255,0.1); color: var(--white); }

.nav-cta { display: inline-block; margin-top: 0.6rem; white-space: nowrap; }
@media (min-width: 640px) {
  .nav-cta { flex: none; margin-left: 0.6rem; margin-top: 0; }
}

@media (min-width: 640px) {
  .nav-links a { font-size: 0.95rem; padding: 0.6rem 0.9rem; margin-right: 0.4rem; }
}

/* ---------------- Badge ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink);
  background: var(--gold);
  padding: 0.45em 0.9em;
  border-radius: 999px;
}
.badge .dot {
  width: 7px; height: 7px;
  background: var(--ink);
  border-radius: 50%;
  flex: none;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--ink) 0%, var(--evergreen-2) 55%, var(--evergreen) 100%);
  color: var(--white);
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem);
}
.hero > .container { position: relative; z-index: 2; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.hero-grid > * { width: 100%; }
.hero-grid > *:first-child { margin-bottom: 2.5rem; }

@media (min-width: 980px) {
  .hero-grid { flex-wrap: nowrap; }
  .hero-grid > *:first-child { width: 58%; margin-bottom: 0; margin-right: 3rem; }
  .hero-grid > *:last-child { width: 42%; }
}

.hero-eyebrow {
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.3rem;
  font-size: clamp(2.6rem, 2rem + 4vw, 4.6rem);
  max-width: 16ch;
}

.hero-sub {
  font-size: var(--step1);
  color: rgba(255,255,255,0.86);
  max-width: 48ch;
  margin-bottom: 0.5rem;
}

.hero-meta-line {
  font-size: var(--step0);
  color: rgba(255,255,255,0.62);
  margin-bottom: 2.2rem;
}
.hero-meta-line span { margin-right: 0.3em; }

.hero-actions { display: flex; flex-wrap: wrap; margin: -0.3rem; }
.hero-actions > * { margin: 0.3rem; }

/* Legacy hero-card / hero-stat rules kept only for pages that still
   reference them structurally; visually superseded by the rebuilt
   hero above, which no longer uses a boxed stat sidebar. */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  z-index: 2;
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hero-card-row:last-child { border-bottom: none; }
.hero-card-row .k { color: rgba(255,255,255,0.65); font-size: var(--step-1); }
.hero-card-row .v { font-family: var(--font-display); font-weight: 700; color: var(--white); text-align: right; }

/* ---------------- Section heads ---------------- */
.section-head {
  max-width: 54ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head .kicker {
  font-weight: 600;
  color: var(--evergreen-3);
  font-size: var(--step-1);
  margin-bottom: 0.6rem;
}
.section-on-dark .section-head .kicker { color: var(--gold); }
.section-on-dark .section-head h2 { color: var(--white); }
.section-on-dark p { color: rgba(255,255,255,0.78); }

/* ---------------- Cards ---------------- */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -0.625rem;
}
.card-grid > * {
  flex: 1 1 240px;
  margin: 0.625rem;
  min-width: 0;
}
.card-grid--3up > * { flex-basis: 320px; }

.benefit-card {
  border-top: 3px solid var(--evergreen);
  padding: 1.5rem 0 0;
}
.benefit-card .icon {
  width: 28px; height: 28px;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.benefit-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }

.tool-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tool-card h3 { color: var(--white); margin-bottom: 0.5rem; }
.tool-card p { color: rgba(255,255,255,0.72); font-size: 0.95rem; flex: 1; }
.tool-card .btn { margin-top: 1rem; align-self: flex-start; }

.resource-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.resource-card .icon {
  width: 38px; height: 38px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.resource-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.resource-card p { font-size: 0.93rem; color: var(--muted); flex: 1; }
.resource-card .resource-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--evergreen);
  font-size: 0.92rem;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.resource-card .resource-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.resource-card:hover .resource-link svg { transform: translateX(3px); }

/* ---------------- Team ---------------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -0.625rem;
  max-width: 660px;
}
.team-grid > * {
  flex: 1 1 180px;
  margin: 0.625rem;
}
.team-member {
  border-top: 3px solid var(--gold);
  padding-top: 1rem;
}
.team-member .name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.team-member .title { color: var(--muted); font-size: 0.92rem; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid > * { width: 100%; margin-bottom: 2.5rem; }
.footer-grid > *:last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .footer-grid > * { margin-bottom: 0; }
  .footer-grid > *:first-child { width: 45%; padding-right: 1.5rem; }
  .footer-grid > *:nth-child(2) { width: 27.5%; }
  .footer-grid > *:nth-child(3) { width: 27.5%; }
}
.footer-brand { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.15rem; margin-bottom: 0.75rem; }
.footer-tagline { max-width: 36ch; color: rgba(255,255,255,0.62); font-size: 0.93rem; }
.footer-col h4 { font-family: var(--font-display); color: var(--white); font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.68); padding: 0.4rem 0; font-size: 0.93rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom span { margin-right: 1rem; }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.on-dark { background: var(--ink); color: var(--white); }
.on-dark h2 { color: var(--white); }
.on-evergreen { background: var(--evergreen); color: var(--white); }
.on-evergreen h2 { color: var(--white); }
.on-snow { background: var(--snow); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

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

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

/* ---------------- Job posting page ---------------- */
.job-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem -0.3rem;
}
.job-meta span {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--tan-pale);
  color: var(--evergreen-2);
  padding: 0.35em 0.8em;
  border-radius: 999px;
  margin: 0.3rem;
}
.job-body h3 {
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
  color: var(--evergreen-2);
}
.job-body ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.job-body li { margin-bottom: 0.5rem; max-width: 62ch; }
.job-cta-band {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--evergreen);
  border-radius: var(--radius-lg);
  color: var(--white);
  text-align: center;
}
.job-cta-band h3 { color: var(--white); margin-bottom: 1rem; }

/* ---------------- Contact form ---------------- */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
}
.contact-grid > * { width: 100%; margin-bottom: 2.5rem; }
.contact-grid > *:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .contact-grid { align-items: flex-start; }
  .contact-grid > * { width: calc(50% - 1.25rem); margin-bottom: 0; }
  .contact-grid > *:first-child { margin-right: 2.5rem; }
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--evergreen);
}
.contact-info-card {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-info-row { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .k { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.contact-info-row .v { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
