/*
Theme Name: MB Pro Logistics
Theme URI: https://mbprologistics.com
Author: MB Pro Logistics Inc
Description: Custom theme for MB Pro Logistics Inc. Activating it creates the Home, Services, Drive With Us and Get a Quote pages and the main menu automatically.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: mbpro-logistics
*/

:root {
	--navy: #0F2747;
	--navy-deep: #0B1C33;
	--orange: #F26B1D;
	--orange-dark: #D9570C;
	--ink: #1C2430;
	--muted: #5B6573;
	--line: #DCE2EA;
	--light: #F3F5F8;
	--white: #fff;
	--radius: 10px;
	--display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
	--body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; color: var(--navy); margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.eyebrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--orange); margin-bottom: .6em; }
.lead { font-size: 1.2rem; max-width: 40em; }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: .8em 1.5em; border-radius: 6px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.link-arrow { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.link-arrow::after { content: ' →'; }

/* Top bar + header */
.topbar { background: var(--navy-deep); color: #C9D1DC; font-size: .88rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.topbar__contact { display: flex; align-items: center; gap: 22px; }
.topbar a:hover { color: var(--orange); }

.site-header { background: var(--white); border-bottom: 4px solid var(--orange); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__text { font-family: var(--display); font-weight: 700; font-size: 1.75rem; color: var(--navy); letter-spacing: .02em; line-height: 1; }
.brand__text em { font-style: normal; color: var(--orange); }
.brand--light .brand__text { color: var(--white); }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a { display: block; padding: 10px 14px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); text-decoration: none; border-radius: 6px; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--orange); }
.site-nav .menu-cta a { background: var(--orange); color: var(--white); margin-left: 8px; }
.site-nav .menu-cta a:hover, .site-nav .menu-cta.current-menu-item > a { background: var(--orange-dark); color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 11px; width: 24px; height: 3px; background: var(--navy); border-radius: 2px; content: ''; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -8px; left: 0; }
.nav-toggle__bar::after { top: 8px; left: 0; }

/* Road stripe used under heroes */
.road { height: 14px; background: var(--navy-deep) repeating-linear-gradient(90deg, var(--orange) 0 46px, transparent 46px 86px) center / 100% 4px no-repeat; }

/* Hero */
.hero { background: radial-gradient(circle at 80% 20%, #1D3B66 0, var(--navy) 55%); color: #DCE3EC; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 70px; }
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--orange); }
.hero__art .truck-art { width: 100%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }

.page-hero { background: radial-gradient(circle at 85% 0, #1D3B66 0, var(--navy) 60%); color: #DCE3EC; }
.page-hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.page-hero h1 { color: var(--white); margin-bottom: .25em; }
.page-hero .lead { margin: 0; }

/* Facts strip */
.facts { background: var(--light); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.fact__value { display: block; font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: var(--navy); line-height: 1.15; }
.facts__grid--light { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.4em; }

/* Sections */
.section { padding: 84px 0; }
.section--alt { background: var(--light); }
.section__head { text-align: center; margin-bottom: 44px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 30px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--navy); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,39,71,.1); border-top-color: var(--orange); }
.card p { color: var(--muted); margin: 0; }

.card__icon { display: inline-block; width: 52px; height: 52px; border-radius: 12px; background: var(--navy); margin-bottom: 18px; position: relative; }
.card__icon::after { content: ''; position: absolute; inset: 12px; background: var(--orange); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.card__icon--box { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 3 6.5v11L12 22l9-4.5v-11L12 2zm0 2.2 6.6 3.3L12 10.8 5.4 7.5 12 4.2zM5 9.1l6 3v7.6l-6-3V9.1zm8 10.6v-7.6l6-3v7.6l-6 3z'/%3E%3C/svg%3E"); }
.card__icon--bolt { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E"); }
.card__icon--pin { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.card__icon--route { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3a3 3 0 0 0-1 5.8V21h2V8.8A3 3 0 0 0 6 3zm12 0a3 3 0 0 0-1 5.8V12h-6v2h6v7h2V8.8A3 3 0 0 0 18 3z'/%3E%3C/svg%3E"); }

/* Split + checklists */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--form { align-items: start; grid-template-columns: 1.25fr 1fr; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 14px 0 14px 42px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ''; position: absolute; left: 0; top: 15px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.checks strong { color: var(--navy); }
.checks--compact li { padding: 8px 0 8px 36px; border: 0; }
.checks--compact li::before { top: 10px; width: 22px; height: 22px; background-size: 13px; }

/* Services page */
.service { display: grid; grid-template-columns: 140px 1fr; gap: 36px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service:last-child { border-bottom: 0; }
.service__icon .card__icon { width: 110px; height: 110px; border-radius: 22px; }
.service__icon .card__icon::after { inset: 26px; }
.service h2 { font-size: 2rem; }

/* CTA band */
.cta { background: var(--orange); color: var(--white); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 48px; padding-bottom: 48px; }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .2em; }
.cta p { margin: 0; }
.cta .btn--primary { background: var(--navy); white-space: nowrap; }
.cta .btn--primary:hover { background: var(--navy-deep); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 34px; box-shadow: 0 14px 34px rgba(15,39,71,.07); scroll-margin-top: 110px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 22px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 11px 13px; border: 1px solid #C5CEDA; border-radius: 6px; background: var(--white); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.notice { padding: 14px 16px; border-radius: 6px; margin-bottom: 20px; font-weight: 600; }
.notice--ok { background: #E7F6EC; color: #17633A; }
.notice--err { background: #FDECEC; color: #9B1C1C; }

.contact-card { background: var(--navy); color: #DCE3EC; border-radius: var(--radius); padding: 34px; }
.contact-card h2 { color: var(--white); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); font-weight: 600; }
.contact-list a { color: var(--white); text-decoration: none; font-size: 1.1rem; }

.prose { max-width: 760px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #AEB9C7; padding-top: 60px; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer h3 { color: var(--white); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #DCE3EC; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer__about { margin-top: 16px; max-width: 26em; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 22px; font-size: .85rem; }

/* Phone / email shown as images (anti-scraping) */
.contact-img { display: inline-block; width: auto; height: 1.5em; vertical-align: middle; max-width: none; }
.topbar .contact-img { height: 1.45em; }
.site-footer .contact-img { height: 1.5em; opacity: .9; }
.contact-img--lg { height: 1.75em; margin-top: 2px; }
.cta p .contact-img { height: 1.45em; vertical-align: -0.35em; }
.btn--static { display: inline-flex; align-items: center; gap: .4em; cursor: default; }
.btn--static:hover { background: none; border-color: rgba(255,255,255,.55); }
.btn--static .contact-img { height: 1.35em; }

/* Responsive */
@media (max-width: 980px) {
	.hero__inner, .split, .split--form { grid-template-columns: 1fr; }
	.hero__inner { padding-top: 56px; gap: 24px; }
	.hero__art { max-width: 520px; }
	.cards { grid-template-columns: 1fr 1fr; }
	.cards--3 { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 4px solid var(--orange); box-shadow: 0 14px 24px rgba(0,0,0,.08); }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
	.site-nav .menu-cta a { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 680px) {
	body { font-size: 16px; }
	.topbar__inner { flex-direction: column; gap: 2px; text-align: center; }
	.topbar__contact { justify-content: center; gap: 14px; flex-wrap: wrap; }
	.contact-img--email { max-width: 100%; height: auto; max-height: 1.6em; }
	.facts__grid { grid-template-columns: 1fr 1fr; }
	.fact:nth-child(2) { border-right: 0; }
	.fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.cards, .form__grid, .site-footer__grid { grid-template-columns: 1fr; }
	.service { grid-template-columns: 1fr; gap: 16px; }
	.service__icon .card__icon { width: 72px; height: 72px; border-radius: 16px; }
	.service__icon .card__icon::after { inset: 17px; }
	.cta__inner { flex-direction: column; align-items: flex-start; }
	.section { padding: 60px 0; }
	.form-card, .contact-card { padding: 24px; }
	.brand__text { font-size: 1.45rem; }
	.brand img { width: 44px; height: 44px; }
}
