/* Logistics website: public pages (admin.css builds on this file) */
:root {
  --brand: #F26522;
  --brand-dark: color-mix(in srgb, var(--brand) 82%, #000);
  --ink: #15171c;
  --text: #3d4350;
  --muted: #6b7280;
  --line: #e7e5e4;
  --soft: #f7f5f2;
  --ok: #16803c;
  --bad: #c0261d;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --radius: 4px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 Barlow, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; color: var(--ink); line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mt { margin-top: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em; border: 2px solid var(--brand); border-radius: var(--radius);
  background: var(--brand); color: #fff; font: 600 1rem/1.2 Barlow, sans-serif;
  letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }
.btn-small { padding: .4em .9em; font-size: .875rem; }
.btn-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-outline, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover, .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.full { width: 100%; }
.row-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 1.75rem; }

/* Top bar and header */
.topbar { background: var(--ink); color: #c9ccd3; font-size: .875rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.topbar a { color: #c9ccd3; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-track { color: #fff !important; font-weight: 600; border-bottom: 2px solid var(--brand); }
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.logo-mark { flex: none; display: block; }
.logo-tile { fill: var(--brand); }
.logo-text { display: grid; line-height: 1; text-transform: uppercase; }
.logo-text b { font: 700 1.75rem/.86 var(--head); letter-spacing: .01em; }
.logo-text small { margin-top: 4px; font: 600 .66rem/1 Barlow, sans-serif; letter-spacing: .42em; color: var(--brand-dark); }
.nav nav { display: flex; align-items: center; gap: 34px; }
.nav nav a:not(.btn) { position: relative; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand); transition: right .2s; }
.nav nav a:not(.btn):hover::after, .nav nav a.on::after { right: 0; }
.menu-toggle, .menu-btn { display: none; }

/* Hero */
.hero {
  position: relative; display: flex; align-items: center; min-height: min(86vh, 760px); padding: 120px 0 160px; color: #fff;
  background: linear-gradient(90deg, rgba(12, 13, 16, .88) 0%, rgba(12, 13, 16, .62) 48%, rgba(12, 13, 16, .15) 100%), var(--img) center / cover no-repeat;
}
.hero .wrap > * { max-width: 680px; }
.hero h1 { color: #fff; }
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: #fff; }
.kicker::before { content: ""; width: 44px; height: 3px; background: var(--brand); }
.hero .lead { font-size: 1.2rem; color: #e5e7eb; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Tracking panel (overlaps the photo above it) */
.track-strip { position: relative; z-index: 2; margin-top: -72px; }
.track-panel {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center;
  padding: 34px 40px; background: #fff; border-top: 5px solid var(--brand); box-shadow: 0 24px 60px rgba(15, 17, 21, .14);
}
.track-panel h2 { font-size: 2rem; margin-bottom: .2em; }
.track-panel p { margin: 0; color: var(--muted); }
.track-box { display: flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.track-box input { flex: 1; min-width: 0; padding: 1em 1.1em; border: 0; font: 600 1.1rem Barlow, sans-serif; letter-spacing: .06em; text-transform: uppercase; outline: none; color: var(--ink); }
.track-box input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: #9ca3af; }
.track-box .btn { border-radius: 0; border: 0; padding-inline: 2.2em; font-size: 1.05rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding-top: 48px; }
.section.soft { background: var(--soft); }
.label { display: flex; align-items: center; gap: 12px; margin-bottom: .9rem; color: var(--brand-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; }
.label::before { content: ""; width: 30px; height: 3px; background: var(--brand); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.photo-stack { position: relative; padding: 0 60px 60px 0; }
.photo-stack::before { content: ""; position: absolute; left: -24px; top: -24px; width: 45%; height: 55%; background: var(--brand); }
.photo-stack img { position: relative; width: 100%; aspect-ratio: 7 / 8; object-fit: cover; }
.photo-small { position: absolute !important; right: 0; bottom: 0; width: 48% !important; aspect-ratio: 4 / 3 !important; border: 8px solid #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.points { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.points li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 12px; background: var(--brand); }
.points b { color: var(--ink); }
.call { display: grid; color: var(--ink); text-decoration: none; font: 700 1.5rem/1.1 var(--head); padding-left: 16px; border-left: 3px solid var(--brand); }
.call small { font: 500 .8rem Barlow, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head h2 { margin: 0; }
.section-head > p { margin: 0; color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { display: flex; flex-direction: column; background: #fff; color: inherit; text-decoration: none; border-bottom: 4px solid transparent; transition: border-color .2s, box-shadow .2s; }
.service:hover { border-color: var(--brand); box-shadow: 0 18px 40px rgba(15, 17, 21, .1); }
.service-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #ddd; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover .service-img img { transform: scale(1.05); }
.service-body { display: block; padding: 26px 28px 30px; }
.service h3 { margin-bottom: .4em; }
.service p { color: var(--muted); font-size: .98rem; }
.more { font-weight: 600; color: var(--brand-dark); }

.numbers { padding: 80px 0; color: #fff; background: linear-gradient(rgba(12, 13, 16, .82), rgba(12, 13, 16, .82)), var(--img) center / cover no-repeat fixed; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers-grid div { padding: 8px 28px; border-left: 1px solid rgba(255, 255, 255, .18); }
.numbers-grid div:first-child { border-left: 0; padding-left: 0; }
.numbers b { display: block; font: 700 3.4rem/1 var(--head); color: var(--brand); margin-bottom: 8px; }
.numbers span { color: #d1d5db; }

.how-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.how-wrap > div p { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 30px 30px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); display: block; font: 700 2.6rem/1 var(--head); color: var(--brand); margin-bottom: 14px; }
.steps b { display: block; font: 600 1.35rem/1.2 var(--head); color: var(--ink); margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .98rem; }

.cta { background: var(--brand); color: #fff; overflow: hidden; }
.cta-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.cta-in > div { padding: 72px 0; }
.cta h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); text-transform: uppercase; }
.cta p { font-size: 1.15rem; color: #fff; opacity: .92; max-width: 46ch; }
.cta img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; align-self: stretch; }

/* Inner-page banner */
.banner { padding: 96px 0 120px; color: #fff; background: linear-gradient(90deg, rgba(12, 13, 16, .9), rgba(12, 13, 16, .55)), var(--img) center / cover no-repeat; }
.banner h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: .25em; }
.banner .lead { color: #e5e7eb; font-size: 1.15rem; max-width: 60ch; margin: 0; }
.crumbs { display: flex; gap: 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: #d1d5db; margin-bottom: 1rem; }
.crumbs a { color: var(--brand); text-decoration: none; }
.banner + .section { padding-top: 72px; }

/* Notices and empty states */
.empty { padding: 48px 40px; text-align: center; background: var(--soft); border-top: 4px solid var(--line); }
.empty.warn { border-color: #f59e0b; }
.empty.ok { border-color: var(--ok); }
.notice { padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--soft); color: var(--ink); }
.notice.ok { border-color: var(--ok); background: #f0fdf4; }
.notice.warn { border-color: #f59e0b; background: #fffbeb; }
.card { background: #fff; border: 1px solid var(--line); padding: 28px; }

/* Status badges */
.badge { display: inline-block; padding: .3em .8em; border-radius: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: #e7e5e4; color: #44403c; }
.badge-picked_up, .badge-at_hub, .badge-in_transit, .badge-customs { background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand-dark); }
.badge-out_for_delivery { background: var(--brand); color: #fff; }
.badge-delivered { background: #dcfce7; color: #166534; }
.badge-on_hold { background: #fef3c7; color: #92400e; }
.badge-returned { background: #fee2e2; color: #991b1b; }

/* Tracking result */
.track-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.track-head .muted { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.tn { margin: 0; font-size: 2.6rem; letter-spacing: .04em; }
.track-head .badge { font-size: .95rem; padding: .5em 1.1em; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 40px; list-style: none; }
.progress li { position: relative; padding-top: 38px; text-align: center; font-weight: 600; color: var(--muted); }
.progress li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 4px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li span { position: absolute; top: 0; left: 50%; z-index: 1; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: #fff; border: 4px solid var(--line); }
.progress li.done, .progress li.now { color: var(--ink); }
.progress li.done::before, .progress li.now::before { background: var(--brand); }
.progress li.done span { background: var(--brand); border-color: var(--brand); }
.progress li.now span { border-color: var(--brand); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 22%, transparent); }
.track-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.map { height: 460px; border: 1px solid var(--line); z-index: 0; }
.legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg-origin { background: #fff; border: 3px solid var(--ink); }
.lg-current { background: var(--brand); }
.lg-dest { background: var(--ink); }
.timeline { list-style: none; padding: 0 0 0 26px; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 18px; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #cfcac4; }
.timeline li.latest::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent); }
.timeline b { color: var(--ink); display: block; font-size: 1.05rem; }
.timeline .loc { display: block; }
.timeline p { margin: .2em 0; color: var(--muted); }
.timeline time { font-size: .875rem; color: var(--muted); }
.details { position: sticky; top: 104px; padding: 30px; background: var(--ink); color: #c9ccd3; }
.details h3 { color: #fff; }
.details dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 18px; }
.details dt { color: #9ca3af; font-size: .9rem; }
.details dd { margin: 0; color: #fff; font-weight: 500; text-align: right; }
.details .muted { color: #9ca3af; }
.details .btn { margin-top: 6px; }
.details .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.details .btn-ghost:hover { background: var(--brand); border-color: var(--brand); }

/* Map markers (shared with admin) */
.pin { border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pin-origin { background: #fff; border: 4px solid var(--ink); }
.pin-dest { background: var(--ink); border: 4px solid #fff; }
.pin-current { background: var(--brand); border: 4px solid #fff; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 16px transparent; } }
.leaflet-container { font: inherit; }

/* Forms */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; padding: .8em .9em; border: 1px solid #d6d3d1; border-radius: var(--radius);
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.form .btn { justify-self: start; }
.form.card { border-top: 4px solid var(--brand); padding: 36px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.contact-panel { padding: 36px; background: var(--ink); color: #c9ccd3; }
.contact-panel h3 { color: #fff; }
.contact-panel dl { margin: 0 0 24px; }
.contact-panel dt { margin-top: 16px; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 600; }
.contact-panel dd { margin: 4px 0 0; color: #fff; font-size: 1.1rem; }
.contact-panel a { color: #fff; text-decoration: none; }
.contact-panel a.btn { margin-top: 8px; }

/* Footer */
.site-footer { padding: 80px 0 0; background: #101216; color: #a3a8b3; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.site-footer .logo { color: #fff; margin-bottom: 1.25rem; }
.site-footer .logo-text small { color: var(--brand); }
.site-footer p { max-width: 38ch; }
.site-footer h4 { color: #fff; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.site-footer a:not(.logo), .footer-grid > div > span { display: block; color: #a3a8b3; text-decoration: none; padding: .25em 0; }
.site-footer a:not(.logo):hover { color: var(--brand); }
.copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px 0; border-top: 1px solid #23262d; font-size: .875rem; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 1000; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

/* Smaller screens */
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr 1fr; }
  .how-wrap, .split, .section-head, .track-grid, .two { grid-template-columns: 1fr; gap: 40px; }
  .track-panel { grid-template-columns: 1fr; padding: 28px; gap: 18px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .numbers-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .details { position: static; }
  .photo-stack { max-width: 560px; margin-left: 24px; }
  .cta-in { grid-template-columns: 1fr; }
  .cta-in > div { padding: 64px 0 0; }
  .cta img { max-height: 320px; margin-bottom: 0; }
}
@media (max-width: 820px) {
  .topbar-info span, .topbar-info a + a { display: none; }
  .menu-btn { display: grid; gap: 5px; padding: 12px 4px; cursor: pointer; }
  .menu-btn span:not(.sr-only) { display: block; width: 26px; height: 2px; background: var(--ink); }
  .nav { flex-wrap: wrap; min-height: 68px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text b { font-size: 1.5rem; }
  .logo-text small { font-size: .58rem; letter-spacing: .36em; }
  .nav nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 18px; }
  .nav nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav nav a:not(.btn)::after { display: none; }
  .nav nav .btn { margin-top: 14px; }
  .menu-toggle:checked ~ nav { display: flex; }
  .hero { min-height: 0; padding: 88px 0 140px; background: linear-gradient(rgba(12, 13, 16, .72), rgba(12, 13, 16, .72)), var(--img) center / cover no-repeat; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .map { height: 340px; }
  .progress li { font-size: .78rem; }
  .steps { grid-template-columns: 1fr; }
  .numbers { background-attachment: scroll; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .services, .footer-grid { grid-template-columns: 1fr; }
  .track-box { flex-direction: column; border: 0; gap: 10px; }
  .track-box input { border: 2px solid var(--ink); border-radius: var(--radius); }
  .track-box .btn { border-radius: var(--radius); padding: 1em; }
  .photo-stack { padding: 0 0 48px; margin-left: 16px; }
  .photo-stack::before { left: -16px; top: -16px; }
  .numbers b { font-size: 2.6rem; }
  .numbers-grid div { padding: 0 0 0 16px; }
  .form.card, .contact-panel { padding: 24px; }
}
