/* Final public-site polish. Loaded after legacy and redesign layers. */
/* Keep the hero sector strip and section navigation on one desktop canvas.
   The hero already starts after the fixed identity rail, so the strip must
   not apply a second rail offset. */
@media (min-width: 921px) {
  .hero-shell,
  .section {
    margin-right: 56px;
  }

  .ticker-strip {
    left: 0;
  }

  .section-dock {
    width: auto;
    max-width: none;
    margin: 18px 56px 0;
  }
}

@media (max-width: 920px) {
  .hero-shell,
  .section {
    margin-right: 0;
  }
}

.hero-shell {
  min-height: clamp(620px, 68svh, 760px);
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  align-content: start;
  min-height: 0;
  padding: 0;
}

.hero-copy {
  max-width: 800px;
  align-self: start;
  min-width: 0;
}

.hero-copy .lead {
  max-width: min(590px, 100%);
  overflow-wrap: anywhere;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(3.3rem, 5.6vw, 5.7rem);
}

.route-drawing {
  top: -7svh;
  right: -7vw;
  width: min(58vw, 780px);
  opacity: 0.84;
  transform: translateX(24vw) scale(0.86);
  transform-origin: top right;
}

@media (min-width: 721px) {
  .hero-grid {
    position: absolute;
    top: clamp(132px, 18svh, 188px);
    left: 0;
    right: 0;
  }
}

.roadways-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-panel,
.repos-media figure {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  min-height: 0;
  overflow: hidden;
  clip-path: none !important;
}

.media-panel img,
.repos-media img {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-panel figcaption,
.repos-media figcaption {
  position: static;
  flex: 0 0 auto;
  min-height: 0;
  padding: 13px 15px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  color: var(--white);
  background: rgba(6, 43, 41, 0.96);
  backdrop-filter: none;
  font-size: 0.85rem;
  line-height: 1.42;
}

.repos-media figure {
  aspect-ratio: 4 / 3;
}

.repos-media {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  align-items: start;
}

.repos-media figure.repos-vehicle-rear {
  aspect-ratio: 3 / 4;
}

.repos-media figure.repos-vehicle-rear img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #f6f8f5;
}

.repos-media figcaption {
  color: var(--ink);
  background: rgba(255, 253, 243, 0.96);
  border-top-color: var(--line);
}

.testimonial-grid cite {
  display: block;
  margin-top: 14px;
  color: #07584f;
}

/* Keep every section compact enough for scanning, without flattening the hierarchy. */
.section {
  padding-top: clamp(52px, 5.2vw, 78px);
  padding-bottom: clamp(52px, 5.2vw, 78px);
}

.section-index {
  grid-template-columns: 54px max-content minmax(0, 1fr);
  gap: 14px;
  margin-bottom: clamp(18px, 2.5vw, 30px);
}

.section-index strong {
  order: initial;
  grid-column: auto;
}

h2 {
  max-width: 700px;
  font-size: clamp(1.95rem, 2.9vw, 3.45rem);
  line-height: 1.05;
}

.wide-grid,
.split-layout,
.repos-layout,
.petro-layout,
.clients-grid,
.fuel-retail {
  gap: clamp(24px, 3.6vw, 46px);
}

.strategy-grid,
.roadway-grid,
.roadways-media,
.repos-media {
  margin-top: clamp(26px, 3.6vw, 42px);
}

.strategy-grid article,
.roadway-grid article,
.division-board article {
  min-height: 0;
}

/* Roadways now uses public capability labels rather than operational headcounts. */
.fleet-ledger span {
  font-size: clamp(1.35rem, 2.4vw, 2.45rem);
  line-height: 1;
}

/* Verified marks and named references are separated so no ambiguous logo is implied. */
.client-logo-groups {
  display: grid;
  gap: 28px;
}

.reference-group,
.industry-reference-group {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.reference-label {
  margin: 0 0 12px;
  color: var(--petrol);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-wall.logo-wall--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.logo-wall--compact .logo-card {
  grid-template-rows: 62px auto;
  min-height: 134px;
  padding: 14px;
}

.logo-wall--compact .logo-card img {
  width: 100%;
  max-width: 142px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.logo-wall--compact .logo-card img.logo-mark {
  width: 62px;
  max-width: 62px;
  height: 62px;
}

.logo-wall--compact .logo-card img.logo-wordmark {
  max-width: 160px;
}

.contact-section {
  padding-top: clamp(50px, 4.5vw, 68px);
  padding-bottom: clamp(54px, 4.5vw, 74px);
}

.contact-section .section-index {
  display: none;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
}

.contact-grid > div:first-child {
  position: static;
}

.contact-grid h2 {
  max-width: 430px;
  font-size: clamp(1.8rem, 2.55vw, 2.7rem);
}

@media (max-width: 720px) {
  .hero-shell {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    width: var(--mobile-content);
    margin-left: var(--gutter);
    margin-right: auto;
    position: relative;
    padding: 104px 0 86px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .hero-copy .lead {
    max-width: 100%;
  }

  .route-drawing {
    top: -1svh;
    right: -28vw;
    width: 132vw;
    opacity: 0.72;
    transform: none;
  }

  .roadways-media,
  .repos-media,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .logo-wall.logo-wall--compact {
    grid-template-columns: 1fr;
  }

  .contact-grid h2 {
    max-width: 100%;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .section-index {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .section-index::after {
    display: none;
  }
}

/* Client-reference additions and mobile containment. */
.logo-wall--compact .logo-mark--oil-india {
  object-fit: cover;
  object-position: center 24%;
}

.petrochem-section .section-brand-strip--petrochem {
  overflow: visible;
}

.petrochem-section .section-brand-strip--petrochem img {
  display: block;
  padding: 4px;
  object-fit: contain;
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
    --mobile-content: calc(100% - (var(--gutter) * 2));
  }

  .identity-rail {
    display: none;
  }

  .hero-shell,
  .section,
  .hero-grid,
  .section > *,
  .section > * > *,
  .section-dock {
    min-width: 0;
  }

  .hero-grid {
    width: var(--mobile-content);
    max-width: var(--mobile-content);
    margin-inline: auto;
  }

  .section-dock {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    margin: 0;
    transform: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .section-dock a {
    flex: 0 0 auto;
    padding-inline: 14px;
    white-space: nowrap;
  }

  .section-index,
  .section-index.light,
  .section-index.dark {
    width: var(--mobile-content);
    max-width: var(--mobile-content);
    margin-inline: auto;
  }

  .roadways-section .section-brand-strip,
  .petrochem-section .section-brand-strip--petrochem,
  .fuel-retail,
  .retail-table,
  .network-note,
  .client-logo-groups,
  .reference-group,
  .industry-reference-group {
    width: var(--mobile-content);
    max-width: var(--mobile-content);
    margin-inline: auto;
  }

  .petrochem-section .section-brand-strip--petrochem {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 120px;
  }

  .petrochem-section .section-brand-strip--petrochem img {
    width: 86px;
    height: 92px;
  }

  .logo-wall.logo-wall--compact {
    grid-template-columns: 1fr;
  }
}

/* DR Petrochem's supplied tall mark needs clear breathing room on every
   breakpoint; the previous square slot visually clipped its vertical shape. */
.petrochem-section .section-brand-strip--petrochem {
  grid-template-columns: 142px minmax(0, 1fr);
  min-height: 164px;
  overflow: visible;
}

.petrochem-section .section-brand-strip--petrochem img {
  width: 124px;
  height: 136px;
  max-height: none;
  padding: 4px;
  object-fit: contain;
  overflow: visible;
}

@media (max-width: 720px) {
  .petrochem-section .section-brand-strip--petrochem {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 144px;
  }

  .petrochem-section .section-brand-strip--petrochem img {
    width: 104px;
    height: 120px;
  }
}

/* Shared hero contract: the logo lockup and all copy always sit above the
   route drawing, while route colour, opacity, and movement match Brij. */
.hero-shell {
  isolation: isolate;
}

.hero-grid {
  z-index: 2;
  min-height: clamp(500px, calc(76svh - 72px), 650px);
  padding: 64px 0 104px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  isolation: isolate;
  max-width: 760px;
}

.hero-copy::before {
  display: none;
}

.hero-brand-logo,
.hero-brand-name,
.hero-copy .kicker,
.hero-copy .lead {
  position: relative;
  z-index: 1;
}

.hero-copy .kicker {
  margin-bottom: 18px;
  font-size: 0.72rem;
}

.hero-copy .lead {
  max-width: 610px;
  font-size: 1.14rem;
  line-height: 1.5;
}

.hero-brand-logo,
.hero-brand-logo--vivek {
  width: min(150px, 42vw);
  margin-bottom: 14px;
}

.hero-brand-name {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 4.15vw, 3.35rem);
}

.hero-copy .hero-brand-name span {
  display: inline;
}

.hero-copy .hero-brand-name span + span::before {
  content: " ";
}

.route-drawing {
  z-index: 0;
  opacity: 0.72;
}

.route-drawing path,
body.motion-ready .route-drawing path {
  fill: none;
  stroke: #ff9933;
  stroke-width: 3;
  stroke-dasharray: 14 18;
  stroke-linecap: square;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: sharedHeroRouteMove 9s linear infinite;
}

.route-drawing path:nth-child(2),
body.motion-ready .route-drawing path:nth-child(2) {
  stroke: rgba(255, 255, 255, 0.92);
  animation-duration: 12s;
}

.route-drawing path:nth-child(3),
body.motion-ready .route-drawing path:nth-child(3) {
  stroke: #138808;
  animation-duration: 15s;
}

@keyframes sharedHeroRouteMove {
  to {
    stroke-dashoffset: -320;
  }
}

@media (max-width: 720px) {
  .hero-grid {
    min-height: clamp(490px, calc(76svh - 66px), 630px);
    padding: 54px 0 96px;
  }

  .hero-brand-logo,
  .hero-brand-logo--vivek {
    width: min(136px, 38vw);
  }

  .hero-brand-name {
    font-size: clamp(2.2rem, 9vw, 2.7rem);
  }

  .hero-copy .hero-brand-name span {
    display: block;
  }

  .hero-copy .hero-brand-name span + span::before {
    content: none;
  }

  .route-drawing {
    top: 5svh;
    left: -48vw;
    width: 190vw;
    opacity: 0.72;
  }

  .petro-layout > div:last-child {
    order: 1;
  }

  .petro-layout > .petro-image {
    order: 2;
    margin-top: 8px;
  }
}

@media (max-width: 360px) {
  .hero-brand-name {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 2.45rem);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 720px) {
  .hero-brand-name span {
    display: block;
  }
}

/* Azure identity hero: text-led, centered, and free of a background photograph. */
.hero-shell {
  min-height: clamp(560px, 76svh, 720px);
  background: var(--hero-surface, var(--deep));
}

.hero-image,
.hero-shell::before,
.hero-shell::after {
  display: none;
}

.hero-grid {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  min-height: clamp(500px, calc(76svh - 72px), 650px);
  padding: 64px 0 104px;
  text-align: center;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.hero-copy .kicker {
  justify-content: center;
}

.hero-copy .lead {
  margin-right: auto;
  margin-left: auto;
}

.route-drawing {
  top: -18svh;
  left: -8vw;
  right: auto;
  z-index: 0;
  width: 112vw;
  max-width: none;
  height: auto;
  opacity: 0.32;
  pointer-events: none;
  transform: none;
}

@media (max-width: 720px) {
  .hero-shell {
    min-height: clamp(560px, 76svh, 700px);
  }

  .hero-grid {
    min-height: clamp(490px, calc(76svh - 66px), 630px);
    padding: 54px 0 96px;
  }

  .route-drawing {
    top: 5svh;
    left: -48vw;
    right: auto;
    width: 190vw;
    opacity: 0.18;
  }
}

/* Official identity system: source logos are treated as primary brand marks, not decoration. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-brand-logo,
.section-brand-logo {
  display: block;
  object-fit: contain;
}

.hero-brand-logo {
  width: min(315px, 72vw);
  max-height: 200px;
  margin: 0 auto 22px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(247, 253, 255, 0.96);
  box-shadow: 0 16px 44px rgba(4, 30, 40, 0.18);
}

.hero-brand-logo--vivek {
  width: min(248px, 62vw);
  max-height: 182px;
  padding: 8px 14px;
}

.section-brand-logo {
  margin: 0 0 18px;
  padding: 8px 12px;
  border-left: 3px solid var(--mint);
  background: rgba(247, 253, 255, 0.96);
}

.section-brand-logo--group {
  width: min(166px, 48vw);
  max-height: 126px;
}

.section-brand-logo--roadways {
  width: min(238px, 62vw);
  height: 62px;
  padding: 10px 14px;
}

.section-brand-logo--petrochem {
  width: min(138px, 42vw);
  height: 124px;
  padding: 8px 10px;
}

.roadways-section .section-brand-logo,
.petrochem-section .section-brand-logo {
  border-left-color: var(--signal);
}

@media (max-width: 720px) {
  .hero-brand-logo {
    margin-bottom: 18px;
  }

  .section-brand-logo--roadways {
    width: min(220px, 74vw);
  }
}

/* Brand integration refinement: logos have a defined role in the layout, not a card-like treatment. */
.hero-shell {
  background: #eaf7fa;
}

.hero-brand-logo,
.hero-brand-logo--vivek {
  width: min(300px, 68vw);
  max-height: none;
  margin: 0 auto 20px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy .kicker,
.hero-copy .lead {
  color: var(--ink);
}

.hero-copy .kicker::before {
  background: var(--petrol);
}

.route-drawing {
  opacity: 0.72;
}

.route-drawing path:nth-child(3) {
  filter: drop-shadow(0 1px 1px rgba(13, 43, 61, 0.24));
}

.section-brand-strip {
  display: grid;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.section-brand-strip img {
  display: block;
  background: #f7fcfd;
  object-fit: contain;
}

.section-brand-strip span {
  color: rgba(247, 253, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-brand-strip--roadways img {
  width: 238px;
  height: 62px;
  padding: 10px 15px;
}

.section-brand-strip--petrochem img {
  width: 84px;
  height: 92px;
  padding: 8px;
}

@media (max-width: 720px) {
  .hero-brand-logo,
  .hero-brand-logo--vivek {
    width: min(262px, 70vw);
  }

  .section-brand-strip {
    gap: 11px;
  }

  .section-brand-strip--roadways img {
    width: min(218px, 66vw);
  }
}

/* Final Vivek lockups: retain the supplied symbols while giving all company names readable web typography. */
.hero-brand-logo,
.hero-brand-logo--vivek {
  width: min(182px, 46vw);
  margin-bottom: 12px;
}

.hero-brand-name {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: clamp(2.55rem, 4.5vw, 3.7rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.section-brand-strip img {
  padding: 0;
  background: transparent;
  filter: grayscale(1) brightness(0) invert(1);
}

.section-brand-strip--roadways img {
  width: 230px;
  height: auto;
}

.section-brand-strip--petrochem {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
}

.section-brand-strip--petrochem img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.section-brand-strip--petrochem div {
  display: grid;
  gap: 3px;
}

.section-brand-strip--petrochem strong {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.1;
}

.section-brand-strip--petrochem span {
  display: block;
}

@media (max-width: 720px) {
  .hero-brand-logo,
  .hero-brand-logo--vivek {
    width: min(164px, 44vw);
  }

  .hero-brand-name {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .section-brand-strip--roadways img {
    width: min(210px, 64vw);
  }
}

/* Sub-brand stages give Roadways and DR Petrochem the same deliberate prominence as the group mark. */
.section-brand-strip {
  width: min(100%, 410px);
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 0;
  border-left: 3px solid var(--signal);
  background: #f5fcfd;
  box-shadow: 0 12px 28px rgba(3, 30, 45, 0.18);
}

.section-brand-strip img {
  justify-self: start;
  filter: none;
}

.section-brand-strip span {
  color: var(--ink-2);
}

.section-brand-strip--roadways img {
  width: min(278px, 100%);
  height: 74px;
  object-position: left center;
}

.section-brand-strip--petrochem {
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: center;
  width: min(100%, 340px);
}

.section-brand-strip--petrochem img {
  width: 90px;
  height: 96px;
}

.section-brand-strip--petrochem strong {
  color: var(--ink);
  font-size: 1.15rem;
}

@media (max-width: 720px) {
  .section-brand-strip {
    width: min(100%, 348px);
    padding: 14px 16px;
  }

  .section-brand-strip--roadways img {
    width: min(252px, 100%);
  }
}

/* Larger sub-brand lockups and a top-aligned Petrochem composition. */
.roadways-section .section-brand-strip {
  width: min(100%, 472px);
  padding: 20px 22px;
}

.roadways-section .section-brand-strip--roadways img {
  width: min(346px, 100%);
  height: 94px;
}

.petro-layout {
  align-items: start;
}

.petrochem-section .section-brand-strip--petrochem {
  grid-template-columns: 142px minmax(0, 1fr);
  width: min(100%, 430px);
  min-height: 148px;
  padding: 18px 20px;
}

.petrochem-section .section-brand-strip--petrochem img {
  width: 120px;
  height: 112px;
}

.petrochem-section .section-brand-strip--petrochem strong {
  font-size: 1.35rem;
}

@media (max-width: 720px) {
  .roadways-section .section-brand-strip,
  .petrochem-section .section-brand-strip--petrochem {
    width: 100%;
  }

  .roadways-section .section-brand-strip--roadways img {
    width: min(306px, 100%);
    height: 82px;
  }

  .petrochem-section .section-brand-strip--petrochem {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 128px;
  }

  .petrochem-section .section-brand-strip--petrochem img {
    width: 96px;
    height: 92px;
  }
}

/* Keep the group wordmark inside the smallest supported viewport. */
@media (max-width: 360px) {
  .hero-brand-name {
    max-width: 100%;
    font-size: 2rem;
    overflow-wrap: anywhere;
  }
}

/* Phone layout: keep hero copy and navigation inside the actual viewport.
   The section routes wrap deliberately instead of leaking off canvas. */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .hero-shell {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-grid {
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
    margin-inline: auto !important;
  }

  .hero-copy,
  .hero-copy .lead {
    width: 100%;
    max-width: 100% !important;
  }

  .ticker-strip {
    display: none;
  }

  .section-dock {
    display: grid;
    width: calc(100% - 24px) !important;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 46px;
    gap: 4px;
    margin: 10px auto 0;
    padding: 4px;
    border: 1px solid rgba(24, 59, 54, 0.24);
    border-radius: 10px;
    background: rgba(251, 253, 249, 0.97);
    box-shadow: 0 10px 24px rgba(24, 59, 54, 0.1);
    overflow: hidden;
  }

  .section-dock a {
    display: grid;
    min-height: 0;
    min-width: 0;
    place-items: center;
    padding: 6px;
    border: 1px solid rgba(24, 59, 54, 0.14);
    border-radius: 6px;
    white-space: normal;
    font-size: 0.6rem;
    line-height: 1.1;
    text-align: center;
  }
}

/* Final DR Petrochem lockup dimensions. Keep this at the stylesheet end so
   earlier experimental logo sizes cannot crop the supplied vertical mark. */
.petrochem-section .section-brand-strip--petrochem {
  grid-template-columns: 142px minmax(0, 1fr);
  min-height: 164px;
  overflow: visible;
}

.petrochem-section .section-brand-strip--petrochem img {
  width: 124px;
  height: 136px;
  max-height: none;
  padding: 4px;
  object-fit: contain;
  overflow: visible;
}

@media (max-width: 720px) {
  .petrochem-section .section-brand-strip--petrochem {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 144px;
  }

  .petrochem-section .section-brand-strip--petrochem img {
    width: 104px;
    height: 120px;
  }
}
