/* ==========================================================================
   Dwight Trucking — Theme Stylesheet
   Palette: dark blue, white, light gray, orange accent
   ========================================================================== */

:root {
	--dt-navy: #0b2545;
	--dt-navy-700: #123a6b;
	--dt-navy-900: #071a33;
	--dt-orange: #f47b20;
	--dt-orange-dark: #d9660f;
	--dt-white: #ffffff;
	--dt-gray-50: #f6f8fb;
	--dt-gray-100: #eef1f6;
	--dt-gray-200: #dfe4ec;
	--dt-gray-500: #6b7891;
	--dt-text: #16233a;
	--dt-radius: 10px;
	--dt-radius-lg: 18px;
	--dt-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
	--dt-shadow-lg: 0 22px 50px rgba(11, 37, 69, 0.14);
	--dt-container: 1180px;
	--dt-font: "Inter", "Segoe UI", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
	--dt-header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--dt-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--dt-text);
	background: var(--dt-white);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--dt-navy-700); text-decoration: none; }
a:hover, a:focus { color: var(--dt-orange); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--dt-font);
	color: var(--dt-navy);
	line-height: 1.2;
	margin: 0 0 0.6em;
	font-weight: 800;
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.2rem; }

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	background: var(--dt-orange);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--dt-radius);
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
}

/* Layout ----------------------------------------------------------------- */
.dt-container {
	width: 100%;
	max-width: var(--dt-container);
	margin: 0 auto;
	padding: 0 20px;
}

.dt-section { padding: 84px 0; }
.dt-section--tight { padding: 56px 0; }
.dt-section--gray { background: var(--dt-gray-50); }
.dt-section--navy { background: var(--dt-navy); color: #e8eefa; }
.dt-section--navy h2,
.dt-section--navy h3 { color: #fff; }

.dt-grid { display: grid; gap: 26px; }
.dt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dt-grid--4 { grid-template-columns: repeat(4, 1fr); }

.dt-section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.dt-section-head p { color: var(--dt-gray-500); margin: 0; }
.dt-section--navy .dt-section-head p { color: #b9c8e2; }

.dt-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dt-orange);
	margin-bottom: 10px;
}

/* Buttons ---------------------------------------------------------------- */
.dt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: var(--dt-radius);
	font-weight: 700;
	font-size: 0.98rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
	text-align: center;
}
.dt-btn:hover, .dt-btn:focus { transform: translateY(-2px); }

.dt-btn--primary { background: var(--dt-orange); color: #fff; }
.dt-btn--primary:hover, .dt-btn--primary:focus { background: var(--dt-orange-dark); color: #fff; }

.dt-btn--navy { background: var(--dt-navy); color: #fff; }
.dt-btn--navy:hover, .dt-btn--navy:focus { background: var(--dt-navy-700); color: #fff; }

.dt-btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.dt-btn--ghost:hover, .dt-btn--ghost:focus { background: #fff; color: var(--dt-navy); }

.dt-btn--outline { border-color: var(--dt-navy); color: var(--dt-navy); }
.dt-btn--outline:hover, .dt-btn--outline:focus { background: var(--dt-navy); color: #fff; }

/* Header ----------------------------------------------------------------- */
.dt-topbar {
	background: var(--dt-navy-900);
	color: #cdd9ee;
	font-size: 0.88rem;
}
.dt-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	align-items: center;
	justify-content: space-between;
	padding-top: 9px;
	padding-bottom: 9px;
}
.dt-topbar a { color: #cdd9ee; }
.dt-topbar a:hover { color: var(--dt-orange); }
.dt-topbar__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.dt-header {
	background: #fff;
	border-bottom: 1px solid var(--dt-gray-200);
	position: sticky;
	top: 0;
	z-index: 999;
	transition: box-shadow 0.25s ease, padding 0.25s ease;
}
.dt-header.is-stuck { box-shadow: var(--dt-shadow); }

.dt-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--dt-header-h);
}

.dt-brand { display: flex; align-items: center; gap: 12px; }
.dt-brand img { max-height: 52px; width: auto; }
.dt-brand__mark {
	width: 42px; height: 42px;
	border-radius: 10px;
	background: var(--dt-navy);
	color: #fff;
	display: grid; place-items: center;
	font-weight: 800; letter-spacing: -0.04em;
}
.dt-brand__name { font-size: 1.12rem; font-weight: 800; color: var(--dt-navy); line-height: 1.1; }
.dt-brand__tag { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dt-orange); }

.dt-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.dt-nav li { position: relative; }
.dt-nav a {
	display: block;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 0.96rem;
	color: var(--dt-navy);
	border-radius: 8px;
}
.dt-nav a:hover, .dt-nav a:focus { background: var(--dt-gray-100); color: var(--dt-navy-700); }
.dt-nav .current-menu-item > a,
.dt-nav .current_page_item > a { color: var(--dt-orange); }

.dt-nav .sub-menu {
	position: absolute;
	left: 0; top: 100%;
	min-width: 220px;
	display: block;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dt-gray-200);
	border-radius: var(--dt-radius);
	box-shadow: var(--dt-shadow);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.18s ease;
}
.dt-nav li:hover > .sub-menu,
.dt-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dt-header__actions { display: flex; align-items: center; gap: 12px; }

.dt-nav-toggle {
	display: none;
	background: var(--dt-navy);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 10px 12px;
	cursor: pointer;
}
.dt-nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; }

/* Hero ------------------------------------------------------------------- */
.dt-hero {
	position: relative;
	background:
		linear-gradient(115deg, rgba(7, 26, 51, 0.94) 0%, rgba(11, 37, 69, 0.86) 55%, rgba(18, 58, 107, 0.72) 100%),
		var(--dt-navy);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 110px 0 96px;
	overflow: hidden;
}
.dt-hero::after {
	content: "";
	position: absolute;
	right: -120px; bottom: -120px;
	width: 420px; height: 420px;
	border-radius: 50%;
	background: rgba(244, 123, 32, 0.16);
}
.dt-hero__inner { position: relative; z-index: 1; max-width: 780px; }
.dt-hero h1 { color: #fff; margin-bottom: 18px; }
.dt-hero p { font-size: 1.15rem; color: #cddaf0; max-width: 640px; }
.dt-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.dt-hero__badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; font-weight: 600; color: #b9c8e2; }
.dt-hero__badges span::before { content: "✓"; color: var(--dt-orange); margin-right: 8px; font-weight: 800; }

/* Page hero -------------------------------------------------------------- */
.dt-pagehero {
	background: linear-gradient(115deg, var(--dt-navy-900), var(--dt-navy-700));
	color: #fff;
	padding: 66px 0;
	text-align: center;
}
.dt-pagehero h1 { color: #fff; margin-bottom: 8px; }
.dt-breadcrumbs { font-size: 0.9rem; color: #b9c8e2; }
.dt-breadcrumbs a { color: #fff; }

/* Cards ------------------------------------------------------------------ */
.dt-card {
	background: #fff;
	border: 1px solid var(--dt-gray-200);
	border-radius: var(--dt-radius-lg);
	padding: 30px 26px;
	box-shadow: var(--dt-shadow);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
	height: 100%;
}
.dt-card:hover { transform: translateY(-5px); box-shadow: var(--dt-shadow-lg); border-color: rgba(244, 123, 32, 0.5); }
.dt-card h3 { margin-bottom: 10px; }
.dt-card p { color: var(--dt-gray-500); margin-bottom: 14px; }

.dt-icon {
	width: 54px; height: 54px;
	border-radius: 14px;
	background: rgba(244, 123, 32, 0.12);
	color: var(--dt-orange);
	display: grid; place-items: center;
	margin-bottom: 18px;
}
.dt-icon svg { width: 26px; height: 26px; }

.dt-link-more { font-weight: 700; color: var(--dt-orange); }
.dt-link-more::after { content: " →"; }

/* Stats ------------------------------------------------------------------ */
.dt-stat { text-align: center; padding: 10px; }
.dt-stat__num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--dt-orange); line-height: 1; }
.dt-stat__label { margin-top: 8px; font-weight: 600; color: #cddaf0; }

/* Testimonials ----------------------------------------------------------- */
.dt-quote {
	background: #fff;
	border-radius: var(--dt-radius-lg);
	padding: 30px 26px;
	border: 1px solid var(--dt-gray-200);
	box-shadow: var(--dt-shadow);
	height: 100%;
}
.dt-quote__stars { color: var(--dt-orange); letter-spacing: 2px; margin-bottom: 10px; }
.dt-quote p { font-style: italic; color: var(--dt-text); }
.dt-quote__author { font-weight: 700; color: var(--dt-navy); margin-top: 14px; }
.dt-quote__role { font-size: 0.86rem; color: var(--dt-gray-500); }

/* FAQ -------------------------------------------------------------------- */
.dt-faq { max-width: 860px; margin: 0 auto; }
.dt-faq details {
	background: #fff;
	border: 1px solid var(--dt-gray-200);
	border-radius: var(--dt-radius);
	padding: 18px 22px;
	margin-bottom: 14px;
}
.dt-faq summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--dt-navy);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.dt-faq summary::-webkit-details-marker { display: none; }
.dt-faq summary::after { content: "+"; color: var(--dt-orange); font-size: 1.4rem; line-height: 1; }
.dt-faq details[open] summary::after { content: "–"; }
.dt-faq details p { margin: 12px 0 0; color: var(--dt-gray-500); }

/* CTA banner ------------------------------------------------------------- */
.dt-cta {
	background: linear-gradient(115deg, var(--dt-navy), var(--dt-navy-700));
	color: #fff;
	border-radius: var(--dt-radius-lg);
	padding: 46px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.dt-cta h2 { color: #fff; margin-bottom: 6px; }
.dt-cta p { color: #cddaf0; margin: 0; }
.dt-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact ---------------------------------------------------------------- */
.dt-contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 34px; align-items: start; }

.dt-info-list { list-style: none; margin: 0; padding: 0; }
.dt-info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--dt-gray-200); }
.dt-info-list li:last-child { border-bottom: 0; }
.dt-info-list strong { display: block; color: var(--dt-navy); }
.dt-info-list span { color: var(--dt-gray-500); }

.dt-form { background: #fff; border: 1px solid var(--dt-gray-200); border-radius: var(--dt-radius-lg); padding: 28px; box-shadow: var(--dt-shadow); }
.dt-form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dt-navy); font-size: 0.94rem; }
.dt-form .dt-field { margin-bottom: 16px; }
.dt-form input[type="text"],
.dt-form input[type="email"],
.dt-form input[type="tel"],
.dt-form select,
.dt-form textarea,
.search-field {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--dt-gray-200);
	border-radius: var(--dt-radius);
	font: inherit;
	font-size: 0.98rem;
	background: var(--dt-gray-50);
	color: var(--dt-text);
}
.dt-form textarea { min-height: 140px; resize: vertical; }
.dt-form input:focus, .dt-form textarea:focus, .dt-form select:focus {
	border-color: var(--dt-orange);
	background: #fff;
	outline: none;
}
.dt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dt-hp { position: absolute !important; left: -9999px; }

.dt-notice { padding: 14px 16px; border-radius: var(--dt-radius); margin-bottom: 18px; font-weight: 600; }
.dt-notice--ok { background: #e6f6ec; color: #14663a; }
.dt-notice--err { background: #fdeceb; color: #8f2018; }

.dt-map { border-radius: var(--dt-radius-lg); overflow: hidden; border: 1px solid var(--dt-gray-200); min-height: 320px; background: var(--dt-gray-100); display: grid; place-items: center; text-align: center; padding: 20px; }
.dt-map iframe { width: 100%; height: 360px; border: 0; display: block; }

.dt-hours { list-style: none; margin: 0; padding: 0; }
.dt-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--dt-gray-200); }
.dt-hours li:last-child { border-bottom: 0; }

/* Content / blog --------------------------------------------------------- */
.dt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.dt-layout--full { grid-template-columns: minmax(0, 1fr); }

.dt-content { max-width: 100%; }
.dt-content img { border-radius: var(--dt-radius); }
.dt-content > * { margin-bottom: 1.1em; }
.dt-content blockquote {
	margin: 0 0 1.2em;
	padding: 16px 22px;
	border-left: 4px solid var(--dt-orange);
	background: var(--dt-gray-50);
	border-radius: 0 var(--dt-radius) var(--dt-radius) 0;
}
.dt-content table { width: 100%; border-collapse: collapse; }
.dt-content th, .dt-content td { border: 1px solid var(--dt-gray-200); padding: 10px; }

.dt-post-card {
	background: #fff;
	border: 1px solid var(--dt-gray-200);
	border-radius: var(--dt-radius-lg);
	overflow: hidden;
	box-shadow: var(--dt-shadow);
	display: flex;
	flex-direction: column;
}
.dt-post-card__body { padding: 22px; }
.dt-post-card h2, .dt-post-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.dt-meta { font-size: 0.86rem; color: var(--dt-gray-500); margin-bottom: 10px; }

.dt-pagination { margin-top: 40px; }
.dt-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--dt-gray-200);
	border-radius: 8px;
	margin: 0 4px 8px 0;
	font-weight: 600;
}
.dt-pagination .current { background: var(--dt-navy); color: #fff; border-color: var(--dt-navy); }

/* Sidebar + widgets ------------------------------------------------------ */
.dt-sidebar .widget {
	background: var(--dt-gray-50);
	border: 1px solid var(--dt-gray-200);
	border-radius: var(--dt-radius-lg);
	padding: 22px;
	margin-bottom: 24px;
}
.dt-sidebar .widget-title { font-size: 1.05rem; margin-bottom: 12px; }
.dt-sidebar ul { list-style: none; padding: 0; margin: 0; }
.dt-sidebar li { padding: 7px 0; border-bottom: 1px solid var(--dt-gray-200); }
.dt-sidebar li:last-child { border-bottom: 0; }

/* Comments --------------------------------------------------------------- */
.dt-comments { margin-top: 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { background: var(--dt-gray-50); border: 1px solid var(--dt-gray-200); border-radius: var(--dt-radius); padding: 18px; margin-bottom: 18px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--dt-gray-200);
	border-radius: var(--dt-radius);
	font: inherit;
	background: var(--dt-gray-50);
}
.comment-form .submit,
.search-submit {
	background: var(--dt-orange);
	color: #fff;
	border: 0;
	padding: 12px 24px;
	border-radius: var(--dt-radius);
	font-weight: 700;
	cursor: pointer;
}

.search-form { display: flex; gap: 8px; }

/* Footer ----------------------------------------------------------------- */
.dt-footer { background: var(--dt-navy-900); color: #b9c8e2; padding-top: 66px; }
.dt-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.dt-footer a { color: #b9c8e2; }
.dt-footer a:hover { color: var(--dt-orange); }
.dt-footer ul { list-style: none; padding: 0; margin: 0; }
.dt-footer li { padding: 6px 0; }
.dt-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 46px; }
.dt-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 20px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	font-size: 0.9rem;
}
.dt-social { display: flex; gap: 10px; margin-top: 16px; }
.dt-social a {
	width: 38px; height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	display: grid; place-items: center;
	transition: background-color 0.2s ease;
}
.dt-social a:hover { background: var(--dt-orange); }
.dt-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Alignments ------------------------------------------------------------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.wp-caption-text, .wp-block-image figcaption { font-size: 0.86rem; color: var(--dt-gray-500); }
.sticky .dt-post-card { border-color: var(--dt-orange); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.dt-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.dt-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.dt-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
	.dt-grid--3, .dt-grid--2 { grid-template-columns: 1fr; }
	.dt-contact-grid { grid-template-columns: 1fr; }
	.dt-nav-toggle { display: block; }
	.dt-header__actions .dt-btn { display: none; }
	.dt-nav {
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--dt-gray-200);
		box-shadow: var(--dt-shadow);
		padding: 12px 20px 20px;
		display: none;
	}
	.dt-nav.is-open { display: block; }
	.dt-nav ul { flex-direction: column; gap: 0; }
	.dt-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding-left: 12px;
	}
	.dt-hero { padding: 74px 0 66px; }
	.dt-section { padding: 60px 0; }
	.dt-cta { padding: 30px; }
	.dt-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.dt-grid--4 { grid-template-columns: 1fr; }
	.dt-footer__grid { grid-template-columns: 1fr; }
	.dt-topbar__inner { justify-content: center; text-align: center; }
}

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