/* PSI EXPRESS LLC — site styles
   Brand colors live in :root — update --accent / --navy once the logo is final. */

:root {
  --navy: #0b1b33;
  --navy-2: #12284a;
  --navy-3: #1c3760;
  --accent: #ff6a13;
  --accent-hover: #ff8238;
  --accent-soft: #fff1e8;
  --ink: #0b1b33;
  --text: #3b4a60;
  --muted: #6b7a90;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --ok: #1f9d55;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 12px 32px rgba(11, 27, 51, 0.08);
  --shadow-lg: 0 24px 64px rgba(11, 27, 51, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Icons: Lucide SVGs rendered as masks so they take the text color.
   Usage: <span class="i" style="--i:url(/icons/truck.svg)"></span> */
.i {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn .i { width: 18px; height: 18px; transition: transform 0.18s; }
.btn:hover .i { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 106, 19, 0.28); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo slot — put the logo <img> inside .brand when ready. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand img { height: 44px; width: auto; }
.brand small { font-weight: 600; color: var(--muted); font-size: 0.8em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a:not(.btn) {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  color: var(--text);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav .btn { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .i { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 0; }
.hero-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--navy) url("/images/hero.jpg") 70% 60% / cover no-repeat;
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 40, 0.92) 0%, rgba(8, 20, 40, 0.72) 42%, rgba(8, 20, 40, 0.1) 78%),
    linear-gradient(0deg, rgba(8, 20, 40, 0.55) 0%, transparent 40%);
}
.hero-content {
  position: relative;
  padding: 80px 64px;
  max-width: 700px;
  color: #fff;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 19, 0.3); }
.hero h1 {
  color: #fff;
  font-size: clamp(42px, 6vw, 70px);
  margin: 22px 0 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 19px; color: #d6deea; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Stats ---------- */
.stats { padding: 64px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-box .i { width: 24px; height: 24px; }
.stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat div > span { font-size: 15px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.about-badge {
  position: absolute;
  right: -24px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: var(--r);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
}
.about-badge strong { display: block; color: var(--ink); font-size: 17px; line-height: 1.25; }
.about-badge div > span { font-size: 14px; color: var(--muted); }
.about-copy h2 { font-size: clamp(32px, 4vw, 46px); margin: 14px 0 20px; }
.about-copy > p { margin-bottom: 16px; }
.values { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; }
.values li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.values .num { font-weight: 800; color: var(--accent); font-size: 15px; padding-top: 2px; }
.values strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }
.values p { font-size: 15.5px; color: var(--muted); }

/* Service */
.service-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-media { position: relative; min-height: 460px; }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.service-tag .i { color: var(--accent); width: 18px; height: 18px; }
.service-body { padding: 56px 52px; }
.service-body h3 { font-size: 34px; margin: 12px 0 14px; }
.service-body > p { color: var(--muted); margin-bottom: 28px; }
.checks { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .tick {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: #e6f6ec;
  color: var(--ok);
}
.checks .tick .i { width: 14px; height: 14px; }
.checks strong { color: var(--ink); font-weight: 700; }

/* Freight types */
.freight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.freight {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.freight:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.freight h3 { font-size: 19px; margin: 20px 0 8px; letter-spacing: -0.01em; }
.freight p { font-size: 15.5px; color: var(--muted); }

/* Equipment (inside Services) */
.equip-head { margin-top: 96px; margin-bottom: 40px; }
.equip-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.equip { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.equip img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.equip-body { padding: 20px 22px 24px; }
.equip h3 { margin: 0 0 8px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  border-top: 2px dashed #cdd6e3;
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step .bubble {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 8px var(--bg-soft);
}
.step .bubble .i { width: 24px; height: 24px; }
.step .bubble::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; max-width: 320px; margin: 0 auto; }

/* CTA */
.cta-section { padding: 104px 0; }
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 72px 64px;
  background: var(--navy) url("/images/dryvan-motion.jpg") center / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 40, 0.94) 0%, rgba(8, 20, 40, 0.75) 60%, rgba(8, 20, 40, 0.45) 100%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); max-width: 620px; }
.cta p { margin-top: 12px; color: #d6deea; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb0c8; font-size: 15px; padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand small { color: #9fb0c8; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 0; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.5; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 14px;
}

/* ---------- Contact page ---------- */
.page-hero { padding: 20px 0 0; }
.page-hero .hero-frame {
  min-height: 0;
  background-image: url("/images/highway-rear.jpg");
  background-position: center 65%;
}
.page-hero .hero-frame::before {
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.82) 0%, rgba(8, 20, 40, 0.88) 100%);
}
.page-hero .hero-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px 170px;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.5vw, 60px); margin: 20px 0 16px; }
.page-hero p { color: #d6deea; font-size: 18.5px; }

.form-section { padding-bottom: 104px; }
.form-card {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: -120px auto 0;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.form-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.form-card-head h2 { font-size: 24px; }
.form-card-head p { font-size: 15px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.req { color: var(--accent); }
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa7b8; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 106, 19, 0.12);
}
.field.invalid input,
.field.invalid textarea { border-color: #d64545; background: #fff; }
.field .error { font-size: 13.5px; color: #d64545; }
.field .error:empty { display: none; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { display: none; margin-top: 22px; padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; font-size: 15.5px; }
.form-status.show { display: block; }
.form-status.ok { background: #e6f6ec; color: #17693a; }
.form-status.err { background: #fdecec; color: #a12d2d; }

/* ---------- 404 ---------- */
.notfound .hero-content { padding: 120px 64px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .service-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { right: 16px; }
  .service-grid { gap: 0; }
  .service-media { min-height: 320px; }
  .freight-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-grid .equip:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .equip-grid .equip:last-child img { width: 50%; }
  .equip-head { margin-top: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section, .cta-section { padding: 72px 0; }
  .hero { padding-top: 12px; }
  .hero-frame { min-height: 560px; background-position: 72% center; }
  .hero-frame::before { background: linear-gradient(180deg, rgba(8, 20, 40, 0.55) 0%, rgba(8, 20, 40, 0.9) 70%); }
  .hero-content { padding: 48px 24px; align-self: flex-end; }
  .freight-grid { grid-template-columns: 1fr; }
  .equip-grid { grid-template-columns: 1fr; }
  .equip-grid .equip:last-child { flex-direction: column; align-items: stretch; }
  .equip-grid .equip:last-child img { width: 100%; }
  .stats-grid { gap: 12px; }
  .stat { padding: 18px; }
  .stat strong { font-size: 17px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .service-body { padding: 36px 24px; }
  .cta { padding: 48px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero .hero-content { padding: 56px 20px 150px; }
  .form-card { padding: 32px 20px; margin-left: 4px; margin-right: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .notfound .hero-content { padding: 72px 24px; }

  .nav-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}

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