/* =========================================================
   MP Recruit LLC — Driving Your Future
   Palette taken from the logo: navy #143255, green #42AF73, orange #EE8F2F.
   Navy carries the page; green and orange are small accents only.
   ========================================================= */

:root {
  --navy: #143255;
  --navy-hover: #0E2541;
  --navy-tint: #EDF2F7;

  --green: #42AF73;
  --green-text: #2A7F50;   /* logo green, darkened for readable text (AA) */
  --green-tint: #EAF6EF;

  --orange: #EE8F2F;
  --orange-icon: #C76B12;  /* logo orange, darkened for icons on tint */
  --orange-tint: #FDF2E7;

  --ink: #143255;
  --text: #3B4A5C;
  --muted: #5B6B7C;
  --line: #E4E9EF;
  --line-strong: #CDD5DF;
  --bg-alt: #F6F8FA;
  --error: #B42318;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --header-h: 84px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Montserrat', 'Inter', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-text); }
a:hover { color: var(--navy); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-head); line-height: 1.2; }
h1, h2 { font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); margin-bottom: 14px; }
h3 { font-size: 1.0625rem; font-weight: 600; }

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

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font: 600 1rem/1.2 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 15px 26px; font-size: 1.0625rem; }
.btn-sm { padding: 10px 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); color: #fff; }

.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--navy-tint); border-color: var(--navy); color: var(--navy); }

.text-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 .9375rem var(--font); color: var(--green-text); text-decoration: underline;
}
.text-btn:hover { color: var(--navy); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 16px; }
.nav ul { display: flex; gap: 2px; }
.nav ul a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: .9375rem; font-weight: 500; color: var(--text); text-decoration: none;
}
.nav ul a:hover { background: var(--bg-alt); color: var(--navy); }

.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block; width: 22px; height: 2px; margin: 0 auto;
  background: var(--navy); border-radius: 2px; transition: transform .2s, background-color .2s;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; font-size: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.18; }
.hero h1 > span { display: block; color: var(--green-text); }
.hero-lead { max-width: 540px; margin-bottom: 32px; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-media img {
  width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 40% 50%;
  border-radius: 20px;
}

.badges { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.badges li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 500; color: var(--ink); }

.check {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 50%; background: var(--green-tint); color: var(--green-text); font-size: 14px;
}
.check .icon { stroke-width: 3; }
.check-orange { background: var(--orange-tint); color: var(--orange-icon); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.0625rem; }

.kicker {
  margin-bottom: 10px; font-size: .8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--green-text);
}

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column;
  padding: 28px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 12px; background: var(--navy-tint); color: var(--navy); font-size: 22px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  font-weight: 600; color: var(--navy); text-decoration: none;
}
.card-link:hover { color: var(--green-text); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; margin-inline: auto; }

.wish {
  display: flex; align-items: center; gap: 32px;
  margin-top: 20px; padding: 28px 32px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius);
}
.wish p { flex: 1; margin: 0; font-size: 1.0625rem; color: var(--ink); }
.wish .btn { flex: none; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split-form { grid-template-columns: 1fr 1.15fr; align-items: start; }

.split-media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 60%;
  border-radius: 20px;
}

/* subgrid keeps both lists aligned even when one heading wraps */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin-top: 24px; }
.why-col { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
.why-col h3 { margin-bottom: 18px; }

.checks { display: grid; gap: 16px; }
.checks li { display: flex; gap: 12px; }
.checks .check { margin-top: 1px; }
.checks strong { display: block; color: var(--ink); font-weight: 600; }
.checks span:not(.check) { display: block; font-size: .9375rem; color: var(--muted); }

/* ---------- Driver application ---------- */
.apply-intro { padding-top: 8px; position: sticky; top: calc(var(--header-h) + 32px); }
.steps { display: grid; gap: 18px; margin: 28px 0; counter-reset: step; }
.steps li { position: relative; padding-left: 48px; min-height: 32px; color: var(--muted); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--navy-tint); color: var(--navy); font-weight: 600; font-size: .875rem;
}
.steps strong { display: block; color: var(--ink); font-weight: 600; }
.call-line { color: var(--text); }
.call-line a { margin-left: 4px; font-weight: 600; font-size: 1.125rem; color: var(--navy); text-decoration: none; }
.call-line a:hover { color: var(--green-text); text-decoration: underline; }

/* ---------- Forms ---------- */
.form-card {
  padding: 32px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20, 50, 85, .04), 0 8px 24px rgba(20, 50, 85, .05);
}
.form-title { font-size: 1.3125rem; margin-bottom: 4px; }
.form-hint { font-size: .875rem; color: var(--muted); margin-bottom: 24px; }
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; color: var(--ink); }

.field input, .field select, .field textarea {
  display: block; width: 100%;
  padding: 11px 14px; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #8795A4; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B7C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
.field select:invalid { color: #8795A4; }
.field select option { color: var(--ink); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 50, 85, .12);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.field-error { margin: 6px 0 0; font-size: .8125rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 4px 0 20px; padding: 16px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.consent input {
  width: 20px; height: 20px; margin: 2px 0 0; flex: none;
  accent-color: var(--navy); cursor: pointer;
}
.consent label { font-size: .8125rem; line-height: 1.55; color: var(--text); cursor: pointer; }

.form-error {
  margin: 0 0 16px; padding: 12px 14px; font-size: .875rem;
  color: var(--error); background: #FEF3F2; border: 1px solid #FECDCA; border-radius: var(--radius-sm);
}
.form-error a { color: var(--error); font-weight: 600; }

.form-success { padding: 24px 0 8px; text-align: center; outline: none; }
.success-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--green-tint); color: var(--green-text); font-size: 28px;
}
.success-icon .icon { stroke-width: 3; }
.form-success h4 { font-size: 1.375rem; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--muted); }

.hp { display: none; }

/* ---------- Fleets ---------- */
.fleets-intro { padding-top: 8px; }
.fleets-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; margin-top: 32px; }

/* ---------- Contact ---------- */
.contact-card { flex-direction: row; gap: 20px; align-items: flex-start; }
.avatar {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: 50%; background: var(--navy-tint); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem;
}
.avatar-green { background: var(--green-tint); color: var(--green-text); }
.contact-card h3 { margin: 2px 0 2px; font-size: 1.1875rem; }
.contact-role { font-size: .9375rem; margin-bottom: 14px; }
.contact-list { display: grid; gap: 8px; }
.contact-list a {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; color: var(--navy); text-decoration: none; word-break: break-word;
}
.contact-list a:hover { color: var(--green-text); text-decoration: underline; }
.contact-list .icon { color: var(--muted); font-size: 17px; }

/* ---------- 404 / thank-you pages ---------- */
.status-page { max-width: 560px; padding: 32px 0 48px; text-align: center; }
.status-page h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); margin-bottom: 14px; }
.status-page p:not(.kicker) { color: var(--muted); font-size: 1.0625rem; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Privacy policy / terms pages ---------- */
.back-link { max-width: 800px; margin: 0 auto 16px; font-size: .9375rem; }
.back-link a { font-weight: 500; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }
.legal {
  max-width: 800px; margin-inline: auto; padding: 48px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.legal h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); margin-bottom: 8px; }
.legal-date { color: var(--muted); font-size: .9375rem; margin-bottom: 8px; }
.legal h3 { margin: 32px 0 10px; font-size: .9375rem; letter-spacing: .02em; }
.legal p, .legal li { font-size: .9375rem; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 10px; }
.legal strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 56px; font-size: .9375rem; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--navy); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .logo img { height: 56px; }
.footer-brand p { max-width: 300px; margin-top: 16px; color: var(--muted); }
.footer-h {
  margin-bottom: 14px; font-size: .8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
}
.footer-links { display: grid; gap: 10px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .logo img { height: 48px; }

  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: -16px; right: -16px;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 8px 16px 20px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 50, 85, .08);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { padding: 14px; font-size: 1rem; }

  .hero { padding: 48px 0 64px; }
  .hero-grid, .split, .split-form { grid-template-columns: 1fr; gap: 40px; }
  .split-media img { aspect-ratio: 16 / 10; }
  .hero-media { max-width: 560px; }
  .apply-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .badges { flex-direction: column; }

  .wish { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; }
  .why-grid, .grid-2 { grid-template-columns: 1fr; }
  .why-fleets { margin-top: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .legal { padding: 28px 20px; }
}

@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .header, .hero-actions, .hero-media, .form-card, .footer { display: none !important; }
}
