@charset "UTF-8";
/* ==========================================================================
   BARI 91 Inc. — Site Stylesheet
   Palette: Bari Red / Ink / Steel / Silver
   ========================================================================== */

:root {
  --red: #d6001c;
  --red-dark: #a30015;
  --red-glow: rgba(214, 0, 28, 0.35);
  --ink: #0b0d10;
  --coal: #12151a;
  --steel: #1a1e25;
  --line: rgba(255, 255, 255, 0.08);
  --silver: #c9ced6;
  --fog: #eef1f5;
  --white: #ffffff;
  --text: #dfe3e9;
  --muted: #98a0ac;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --header-h: 76px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Sideways overflow (content sliding in from the right, the tilted marquee) is clipped on the body.
   overflow-x: hidden alone did not stop phones from widening the page by ~30 px (zoomed-out load,
   sideways wobble). clip does not turn the body into a scroll box, so the sticky header keeps working.
   Browsers without clip keep the old overflow-x: hidden behaviour. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--white);
  font-weight: 800;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  color: var(--red);
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

.section-title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 12px 0 18px; }

.section-sub { color: var(--muted); max-width: 640px; }

.accent { color: var(--red); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.02rem;
  padding: 15px 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}

.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 10px 28px var(--red-glow);
}

.btn-red:hover { transform: translateY(-3px); box-shadow: 0 16px 38px var(--red-glow); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }

.btn-white { background: var(--white); color: var(--ink); }

.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }

.btn .arrow { transition: transform 0.3s var(--ease); }

.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--red);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
  z-index: 60;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
}

.topbar a { display: inline-flex; align-items: center; gap: 7px; opacity: 0.95; }

.topbar .ti { width: 14px; height: 14px; flex: none; color: var(--white); }

.topbar a:hover { opacity: 1; text-decoration: underline; }

.topbar-group { display: flex; gap: 22px; align-items: center; }

.topbar .dot-mc { letter-spacing: 0.06em; opacity: 0.9; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 13, 16, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.site-header.scrolled {
  background: rgba(11, 13, 16, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }

.brand img { height: 52px; width: auto; transition: transform 0.3s var(--ease); }

.brand:hover img { transform: scale(1.06) rotate(-2deg); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--muted);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav > a, .nav-drop > a {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.98rem;
  color: var(--silver);
  padding: 10px 14px;
  border-radius: 6px;
  position: relative;
  transition: color 0.25s;
}

.nav > a::after, .nav-drop > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav > a:hover, .nav > a.active, .nav-drop > a:hover, .nav-drop > a.active { color: var(--white); }

.nav > a:hover::after, .nav > a.active::after, .nav-drop > a:hover::after, .nav-drop > a.active::after { transform: scaleX(1); }

/* Drivers dropdown */

.nav-drop { position: relative; }

.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; }

.nav-drop .caret { font-size: 0.7em; transition: transform 0.3s; }

.drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: var(--coal);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-drop:hover .caret { transform: rotate(180deg); }

.drop-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--silver);
  transition: background 0.2s, color 0.2s, padding-left 0.25s var(--ease);
}

.drop-menu a small { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; }

.drop-menu a:hover { background: rgba(214, 0, 28, 0.12); color: var(--white); padding-left: 18px; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.header-cta .btn { padding: 12px 24px; font-size: 0.95rem; }

/* Hamburger */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 70;
}

.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }

.nav-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 34px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -60px 0;
  z-index: -2;
  background-size: cover;
  background-position: center 65%;
  will-change: transform;
  animation: heroZoom 14s var(--ease) forwards;
}

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 13, 16, 0.92) 18%, rgba(11, 13, 16, 0.55) 52%, rgba(11, 13, 16, 0.25) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 32%);
}

.hero-content { padding: 90px 0 130px; max-width: 780px; }

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(214, 0, 28, 0.14);
  border: 1px solid rgba(214, 0, 28, 0.45);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-chip .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 0, 28, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(214, 0, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 0, 28, 0); }
}

.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  margin: 22px 0 18px;
}

.hero h1 .line { display: block; overflow: hidden; }

.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: riseUp 0.9s var(--ease) forwards; }

.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }

@keyframes riseUp { to { transform: translateY(0); } }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--silver);
  max-width: 560px;
  margin-bottom: 34px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.45s forwards;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s var(--ease) 0.6s forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

/* Hero stats ribbon */

.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(18, 21, 26, 0.94), rgba(18, 21, 26, 0.8));
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.hero-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }

.hero-stat { padding: 22px 18px; text-align: center; border-left: 1px solid var(--line); }

.hero-stat:first-child { border-left: 0; }

.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat b em { font-style: normal; color: var(--red); }

.hero-stat span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }

.scroll-cue {
  position: absolute;
  bottom: 110px;
  right: 40px;
  width: 30px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 9px;
}

.scroll-cue::after { content: ""; width: 4px; height: 10px; background: var(--red); border-radius: 4px; animation: cue 1.8s infinite; }

@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */

.marquee {
  background: var(--red);
  overflow: hidden;
  padding: 14px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: -10px 0 0;
  position: relative;
  z-index: 5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 26s linear infinite; }

.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.05rem;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
}

.marquee span::after { content: "★"; font-size: 0.8em; opacity: 0.7; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 110px 0; position: relative; }

.section-head { margin-bottom: 56px; }

.section-head.center { text-align: center; }

.section-head.center .section-sub { margin: 0 auto; }

.section-head.center .kicker::before { display: none; }

.bg-coal { background: var(--coal); }

/* ---------- Program cards ---------- */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 18px;
}

.program-card {
  position: relative;
  background: linear-gradient(160deg, var(--steel), var(--coal));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.program-card:hover { transform: translateY(-10px); border-color: rgba(214, 0, 28, 0.5); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }

.program-card:hover::before { transform: scaleX(1); }

.program-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(214, 0, 28, 0.12);
  border: 1px solid rgba(214, 0, 28, 0.35);
  display: grid;
  place-items: center;
  color: var(--red);
  transition: transform 0.4s var(--ease), background 0.3s;
}

.program-card:hover .program-icon { transform: scale(1.1) rotate(-4deg); background: rgba(214, 0, 28, 0.2); }

.program-icon svg { width: 28px; height: 28px; }

.program-card h3 { font-size: 1.5rem; }

.program-rate {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.program-rate small { font-size: 0.55em; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; }

.program-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }

.program-link {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.program-link .arrow { color: var(--red); transition: transform 0.3s var(--ease); }

.program-card:hover .program-link .arrow { transform: translateX(6px); }

/* ---------- Split (about) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.split-media { position: relative; }

.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

.split-media::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 2px solid rgba(214, 0, 28, 0.4);
  border-radius: var(--radius);
  z-index: -1;
}

.badge-float {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 26px;
  text-align: center;
  box-shadow: 0 18px 40px var(--red-glow);
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.badge-float b { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }

.badge-float span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; }

.split-body p { margin-bottom: 18px; color: var(--muted); }

.split-body p strong { color: var(--text); }

.check-list { list-style: none; margin: 24px 0 30px; display: grid; gap: 12px; }

.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }

.check-list .check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(214, 0, 28, 0.15);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ---------- Stats band ---------- */

.stats-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 59h60v1H0zM59 0h1v60h-1z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; position: relative; }

.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; color: var(--white); line-height: 1; }

.stat span { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); }

/* ---------- Benefits ---------- */

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.benefit {
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.benefit:hover { transform: translateY(-6px); border-color: rgba(214, 0, 28, 0.45); background: #1e232b; }

.benefit-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(214, 0, 28, 0.12);
  color: var(--red);
  display: grid;
  place-items: center;
}

.benefit-icon svg { width: 24px; height: 24px; }

.benefit h3 { font-size: 1.2rem; margin-bottom: 6px; }

.benefit p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Fleet / gallery ---------- */

/* dense: a tall tile never leaves an empty hole beside it when the grid drops to 2 columns */
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }

/* a second heading + grid on the same page (gallery: new arrivals, then the rest of the fleet) */
.fleet-grid + .section-head { margin-top: 84px; }

.fleet-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.fleet-item:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.fleet-item.tall { grid-row: span 2; }

.fleet-item.wide { grid-column: span 2; }

.fleet-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }

.fleet-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 13, 16, 0.75) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}

.fleet-item .fleet-label {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

/* Hover effects only where there is a real hover (mouse). On phones a tap left the tile "stuck" zoomed. */
@media (hover: hover) {
  .fleet-item:hover img { transform: scale(1.08); }
  .fleet-item:hover::after { opacity: 1; }
  .fleet-item:hover .fleet-label { opacity: 1; transform: translateY(0); }
}

.fleet-item:focus-visible::after { opacity: 1; }
.fleet-item:focus-visible .fleet-label { opacity: 1; transform: translateY(0); }

/* Touch screens have no hover — show the labels all the time */
@media (hover: none) {
  .fleet-item::after { opacity: 1; }
  .fleet-item .fleet-label { opacity: 1; transform: none; font-size: 0.92rem; }
}

/* Lightbox
   The photo is sized to the screen (dvh follows the phone's browser bars) and keeps its proportions;
   the buttons sit outside the photo, never on top of it. Swipe / keys / buttons are wired in main.js. */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 8, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  touch-action: none; /* no page scroll / zoom behind the viewer; main.js handles the swipe */
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lightbox.open { display: flex; animation: lbIn 0.3s var(--ease); }

@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 184px);
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  transition: opacity 0.25s, transform 0.3s var(--ease);
  -webkit-user-drag: none;
}

.lightbox.loading img { opacity: 0.35; }

.lightbox.dragging img { transition: none; }

.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  z-index: 2;
  background: rgba(11, 13, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.lightbox .lb-close:active, .lightbox .lb-prev:active, .lightbox .lb-next:active { background: var(--red); border-color: var(--red); }

.lightbox button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

@media (hover: hover) {
  .lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: var(--red); border-color: var(--red); transform: scale(1.08); }
}

/* positioned without transform, so the hover scale can no longer knock the arrows out of place */
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 24px; top: calc(50% - 24px); }
.lb-next { right: 24px; top: calc(50% - 24px); }

.lb-caption {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: calc(100% - 184px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.lb-caption .lb-count { color: var(--muted); margin-left: 12px; letter-spacing: 0.08em; }

/* Phones: the photo uses the full width; arrows + caption move to a bar at the bottom */
@media (max-width: 560px) {
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 176px); max-height: calc(100dvh - 176px); border-radius: 0; box-shadow: none; }
  .lb-close { top: 12px; right: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-caption { bottom: 33px; bottom: calc(33px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 150px); font-size: 0.8rem; letter-spacing: 0.08em; }
  .lb-caption .lb-count { margin-left: 8px; }
}

/* Phones held sideways (short screens): the photo gets almost the full height */
@media (max-height: 500px) {
  .lightbox img { max-width: calc(100vw - 150px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .lb-close { top: 10px; right: 10px; }
  .lb-prev { left: 12px; top: calc(50% - 24px); bottom: auto; }
  .lb-next { right: 12px; top: calc(50% - 24px); bottom: auto; }
  .lb-caption { display: none; }
}

/* ---------- Commitment / deal section ---------- */

.deal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.deal-card {
  background: var(--steel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.deal-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }

.deal-card h3 { font-size: 1.35rem; margin-bottom: 10px; }

.deal-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
  isolation: isolate;
}

.page-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(11, 13, 16, 0.94) 25%, rgba(11, 13, 16, 0.6) 70%, rgba(11, 13, 16, 0.4) 100%),
    linear-gradient(to top, var(--ink), transparent 35%);
}

.page-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin: 16px 0 14px; }

.page-hero .section-sub { font-size: 1.05rem; }

.crumbs { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; }

.crumbs a:hover { color: var(--white); }

.crumbs .sep { margin: 0 8px; color: var(--red); }

/* ---------- Rate highlight panel ---------- */

.rate-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: -50px 0 0;
  position: relative;
  z-index: 5;
}

.rate-box {
  background: linear-gradient(160deg, var(--steel), var(--coal));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.rate-box:hover { transform: translateY(-6px); border-color: rgba(214, 0, 28, 0.5); }

.rate-box b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--red); line-height: 1.05; }

.rate-box span { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--muted); font-weight: 700; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; background-attachment: fixed; }

.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(11, 13, 16, 0.82), rgba(11, 13, 16, 0.88)); }

.cta h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 16px; }

.cta p { color: var(--silver); max-width: 560px; margin: 0 auto 36px; }

.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.cta-phone { margin-top: 26px; color: var(--muted); font-size: 0.95rem; }

.cta-phone a { color: var(--white); font-weight: 700; }

.cta-phone a:hover { color: var(--red); }

/* ---------- Footer ---------- */

.footer { background: #070809; border-top: 1px solid var(--line); padding: 80px 0 0; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }

.footer h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-about img { height: 74px; margin-bottom: 18px; }

.footer-about p { color: var(--muted); font-size: 0.9rem; max-width: 300px; }

.footer-links { list-style: none; display: grid; gap: 10px; }

.footer-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.25s, padding-left 0.25s var(--ease); }

.footer-links a:hover { color: var(--white); padding-left: 6px; }

.footer-contact { list-style: none; display: grid; gap: 14px; color: var(--muted); font-size: 0.92rem; }

.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }

.footer-contact svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 3px; }

.footer-contact a:hover { color: var(--white); }

.footer-contact li > span { min-width: 0; }

.footer-contact a { overflow-wrap: break-word; }

.footer-contact small { color: var(--muted); opacity: 0.75; font-size: 0.76rem; margin-left: 6px; letter-spacing: 0.04em; }

.social-row { display: flex; gap: 12px; margin-top: 22px; }

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--silver);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}

.social-row a:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-4px); }

.social-row svg { width: 20px; height: 20px; }

.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }

.footer-bottom-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }

.footer-bottom-inner b { color: var(--silver); font-weight: 600; }

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }

.reveal.in { opacity: 1; transform: none; }

.reveal-left { opacity: 0; transform: translateX(-46px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }

.reveal-right { opacity: 0; transform: translateX(46px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }

.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }

.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

.stagger.in > * { opacity: 1; transform: none; }

.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.09s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.18s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.27s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.36s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.45s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.54s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.63s; }
.stagger.in > *:nth-child(9) { transition-delay: 0.72s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal, .reveal-left, .reveal-right, .stagger > * { opacity: 1; transform: none; }
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--red);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 12px 30px var(--red-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s, background 0.25s;
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.to-top:hover { background: var(--red-dark); }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.contact-card {
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.contact-card:hover { transform: translateY(-8px); border-color: rgba(214, 0, 28, 0.5); }

.contact-card .benefit-icon { margin: 0 auto 16px; width: 56px; height: 56px; }

.contact-card h3 { font-size: 1.3rem; margin-bottom: 8px; }

.contact-card p, .contact-card a { color: var(--muted); font-size: 0.95rem; }

.contact-card a:hover { color: var(--white); }

.contact-card a.big { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-top: 4px; }

.contact-card a.big:hover { color: var(--red); }

.contact-card .contact-note { display: block; margin: 2px 0 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.contact-card a.big.email { font-size: 1.22rem; margin-top: 6px; overflow-wrap: break-word; }

.contact-card p + p { margin-top: 4px; }

.contact-card a.big + p { margin-top: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 44px; }
  .rate-panel { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .topbar-inner { justify-content: center; }
  .topbar .dot-mc { display: none; }

  .nav-toggle { display: flex; }

  /* When the menu is open the header must not create a containing block
     (backdrop-filter would trap the fixed overlay inside the header bar) */
  .site-header.menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 70;
    background: #0b0d10;
    border-bottom-color: var(--line);
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: #0b0d10;
    flex-direction: column;
    justify-content: flex-start;
    justify-content: safe center;
    gap: 8px;
    padding: calc(var(--header-h) + 40px) 24px 44px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }

  .nav.open { opacity: 1; visibility: visible; }

  .nav > a { font-size: 1.5rem; padding: 12px 20px; }

  .nav-drop { display: contents; }

  .nav-drop > a { display: none; }

  .drop-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: contents;
  }

  .drop-menu a { font-size: 1.15rem; justify-content: center; color: var(--muted); }

  .drop-menu a small { display: none; }

  .header-cta .btn-ghost { display: none; }

  .hero { min-height: 86svh; }
  .hero-content { padding: 70px 0 150px; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat { border-top: 1px solid var(--line); }
  .hero-stat:nth-child(-n+2) { border-top: 0; }
  .scroll-cue { display: none; }

  .section { padding: 80px 0; }

  .split { grid-template-columns: 1fr; }
  .split-media { margin-bottom: 24px; }
  .split-media::after { display: none; }
  .badge-float { bottom: -22px; left: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }

  .fleet-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }

  .deal-grid { grid-template-columns: 1fr; }

  .rate-panel { grid-template-columns: 1fr; margin-top: -30px; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .cta-bg { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .topbar-group { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .topbar { font-size: 0.76rem; }
  .brand img { height: 42px; }
  .brand-name { font-size: 1.15rem; white-space: nowrap; }
  .brand-name small { letter-spacing: 0.22em; }
  .header-cta .btn { padding: 10px 16px; font-size: 0.85rem; }
  .benefits-grid { grid-template-columns: 1fr; }
  /* one column; a normal/wide tile is 230 px high, a tall (portrait) tile ~353 px instead of a thin strip */
  .fleet-grid { grid-template-columns: 1fr; grid-auto-rows: 107px; }
  .fleet-item { grid-row: span 2; }
  .fleet-item.wide { grid-column: span 1; }
  .fleet-item.tall { grid-row: span 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .programs-grid { grid-template-columns: 1fr; }
}

/* Small phones: the "Trucking · Since 2011" line ran under the Apply Now button */
@media (max-width: 400px) {
  .brand-name small { display: none; }
}

/* Very small phones (320 px): keep the menu button on screen */
@media (max-width: 359px) {
  .brand { gap: 8px; }
  .brand img { height: 36px; }
  .brand-name { font-size: 1rem; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 9px 12px; font-size: 0.8rem; letter-spacing: 0.08em; }
  .nav-toggle { width: 40px; }
}
