/* MidWest Pacific Rail Net & Logistics — 2026 redesign */
:root {
  --navy: #1c2757;
  --navy-2: #233169;
  --navy-dark: #121a3d;
  --orange: #c8862c;
  --orange-dark: #a96d1d;
  --cream: #f7f3ec;
  --line: #e4e1db;
  --text: #1f2433;
  --muted: #5d6475;
  --radius: 12px;
  --wrap: 1180px;
  --shadow: 0 10px 30px rgba(18, 26, 61, .10);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: #fff;
  font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.eyebrow { margin: 0 0 10px; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* buttons */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 8px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.b-primary { background: var(--orange); color: #fff; }
.b-primary:hover { background: var(--orange-dark); color: #fff; }
.b-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.b-ghost:hover { background: #fff; color: var(--navy); }
.text-link { font-weight: 700; text-decoration: none; color: var(--navy-2); }
.text-link:hover { color: var(--orange-dark); }

/* ---------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.site-header.over-hero { position: absolute; left: 0; right: 0; background: transparent; box-shadow: none; }
.site-header.over-hero.scrolled { position: fixed; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { flex: 0 0 auto; background: #fff; border-radius: 10px; padding: 5px 9px; line-height: 0; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.brand img { width: 104px; height: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
#menu { display: flex; align-items: center; gap: 2px; }
#menu > li { position: relative; }
#menu > li > a { display: block; padding: 10px 11px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 6px; white-space: nowrap; }
#menu > li > a:hover, #menu > li:focus-within > a { background: rgba(255,255,255,.12); }
#menu > li.current > a { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 6px 6px 0 0; }
#menu > li:first-child { display: none; } /* Home: the logo does this on desktop */
.sub-toggle { display: none; }
.sub { position: absolute; left: 0; top: calc(100% + 6px); min-width: 260px; padding: 8px; background: #fff; border-radius: 10px;
  box-shadow: 0 16px 40px rgba(18,26,61,.22); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
#menu > li:nth-last-child(-n+3) .sub { left: auto; right: 0; }
#menu > li:hover > .sub, #menu > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; color: var(--text); font-size: 15px; text-decoration: none; border-radius: 6px; line-height: 1.35; }
.sub a:hover { background: var(--cream); color: var(--navy); }
.sub a[aria-current] { color: var(--orange-dark); font-weight: 600; }
.menu-toggle { display: none; }

/* ---------------- home hero */
.hero { position: relative; min-height: 660px; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; background: var(--navy-dark); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 7s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,26,61,.94) 0%, rgba(18,26,61,.70) 45%, rgba(18,26,61,.2) 100%); }
.hero-in { position: relative; z-index: 2; width: 100%; padding-top: 110px; padding-bottom: 110px; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.05; margin: 0 0 18px; max-width: 680px; }
.hero .lead { font-size: 20px; max-width: 560px; margin: 0 0 30px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.hero-meta { position: absolute; left: 0; right: 0; bottom: 74px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: rgba(255,255,255,.75); }
.hero-caps { position: relative; flex: 1; min-height: 1.4em; }
.hero-cap { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .6s; }
.hero-cap.is-active { opacity: 1; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; }
.hero-dots button[aria-current] { background: var(--orange); }

.quick-strip { position: relative; z-index: 3; margin-top: -48px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(18,26,61,.16); overflow: hidden; }
.quick { display: flex; gap: 14px; align-items: flex-start; padding: 24px 22px; text-decoration: none; color: var(--text); border-right: 1px solid var(--line); transition: background .15s; }
.quick:last-child { border-right: 0; }
.quick:hover { background: var(--cream); color: var(--text); }
.quick .ico { flex: 0 0 auto; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: #f6ead8; color: var(--orange-dark); }
.quick strong { display: block; color: var(--navy); font-size: 16px; }
.quick small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }

/* home sections */
.sec { padding: 96px 0; }
.sec-tint { background: var(--cream); }
.sec h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 18px; }
.sec-head { margin-bottom: 36px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.sec-head.row h2 { margin: 0; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split p { color: var(--muted); }
.split blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--orange); background: var(--cream); border-radius: 0 10px 10px 0; color: var(--text); font-size: 18px; }
.q-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 6px; }
.links-row { display: flex; gap: 28px; flex-wrap: wrap; }
.split-img { margin: 0; }
.split-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.svc .ico { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--navy); color: #fff; margin-bottom: 18px; }
.svc h3 { margin: 0 0 8px; font-size: 20px; }
.svc p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.more-link { margin-top: auto; font-weight: 700; color: var(--orange-dark); font-size: 15px; }

.rr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.rr-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 191 / 200; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: rgba(255,255,255,.9); font-size: 34px; font-weight: 800; letter-spacing: .08em; }
.rr-card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.rr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rr-card img { display: block; width: 100%; aspect-ratio: 191 / 200; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.rr-card .rr-name, .rr-card .btn { display: block; padding: 16px 18px; font-weight: 700; color: var(--navy); background: none; box-shadow: none; text-align: left; min-width: 0; }
.rr-card:hover .rr-name, .rr-card:hover .btn { color: var(--orange-dark); background: none; }

.cta-band { background: var(--navy); color: #fff; padding: 56px 0; background-image: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 30px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- inner pages */
.page-banner { position: relative; padding: 76px 0 70px; color: #fff; background-color: var(--navy-dark); background-position: center 40%; background-size: cover; background-repeat: no-repeat; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,26,61,.95) 0%, rgba(18,26,61,.78) 55%, rgba(18,26,61,.45) 100%); }
.page-banner .wrap { position: relative; }
.page-banner h1 { color: #fff; margin: 0; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; max-width: 820px; }
.page-body { padding-top: 56px; padding-bottom: 80px; }
.page-body.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; align-items: start; }
.content { min-width: 0; max-width: 820px; }
.content > :first-child { margin-top: 0; }
.content h2 { font-size: 26px; margin: 40px 0 12px; }
.content p { margin: 0 0 18px; }
.content ul, .content ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.content li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.content li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.content .more { margin-top: 32px; }
.center { text-align: center; }

.side { position: sticky; top: 110px; background: var(--cream); border-radius: var(--radius); padding: 22px; }
.side-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: block; padding: 9px 12px; margin: 2px -12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; line-height: 1.35; }
.side a:hover { background: #fff; color: var(--navy); }
.side a[aria-current] { background: var(--navy); color: #fff; font-weight: 600; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 20px; }
.cols > div { background: var(--cream); border-radius: var(--radius); padding: 24px 26px 8px; }
.cols h2 { margin-top: 0; font-size: 21px; }
figure { margin: 0 0 24px; }
figure.map img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

.btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
a.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
a.btn::after { content: "→"; }
a.btn[href$=".pdf"]::after { content: "PDF"; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.18); }
a.btn:hover { background: var(--orange); color: #fff; }

.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.props { width: 100%; border-collapse: collapse; font-size: 15px; }
.props th { text-align: left; padding: 12px 14px; background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
.props td { padding: 11px 14px; border-top: 1px solid var(--line); }
.props tbody tr:nth-child(even) { background: var(--cream); }
.props td:first-child { font-weight: 600; color: var(--navy); }

.disclaimer { margin: 36px 0 0; padding: 16px 20px; background: var(--cream); border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--muted); }
.disclaimer p { margin: 0; }

.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 44px 0 10px; }
.logo-link { display: flex; align-items: center; justify-content: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .15s; }
.logo-link:hover { box-shadow: var(--shadow); }
.logo-link img { display: block; max-height: 70px; width: auto; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 26px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card { margin: 0; }
.video-card figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.video-card figcaption p { margin: 0; }
.inner .content:has(.video-grid), .inner .content:has(.rr-grid) { max-width: none; }

/* contact page: two people columns as cards */
.content .cols p { font-size: 16px; }

/* ---------------- footer */
.sitefoot { background: var(--navy-dark); color: rgba(255,255,255,.75); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.foot-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 6px 10px; line-height: 0; }
.foot-logo img { width: 130px; }
.foot-brand p { margin: 14px 0 0; color: var(--orange); font-weight: 600; }
.sitefoot h2 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { margin-bottom: 8px; }
.sitefoot a { color: rgba(255,255,255,.85); text-decoration: none; }
.sitefoot a:hover { color: var(--orange); }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ico { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--orange); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: rgba(255,255,255,.55); }

/* ================= tablet ================= */
@media (max-width: 1100px) {
  #menu > li > a { padding: 10px 8px; font-size: 14px; }
  .brand img { width: 92px; }
}
@media (max-width: 1000px) {
  .wrap { padding: 0 24px; }
  /* switch to the mobile menu */
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: #fff; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform .2s, background .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .header-in { flex-wrap: wrap; min-height: 72px; }
  .mainnav { display: none; flex-basis: 100%; padding-bottom: 14px; }
  .site-header.open .mainnav { display: block; }
  .site-header.over-hero.open { background: var(--navy); }
  #menu { flex-direction: column; align-items: stretch; gap: 0; background: rgba(255,255,255,.04); border-radius: 10px; overflow: hidden; }
  #menu > li:first-child { display: flex; }
  #menu > li { display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); }
  #menu > li:first-child { border-top: 0; }
  #menu > li > a { flex: 1; padding: 14px 16px; font-size: 17px; border-radius: 0; }
  #menu > li.current > a { box-shadow: inset 4px 0 0 var(--orange); }
  .sub-toggle { display: block; width: 56px; border: 0; border-left: 1px solid rgba(255,255,255,.1); background: transparent; cursor: pointer; position: relative; }
  .sub-toggle span { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -7px 0 0 -5px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .2s; }
  .sub-toggle[aria-expanded="true"] span { transform: rotate(-135deg); margin-top: -2px; }
  .sub, #menu > li:hover > .sub, #menu > li:focus-within > .sub { position: static; display: none; width: 100%; min-width: 0; padding: 4px 0 8px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: rgba(0,0,0,.18); }
  .sub::before { display: none; }
  #menu > li.sub-open > .sub { display: block; }
  .sub a { color: rgba(255,255,255,.9); padding: 11px 16px 11px 30px; border-radius: 0; font-size: 16px; }
  .sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .sub a[aria-current] { color: var(--orange); }

  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick:nth-child(2) { border-right: 0; }
  .quick:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .rr-grid { grid-template-columns: repeat(3, 1fr); }
  .page-body.has-side { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; order: -1; margin-bottom: 32px; padding: 16px; }
  .side ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .side a { margin: 0; padding: 7px 12px; background: #fff; border: 1px solid var(--line); font-size: 15px; }
  .page-body.has-side .content { order: 2; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ================= phone ================= */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .brand img { width: 84px; }
  .hero { min-height: 600px; }
  .hero-in { padding-top: 120px; padding-bottom: 120px; }
  .hero .lead { font-size: 18px; }
  .hero-actions .b { flex: 1 1 auto; }
  .hero-meta { bottom: 62px; }
  .hero-caps { display: none; }
  .quick-strip { margin-top: -40px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .quick:last-child { border-bottom: 0; }
  .sec { padding: 64px 0; }
  .sec-head.row { flex-direction: column; align-items: flex-start; }
  .svc-grid { grid-template-columns: 1fr; }
  .rr-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rr-card .rr-name, .rr-card .btn { padding: 12px; font-size: 15px; }
  .cta-band { padding: 44px 0; }
  .cta-band h2 { font-size: 25px; }
  .cta-actions { width: 100%; }
  .cta-actions .b { flex: 1 1 auto; }
  .page-banner { padding: 48px 0 44px; }
  .page-body { padding-top: 32px; padding-bottom: 56px; }
  .content h2 { font-size: 22px; margin-top: 32px; }
  .cols { grid-template-columns: 1fr; gap: 16px; }
  .btns { flex-direction: column; }
  a.btn { justify-content: center; }
  /* property table → cards */
  .table-wrap { border: 0; overflow: visible; }
  .props thead { display: none; }
  .props, .props tbody, .props tr, .props td { display: block; width: 100%; }
  .props tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; background: #fff !important; }
  .props td { border: 0; padding: 3px 0; display: flex; gap: 12px; }
  .props td::before { content: attr(data-label); flex: 0 0 92px; color: var(--muted); font-weight: 500; }
  .props td:first-child { font-size: 17px; padding-bottom: 6px; }
  .props td:first-child::before { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
