/* Haulora logistics website: public pages (admin pages load this file first, then admin.css) */
:root {
  --brand: #0F9D7A;
  --brand-dark: color-mix(in srgb, var(--brand) 78%, #062b22);
  --brand-soft: color-mix(in srgb, var(--brand) 11%, #fff);
  --ink: #0B2545;
  --text: #33415c;
  --muted: #6b7a90;
  --line: #e3e9ef;
  --soft: #f2f7f6;
  --amber: #F5B83D;
  --ok: #138a5b;
  --bad: #c2362b;
  --head: Sora, "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 12px 32px rgba(11, 37, 69, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16.5px/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: #fff; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 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.5em; border: 0; border-radius: 12px; background: var(--brand); color: #fff;
  font: 700 .98rem/1.2 "DM Sans", sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-pill { border-radius: 999px; padding: .7em 1.35em; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #e9a721; }
.btn-small { padding: .45em .9em; font-size: .85rem; border-radius: 9px; }
.btn-ghost, .btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover, .btn-outline:hover { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-danger { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.full { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { flex: none; display: block; }
.logo-tile { fill: var(--brand); }
.logo-dot { fill: var(--amber); }
.logo-text { font: 700 1.3rem/1 var(--head); letter-spacing: -0.03em; white-space: nowrap; }
.logo-text span { font-weight: 600; color: var(--brand); }
.nav nav { display: flex; align-items: center; gap: 6px; }
.nav nav a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav nav a:not(.btn):hover { background: var(--soft); color: var(--ink); }
.nav nav a.on { background: var(--brand-soft); color: var(--brand-dark); }
.nav nav .btn { margin-left: 10px; }
.menu-toggle, .menu-btn { display: none; }

/* Hero */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; font-weight: 500; color: var(--ink); margin-bottom: 22px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hero .lead { font-size: 1.13rem; color: var(--muted); max-width: 54ch; margin-bottom: 28px; }
.track-pill { display: flex; gap: 6px; max-width: 520px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.track-pill input { flex: 1; min-width: 0; border: 0; outline: none; padding: .7em 1.1em; font: 500 1rem "DM Sans", sans-serif; color: var(--ink); background: transparent; text-transform: uppercase; letter-spacing: .04em; }
.track-pill input::placeholder { text-transform: none; letter-spacing: 0; color: #93a1b3; font-weight: 400; }
.track-pill .btn { border-radius: 999px; padding-inline: 1.6em; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--ink); font-size: .93rem; font-weight: 500; }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.4' fill='none' stroke='%230F9D7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.hero-visual { position: relative; }
.hero-img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.float { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(11, 37, 69, .16); }
.float-status { left: -28px; bottom: 54px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; }
.float-status b { display: block; color: var(--ink); font-size: .98rem; }
.float-status small { color: var(--muted); font-size: .82rem; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 80%, 100% { box-shadow: 0 0 0 12px transparent; } }
.float-stat { right: -18px; top: 40px; padding: 16px 20px; background: var(--ink); color: #fff; }
.float-stat b { display: block; font: 700 1.7rem/1 var(--head); color: var(--amber); }
.float-stat small { color: #c7d3e3; font-size: .82rem; }

/* Stats bar */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -36px; position: relative; padding: 26px 10px; border-radius: 20px; background: var(--ink); color: #c7d3e3; box-shadow: var(--shadow); }
.statbar div { padding: 4px 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.statbar div:first-child { border-left: 0; }
.statbar b { display: block; font: 700 1.9rem/1.1 var(--head); color: #fff; margin-bottom: 4px; }
.statbar span { font-size: .92rem; }

/* Sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.tint { background: var(--soft); }
.section.tight { padding-top: 40px; }
.eyebrow { margin: 0 0 10px; color: var(--brand-dark); font-weight: 700; font-size: .9rem; letter-spacing: .02em; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.head-row h2 { margin: 0; max-width: 18ch; }
.center-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.offer { display: grid; grid-template-columns: 210px 1fr; overflow: hidden; border-radius: 20px; background: #fff; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.offer:hover { box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow); transform: translateY(-2px); }
.offer img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; }
.offer-body { display: flex; flex-direction: column; padding: 22px 24px; }
.offer-n { font: 700 .85rem var(--head); color: var(--brand); margin-bottom: 6px; }
.offer p { color: var(--muted); font-size: .96rem; flex: 1; }
.offer-go { font-weight: 700; color: var(--brand-dark); font-size: .92rem; }

.why { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.why-photos { position: relative; padding: 0 0 70px 0; }
.wp-a { width: 78%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.wp-b { position: absolute; right: 0; bottom: 0; width: 56%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 20px; border: 6px solid var(--soft); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.why-grid div { padding: 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.why-grid b { display: block; color: var(--ink); margin-bottom: 4px; }
.why-grid span { color: var(--muted); font-size: .93rem; }

.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; border-top: 2px dashed color-mix(in srgb, var(--brand) 35%, transparent); }
.process li { position: relative; text-align: center; padding: 0 8px; }
.process span { position: relative; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1.2rem var(--head); box-shadow: 0 0 0 8px #fff; }
.process b { display: block; font-family: var(--head); color: var(--ink); margin-bottom: 6px; }
.process p { color: var(--muted); font-size: .94rem; margin: 0; }

.sectors { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.sectors li { padding: 12px 22px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; color: var(--ink); }

.cta { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding: 48px; border-radius: 28px; background: var(--ink) radial-gradient(600px 300px at 0% 0%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%); color: #c7d3e3; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.cta-call { color: #fff; font-weight: 500; }
.cta img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }

/* Inner page heading */
.pagehead { padding: 48px 0; background: var(--soft); }
.pagehead-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.pagehead h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .3em; }
.pagehead .lead { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--brand-dark); text-decoration: none; font-weight: 500; }
.pagehead-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 22px; }

/* Tracking */
.track-strip { margin-top: -28px; position: relative; z-index: 2; }
.track-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; padding: 22px 26px; border-radius: 20px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.track-panel h2 { font-size: 1.3rem; margin: 0 0 2px; }
.track-panel p { margin: 0; color: var(--muted); }
.track-box { display: flex; gap: 6px; padding: 5px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.track-box input { flex: 1; min-width: 0; border: 0; outline: none; padding: .7em 1em; font: 500 1rem "DM Sans", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: transparent; }
.track-box input::placeholder { text-transform: none; letter-spacing: 0; color: #93a1b3; }
.track-box .btn { border-radius: 999px; }
.empty { padding: 44px 36px; text-align: center; border-radius: 20px; background: var(--soft); }
.empty.warn { background: #fff8e8; }
.empty.ok { background: #ecf8f2; }
.notice { padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); }
.notice.ok { background: #ecf8f2; }
.notice.warn { background: #fff8e8; }
.card { background: #fff; border-radius: 18px; padding: 26px; box-shadow: inset 0 0 0 1px var(--line); }

.badge { display: inline-block; padding: .35em .9em; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: #eef1f5; color: #4a5568; }
.badge-picked_up, .badge-at_hub, .badge-in_transit, .badge-customs { background: var(--brand-soft); color: var(--brand-dark); }
.badge-out_for_delivery { background: #fff3d6; color: #8a5a00; }
.badge-delivered { background: #dcf5e8; color: #0d6b45; }
.badge-on_hold { background: #fff3d6; color: #8a5a00; }
.badge-returned { background: #fde4e1; color: #9b2a20; }

.track-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 12px 0 26px; }
.track-head .muted { font-size: .9rem; }
.tn { margin: 0; font-size: 2.1rem; letter-spacing: .02em; }
.track-head .badge { font-size: .95rem; padding: .5em 1.1em; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.progress li { padding: 14px 16px 14px 44px; position: relative; border-radius: 14px; background: var(--soft); color: var(--muted); font-weight: 500; font-size: .95rem; }
.progress li span { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid #c2cdd8; background: #fff; }
.progress li.done { background: var(--brand-soft); color: var(--brand-dark); }
.progress li.done span { border-color: var(--brand); background: var(--brand); }
.progress li.now { background: var(--brand); color: #fff; }
.progress li.now span { border-color: #fff; background: var(--amber); }
.track-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.map { height: 440px; border-radius: 20px; overflow: hidden; z-index: 0; box-shadow: inset 0 0 0 1px var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; 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(--amber); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { position: relative; padding: 14px 18px 14px 46px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.timeline li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: #c2cdd8; }
.timeline li.latest { box-shadow: inset 0 0 0 1.5px var(--brand); }
.timeline li.latest::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline b { display: block; color: var(--ink); }
.timeline .loc { display: block; }
.timeline p { margin: .2em 0; color: var(--muted); }
.timeline time { font-size: .86rem; color: var(--muted); }
.details { position: sticky; top: 96px; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 0 0 22px; }
.details h3 { margin: 0; padding: 18px 22px; background: var(--brand); color: #fff; }
.details dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 18px 22px; }
.details dt { color: var(--muted); font-size: .9rem; }
.details dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }
.details > p, .details > .btn { margin-left: 22px; margin-right: 22px; }
.details > .btn { width: calc(100% - 44px); }
.parcel-photo { display: block; background: #0B2545; }
.parcel-photo img { width: 100%; max-height: 260px; object-fit: cover; }

.pin { border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.pin-origin { background: #fff; border: 4px solid var(--ink); }
.pin-dest { background: var(--amber); 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: .93rem; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; padding: .8em .95em; border: 1.5px solid var(--line); border-radius: 12px; 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 4px var(--brand-soft); }
.form .btn { justify-self: start; }
.form.card { padding: 32px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.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: 36px; align-items: start; }
.contact-panel { padding: 28px; border-radius: 20px; background: var(--soft); }
.contact-panel h3 { margin-bottom: 8px; }
.contact-panel dl { margin: 0 0 22px; }
.contact-panel dt { margin-top: 14px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.contact-panel dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.contact-panel a:not(.btn) { color: var(--ink); text-decoration: none; }

/* Footer */
.site-footer { margin-top: 0; background: var(--ink); color: #9fb0c5; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding: 72px 0 48px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo-text span { color: var(--amber); }
.footer-about p { max-width: 40ch; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-top a:not(.logo), .footer-top > div > span { display: block; padding: .25em 0; color: #9fb0c5; text-decoration: none; font-size: .95rem; }
.footer-top a:not(.logo):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.footer-bottom a { color: var(--amber); text-decoration: none; font-weight: 500; }
.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) {
  .hero-grid, .why, .track-grid, .two, .pagehead-in, .cta { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .float-status { left: 12px; }
  .float-stat { right: 12px; }
  .offers { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr 1fr; gap: 18px 0; margin-top: 24px; }
  .statbar div:nth-child(3) { border-left: 0; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .details { position: static; }
  .track-panel { grid-template-columns: 1fr; }
  .pagehead-img { max-height: 240px; }
  .cta { padding: 32px; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; gap: 6px; padding: 12px 4px; cursor: pointer; }
  .menu-btn span:not(.sr-only) { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); }
  .nav { flex-wrap: wrap; min-height: 66px; }
  .nav nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 16px; }
  .nav nav .btn { margin: 10px 0 0; }
  .menu-toggle:checked ~ nav { display: flex; }
  .row2, .row3, .why-grid { grid-template-columns: 1fr; }
  .progress { grid-template-columns: 1fr 1fr; }
  .map { height: 340px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 32px; }
  .offer { grid-template-columns: 1fr; }
  .offer img { min-height: 0; aspect-ratio: 16 / 9; }
  .process, .footer-top { grid-template-columns: 1fr; }
  .statbar div { padding: 4px 16px; }
  .statbar b { font-size: 1.5rem; }
  .track-pill, .track-box { border-radius: 16px; flex-direction: column; }
  .track-pill .btn, .track-box .btn { border-radius: 12px; }
  .form.card, .contact-panel { padding: 22px; }
}

/* Demo mode bar (only shown when config.php turns demo mode on) */
.demo-bar { background: var(--ink); color: #fff; font-size: 14px; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.demo-bar a { color: var(--amber); font-weight: 700; }
.demo-bar .demo-flash { margin: 0; padding-top: 0; color: #ffe7a8; }
