/* Base — reset, typography, layout primitives, header, footer. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	background: var(--c-bg);
	color: var(--c-fg);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: -0.011em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin: 0;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	letter-spacing: -0.028em;
	line-height: 1.1;
	margin: 0;
}

p { margin: 0; }

a {
	color: var(--c-accent);
	text-decoration: none;
}
a:hover { color: var(--c-accent-hover); }

/* Global focus ring — never remove. */
:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
}

/* Skip link */
.tl-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 999;
	background: var(--c-primary);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--r-md);
	font-size: 14px;
	font-weight: 600;
	transition: top 150ms var(--ease-standard);
}
.tl-skip-link:focus {
	top: 16px;
}

.tl-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-accent);
}

.tl-mono {
	font-family: var(--wp--preset--font-family--mono);
}

/* Section rhythm */
.tl-section {
	padding-block: 64px;
}
@media (min-width: 782px) {
	.tl-section {
		padding-block: 96px;
	}
}

.tl-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */

.tl-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: 64px;
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--c-border);
}

.tl-header__inner {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 16px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
}
@media (min-width: 782px) {
	.tl-header__inner { padding-inline: 32px; }
}

.tl-wordmark {
	font-size: 20px;
	font-weight: 800;
	white-space: nowrap;
}
.tl-wordmark span:first-child { color: var(--c-accent); font-weight: 800; }
.tl-wordmark span:last-child { color: var(--c-fg); font-weight: 400; }

.tl-header__cta {
	justify-self: end;
}

/* Always visible: below 1024px it holds only the mega-nav's own hamburger
   toggle, which the block's own CSS shows/hides responsively — do not
   hide this wrapper itself, or the mobile drawer becomes unreachable. */
.tl-header__nav-wrap {
	justify-self: center;
}

/* Minimal header for distraction-free funnel pages (quote flow): logo
   only, no nav or CTA, so there's nothing pulling focus off the form. */
.tl-header--minimal .tl-header__inner {
	grid-template-columns: auto;
	justify-content: flex-start;
}

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */

.tl-footer {
	background: var(--c-primary-deep);
	border-top: 1px solid #1E2533;
	color: #94A3B8;
	padding-block: 56px;
}
@media (min-width: 782px) {
	.tl-footer { padding-block: 64px; }
}

.tl-footer__inner {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 16px;
}
@media (min-width: 782px) {
	.tl-footer__inner { padding-inline: 32px; }
}

.tl-footer a {
	color: #94A3B8;
	font-size: 13px;
}
@media (min-width: 782px) {
	.tl-footer a { font-size: 14px; }
}
.tl-footer a:hover {
	color: #E2E8F0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tl-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #1E2533;
}
@media (min-width: 782px) {
	.tl-footer__grid {
		grid-template-columns: 240px 1fr;
		gap: 56px;
	}
}

.tl-footer__resources ul,
.tl-footer__comparisons ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tl-footer__comparisons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
@media (min-width: 640px) {
	.tl-footer__comparisons { grid-template-columns: repeat(4, 1fr); }
}

.tl-footer__heading {
	color: #E2E8F0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.tl-footer__matrix {
	padding-block: 32px;
	border-bottom: 1px solid #1E2533;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tl-footer__matrix-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: baseline;
	font-size: 13px;
}

.tl-footer__matrix-label {
	font-weight: 700;
	color: #E2E8F0;
	margin-right: 4px;
}

.tl-footer__sub {
	padding-top: 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.tl-footer__sub-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
}

.tl-footer__social {
	display: flex;
	gap: 12px;
}

.tl-footer__social a {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #334155;
	border-radius: 999px;
	color: #94A3B8;
}
.tl-footer__social a:hover {
	color: #E2E8F0;
	border-color: #475569;
}

.tl-footer__copyright {
	font-size: 12px;
	color: #64748B;
	max-width: 640px;
}

.tl-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 16px;
	font-size: 12px;
}

/* Generic list output from transportli/nav-menu-list */
.tl-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tl-nav-list--icons {
	display: flex;
	gap: 12px;
}
.tl-nav-list--icons li { list-style: none; }
.tl-nav-list--icons a {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #334155;
	border-radius: 999px;
	color: #94A3B8;
}
.tl-nav-list--icons a:hover {
	color: #E2E8F0;
	border-color: #475569;
	text-decoration: none;
}

/* WordPress block-gap override — see the longer explanation in
   components.css. Covers the header/footer's own flex/grid containers. */
.tl-header__inner > *,
.tl-footer__grid > *,
.tl-footer__comparisons > *,
.tl-footer__matrix > *,
.tl-footer__matrix-row > *,
.tl-footer__sub > *,
.tl-footer__sub-links > *,
.tl-footer__social > *,
.tl-footer__legal > *,
.tl-nav-list--icons > * {
	margin-block-start: 0 !important;
}
