/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --navy: #0e2a3d;
  --navy-light: #16384f;
  --sand: #e8dfd0;
  --rust: #c4602a;
  --rust-dark: #a34e20;
  --off-white: #faf8f4;
  --charcoal: #1a1a1a;
  --steel: #4a7a94;
  --line: rgba(14, 42, 61, 0.15);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Source Serif 4', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  font-size: 17px;
}

h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

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

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

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

/* =========================================================
   Header / Manifest-stub nav
   ========================================================= */
.site-header {
  background: var(--navy);
  color: var(--sand);
  border-bottom: 3px solid var(--rust);
}

.manifest-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.65;
  border-bottom: 1px solid rgba(232, 223, 208, 0.12);
}

.manifest-strip .route {
  display: flex;
  gap: 18px;
}

.manifest-strip .route span:not(:last-child)::after {
  content: '—';
  margin-left: 18px;
  opacity: 0.5;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--off-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--rust);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rust);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--sand);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--off-white);
  border-color: var(--rust);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--rust);
  color: var(--off-white);
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--rust-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sand);
  color: var(--sand);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--rust);
  color: var(--off-white);
}
.btn-primary:hover {
  background: var(--rust-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--off-white);
}

.btn-outline.on-dark {
  border-color: var(--sand);
  color: var(--sand);
}
.btn-outline.on-dark:hover {
  background: var(--sand);
  color: var(--navy);
}

/* =========================================================
   Route divider (signature structural device)
   ========================================================= */
.route-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 48px 0;
}

.route-divider .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rust);
  flex-shrink: 0;
}

.route-divider .line {
  flex: 1;
  height: 0;
  border-top: 2px dashed var(--line);
}

.route-divider .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--navy);
  color: var(--off-white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  color: var(--off-white);
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero p.lede {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--sand);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Route animation */
.route-anim {
  position: relative;
  height: 320px;
  border: 1px solid rgba(232, 223, 208, 0.15);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--navy-light);
}

.route-anim .anim-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
}

.route-anim svg {
  width: 100%;
  height: 200px;
}

.route-path {
  stroke: rgba(232, 223, 208, 0.25);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  fill: none;
}

.route-port {
  fill: var(--rust);
}

.route-port-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--sand);
  letter-spacing: 0.1em;
}

.route-mover {
  fill: var(--off-white);
}

@keyframes travel {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}

.route-mover-group {
  offset-path: path('M 30 100 C 150 20, 350 180, 470 100');
  animation: travel 6s linear infinite;
}

.route-stats {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed rgba(232, 223, 208, 0.15);
}

.route-stats .stat-num {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--off-white);
}

.route-stats .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

/* =========================================================
   Sections / generic
   ========================================================= */
.section {
  padding: 80px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--steel);
  font-size: 17px;
}

.bg-navy {
  background: var(--navy);
  color: var(--off-white);
}
.bg-navy h2,
.bg-navy h3 {
  color: var(--off-white);
}
.bg-navy .section-head p {
  color: var(--sand);
  opacity: 0.85;
}
.bg-sand {
  background: var(--sand);
}

/* =========================================================
   Services grid
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--off-white);
  padding: 32px 28px 36px;
  border-radius: 12px;
  text-align: center;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.service-card:hover {
  background: #fff;
  box-shadow: 0 12px 28px rgba(14, 42, 61, 0.1);
  transform: translateY(-3px);
}

.service-card .code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--steel);
  font-size: 15px;
  margin: 0 0 16px;
}

.service-card a.more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--rust);
  padding-bottom: 2px;
}

/* Photo thumbnail inside a service card — browser-chrome framed,
   with a soft decorative arc behind it, matching the reference look */
.service-card .service-photo-frame {
  position: relative;
  margin: 0 auto 24px;
  max-width: 340px;
}

.service-card .service-photo-frame::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  height: 70px;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 122, 148, 0.16),
    rgba(74, 122, 148, 0)
  );
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 0;
}

.service-card .browser-chrome {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(14, 42, 61, 0.08);
}

.service-card .browser-chrome .chrome-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #fff;
}

.service-card .browser-chrome .chrome-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.service-card .browser-chrome .chrome-bar span:nth-child(1) {
  background: #4a7a94;
}
.service-card .browser-chrome .chrome-bar span:nth-child(2) {
  background: var(--rust);
}
.service-card .browser-chrome .chrome-bar span:nth-child(3) {
  background: #6b9e6e;
}

.service-card .browser-chrome .chrome-bar .chrome-line {
  flex: 1;
  height: 8px;
  background: var(--sand);
  border-radius: 4px;
  margin-left: 8px;
}

.service-card .service-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}

/* =========================================================
   Stats band
   ========================================================= */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(232, 223, 208, 0.15);
  border-bottom: 1px solid rgba(232, 223, 208, 0.15);
}

.stat-block {
  padding: 36px 24px;
  border-right: 1px solid rgba(232, 223, 208, 0.15);
}
.stat-block:last-child {
  border-right: none;
}

.stat-block .num {
  font-family: var(--font-mono);
  font-size: 36px;
  color: var(--rust);
  margin-bottom: 6px;
}

.stat-block .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.8;
}

/* Stats band sitting on a light (sand) background needs dark text —
   the default .stat-block .label color above (--sand) is meant for
   a dark navy background and is invisible here otherwise. */
.bg-sand .stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bg-sand .stat-block {
  border-right: 1px solid var(--line);
}
.bg-sand .stat-block:last-child {
  border-right: none;
}
.bg-sand .stat-block .num {
  color: var(--rust);
}
.bg-sand .stat-block .label {
  color: var(--navy);
  opacity: 1;
}

/* =========================================================
   Locations
   ========================================================= */
.location-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.location-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.location-row .code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--rust);
  font-weight: 600;
}

.location-row h4 {
  font-size: 18px;
}

.location-row .meta {
  font-size: 14px;
  color: var(--steel);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: var(--sand);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
}

.footer-grid p {
  color: var(--sand);
  opacity: 0.75;
  font-size: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--sand);
  opacity: 0.85;
  font-size: 15px;
  transition: opacity 0.2s;
}
.footer-links a:hover {
  opacity: 1;
  color: var(--off-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 223, 208, 0.12);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--steel);
}

/* =========================================================
   Page header (non-home pages)
   ========================================================= */
.page-header {
  background: var(--navy);
  color: var(--off-white);
  padding: 64px 0 48px;
}

.page-header h1 {
  color: var(--off-white);
  font-size: clamp(32px, 5vw, 52px);
}

.page-header .eyebrow {
  margin-bottom: 12px;
}

/* =========================================================
   Forms
   ========================================================= */
.form-shell {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
}

.form-section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.form-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.form-row.full {
  grid-template-columns: 1fr;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

.field label .req {
  color: var(--rust);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--off-white);
  color: var(--charcoal);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
  border-color: var(--rust);
}

.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  margin: 0;
  cursor: pointer;
}

.radio-group input {
  width: auto;
}

.file-drop {
  border: 1px dashed var(--steel);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--steel);
  font-size: 14px;
  background: var(--off-white);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.file-drop:hover,
.file-drop.dragover {
  border-color: var(--rust);
  background: #fff;
}

.file-drop input[type='file'] {
  display: none;
}

.file-drop .hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.7;
}

.file-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--navy);
  margin-top: 8px;
}

.cargo-block {
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 16px;
  background: var(--off-white);
  position: relative;
}

.cargo-block h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}

.cargo-block .remove-cargo {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.add-cargo-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: 1px dashed var(--steel);
  color: var(--navy);
  padding: 14px;
  width: 100%;
  cursor: pointer;
  border-radius: var(--radius);
  margin-bottom: 32px;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.add-cargo-btn:hover {
  border-color: var(--rust);
  color: var(--rust);
}

.conditional {
  display: none;
}
.conditional.active {
  display: block;
}

.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(74, 122, 148, 0.12);
  color: var(--navy);
  border: 1px solid var(--steel);
}
.form-status.error {
  display: block;
  background: rgba(196, 96, 42, 0.1);
  color: var(--rust-dark);
  border: 1px solid var(--rust);
}

/* =========================================================
   About / Team / Contact extras
   ========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.timeline {
  border-left: 2px dashed var(--line);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item .year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--rust);
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-size: 18px;
  margin-bottom: 6px;
}
.timeline-item p {
  color: var(--steel);
  font-size: 15px;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}

.contact-info-block {
  margin-bottom: 28px;
}

.contact-info-block h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 8px;
}

.contact-info-block p {
  margin: 0;
  color: var(--charcoal);
}
.contact-info-block .meta {
  color: var(--steel);
  font-size: 14px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-block;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-block:nth-child(2) {
    border-right: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .form-row,
  .form-row.cols-3 {
    grid-template-columns: 1fr;
  }
  .location-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .manifest-strip {
    font-size: 10px;
  }
  .manifest-strip .route {
    gap: 10px;
  }
  .manifest-strip .route span:not(:last-child)::after {
    margin-left: 10px;
  }
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 24px;
  gap: 18px;
  border-bottom: 3px solid var(--rust);
  z-index: 50;
}

.navbar {
  position: relative;
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.split-media {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}
.split-media .split-text {
  flex: 1 1 380px;
  min-width: 0;
}
.split-media .split-img-wrap {
  position: relative;
  flex: none;
  width: 240px;
  aspect-ratio: 1/1;
}
.split-media .split-img-wrap::before {
  content: '';
  position: absolute;
  inset: 6%;
  background: radial-gradient(
    circle,
    rgba(196, 96, 42, 0.16),
    rgba(196, 96, 42, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}
.split-media .split-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.split-media.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 760px) {
  .split-media {
    flex-direction: column !important;
    align-items: center;
    gap: 24px;
    text-align: left;
  }
  .split-media .split-img-wrap {
    width: 180px;
  }
  .split-media .split-text {
    width: 100%;
  }
}
