/* ==========================================================================
   Transit Logistics Express: base
   Fonts, design tokens (light and dark), reset, typography, utilities.
   ========================================================================== */

/* Fonts (Barlow and Barlow Condensed, SIL OFL 1.1, self-hosted, Latin subset) */
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Barlow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Design tokens: light */
:root {
	color-scheme: light;

	--page: #f4f4f1;
	--surface: #ffffff;
	--surface-2: #eaeae6;
	--ink: #14171c;
	--ink-2: #3a424e;
	--muted: #566070;
	--line: #d5d7db;
	--field: #767e8a;

	--accent: #d01f2e;
	--accent-hover: #b81a28;
	--accent-ink: #b5182a;
	--on-accent: #ffffff;

	--bad: #b3261e;
	--ok: #1e7a45;
	--focus: #0b57d0;

	--shadow: 0 1px 2px rgba(16, 19, 24, 0.06), 0 12px 32px -12px rgba(16, 19, 24, 0.2);
	--shadow-lg: 0 30px 60px -24px rgba(16, 19, 24, 0.4);

	--font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--gutter: clamp(16px, 4vw, 32px);
	--maxw: 1240px;
	--header-h: 72px;
	--radius: 6px;
	--radius-lg: 10px;
	--section-y: clamp(64px, 9vw, 128px);

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Design tokens: dark */
:root[data-theme="dark"] {
	color-scheme: dark;

	--page: #0f1216;
	--surface: #171b21;
	--surface-2: #1e232b;
	--ink: #eef0f3;
	--ink-2: #c4cad3;
	--muted: #a0a9b6;
	--line: #2b313a;
	--field: #7d8796;

	--accent-ink: #ee7681;
	--bad: #ff8f86;
	--ok: #4cc27f;
	--focus: #8ab4ff;

	--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
}

/* Sections that are always dark, whatever the theme */
.on-dark {
	--surface: #1b2027;
	--surface-2: #232932;
	--ink: #f3f4f6;
	--ink-2: #ccd1d9;
	--muted: #a9b1bd;
	--line: #333a45;
	--field: #8a94a3;
	--accent-ink: #ee7681;
	--bad: #ff8f86;
	--ok: #4cc27f;
	--focus: #8ab4ff;
	color-scheme: dark;
	background-color: #14171c;
	color: var(--ink);
}

/* Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 88px;
}

html[data-motion="on"]:not([data-anim="off"]) {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	-webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* No 300ms tap delay or double-tap zoom on controls. */
a,
button,
input,
select,
textarea,
label,
summary {
	touch-action: manipulation;
}

/* Phone numbers should never break across lines. */
a[href^="tel:"] {
	white-space: nowrap;
}

@supports (overflow: clip) {
	body {
		overflow-x: clip;
	}
}

html.nav-open body {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
}

img {
	display: block;
	height: auto;
}

figure {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-head);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	text-wrap: balance;
}

h3,
h4,
h5,
h6 {
	font-weight: 700;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: var(--accent-ink);
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-thickness: 2px;
}

ul,
ol {
	padding-left: 1.25em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2em 0;
}

[hidden] {
	display: none !important;
}

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

::selection {
	background: var(--accent);
	color: #fff;
}

/* Icons and vehicles */
.icon {
	flex: none;
	width: 1.25em;
	height: 1.25em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon--draw * {
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}

.vehicle {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* Utilities */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 14px 22px;
	clip: auto;
	clip-path: none;
	overflow: visible;
	background: var(--ink);
	color: var(--page);
	font-weight: 700;
	text-decoration: none;
	border-radius: var(--radius);
}

.container {
	width: min(100% - 2 * var(--gutter), var(--maxw));
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - 2 * var(--gutter), 860px);
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 32px;
	height: 3px;
	background: var(--accent);
}

.eyebrow__num {
	font-family: var(--font-head);
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--ink);
}

/*
 * Single-column grids on phones: let the column shrink below its content's minimum
 * width so a wide form or long word cannot push the page sideways. Layout and
 * component rules that follow set the real multi-column templates at larger sizes.
 */
.footer__grid,
.section__head,
.hero__inner,
.why,
.steps,
.cta__inner,
.about,
.svc-row__inner,
.track-layout,
.track-aside,
.contact,
.trackcard,
.points,
.values,
.contact-cards,
.qform__grid {
	grid-template-columns: minmax(0, 1fr);
}
