/* ============================================================
   Titan Energy Transportation LLC - Site Stylesheet
   Dark industrial scheme (original palette) with Zemba-style
   angled section transitions and photo-driven tiles.
   Palette drawn from company logos:
   - Main brand: deep navy, titan red, black, steel silver, cyan
   - Oil division (.theme-oil): sky blue, steel gray, white
   ============================================================ */

:root {
  --navy: #1e2a78;
  --navy-dark: #141c52;
  --navy-darker: #0d1338;
  --red: #d21f2c;
  --red-dark: #a91723;
  --cyan: #2bb0e8;
  --cyan-light: #7fd2f5;
  --black: #0f1115;
  --steel: #c9ced8;
  --silver: #15171d;          /* darker alternating band */
  --white: #ffffff;
  --surface: #1b1e24;         /* charcoal page background */
  --surface-light: #262a33;   /* gunmetal cards/inputs */
  --border-dark: #3a3f4b;
  --text: #e8eaef;
  --text-light: #a6acb8;

  --brand-primary: var(--navy);
  --brand-primary-dark: var(--navy-dark);
  --brand-accent: var(--red);
  --brand-accent-dark: var(--red-dark);
  --brand-highlight: var(--cyan);
  --hero-grad-a: var(--navy-darker);
  --hero-grad-b: var(--navy);

  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);

  --skew: -2deg;
  --unskew: 2deg;
}

/* Titan Oil division theme - sky blue / gray / white */
.theme-oil {
  --brand-primary: #1b7fb5;
  --brand-primary-dark: #12587e;
  --brand-accent: #29a8e6;
  --brand-accent-dark: #1b7fbd;
  --brand-highlight: #7fd2f5;
  --hero-grad-a: #0a0d10;
  --hero-grad-b: #12587e;
}
.theme-oil .logo img { background: #0b0d10; }

/* Kimberley Transport - deep maroon / silver / white (from logo) */
.theme-kimberley .logo img,
.theme-kimberley .footer-grid img { background: #ffffff; }
.theme-kimberley {
  --brand-primary: #6e1a1d;
  --brand-primary-dark: #4a1113;
  --brand-accent: #9a1e23;
  --brand-accent-dark: #741418;
  --brand-highlight: #c9ced8;
  --hero-grad-a: #1c1a1a;
  --hero-grad-b: #6e1a1d;
}

/* Titan Trucking Industries - royal blue / red / silver (from logo) */
.theme-trucking {
  --brand-primary: #2b3990;
  --brand-primary-dark: #1d2765;
  --brand-accent: #e02428;
  --brand-accent-dark: #b01b1f;
  --brand-highlight: #c9ced8;
  --hero-grad-a: #14183a;
  --hero-grad-b: #2b3990;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  overflow-x: hidden;   /* keep skewed bands from causing sideways scroll */
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-light); }

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

h1, h2, h3, h4, .btn { font-family: var(--font-display); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--black);
  color: var(--steel);
  font-size: 0.85rem;
  padding: 7px 0;
  border-bottom: 2px solid var(--brand-accent);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--cyan-light); font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar strong { color: #fff; font-weight: 700; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: rgba(27, 30, 36, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--brand-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 20px;
}
.logo img[src*="enterprises"] { height: 42px; }
.footer-grid img[src*="enterprises"] { height: 44px; }
.logo img {
  height: 62px;
  width: auto;
  background: #ffffff;      /* white chip matches the logos' own white ground */
  padding: 6px 12px;
  border-radius: 8px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: center;
}
nav.main-nav > ul > li { position: relative; }
nav.main-nav a {
  display: block;
  padding: 11px 14px;
  font-weight: 600;
  color: var(--steel);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  border-radius: 6px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
/* animated accent underline */
nav.main-nav > ul > li > a::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
nav.main-nav > ul > li > a:hover::before,
nav.main-nav > ul > li.active > a::before { transform: scaleX(1); }
nav.main-nav a:hover,
nav.main-nav li.active > a {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
/* caret on items that open a menu */
nav.main-nav > ul > li:has(> ul.dropdown) > a::after {
  content: "\25BE";
  font-size: 0.72em;
  margin-left: 7px;
  opacity: 0.65;
  display: inline-block;
  transition: transform 0.22s ease;
}
nav.main-nav > ul > li:has(> ul.dropdown):hover > a::after { transform: rotate(180deg); opacity: 1; }
nav.main-nav a.nav-cta::before { display: none; }
nav.main-nav a.nav-cta {
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
  color: var(--white);
  border-bottom: none;
  box-shadow: var(--shadow-sm);
}
nav.main-nav a.nav-cta:hover { filter: brightness(1.12); color: #fff; }

/* Dropdowns */
nav.main-nav li ul.dropdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  background: linear-gradient(180deg, #2b2f3a, #22252d);
  min-width: 252px;
  box-shadow: 0 20px 44px rgba(0,0,0,0.55);
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--brand-accent);
  border-radius: 10px;
  padding: 8px;
}
/* invisible bridge so the menu doesn't close crossing the gap */
nav.main-nav li ul.dropdown::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}
nav.main-nav li:hover > ul.dropdown,
nav.main-nav li:focus-within > ul.dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
nav.main-nav ul.dropdown a {
  text-transform: none;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, padding-left 0.18s, color 0.18s;
}
nav.main-nav ul.dropdown a:hover {
  background: rgba(43,176,232,0.10);
  border-left-color: var(--brand-accent);
  padding-left: 19px;
  color: #fff;
}

/* Anchored sections land below the sticky header */
[id] { scroll-margin-top: 96px; }

/* ---------- Announcement popup ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,10,14,0.78);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.popup-overlay.show { opacity: 1; visibility: visible; }
.popup-box {
  background: linear-gradient(180deg, #2b2f3a, #1b1e24);
  border: 1px solid var(--border-dark);
  border-top: 5px solid var(--brand-accent);
  border-radius: 14px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 34px 34px;
  position: relative;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s ease;
}
.popup-overlay.show .popup-box { transform: none; }
.popup-title {
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.08;
  text-transform: uppercase;
  margin: 6px 0 12px;
}
.popup-text { color: var(--steel); max-width: 640px; margin: 0 auto 6px; }
.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s, transform 0.15s;
}
.popup-close:hover { color: var(--brand-accent); transform: scale(1.15); }
.popup-pics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 28px;
}
.popup-pics img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--border-dark);
}
@media (max-width: 640px) {
  .popup-pics { grid-template-columns: 1fr; }
  .popup-pics img { height: 160px; }
  .popup-box { padding: 34px 20px 26px; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: var(--brand-primary);
  color: var(--white);
  border: none;
  font-size: 1.4rem;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- Hero (photo) ---------- */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 130px 0 170px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(43,176,232,0.25), transparent 55%),
    linear-gradient(135deg, var(--hero-grad-a) 0%, var(--hero-grad-b) 70%);
  background-size: cover;
  background-position: center;
}
/* Real photo/video layer inside heroes and photo bands */
img.hero-bg, video.hero-bg, img.band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}
img.hero-bg { animation: heroZoom 22s ease-out forwards; will-change: transform; }
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  img.hero-bg { animation: none; }
}
/* ---------- Homepage hero slideshow (one truck per company) ---------- */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  display: block;
  max-width: none;
}
.hero-slide.is-active img { animation: slideDrift 8s ease-out forwards; }
@keyframes slideDrift { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero-badge {
  position: absolute; z-index: 4; left: 24px; bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 48px);
  background: rgba(15,17,21,0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 9px 18px 9px 9px;
  text-align: left;
  color: var(--white);
  transition: border-color 0.2s;
}
.hero-badge:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.hero-badge .chip {
  flex: none; display: grid; place-items: center;
  background: #fff; border-radius: 8px; padding: 6px 10px;
}
.hero-badge .chip.is-dark { background: #0b0d10; border: 1px solid rgba(255,255,255,0.18); }
.hero-badge .chip img { height: 32px; width: auto; max-width: none; display: block; }
.badge-txt { display: flex; flex-direction: column; min-width: 0; }
.badge-name {
  font-family: var(--font-display);
  text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
  font-size: 1.1rem; line-height: 1.1;
}
.badge-what { font-size: 0.82rem; color: var(--text-light); line-height: 1.3; }
.hero-badge.swap-in { animation: badgeIn 0.6s ease both; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-bars { position: absolute; z-index: 4; right: 24px; bottom: 104px; display: flex; gap: 8px; }
.hero-bar {
  position: relative; width: 34px; height: 4px;
  border: 0; padding: 0; border-radius: 2px;
  background: rgba(255,255,255,0.3);
  overflow: hidden; cursor: pointer;
}
.hero-bar::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--red); }
.hero-bar.is-done::after { width: 100%; }
.hero-bar.is-active::after { animation: barFill var(--slide-dur, 6500ms) linear forwards; }
.hero-bar:focus-visible { outline: 2px solid var(--cyan-light); outline-offset: 3px; }
@keyframes barFill { from { width: 0; } to { width: 100%; } }
.hero-slider.is-paused .hero-bar.is-active::after,
.hero-slider.is-paused .hero-slide.is-active img { animation-play-state: paused; }
@media (max-width: 640px) {
  .hero-slide img { object-position: var(--pos-m, var(--pos, center)); }
  .hero.hero-slider { padding-bottom: 200px; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: 62px; padding: 7px 14px 7px 7px; max-width: calc(100% - 32px); }
  .hero-badge.swap-in { animation-name: badgeInM; }
  .hero-badge .chip img { height: 26px; }
  .badge-name { font-size: 0.98rem; white-space: nowrap; }
  .badge-what { display: none; }
  .hero-bars { right: auto; left: 50%; transform: translateX(-50%); bottom: 132px; }
}
@keyframes badgeInM { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img, .hero-badge.swap-in { animation: none; }
  .hero-slide { transition-duration: 0.01s; }
}

/* Dark overlay so the text stays readable */
.hero.hero-photo::before, .page-hero.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,13,30,0.6) 0%, rgba(10,13,30,0.3) 45%, rgba(10,13,30,0.72) 100%);
}
.hero > .container, .page-hero > .container { position: relative; z-index: 2; }
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: var(--surface);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
}
.hero img.hero-logo {
  margin: 0 auto 26px;
  max-height: 150px;
  width: auto;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.6));
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 14px;
  text-shadow: 0 3px 14px rgba(0,0,0,0.6);
}
.hero p.tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--cyan-light);
  max-width: 760px;
  margin: 0 auto 34px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65);
}
.hero .kicker, .page-hero .kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cyan-light);
  background: rgba(10,13,30,0.6);
  border: 1px solid rgba(127,210,245,0.45);
  border-radius: 30px;
  padding: 7px 20px;
  margin-bottom: 22px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 1.02rem;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  margin: 4px;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-red { background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark)); color: var(--white); }
.btn-red:hover { filter: brightness(1.1); color: var(--white); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-dark); }
.btn-navy { background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); color: var(--white); }
.btn-navy:hover { filter: brightness(1.25); color: var(--white); }

/* Big hero call-to-action (Apply Now) */
.btn-hero {
  padding: 22px 64px;
  font-size: 1.45rem;
  letter-spacing: 2px;
  font-weight: 700;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 10px 30px rgba(210,31,44,0.45), 0 0 0 0 rgba(210,31,44,0.55);
  animation: heroPulse 2.4s ease-out infinite;
}
.btn-hero::after {
  content: "\2192"; /* arrow */
  display: inline-block;
  margin-left: 14px;
  transition: transform 0.2s ease;
}
.btn-hero:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(210,31,44,0.6);
  animation: none;
}
.btn-hero:hover::after { transform: translateX(6px); }
@keyframes heroPulse {
  0%   { box-shadow: 0 10px 30px rgba(210,31,44,0.45), 0 0 0 0 rgba(210,31,44,0.55); }
  70%  { box-shadow: 0 10px 30px rgba(210,31,44,0.45), 0 0 0 18px rgba(210,31,44,0); }
  100% { box-shadow: 0 10px 30px rgba(210,31,44,0.45), 0 0 0 0 rgba(210,31,44,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-hero { animation: none; }
}
@media (max-width: 560px) {
  .btn-hero { padding: 18px 40px; font-size: 1.2rem; }
}

/* ---------- Sections ---------- */
section { padding: 78px 0; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
  color: var(--white);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: 1.5px;
  font-weight: 700;
}
.section-sub {
  text-align: center;
  color: var(--brand-highlight);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.rule {
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-highlight));
  margin: 16px auto 44px;
  border-radius: 2px;
}

.lead {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.12rem;
  color: var(--text-light);
}

/* ============================================================
   ANGLED SECTION TRANSITIONS (Zemba-style diagonals)
   Band sections are skewed; their content is counter-skewed.
   ============================================================ */
.band-gray, .band-dark, .cta-strip {
  transform: skewY(var(--skew));
  margin: 46px 0;
  padding: 96px 0;
}
.band-gray > .container,
.band-dark > .container,
.cta-strip > .container {
  transform: skewY(var(--unskew));
}
/* accent edge lines along the diagonals */
.band-dark, .cta-strip { border-top: 3px solid rgba(43,176,232,0.35); border-bottom: 3px solid rgba(43,176,232,0.35); }
.band-gray { border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }

/* Two-column band */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split h2 {
  color: var(--white);
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  line-height: 1.12;
}
.split h3 { color: var(--cyan); margin-bottom: 16px; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 1px; }
.split p { margin-bottom: 14px; color: var(--text-light); }

/* Checkmark lists for service details */
.check-list { list-style: none; margin: 6px 0 4px; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 9px;
  color: var(--text-light);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-accent);
  font-weight: 700;
}

/* Framed photos */
.photo-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  pointer-events: none;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.split .photo-frame { min-height: 340px; }
.split .photo-frame img { min-height: 340px; }

/* Card grid - photo tiles */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--surface-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-dark);
  border-top: 4px solid var(--brand-accent);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-highlight); }
.card .card-media {
  height: 200px;
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-light);
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}
.card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.07); }
.card .card-body { padding: 24px 26px 28px; flex: 1; }
.card h4 {
  color: var(--white);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  border-left: 4px solid var(--brand-accent);
  padding-left: 12px;
}
.card p { color: var(--text-light); font-size: 0.96rem; }

/* Alternate band (navy, optional photo bg) */
.band-dark {
  background: linear-gradient(135deg, var(--navy-darker), var(--brand-primary));
  color: var(--white);
  text-align: center;
}
.band-dark.band-photo {
  position: relative;
  overflow: hidden;
}
.band-dark.band-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(13,19,56,0.82), rgba(20,28,82,0.82));
}
.band-dark.band-photo > .container { position: relative; z-index: 2; }
.band-dark .section-title { color: var(--white); }
.band-dark p { color: var(--steel); max-width: 780px; margin: 0 auto 28px; font-size: 1.08rem; }

/* Gray band */
.band-gray { background: var(--silver); }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.quote {
  background: var(--surface-light);
  border-left: 5px solid var(--brand-highlight);
  border-radius: 10px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  font-style: italic;
  color: var(--text-light);
}
.quote footer {
  margin-top: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--cyan-light);
}

/* CTA strip */
.cta-strip {
  background:
    linear-gradient(100deg, var(--brand-accent-dark) 0%, var(--brand-accent) 55%, var(--brand-accent-dark) 100%);
  color: var(--white);
  text-align: center;
}
.cta-strip h2 { font-size: 2.6rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.cta-strip .btn-navy { background: var(--navy-dark); }

/* ---------- Placeholder blocks (info still needed) ---------- */
.placeholder {
  border: 2px dashed #4a505e;
  background: repeating-linear-gradient(45deg, #22252d, #22252d 12px, #1e2129 12px, #1e2129 24px);
  border-radius: 8px;
  padding: 26px;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}
.placeholder strong {
  display: block;
  font-style: normal;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.placeholder.inline { padding: 10px 16px; display: inline-block; }

/* ---------- Forms ---------- */
form.contact-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  background: var(--surface-light);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 600; color: var(--steel); font-size: 0.9rem; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: 6px;
  font: inherit;
  margin-top: 6px;
  background: var(--surface);
  color: var(--text);
}
::placeholder { color: #7b8290; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-highlight);
  box-shadow: 0 0 0 3px rgba(43,176,232,0.2);
}

/* Info grid (contact/locations) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.info-box {
  background: var(--surface-light);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand-highlight);
}
.info-box h4 {
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.info-box p { color: var(--text-light); }

/* Page hero (inner pages, photo-capable, angled bottom) */
.page-hero {
  position: relative;
  background:
    linear-gradient(rgba(10,13,30,0.7), rgba(10,13,30,0.7)),
    linear-gradient(120deg, var(--hero-grad-a), var(--hero-grad-b));
  background-size: cover;
  background-position: center 40%;
  color: var(--white);
  text-align: center;
  padding: 150px 0 170px;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero > .container { width: min(1180px, 92%); }
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: var(--surface);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
}
.page-hero img.hero-logo {
  margin: 0 auto 22px;
  max-height: 140px;
  width: auto;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.55));
}
.page-hero h1 {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}
.page-hero p { color: var(--cyan-light); margin-top: 8px; font-size: 1.1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.breadcrumb { font-size: 0.85rem; margin-top: 16px; color: var(--steel); }
.breadcrumb a { color: var(--cyan-light); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--black);
  color: var(--steel);
  padding: 60px 0 0;
  font-size: 0.94rem;
  border-top: 4px solid var(--brand-accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 42px;
}
.footer-grid img {
  height: 58px; width: auto; margin-bottom: 16px;
  background: #e9ecf1; padding: 8px 12px; border-radius: 8px;
}
footer h5 {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer a { color: var(--steel); }
footer a:hover { color: var(--cyan-light); }
.footer-bottom {
  border-top: 1px solid #2c2f36;
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #8b8f99;
}

/* ---------- Trust badges ---------- */
.badges-band {
  background: linear-gradient(90deg, var(--navy-darker), var(--navy-dark), var(--navy-darker));
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dark);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 18px 0;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(127,210,245,0.3);
  border-radius: 40px;
  padding: 10px 22px;
  font-weight: 600;
  color: #e3e9fb;
  font-size: 0.92rem;
}
.badge-item .icon { color: var(--cyan-light); font-size: 1.15rem; }

/* ---------- Animated stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat h3 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  background: linear-gradient(180deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  line-height: 1.1;
}
.stat p {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  font-size: 0.82rem;
  margin-top: 6px;
  font-weight: 600;
}
.stats-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 26px;
}

/* ---------- Division / client strip ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.client-slot {
  border: 1px solid var(--border-dark);
  background: var(--surface-light);
  border-radius: 10px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  padding: 18px;
  text-align: center;
  border-top: 3px solid var(--brand-accent);
}
.client-slot small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.client-slot img {
  max-height: 78px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.client-slot img.logo-dark { background: #000; }
a.client-slot { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
a.client-slot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-highlight);
}

/* Company names in their own brand colors (tints readable on dark) */
.client-slot.brand-energy { color: #7d92f2; border-top-color: #1e2a78; }
.client-slot.brand-trucking { color: #f0555a; border-top-color: #2b3990; }
.client-slot.brand-kimberley { color: #c9666b; border-top-color: #9a1e23; }
.client-slot.brand-oil { color: #45c2f0; border-top-color: #29a8e6; }

/* Anchored cards land below the sticky header */
.card[id], section[id] { scroll-margin-top: 120px; }

/* "Learn More" links on service cards */
.learn-more {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--cyan);
  font-size: 0.95rem;
}
.learn-more:hover { color: var(--cyan-light); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details {
  background: var(--surface-light);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  padding: 17px 46px 17px 22px;
  font-weight: 700;
  color: var(--white);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 1.4rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 22px 18px; color: var(--text-light); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.gallery .shot {
  border-radius: 12px;
  height: 230px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  color: var(--text-light);
  background: var(--surface-light);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  padding: 0;
}
.gallery .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery .shot:hover img { transform: scale(1.06); }
.gallery .shot.wide { grid-column: span 2; }

/* ---------- Back to top ---------- */
#backTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 200;
  box-shadow: var(--shadow-md);
}
#backTop.show { opacity: 1; pointer-events: auto; }
#backTop:hover { transform: translateY(-3px); }

/* ---------- Social icons ---------- */
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #22252d;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-weight: 700;
  font-size: 0.8rem;
}
.socials a:hover { background: var(--brand-accent); color: #fff; }

/* ---------- Steps (how it works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  counter-reset: step;
}
.step {
  background: var(--surface-light);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-sm);
}
.step h4 { color: var(--white); text-transform: uppercase; margin-bottom: 8px; font-size: 1.2rem; }
.step p { color: var(--text-light); font-size: 0.93rem; }

/* ---------- Hero video embed (Kimberley reel) ---------- */
.hero-video-embed {
  margin: 34px auto 0;
  width: 315px;
  max-width: 88vw;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.22);
  line-height: 0;
}
.hero-video-embed iframe { max-width: 100%; }

/* ---------- Careers banner ---------- */
.banner-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.banner-photo img { width: 100%; }

/* ---------- Scroll effects ---------- */
/* Off-screen reveal elements (and skewed bands) must never create sideways scroll */
html, body { overflow-x: hidden; }

.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal.fade-up { transform: translateY(36px); }
.reveal.fade-left { transform: translateX(-48px); }
.reveal.fade-right { transform: translateX(48px); }
.reveal.visible { opacity: 1; transform: none; }

/* counter-skewed band content still reveals cleanly:
   reveal transforms compose with the band's counter-skew */
.band-gray > .container.reveal, .band-dark > .container.reveal, .cta-strip > .container.reveal { transform: skewY(var(--unskew)); }

header.site-header { transition: box-shadow 0.3s ease; }
header.site-header.scrolled { box-shadow: var(--shadow-md); }
header.site-header.scrolled .logo img { height: 48px; }
header.site-header.scrolled .logo img[src*="enterprises"] { height: 36px; }
.logo img { transition: height 0.3s ease; }

.hero .hero-logo { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  nav.main-nav a { padding: 10px 9px; font-size: 0.78rem; }
}
@media (max-width: 900px) {
  .split, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; font-size: 1.6rem; padding: 10px 16px; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface-light);
    box-shadow: var(--shadow-md);
    padding: 10px 0 16px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  /* Bigger, easier tap targets in the mobile menu */
  nav.main-nav a {
    display: block;
    padding: 14px 22px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-dark);
  }
  nav.main-nav ul.dropdown a {
    font-size: 0.95rem;
    padding: 12px 22px;
    border-bottom: 1px solid var(--border-dark);
    border-left: 3px solid var(--border-dark);
  }
  nav.main-nav ul.dropdown a:hover { padding-left: 22px; }
  /* Desktop-only decorations off on mobile: underline + dropdown caret */
  nav.main-nav > ul > li > a::before { display: none; }
  nav.main-nav > ul > li:has(> ul.dropdown) > a::after { display: none; }
  nav.main-nav a.nav-cta {
    margin: 12px 22px 0;
    text-align: center;
    border-bottom: none;
    border-radius: 8px;
  }
  /* Hero buttons stack cleanly */
  .hero .btn { margin: 8px 6px 0; }
  nav.main-nav li ul.dropdown,
  nav.main-nav li:hover > ul.dropdown,
  nav.main-nav li:focus-within > ul.dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 18px;
    min-width: 0;
  }
  nav.main-nav li ul.dropdown::before { display: none; }
  nav.main-nav ul.dropdown a { white-space: normal; }
  .gallery .shot.wide { grid-column: span 1; }
  .hero { padding: 90px 0 130px; }
  .band-gray, .band-dark, .cta-strip { margin: 30px 0; padding: 80px 0; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .logo img { height: 46px; }
  form.contact-form { padding: 24px 18px; }
  /* Top bar: keep just the dispatch number, centered */
  .topbar .container { justify-content: center; }
  .topbar span:nth-child(2),
  .topbar span:nth-child(3) { display: none; }
  /* Comfortable section spacing on small screens */
  section { padding: 56px 0; }
  .band-gray, .band-dark, .cta-strip { padding: 64px 0; }
  .hero { padding: 70px 0 110px; }
  .hero .tagline { font-size: 1rem; }
  .cta-strip .btn { display: block; margin: 10px auto 0; max-width: 320px; }
}
