/* ============================================================
   Passato Transport (transport.html)
   Loads after styles.css + hero-b.css. Same tokens: light theme,
   logo blue as the one accent, 16px surfaces, pill buttons.
   Section families: poster hero (shared .hb-poster) / stacked head + panorama /
   photo with overlapping panel / 1+2 bento / text + contact list.
   ============================================================ */

/* ---------- hero: container yard, copy in the open sky above the stacks ---------- */
.tr-hero { --poster-pos: 50% 70%; }
.tr-hero .hb-poster-copy h1 { max-width: 15ch; }

/* ---------- services: four columns under an accent rule, one quote link each ---------- */
.tr-svc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3) clamp(1.25rem, 2.5vw, 2.25rem);
  margin-top: var(--s4);
}
.tr-svc { display: flex; flex-direction: column; padding-top: var(--s3); border-top: 2px solid var(--accent); }
.tr-svc-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-surface);
  background: var(--bg-2);
  color: var(--accent);
  font-size: 1.5rem;
}
.tr-svc .h-item { margin-top: 1rem; }
.tr-svc p { margin-top: 0.4rem; color: var(--text-dim); font-size: 0.97rem; }
.tr-svc-link { display: inline-flex; align-items: center; gap: 0.4em; margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--accent); }
.tr-svc-link .ph { transition: transform 0.2s; }
@media (hover: hover) {
  .tr-svc-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
  .tr-svc-link:hover .ph { transform: translateX(3px); }
}
.tr-svc.rv:nth-child(2) { transition-delay: 0.06s; }
.tr-svc.rv:nth-child(3) { transition-delay: 0.12s; }
.tr-svc.rv:nth-child(4) { transition-delay: 0.18s; }
@media (max-width: 1000px) { .tr-svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tr-svc-list { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tr-svc-link .ph { transition: none; } .tr-svc.rv { transition-delay: 0s; } }

/* ---------- logistics: heading stacked over a panoramic photo, loads listed below it ---------- */
.tr-log-head { max-width: 46rem; }
.tr-log-head .lead { margin-top: 1rem; }
.tr-pano { margin-top: var(--s4); }
/* logistics grid: one big photo, one tall, two small stacked; desktop 2fr / 1fr / 1fr */
.tr-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(170px, 17vw, 250px));
  gap: var(--s2);
}
.tr-g { display: block; overflow: hidden; border-radius: var(--r-surface); background: var(--bg-3); }
.tr-g--main { grid-row: 1 / 3; }
.tr-g--tall { position: relative; grid-row: 1 / 3; }
.tr-g--tall img { position: absolute; inset: 0; } /* the neighbours set the height; the tall photo fills it */
.tr-g img { cursor: zoom-in; }
.tr-g img, .tr-overlap-img img, .tr-cell-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.tr-loads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
}
.tr-loads ul { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; }
.tr-loads li { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; }
.tr-loads li .ph { font-size: 1.4rem; color: var(--accent); }
.tr-steel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--accent);
}
.tr-steel-link .ph { transition: transform 0.25s; }

/* ---------- towing: wide photo, white panel hanging over its lower-right edge ---------- */
.tr-overlap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-bottom: var(--s4); /* room for the panel that hangs below the photo */
}
.tr-overlap-img {
  grid-column: 1 / 10;
  grid-row: 1;
  display: block;
  overflow: hidden;
  border-radius: var(--r-surface);
  background: var(--bg-3);
  aspect-ratio: 16 / 10;
}
.tr-overlap-panel {
  grid-column: 8 / 13;
  grid-row: 1;
  align-self: end;
  position: relative;
  margin-bottom: calc(-1 * var(--s4));
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--bg);
  border-radius: var(--r-surface);
  box-shadow: 0 30px 60px -32px rgba(15, 22, 56, 0.4), 0 0 0 1px var(--line);
}
.tr-overlap-panel p { margin-top: 1rem; color: var(--text-dim); max-width: 38ch; }

/* ---------- why: 1 + 2 bento, each cell a different surface ---------- */
.tr-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--s2);
  margin-top: var(--s4);
}
.tr-cell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-radius: var(--r-surface);
  background: var(--bg-2);
}
.tr-cell > .ph, .tr-cell-body > .ph { font-size: 1.75rem; color: var(--accent); margin-bottom: 0.35rem; }
.tr-cell p { color: var(--text-dim); max-width: 40ch; }

.tr-cell--fleet { grid-row: 1 / 3; padding: 0; gap: 0; }
.tr-cell-img { position: relative; flex: 1; min-height: 260px; overflow: hidden; }
.tr-cell-img img { position: absolute; inset: 0; }
.tr-cell-body { display: flex; flex-direction: column; gap: 0.6rem; padding: clamp(1.5rem, 2.6vw, 2.25rem); }

.tr-cell--time { background: var(--accent-fill); color: #fff; }
.tr-cell--time > .ph { color: #fff; }
.tr-cell--time p { color: rgba(255, 255, 255, 0.88); }

/* the client's hero gradient, reused as a surface; navy text keeps AA on its lightest and darkest blues */
.tr-cell--group { background: url("../assets/img/hero-gradient.webp") 30% 40% / cover; }
.tr-cell--group::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/img/grain.svg");
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}
.tr-cell--group p { color: var(--text); }
.tr-cell--group > .ph { color: var(--accent-deep); }
.tr-cell-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: auto; padding-top: 0.6rem; }
.tr-cell-links a {
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* ---------- contact: section sits on the alt tint, so hover lifts to white ---------- */
.tr-contact .contact-row:hover { background: var(--bg); }
@media (min-width: 801px) {
  .tr-contact .contact-row { grid-template-columns: 12rem minmax(0, 1fr) auto; }
}

/* ---------- hover (pointer devices only) ---------- */
@media (hover: hover) {
  .tr-g:hover img,
  .tr-overlap:hover .tr-overlap-img img,
  .tr-cell--fleet:hover .tr-cell-img img { transform: scale(1.03); }
  .tr-steel-link:hover .ph { transform: translate(2px, -2px); }
  .tr-steel-link:hover span { text-decoration: underline; text-underline-offset: 0.25em; }
  .tr-cell-links a:hover { text-decoration-thickness: 2px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  /* the 12rem label column leaves the descriptions too narrow beside the heading: stack instead */
  .tr-contact .contact { grid-template-columns: minmax(0, 1fr); }
  .tr-overlap-img { grid-column: 1 / 11; }
  .tr-overlap-panel { grid-column: 6 / 13; }
}

/* ---------- phone: every block one column ---------- */
@media (max-width: 800px) {
  .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 0.6rem; }
  .tr-g--main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .tr-g--tall { grid-row: span 2; }
  .tr-g:not(.tr-g--main):not(.tr-g--tall) { aspect-ratio: 4 / 3; }
  .tr-loads { flex-direction: column; align-items: flex-start; }
  .tr-loads ul { flex-direction: column; gap: 0.6rem; }

  .tr-overlap { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .tr-overlap-img { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; }
  .tr-overlap-panel {
    grid-column: 1;
    grid-row: 2;
    margin: -2.5rem 0.75rem 0;
  }

  .tr-bento { grid-template-columns: minmax(0, 1fr); }
  .tr-cell--fleet { grid-row: auto; }
  .tr-cell-img { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-g img, .tr-overlap-img img, .tr-cell-img img,
  .tr-steel-link .ph { transition: none; }
}
