/* =========================================================
   Cargo Trackings — design tokens
   A logistics/manifest aesthetic: ink navy + paper white,
   with a stamped amber accent and a quiet teal for "verified"
   states. The signature element is the waybill-stub search
   card with a die-cut perforation.
   ========================================================= */

:root {
	--ink: #10182b;
	--ink-soft: #2b3555;
	--paper: #ffffff;
	--paper-alt: #f4f2ec;
	--amber: #dd8a2e;
	--amber-deep: #b96f1e;
	--teal: #1f6f63;
	--teal-soft: #e7f2ef;
	--line: #e3e0d5;
	--line-strong: #cfcabb;
	--muted: #667085;
	--danger: #c1443a;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 2px 10px -4px rgba(16, 24, 43, 0.12);
	--shadow: 0 16px 40px -16px rgba(16, 24, 43, 0.28);
	--font-display: "Space Grotesk", "Inter", sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
	--container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--paper);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.15;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
	color: var(--ink);
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
button { font-family: inherit; }

:focus-visible {
	outline: 2px solid var(--amber-deep);
	outline-offset: 2px;
}

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

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--amber-deep);
	font-weight: 600;
}
.eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--amber);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 24px;
}
.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 19px;
	color: var(--ink);
}
.site-logo:hover { text-decoration: none; }
.site-logo__mark {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--ink);
	color: var(--amber);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 14px;
	flex-shrink: 0;
}
.site-logo__tag {
	display: block;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 12px;
	color: var(--muted);
	margin-top: 1px;
}

.primary-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}
.primary-nav a {
	color: var(--ink-soft);
	font-weight: 500;
	font-size: 14.5px;
}
.primary-nav a:hover { color: var(--amber-deep); text-decoration: none; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
	.primary-nav { display: none; width: 100%; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 4px; padding: 12px 0; }
	.primary-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
	.site-header__inner { flex-wrap: wrap; }
	.nav-toggle { display: flex; }
}

/* =========================================================
   Hero + waybill search card (signature element)
   ========================================================= */

.hero {
	background:
		radial-gradient(1100px 420px at 15% -10%, rgba(221, 138, 46, 0.10), transparent 60%),
		radial-gradient(900px 380px at 100% 0%, rgba(31, 111, 99, 0.10), transparent 55%),
		var(--paper);
	padding: 64px 0 40px;
}
.hero__inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; gap: 32px; }
}

.hero__eyebrow { margin-bottom: 18px; }
.hero h1 {
	font-size: clamp(32px, 4.4vw, 48px);
	font-weight: 700;
	max-width: 15ch;
}
.hero__sub {
	color: var(--muted);
	font-size: 17px;
	max-width: 46ch;
	margin-bottom: 0;
}
.hero__stats {
	display: flex;
	gap: 28px;
	margin-top: 28px;
	flex-wrap: wrap;
}
.hero__stat b {
	display: block;
	font-family: var(--font-display);
	font-size: 24px;
	color: var(--ink);
}
.hero__stat span {
	font-size: 13px;
	color: var(--muted);
}

/* the waybill stub */
.waybill {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}
.waybill__top {
	padding: 26px 26px 22px;
}
.waybill__label {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 14px;
}
.waybill__perf {
	position: relative;
	height: 0;
	border-top: 2px dashed var(--line-strong);
	margin: 0 -1px;
}
.waybill__perf::before,
.waybill__perf::after {
	content: "";
	position: absolute;
	top: -11px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--paper-alt);
	background: radial-gradient(circle at center, rgba(0,0,0,0) 0, rgba(0,0,0,0) 0);
}
.waybill__perf::before { left: -12px; }
.waybill__perf::after { right: -12px; }
.hero { overflow: visible; }
.waybill::before,
.waybill::after {
	content: "";
	position: absolute;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--paper);
	border: 1px solid var(--line);
	top: var(--notch-y, 180px);
	z-index: 2;
}
.waybill::before { left: -13px; }
.waybill::after { right: -13px; }

.waybill__bottom {
	padding: 22px 26px 26px;
	background: var(--paper-alt);
}

.field-group { margin-bottom: 14px; }
.field-group label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-soft);
	margin-bottom: 6px;
}
.field-shell {
	position: relative;
}
.field-shell input,
.combo input {
	width: 100%;
	border: 1.5px solid var(--line-strong);
	border-radius: var(--radius-sm);
	padding: 13px 14px;
	font-size: 15px;
	font-family: var(--font-mono);
	letter-spacing: 0.02em;
	background: var(--paper);
	color: var(--ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-shell input::placeholder,
.combo input::placeholder { font-family: var(--font-body); letter-spacing: normal; color: #9aa1b1; }
.field-shell input:focus,
.combo input:focus {
	outline: none;
	border-color: var(--amber);
	box-shadow: 0 0 0 4px rgba(221, 138, 46, 0.15);
}

.combo { position: relative; }
.combo-results {
	position: absolute;
	left: 0; right: 0; top: calc(100% + 6px);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	max-height: 280px;
	overflow-y: auto;
	z-index: 30;
	display: none;
}
.combo-results.is-open { display: block; }
.combo-results__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	cursor: pointer;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-body);
}
.combo-results__item:last-child { border-bottom: none; }
.combo-results__item:hover,
.combo-results__item.is-active { background: var(--paper-alt); }
.combo-results__logo {
	width: 26px; height: 26px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--ink);
	color: var(--amber);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-mono); font-size: 11px; font-weight: 600;
	flex-shrink: 0;
}
.combo-results__logo img { width: 100%; height: 100%; object-fit: contain; }
.combo-results__empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: var(--radius-sm);
	padding: 13px 20px;
	font-weight: 600;
	font-size: 15px;
	border: none;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
	text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
	background: var(--ink);
	color: #fff;
	width: 100%;
}
.btn-primary:hover { background: var(--ink-soft); }
.btn-amber { background: var(--amber); color: #241304; }
.btn-amber:hover { background: var(--amber-deep); color: #fff; }
.btn-outline {
	background: transparent;
	border: 1.5px solid var(--line-strong);
	color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.waybill__note {
	font-size: 12.5px;
	color: var(--muted);
	margin-top: 12px;
	text-align: center;
}

/* =========================================================
   Trust strip
   ========================================================= */
.trust-strip {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--paper-alt);
	padding: 18px 0;
}
.trust-strip__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--ink-soft);
	letter-spacing: 0.02em;
}
.trust-strip__inner span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip__inner b { color: var(--teal); }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section__head {
	max-width: 640px;
	margin: 0 auto 40px;
	text-align: center;
}
.section__head h2 { font-size: clamp(26px, 3vw, 34px); }
.section__head p { color: var(--muted); }

/* =========================================================
   Directory / courier grid
   ========================================================= */
.directory-toolbar {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.directory-toolbar .field-shell { flex: 1; min-width: 240px; }
.directory-count {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
	white-space: nowrap;
}

.courier-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 16px;
}
.courier-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.courier-card:hover {
	border-color: var(--amber);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
	text-decoration: none;
}
.courier-logo {
	width: 44px; height: 44px;
	border-radius: 10px;
	background: var(--paper-alt);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	border: 1px solid var(--line);
}
.courier-logo__img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.courier-logo__fallback {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--ink-soft);
}
.courier-card__name {
	font-weight: 600;
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.3;
}
.courier-card__meta {
	font-size: 12px;
	color: var(--muted);
	font-family: var(--font-mono);
}
.empty-state {
	text-align: center;
	padding: 48px 20px;
	color: var(--muted);
}

/* =========================================================
   How it works / steps
   ========================================================= */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
}
.step__num {
	font-family: var(--font-mono);
	color: var(--amber-deep);
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 10px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
	border-bottom: 1px solid var(--line);
}
.faq-item summary {
	cursor: pointer;
	padding: 18px 4px;
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	font-family: var(--font-mono);
	color: var(--amber-deep);
	font-size: 20px;
	flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 4px 18px; color: var(--muted); }

/* =========================================================
   Single courier page
   ========================================================= */
.courier-hero {
	padding: 48px 0 0;
	background: var(--paper);
}
.breadcrumb {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 20px;
	font-family: var(--font-mono);
}
.breadcrumb a { color: var(--muted); }
.courier-hero__top {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 8px;
}
.courier-hero__logo {
	width: 64px; height: 64px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--paper-alt);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}
.courier-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.courier-hero h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 2px; }
.courier-hero__sub { color: var(--muted); margin: 0; }

.tracker-panel {
	margin-top: 32px;
	background: var(--ink);
	border-radius: var(--radius-lg);
	padding: 32px;
	color: #fff;
	position: relative;
	overflow: hidden;
}
.tracker-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(600px 260px at 100% 0%, rgba(221,138,46,0.18), transparent 60%);
	pointer-events: none;
}
.tracker-panel__inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
@media (max-width: 640px) { .tracker-panel__inner { grid-template-columns: 1fr; } }
.tracker-panel label {
	display: block; font-size: 12.5px; color: rgba(255,255,255,0.65);
	margin-bottom: 8px; font-weight: 600;
}
.tracker-panel input {
	width: 100%;
	background: rgba(255,255,255,0.08);
	border: 1.5px solid rgba(255,255,255,0.18);
	color: #fff;
	border-radius: var(--radius-sm);
	padding: 14px;
	font-family: var(--font-mono);
	font-size: 16px;
	letter-spacing: 0.03em;
}
.tracker-panel input::placeholder { color: rgba(255,255,255,0.4); font-family: var(--font-body); }
.tracker-panel input:focus { outline: none; border-color: var(--amber); }

.result-card {
	margin-top: 18px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: var(--radius);
	padding: 20px;
	display: none;
	position: relative;
}
.result-card.is-visible { display: block; }
.result-card__label {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255,255,255,0.55);
	margin-bottom: 6px;
}
.result-card__number {
	font-family: var(--font-mono);
	font-size: 22px;
	font-weight: 600;
	color: var(--amber);
	word-break: break-all;
	margin-bottom: 16px;
}
.result-card__route {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: rgba(255,255,255,0.7);
}
.route-dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--teal);
	flex-shrink: 0;
}
.route-line {
	flex: 1;
	height: 0;
	border-top: 2px dotted rgba(255,255,255,0.3);
}
.route-dot--pending { background: rgba(255,255,255,0.3); }
.result-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-card__hint { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 12px; margin-bottom: 0; }

.courier-body { padding: 56px 0; }
.courier-body .container { max-width: 780px; }
.courier-body h2 { font-size: 22px; margin-top: 1.6em; }
.courier-body p, .courier-body li { color: var(--ink-soft); }

.other-couriers { border-top: 1px solid var(--line); }

/* =========================================================
   Generic page content
   ========================================================= */
.page-hero {
	padding: 56px 0 8px;
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); }
.page-content { padding: 24px 0 64px; }
.page-content .container { max-width: 760px; }
.page-content h2 { font-size: 22px; margin-top: 1.6em; }
.page-content p, .page-content li { color: var(--ink-soft); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	background: var(--ink);
	color: rgba(255,255,255,0.72);
	padding: 56px 0 28px;
	margin-top: 40px;
}
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	margin-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand__mark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	color: #fff;
	margin-bottom: 10px;
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 32ch; }
.footer-widget__title, .footer-col h4 {
	font-family: var(--font-body);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255,255,255,0.5);
	margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-top: 22px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	color: rgba(255,255,255,0.45);
	font-family: var(--font-mono);
}

/* =========================================================
   Misc utility
   ========================================================= */
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

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