/* ============================================================
   Midamerican Cargo Inc — CDL Recruiting Landing Page
   ============================================================ */

:root {
  --navy: #0b1d36;
  --navy-800: #122a4a;
  --navy-700: #1a3a63;
  --red: #1565c0;
  --red-dark: #0d47a1;
  --gold: #38bdf8;
  --ink: #142033;
  --slate: #4b5b70;
  --muted: #7a8aa0;
  --bg: #ffffff;
  --bg-alt: #eef4fb;
  --line: #d7e3f0;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 14px rgba(11, 29, 54, 0.08);
  --shadow: 0 14px 40px rgba(11, 29, 54, 0.14);
  --shadow-lg: 0 24px 60px rgba(11, 29, 54, 0.22);
  --maxw: 1160px;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  background: var(--btn-bg);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 20px; height: 20px; fill: currentColor; }

.btn-primary { background: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-accent { background: var(--gold); color: var(--navy); }
.btn-accent:hover { background: #7dd3fc; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: #fff;
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 11px 20px; font-size: .95rem; }
.btn-block { width: 100%; margin-top: 8px; font-size: 1.15rem; padding: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 37, 69, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--red);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
}
.brand-name {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand-name span { color: var(--gold); }

.nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a {
  color: #dbe4f2;
  font-weight: 600;
  font-size: .98rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-menu .nav-cta {
  background: var(--red);
  color: #fff;
  margin-left: 6px;
}
.nav-menu .nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(11,29,54,.94) 0%, rgba(11,29,54,.72) 50%, rgba(21,101,192,.45) 100%),
    url("cascadia-blue.jpg?v=11") center right/cover no-repeat,
    var(--navy);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56,189,248,.18), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 84px 22px 96px;
}
.hero-content { max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(246,168,0,.12);
  border: 1px solid rgba(246,168,0,.4);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: .85rem;
  margin-bottom: 18px;
}
.eyebrow.center { display: inline-block; }
.eyebrow.light { color: var(--gold); }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--red); }
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #d5dff0;
  max-width: 620px;
  margin-bottom: 30px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 26px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--head);
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stats span { color: #b9c6de; font-size: .9rem; letter-spacing: .5px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--red);
  color: #fff;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding: 16px 22px;
}
.trust-item {
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-item span { font-size: 1.3rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; overflow-x: hidden; }
#apply .container { width: 100%; max-width: 100%; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-head h2.on-dark { color: #fff; }
.section-lead { color: var(--slate); font-size: 1.08rem; }
.section-lead.light { color: #c3d0e6; }

/* ---------- Cards / Benefits ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(200,16,46,.3);
}
.card-ico {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: #fff;
  border-radius: 14px;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--slate); }

/* ---------- Fleet ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.fleet-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.fleet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fleet-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #eef1f6;
}
.fleet-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 1.1rem;
}
.fleet-card .swatch {
  width: 20px; height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
  flex: 0 0 auto;
}

/* ---------- Steps / Process ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(200,16,46,.35);
}
.step h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--slate); font-size: .98rem; }
.center-cta { text-align: center; margin-top: 42px; }

/* ---------- Requirements ---------- */
.req-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.req-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--navy);
  margin: 6px 0 14px;
}
.req-list {
  list-style: none;
  margin: 26px 0 30px;
  display: grid;
  gap: 12px;
}
.req-list li {
  position: relative;
  padding-left: 36px;
  color: var(--ink);
  font-weight: 500;
}
.req-list li::before {
  content: "✔";
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 700;
  border-radius: 6px;
}
.req-media { display: flex; justify-content: center; }
.req-card {
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  width: 100%;
  border-top: 6px solid var(--red);
}
.req-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.req-card h3 { font-size: 1.9rem; margin-bottom: 10px; }
.req-card p { color: #cdd8ec; margin-bottom: 24px; }

/* ---------- Form ---------- */
.apply-form {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--gold);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  width: 100%;
  min-width: 0;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,37,69,.12);
  background: #fff;
}
.field textarea { resize: vertical; }
.field input[type="file"],
.field .file-input {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  font-family: var(--body);
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 14px;
  margin-right: 12px;
  border: none;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.field input[type="file"]::file-selector-button:hover {
  background: #163a66;
}
.field-hint {
  margin-top: 6px;
  font-size: .85rem;
  color: var(--slate);
  line-height: 1.4;
}
.checkbox-field { margin-top: 4px; }
.checkbox {
  flex-direction: row;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--slate);
  font-size: .95rem;
}
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }
.hidden-field { display: none; }
.form-note {
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
}
.form-note.error { color: var(--red); }
.form-note.success { color: #1a8a4a; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(21,101,192,.4);
}
.contact-ico {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  background: var(--bg-alt);
  border-radius: 50%;
}
.contact-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 6px; }
.contact-card p { color: var(--red); font-weight: 700; }
.contact-hint { color: var(--muted); font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd8ec; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 22px 40px;
  align-items: start;
}
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-tag { color: #9fb0cc; font-size: .95rem; margin-top: 4px; }
.footer-social-label,
.footer-nav { }
.footer-social-label {
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.social-links { list-style: none; display: flex; gap: 12px; }
.social-links a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  transition: background .2s, transform .2s;
}
.social-links a:hover { background: var(--red); transform: translateY(-3px); }
.social-links svg { width: 22px; height: 22px; fill: #fff; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a { color: #cdd8ec; font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: .88rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #93a5c2;
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 15px;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 -6px 20px rgba(0,0,0,.2);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; gap: 34px; }
  .req-media { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--navy);
    padding: 14px 18px 22px;
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .25s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 14px; font-size: 1.05rem; }
  .nav-menu .nav-cta { margin-left: 0; text-align: center; }

  .hero-inner { padding: 64px 22px 80px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 1.9rem; }

  .section { padding: 60px 0; }
  #requirements { padding-bottom: 28px; }
  #apply { padding-top: 36px; padding-bottom: 72px; }
  .section-head { margin-bottom: 28px; }
  .fleet-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .apply-form {
    padding: 22px 16px;
    border-radius: 16px;
  }
  #apply .container { padding-left: 16px; padding-right: 16px; }
  .req-card { max-width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; }

  .mobile-call-bar { display: block; }
  body { padding-bottom: 54px; }
}

@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.15rem; }
  .brand-logo { width: 40px; height: 40px; }
}

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

/* ---------- Thank you page ---------- */
.thank-you-body {
  background: var(--navy);
}
.thank-you-main {
  position: relative;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  padding: 88px 0 96px;
  overflow: hidden;
}
.thank-you-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(246,168,0,.18), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(200,16,46,.16), transparent 36%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.thank-you-main .container {
  position: relative;
  z-index: 1;
}
.thank-you-card {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 44px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--gold);
}
.thank-you-badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(26, 138, 74, 0.12);
  border: 1px solid rgba(26, 138, 74, 0.28);
  color: #157a3f;
  font-family: var(--head);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.thank-you-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #1f9d55, #157a3f);
  border-radius: 50%;
  box-shadow:
    0 14px 30px rgba(26, 138, 74, 0.35),
    inset 0 0 0 6px rgba(255,255,255,.18);
}
.thank-you-icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}
.thank-you-card h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 12px;
}
.thank-you-lead {
  color: var(--slate);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 32px;
}
.thank-you-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin: 0 auto 32px;
  max-width: 480px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(11,37,69,.04), rgba(246,168,0,.08));
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
}
.thank-you-highlight-ico {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.thank-you-highlight p {
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  line-height: 1.55;
}
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .thank-you-main { padding: 64px 0 72px; }
  .thank-you-card { padding: 38px 24px 30px; }
  .thank-you-highlight {
    flex-direction: column;
    text-align: center;
  }
  .thank-you-actions .btn { flex: 1 1 100%; }
}
