/*
Theme Name: Perry M Transportation
Theme URI: https://perrymtransportation.com
Author: Perry M Transportation LLC
Description: Custom theme for Perry M Transportation LLC — regional & OTR truckload carrier, driver recruiting, lease-to-purchase, owner operators and plate program.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: perrym
*/

:root {
	--navy: #0b1a3f;
	--navy-2: #13275a;
	--navy-3: #1d3577;
	--red: #dc2a1c;
	--red-2: #b81f13;
	--ink: #0f172a;
	--muted: #5b6478;
	--line: #e3e7ef;
	--bg-soft: #f4f6fa;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(11, 26, 63, .10);
	--max: 1200px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--display: "Barlow Condensed", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6; font-size: 17px; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-2); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; color: var(--navy); letter-spacing: .2px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 10px 14px; clip: auto; width: auto; height: auto; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #c9d2e8; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar .creds span { margin-right: 18px; white-space: nowrap; }
.topbar .creds b { color: #fff; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0; }
.brand img { height: 58px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a { display: block; padding: 10px 14px; color: var(--navy); font-weight: 600; font-size: .95rem; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--red); background: var(--bg-soft); }
.main-nav .menu-cta > a { background: var(--red); color: #fff; padding: 10px 18px; }
.main-nav .menu-cta > a:hover { background: var(--red-2); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
	.brand img { height: 46px; }
	.topbar .creds { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 10px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; font-family: var(--font); }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--red); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% 20%, var(--navy-3), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #081230 100%); }
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,18,48,.95) 0%, rgba(8,18,48,.75) 45%, rgba(8,18,48,.25) 100%); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 96px 0 120px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--red); }
.hero .lead { font-size: 1.2rem; color: #cfd7ec; max-width: 580px; margin-bottom: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color: var(--red); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); border-radius: 3px; }
.hero .eyebrow { color: #ff6a5c; }
.hero .eyebrow::before { background: #ff6a5c; }
.hero-swoosh { position: absolute; z-index: 1; left: -10%; right: -10%; bottom: -2px; height: 140px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges div { border-left: 3px solid var(--red); padding-left: 12px; }
.hero-badges b { display: block; font-family: var(--display); font-size: 1.6rem; color: #fff; line-height: 1; }
.hero-badges small { color: #aab5d3; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; padding: 64px 0 100px; } .hero-art { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #cfd7ec; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section.navy .section-head p { color: #aab5d3; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 68px 0; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 0 rgba(0,0,0,.02); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; margin-bottom: 20px; }
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); }
.card ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.card li { padding: 5px 0 5px 28px; position: relative; color: var(--ink); }
.card li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 9px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.card .more { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.card.accent-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--navy)); }
.card.dark { background: var(--navy-2); border-color: rgba(255,255,255,.08); color: #cfd7ec; }
.card.dark h3 { color: #fff; }
.card.dark p { color: #aab5d3; }
.card.dark li { color: #e4e9f5; }
.card.dark .icon { background: var(--red); }
.tag { display: inline-block; background: rgba(220,42,28,.1); color: var(--red); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; padding: 5px 10px; border-radius: 100px; margin-bottom: 14px; }
.card.dark .tag { background: rgba(255,255,255,.1); color: #fff; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner { border: 1px solid var(--line); border-radius: 12px; padding: 22px 12px; text-align: center; background: #fff; font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; }
.partner small { display: block; font-family: var(--font); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .8rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 960px) { .partners { grid-template-columns: repeat(2, 1fr); } }
.fine { font-size: .8rem; color: var(--muted); margin-top: 18px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { padding: 9px 0 9px 36px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.section.navy .checklist li { border-color: rgba(255,255,255,.12); color: #e4e9f5; }

.stat-panel { background: linear-gradient(150deg, var(--navy), var(--navy-3)); border-radius: 20px; padding: 40px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-panel::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(220,42,28,.25); }
.stat-panel b { display: block; font-family: var(--display); font-size: 2.3rem; line-height: 1; }
.stat-panel small { color: #aab5d3; text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--red); line-height: 1; display: block; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--red) 0%, var(--red-2) 60%, var(--navy) 60.1%, var(--navy) 100%); color: #fff; padding: 64px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #ffe3df; }
@media (max-width: 960px) { .cta-band { background: var(--red); } }

/* Page hero */
.page-hero { background: linear-gradient(160deg, var(--navy), #081230); color: #fff; padding: 80px 0 70px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -5%; bottom: -40px; width: 60%; height: 120px; background: var(--red); transform: skewY(-4deg); opacity: .9; clip-path: polygon(10% 60%, 100% 0, 100% 30%, 0 100%); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero p { color: #cfd7ec; font-size: 1.15rem; max-width: 680px; margin: 0; }
.breadcrumbs { font-size: .85rem; color: #aab5d3; margin-bottom: 12px; }
.breadcrumbs a { color: #fff; }

/* Content */
.entry-content { max-width: 820px; }
.entry-content h2 { font-size: 2rem; margin-top: 1.4em; }

/* Forms */
.form-card { background: #fff; border-radius: 18px; padding: 38px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px; } }
.pm-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.pm-form input, .pm-form select, .pm-form textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; background: #fbfcfe; color: var(--ink); }
.pm-form input:focus, .pm-form select:focus, .pm-form textarea:focus { outline: none; border-color: var(--navy-3); background: #fff; box-shadow: 0 0 0 4px rgba(29,53,119,.12); }
.pm-form textarea { min-height: 120px; resize: vertical; }
.pm-form .hp { position: absolute; left: -9999px; }
.pm-form .consent { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.pm-form .consent input { width: auto; margin-top: 4px; }
.notice { padding: 16px 20px; border-radius: 10px; margin-bottom: 22px; font-weight: 600; }
.notice.ok { background: #e7f7ee; color: #146c3b; border: 1px solid #b6e5c8; }
.notice.err { background: #fdecea; color: #9b1c12; border: 1px solid #f5c2bd; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list .icon { flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; color: var(--red); }
.info-list .icon svg { width: 22px; height: 22px; }
.info-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.info-list b, .info-list a { color: var(--navy); font-weight: 700; }

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

/* Footer */
.site-footer { background: #070f27; color: #9aa6c6; padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: #cfd7ec; }
.site-footer a:hover { color: #fff; }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 64px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .85rem; }
.creds-list b { color: #fff; }

/* Floating apply */
.float-apply { position: fixed; right: 18px; bottom: 18px; z-index: 60; box-shadow: 0 10px 30px rgba(220,42,28,.4); }
@media (min-width: 961px) { .float-apply { display: none; } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.btn svg, .more svg { width: 18px; height: 18px; flex: none; }
.more { white-space: nowrap; }

/* State / city chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--navy); }
.chips.big .chip { background: #fff; padding: 10px 16px; font-size: .95rem; }
.chip svg { width: 15px; height: 15px; color: var(--red); }
a.chip:hover { border-color: var(--red); color: var(--red); }
a.card { display: block; color: inherit; }
