/* ============================================================
   AutoRight Logistics — main stylesheet
   Palette driven by the official logo: royal blue + white
   ============================================================ */

:root {
	--ink: #0b2545;          /* deep navy — dark surfaces, body emphasis */
	--slate: #0f3f7f;        /* brand royal blue (logo) — headings, links hover */
	--slate-mid: #3d5a80;    /* muted blue-gray — secondary text */
	--steel: #7d8ca3;        /* captions */
	--copper: #e8a020;       /* warm amber accent — CTA, highlights */
	--copper-light: #f0b32f; /* amber hover */
	--gold: #ffd166;         /* light gold — on dark surfaces */
	--mist: #f5f8fc;         /* light background tint */
	--line: #d8e2ec;         /* borders */
	--font-head: "Archivo", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(11, 37, 69, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: #fafcfe;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--copper); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: 1.15;
	margin: 0 0 0.6em;
	color: var(--ink);
}

.container { width: min(1160px, 92%); margin: 0 auto; }
.screen-reader-text, .skip-link {
	position: absolute; width: 1px; height: 1px;
	clip: rect(1px, 1px, 1px, 1px); overflow: hidden;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999;
	width: auto; height: auto; clip: auto;
	background: var(--copper); color: var(--ink); padding: 8px 14px; border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	padding: 0.8em 1.6em;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-copper { background: var(--copper); color: var(--ink); }
.btn-copper:hover { background: var(--copper-light); color: var(--ink); box-shadow: 0 8px 20px rgba(232, 160, 32, 0.35); }
.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-slate { background: var(--slate); color: #fff; }
.btn-slate:hover { background: var(--ink); color: var(--gold); }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #aebfd4; font-size: 0.82rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 0.3em 2em; padding: 0.45em 0; }
.topbar a { color: var(--gold); }
.topbar-item { white-space: nowrap; }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(250, 252, 254, 0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.7rem 0; }

.brand-mark { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.brand-logo {
	width: 44px; height: 44px; flex: none;
	border-radius: 10px; object-fit: cover; display: block;
	box-shadow: 0 2px 8px rgba(11, 37, 69, 0.20);
}
.custom-logo-link img { max-height: 52px; width: auto; }
.brand-text { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.1; }
.brand-text strong { color: var(--slate); }
.brand-text small { display: block; font-size: 0.68rem; color: var(--steel); font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
	display: block; padding: 0.55em 0.9em;
	font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
	color: var(--slate-mid); border-radius: 8px;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--slate); background: rgba(15, 63, 127, 0.08); }
.header-cta { flex: none; padding: 0.6em 1.3em; }

.nav-toggle {
	display: none; margin-left: auto;
	flex-direction: column; gap: 5px;
	background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span:not(.screen-reader-text) {
	width: 24px; height: 2.5px; background: var(--slate); border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-corridors { position: absolute; inset: 0; }
.hero-corridors svg { width: 100%; height: 100%; display: block; }
.hero-content { position: relative; padding: clamp(4rem, 10vw, 7.5rem) 0; max-width: 720px; }
.eyebrow {
	font-family: var(--font-head); font-weight: 700;
	font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--gold); margin: 0 0 1rem;
}
.eyebrow--copper { color: var(--copper); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; font-weight: 800; }
.hero-sub { font-size: 1.12rem; color: #c3d4e8; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 2.6rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 1.6rem; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--gold); }
.hero-stats span { font-size: 0.85rem; color: #a7bcd4; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--dark { background: var(--ink); color: #c3d0e0; }
.section--dark .section-title, .section--dark h2, .section--dark h3 { color: #fff; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; position: relative; padding-bottom: 0.5em; }
.section-title::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 64px; height: 4px; border-radius: 2px;
	background: linear-gradient(90deg, var(--slate), #4f83cc);
}

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; margin-top: 2.2rem; }
.service-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 2rem 1.8rem; box-shadow: var(--shadow);
	transition: transform 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--slate); }
.service-icon {
	width: 56px; height: 56px; display: grid; place-items: center;
	font-size: 1.6rem; border-radius: 14px; margin-bottom: 1.1rem;
	background: linear-gradient(135deg, rgba(15, 63, 127, 0.12), rgba(79, 131, 204, 0.08));
	border: 1px solid rgba(15, 63, 127, 0.25);
}
.service-card h3 { font-size: 1.25rem; color: var(--slate); }
.service-card p { color: var(--slate-mid); font-size: 0.95rem; }
.card-link { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }

/* ---------- Photo service cards / gallery / about ---------- */
.service-card--photo { padding: 0; overflow: hidden; }
.service-photo { margin: 0; position: relative; overflow: hidden; }
.service-photo img {
	display: block; width: 100%; height: 210px; object-fit: cover;
	transition: transform 0.4s ease;
}
.service-card--photo:hover .service-photo img { transform: scale(1.06); }
.service-card-body { padding: 1.5rem 1.8rem 1.8rem; }

.about-photo { margin: 1.6rem 0 1.8rem; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { display: block; width: 100%; height: 260px; object-fit: cover; }
.about-photo figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 0.7rem 1.1rem;
	font-size: 0.82rem; color: #fff;
	background: linear-gradient(transparent, rgba(11, 37, 69, 0.85));
}

.section--gallery { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.gallery-strip {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
	width: min(1400px, 96%); margin: 2.2rem auto 0;
}
.gallery-item {
	margin: 0; position: relative; border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 11 / 9;
}
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 0.6rem 0.9rem; font-size: 0.78rem; color: #fff;
	background: linear-gradient(transparent, rgba(11, 37, 69, 0.88));
}

/* ---------- Fleet management band ---------- */
.section--fleet { background: linear-gradient(160deg, var(--ink) 0%, var(--slate) 100%); color: #c3d0e0; }
.fleet-band { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.fleet-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); }
.fleet-photo img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.fleet-text .section-title { color: #fff; }
.fleet-text .section-title::after { background: linear-gradient(90deg, var(--copper), var(--copper-light)); }
.fleet-list { list-style: none; margin: 1.2rem 0 1.8rem; padding: 0; display: grid; gap: 0.55rem; }
.fleet-list li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; }
.fleet-list li::before {
	content: ""; position: absolute; left: 0; top: 0.5em;
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--copper); box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.25);
}

/* ---------- Corridor cards ---------- */
.corridor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.corridor-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-left: 4px solid var(--copper);
	border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.corridor-card h3 { font-size: 1.1rem; margin-bottom: 0.25em; }
.corridor-route { color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; margin: 0 0 0.5em; }
.corridor-card p:last-child { margin: 0; font-size: 0.92rem; color: #a7bcd4; }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.why-list li {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1rem 1.3rem; display: grid; gap: 0.15rem;
	border-left: 4px solid var(--slate);
}
.why-list strong { font-family: var(--font-head); color: var(--slate); }
.why-list span { font-size: 0.92rem; color: var(--slate-mid); }

/* ---------- CTA band ---------- */
.cta-band {
	background:
		linear-gradient(120deg, rgba(11, 37, 69, 0.95), rgba(15, 63, 127, 0.92)),
		repeating-linear-gradient(115deg, transparent 0 90px, rgba(232, 160, 32, 0.08) 90px 92px);
	color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { color: #c3d4e8; margin-bottom: 1.6rem; }

/* ---------- Inner pages (services/coverage/detail blocks) ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.service-detail:last-of-type { border-bottom: 0; }
.service-detail--flip .sd-photo { order: 2; }
.sd-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sd-photo img { display: block; width: 100%; height: 300px; object-fit: cover; }
.service-detail h2 { color: var(--slate); font-size: 1.5rem; }
.service-detail p { color: var(--slate-mid); }
.tick-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.tick-list li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; color: var(--slate-mid); }
.tick-list li::before {
	content: ""; position: absolute; left: 0; top: 0.48em;
	width: 8px; height: 8px; border-radius: 50%; background: var(--copper);
}

.coverage-table { width: 100%; border-collapse: collapse; margin-top: 1.8rem; font-size: 0.95rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.coverage-table th { background: var(--slate); color: #fff; font-family: var(--font-head); font-weight: 600; text-align: left; padding: 0.85rem 1.1rem; }
.coverage-table td { padding: 0.8rem 1.1rem; border-top: 1px solid var(--line); color: var(--slate-mid); }
.coverage-table td:first-child { font-weight: 600; color: var(--ink); }
.coverage-table tr:nth-child(even) td { background: var(--mist); }

.province-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; margin-top: 1.6rem; }
.province-grid span {
	background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--slate);
	border-radius: 8px; padding: 0.7rem 1rem;
	font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--slate);
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-card { background: var(--ink); color: #c3d0e0; border-radius: var(--radius); padding: 2rem; }
.contact-card h3 { color: #fff; }
.contact-card p { margin: 0 0 0.9rem; font-size: 0.95rem; }
.contact-card a { color: var(--gold); }
.contact-card .btn { margin-top: 0.6rem; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.quote-form label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--slate); margin: 1rem 0 0.3rem; }
.quote-form input, .quote-form select, .quote-form textarea {
	width: 100%; padding: 0.7em 1em; border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
.quote-form .btn { margin-top: 1.4rem; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.8rem 0; }
.values-grid div { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--slate); border-radius: 8px; padding: 1rem 1.2rem; }
.values-grid strong { display: block; font-family: var(--font-head); color: var(--slate); margin-bottom: 0.2rem; }
.values-grid span { font-size: 0.9rem; color: var(--slate-mid); }

/* ---------- Page hero / content ---------- */
.page-hero {
	background: linear-gradient(135deg, var(--ink), var(--slate));
	color: #fff; padding: clamp(3rem, 7vw, 5rem) 0;
	border-bottom: 4px solid var(--copper);
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.content-area { max-width: 780px; }
.content-area h2 { margin-top: 1.6em; }
.featured-image { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card h2 { font-size: 1.2rem; }
.post-card h2 a { color: var(--slate); }
.post-meta { font-size: 0.8rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.4em; }

/* ---------- Forms / comments ---------- */
.search-form { display: flex; gap: 0.6rem; margin: 1.2rem 0; }
.search-form input[type="search"] {
	flex: 1; padding: 0.75em 1em; border: 1px solid var(--line); border-radius: 999px; font: inherit;
}
input, textarea, select { font: inherit; }
.comment-form input:not([type="submit"]), .comment-form textarea {
	width: 100%; padding: 0.7em 1em; border: 1px solid var(--line); border-radius: 8px;
}
.comment-form .submit {
	background: var(--copper); color: var(--ink); border: 0; padding: 0.75em 1.6em;
	border-radius: 999px; font-family: var(--font-head); font-weight: 700; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a7bcd4; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding: 3.2rem 0 2.4rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: var(--gold); }
.brand-mark--footer { color: #fff; margin-bottom: 0.9rem; }
.brand-mark--footer .brand-text strong { color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col address { font-style: normal; line-height: 1.9; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.10); font-size: 0.85rem; }
.footer-base-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding: 1.1rem 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.why-grid { grid-template-columns: 1fr; gap: 2rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.header-cta { display: none; }
	.gallery-strip { grid-template-columns: repeat(2, 1fr); }
	.fleet-band { grid-template-columns: 1fr; gap: 2rem; }
	.service-detail { grid-template-columns: 1fr; gap: 1.4rem; }
	.service-detail--flip .sd-photo { order: 0; }
	.contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
	.nav-toggle { display: flex; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
	}
	.nav-open .main-nav { max-height: 340px; }
	.main-nav ul { flex-direction: column; padding: 0.8rem 4%; }
	.footer-grid { grid-template-columns: 1fr; }
	.topbar-inner { justify-content: center; }
}
