/* Payload IQ — Yard Control industrial site theme */

:root {
  --yard-black: #000000;
  --yard-asphalt: #0a0a0a;
  --yard-charcoal: #141414;
  --yard-steel: #3a4249;
  --yard-steel-light: #5c6670;
  --yard-concrete: #d4d8dc;
  --yard-cement: #eceff2;
  --yard-dust: #9aa3ab;
  --yard-orange: #e85d04;
  --yard-orange-dark: #c44d03;
  --yard-yellow: #ffc300;
  --yard-yellow-dark: #d4a000;
  --yard-safe: #2d6a4f;
  --yard-green: #007a4d;
  --yard-gold: #ffb81c;
  --yard-white: #f7f8f9;
  --yard-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --yard-font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --yard-max: 1180px;
  --yard-radius: 4px;
  --yard-footer-logo-w: 300px;
  --yard-header-logo-w: 240px;
  --yard-header-logo-h: calc(var(--yard-header-logo-w) * 341 / 1024);
  --yard-hazard-h: 10px;
  --yard-page-inset: 1.25rem;
  --yard-header-h: max(88px, calc(var(--yard-header-logo-h) + 1.35rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--yard-header-h);
  color-scheme: only light;
  background-color: #ffffff;
}

body.yard {
  margin: 0;
  font-family: var(--yard-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--yard-charcoal);
  background-color: #ffffff;
  color-scheme: only light;
  -webkit-font-smoothing: antialiased;
}

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

/* Header & footer — full horizontal logo (1024×341) */
.yard-header__brand .yard-logo-footer {
  max-height: none;
}

.yard-logo-footer {
  display: block;
  width: min(var(--yard-footer-logo-w), 100%);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  aspect-ratio: 1024 / 341;
}

.yard-logo-footer--header {
  width: min(var(--yard-header-logo-w), 72vw);
  max-width: var(--yard-header-logo-w);
  flex-shrink: 1;
  min-width: 0;
}

a {
  color: var(--yard-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--yard-orange-dark);
}

/* Brand name — Payload (green) + IQ (gold) */
.yard-piq {
  font-weight: 700;
  font-style: normal;
}

.yard-piq__payload {
  color: var(--yard-green);
}

.yard-piq__iq {
  color: var(--yard-gold);
}

.yard-email-iq {
  text-transform: uppercase;
  color: inherit;
  font-weight: inherit;
}

.yard-email-link .yard-email-iq,
.yard-email-text .yard-email-iq,
strong .yard-email-iq {
  color: inherit;
}

.yard-footer .yard-email-link,
.yard-footer .yard-tel-link {
  color: var(--yard-charcoal);
  transition: color 0.2s ease;
}

.yard-footer .yard-email-link:hover,
.yard-footer .yard-tel-link:hover,
.yard-footer .yard-email-link:focus-visible,
.yard-footer .yard-tel-link:focus-visible {
  color: var(--yard-gold);
}

.yard-footer .yard-email-link .yard-email-iq {
  color: inherit;
  font-weight: inherit;
}

.yard-footer .yard-footer__contact-row {
  color: var(--yard-charcoal);
}

.yard-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--yard-yellow);
  color: var(--yard-asphalt);
  font-weight: 700;
}

.yard-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Hazard stripe utility */
.yard-hazard {
  height: var(--yard-hazard-h);
  background: repeating-linear-gradient(
    -45deg,
    var(--yard-yellow),
    var(--yard-yellow) 12px,
    var(--yard-asphalt) 12px,
    var(--yard-asphalt) 24px
  );
}

/* —— Header —— */
.yard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  min-height: var(--yard-header-h);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem var(--yard-page-inset) 1rem;
  overflow: visible;
  isolation: isolate;
  background-color: #ffffff;
  color-scheme: only light;
  border-bottom: 3px solid var(--yard-green);
}

.yard-header__brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  flex-shrink: 1;
  margin-right: auto;
  min-width: 0;
  max-height: none;
  line-height: 1;
  overflow: visible;
  background-color: transparent;
  text-decoration: none;
}

.yard-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  border: 2px solid var(--yard-green);
  border-radius: var(--yard-radius);
  background: var(--yard-cement);
  color: var(--yard-charcoal);
  font-family: var(--yard-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.yard-menu-btn:hover,
.yard-menu-btn[aria-expanded='true'] {
  background: var(--yard-orange);
  border-color: var(--yard-orange);
  color: #fff;
}

.yard-menu-btn__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.yard-menu-btn__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Drawer */
.yard-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.yard-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.yard-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9600;
  width: min(320px, 88vw);
  height: 100vh;
  padding: calc(var(--yard-header-h) + 1.5rem) 1.5rem 2rem;
  background: #ffffff;
  border-left: 4px solid var(--yard-green);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.yard-drawer.is-open {
  transform: translateX(0);
}

.yard-drawer__label {
  font-family: var(--yard-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yard-steel-light);
  margin: 0 0 1rem;
}

.yard-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yard-drawer__link {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: var(--yard-radius);
  border: 1px solid var(--yard-cement);
  background: #ffffff;
  color: var(--yard-charcoal);
  font-family: var(--yard-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.yard-drawer__link:hover {
  border-color: var(--yard-orange);
  background: rgba(232, 93, 4, 0.08);
  color: var(--yard-orange);
}

.yard-drawer__link.is-active {
  border-color: var(--yard-green);
  background: rgba(0, 122, 77, 0.08);
  color: var(--yard-green);
}

body.yard-drawer-open {
  overflow: hidden;
}

/* —— Layout —— */
.yard-main {
  padding-top: calc(var(--yard-header-h) + 0.5rem);
}

.yard-wrap {
  width: min(100% - 2rem, var(--yard-max));
  margin-inline: auto;
}

/* —— Buttons —— */
.yard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--yard-radius);
  font-family: var(--yard-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.yard-btn--primary {
  background: var(--yard-orange);
  color: #fff;
  box-shadow: 0 4px 0 var(--yard-orange-dark);
}

.yard-btn--primary:hover {
  background: var(--yard-orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

.yard-btn--ghost {
  background: transparent;
  color: var(--yard-green);
  border: 2px solid var(--yard-green);
  box-shadow: none;
}

.yard-btn--ghost:hover {
  border-color: var(--yard-green);
  background: rgba(0, 122, 77, 0.08);
  color: var(--yard-green);
}

.yard-btn--light {
  background: var(--yard-yellow);
  color: var(--yard-asphalt);
  box-shadow: 0 4px 0 var(--yard-yellow-dark);
}

/* —— Hero —— */
.yard-fold {
  display: contents;
}

/* Home above-the-fold: hero + hazard + metrics fill viewport below header */
.yard-page-home .yard-main {
  padding-top: var(--yard-header-h);
}

.yard-page-home .yard-fold {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--yard-header-h));
  max-height: calc(100vh - var(--yard-header-h));
}

.yard-page-home .yard-fold > .yard-hero {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  position: relative;
}

.yard-page-home .yard-hero__visual {
  min-height: 100%;
}

.yard-page-home .yard-fold > .yard-hazard {
  flex: 0 0 var(--yard-hazard-h);
}

.yard-page-home .yard-fold > .yard-metrics {
  flex: 0 0 auto;
}

.yard-page-home .yard-hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: var(--yard-green);
  z-index: 2;
  pointer-events: none;
}

.yard-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  align-items: stretch;
  height: clamp(520px, 78vh, 720px);
  min-height: clamp(520px, 78vh, 720px);
  max-height: 760px;
  background: #ffffff;
}

.yard-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  background: #ffffff;
  border-right: 4px solid var(--yard-green);
}

/* Home hero — copy centred in the left column */
.yard-page-home .yard-hero__copy {
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  border-right: none;
  padding: 0.65rem var(--yard-page-inset) 0.5rem;
}

.yard-page-home .yard-hero__body {
  margin-top: 0;
  padding-top: 0;
  max-width: 36rem;
}

.yard-page-home .yard-hero__tag {
  margin-bottom: 0.55rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.82rem;
}

.yard-page-home .yard-hero__title {
  margin-bottom: 0.55rem;
  font-size: clamp(1.95rem, 4.2vw, 3.35rem);
  line-height: 1.05;
}

.yard-page-home .yard-hero__lead {
  margin-bottom: 0.9rem;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

.yard-page-home .yard-hero__lead .yard-piq {
  font-size: 1.55rem;
}

.yard-page-home .yard-hero__actions .yard-btn {
  padding: 0.8rem 1.4rem;
  font-size: 0.98rem;
}

.yard-page-home .yard-metrics .yard-metric {
  padding: 0.7rem 0.6rem;
}

.yard-page-home .yard-metric__val {
  font-size: 1.4rem;
}

.yard-page-home .yard-metric__lbl {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.yard-hero__body {
  width: 100%;
  max-width: 32rem;
}

.yard-hero__tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.75rem;
  background: var(--yard-orange);
  color: #ffffff;
  font-family: var(--yard-font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.yard-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--yard-font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--yard-charcoal);
}

.yard-hero__title em {
  font-style: normal;
  color: var(--yard-orange);
}

.yard-hero__lead {
  margin: 0 0 1rem;
  max-width: 32rem;
  font-size: 1rem;
  color: var(--yard-steel);
}

.yard-hero__lead .yard-piq {
  font-family: var(--yard-font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.yard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.yard-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.yard-gallery {
  position: absolute;
  inset: 0;
  background: #000;
}

.yard-gallery__slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.yard-gallery__slide.is-active {
  opacity: 1;
}

/* Left-anchored cover — cab on the left, default cover scale unchanged */
.yard-gallery__slide--fit-left {
  background-position: left center;
}

@media (max-aspect-ratio: 1/1) {
  .yard-gallery__slide--fit-left {
    background-position: left center;
  }
}

.yard-gallery__slide--fit-contain {
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #000;
  /* Fill frame height — removes letterboxing with the least crop on wide haul shots */
  background-size: auto 100%;
}

@media (max-aspect-ratio: 1/1) {
  .yard-gallery__slide--fit-contain {
    background-size: 100% auto;
  }
}

/* Wide shots with embedded top/bottom padding — light height-fill past letterboxing */
.yard-gallery__slide--fit-fill-y {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 106%;
}

@media (max-aspect-ratio: 1/1) {
  .yard-gallery__slide--fit-fill-y {
    background-size: cover;
  }
}

/* Low-bed abnormal load: full-height fit — zoomed out, no top/bottom bars */
.yard-gallery__slide--fit-lowbed {
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #000;
  background-size: auto 100%;
}

@media (max-aspect-ratio: 1/1) {
  .yard-gallery__slide--fit-lowbed {
    background-size: auto 100%;
    background-position: center center;
  }
}

/* Container haul: height-fill — cab and load anchored left */
.yard-gallery__slide--fit-intermodal {
  background-repeat: no-repeat;
  background-position: left center;
  background-color: #000;
  background-size: auto 108%;
}

@media (max-aspect-ratio: 1/1) {
  .yard-gallery__slide--fit-intermodal {
    background-size: cover;
    background-position: left center;
  }
}

/* Car carriers: full rig centred — height-fill, no top/bottom bars */
.yard-gallery__slide--fit-wide {
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #000;
  background-size: auto 100%;
}

@media (max-aspect-ratio: 1/1) {
  .yard-gallery__slide--fit-wide {
    background-size: auto 100%;
    background-position: center center;
  }
}

/* Grain interlink: height-fill past frame width, anchor right for leader truck */
.yard-gallery__slide--fit-grain {
  background-repeat: no-repeat;
  background-position: right center;
  background-color: #000;
  background-size: auto 115%;
}

@media (max-aspect-ratio: 1/1) {
  .yard-gallery__slide--fit-grain {
    background-size: auto 115%;
    background-position: right center;
  }
}

.yard-gallery__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 23, 26, 0.5) 0%, transparent 40%);
}

.yard-hero__badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  padding: 0.55rem 1rem;
  background: rgba(20, 23, 26, 0.92);
  border-left: 4px solid var(--yard-yellow);
  font-family: var(--yard-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yard-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* —— Metrics strip —— */
.yard-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--yard-cement);
  border-block: 3px solid var(--yard-green);
}

.yard-metric {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.yard-metric:last-child {
  border-right: none;
}

.yard-metric__val {
  display: block;
  font-family: var(--yard-font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--yard-green);
  line-height: 1.1;
}

.yard-metric__lbl {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yard-charcoal);
}

/* —— Sections —— */
.yard-section {
  padding: 4rem 0;
}

.yard-section--dark {
  background: #f0f4f2;
  color: var(--yard-charcoal);
}

.yard-section--concrete {
  background: #ffffff;
}

.yard-section__head {
  margin-bottom: 2.5rem;
}

.yard-section__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--yard-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yard-orange);
}

.yard-section--dark .yard-section__eyebrow {
  background: var(--yard-orange);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
}

.yard-section__title {
  margin: 0;
  font-family: var(--yard-font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--yard-charcoal);
}

.yard-section__intro {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--yard-steel);
}

/* Bento grid */
.yard-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.yard-card {
  padding: 1.5rem;
  background: #ffffff;
  border: 2px solid var(--yard-cement);
  border-radius: var(--yard-radius);
  border-top: 4px solid var(--yard-green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  color: var(--yard-steel);
}

.yard-section--dark .yard-card,
.yard-section--concrete .yard-card {
  background: #ffffff;
  border-color: var(--yard-cement);
  border-top-color: var(--yard-orange);
}

.yard-card__icon {
  font-family: var(--yard-font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--yard-orange);
  margin-bottom: 0.75rem;
}

.yard-section--dark .yard-card__icon {
  color: var(--yard-yellow);
}

.yard-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--yard-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--yard-charcoal);
}

.yard-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--yard-steel);
}

/* Split field section */
.yard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.yard-split__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--yard-radius);
  border: 3px solid var(--yard-steel);
  object-fit: cover;
  object-position: center 42%;
  box-shadow: inset 0 0 0 4px var(--yard-yellow);
}

.yard-checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.yard-checklist li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  color: var(--yard-steel);
}

.yard-checklist li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--yard-yellow);
  font-weight: 700;
}

/* Home — tighter Watch Tower framing when arriving via “See the dashboard” */
.yard-page-home .yard-cab {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

/* Control room / device scene */
.yard-cab {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--yard-cement) 100%);
  border-top: 4px solid var(--yard-green);
  scroll-margin-top: var(--yard-header-h);
}

.yard-cab__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 901px) {
  .yard-cab__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.yard-cab__copy {
  scroll-margin-top: var(--yard-header-h);
}

.yard-cab__copy h2 {
  margin: 0 0 1rem;
  font-family: var(--yard-font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--yard-charcoal);
}

.yard-cab__copy p {
  margin: 0 0 1.5rem;
  color: var(--yard-steel);
}

.yard-device {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  overflow: visible;
}

.yard-device__viewport {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.yard-device__frame {
  display: block;
  width: 1060px;
  height: 600px;
  border: 0;
  background: transparent;
  transform-origin: top left;
}

/* CTA band */
.yard-cta {
  padding: 3rem 0;
  background: var(--yard-orange);
  text-align: center;
}

.yard-cta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--yard-font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.yard-cta p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* —— Page hero (subpages) —— */
.yard-page-hero {
  padding: 3.5rem 0 3rem;
  background-color: var(--yard-cement);
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid var(--yard-green);
}

.yard-page-hero--contact {
  background-image: linear-gradient(rgba(255, 255, 255, 0.86), rgba(240, 244, 242, 0.9)),
    url('../images/trucks/hero-contact.jpg');
}

.yard-page-hero--privacy {
  background-image: linear-gradient(rgba(255, 255, 255, 0.86), rgba(240, 244, 242, 0.9)),
    url('../images/trucks/hero-privacy.jpg');
}

.yard-page-hero h1 {
  margin: 0;
  font-family: var(--yard-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--yard-charcoal);
}

.yard-page-hero p {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--yard-steel);
}

/* —— Contact form —— */
.yard-form-panel {
  padding: 3rem 0 4rem;
  background: #ffffff;
}

.yard-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: #ffffff;
  border: 2px solid var(--yard-cement);
  border-top: 5px solid var(--yard-green);
  border-radius: var(--yard-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.yard-form__section {
  margin: 0 0 1.75rem;
  padding: 0 0 1.25rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.yard-form__section legend {
  margin-bottom: 1rem;
  padding: 0;
  font-family: var(--yard-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yard-green);
}

.yard-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.yard-form__hint {
  margin: -0.65rem 0 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--yard-steel-light);
}

.yard-form__checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.yard-form__checks .yard-form__check {
  margin-bottom: 0;
}

.yard-form__intro {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--yard-steel);
}

.yard-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yard-charcoal);
}

.yard-form input,
.yard-form textarea,
.yard-form select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--yard-cement);
  border-radius: var(--yard-radius);
  font-family: inherit;
  font-size: 1rem;
  background: #ffffff;
  color: var(--yard-charcoal);
}

.yard-form input:focus,
.yard-form textarea:focus,
.yard-form select:focus {
  outline: none;
  border-color: var(--yard-green);
  background: #ffffff;
}

.yard-form textarea {
  min-height: 120px;
  resize: vertical;
}

.yard-form fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}

.yard-form legend {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.yard-form__radios {
  display: flex;
  gap: 1.25rem;
}

.yard-form__radios label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  font-weight: 500;
}

.yard-form__phone {
  display: flex;
  gap: 0.5rem;
}

.yard-form__intl-phone {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.yard-form__intl-phone select {
  width: auto;
  min-width: 7.5rem;
  max-width: 42%;
  margin-bottom: 0;
  flex-shrink: 0;
}

.yard-form__intl-phone input {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.yard-form__phone span {
  padding: 0.7rem 0.6rem;
  background: var(--yard-charcoal);
  color: var(--yard-white);
  font-weight: 600;
  border-radius: var(--yard-radius);
}

.yard-form__phone input {
  flex: 1;
  margin-bottom: 0;
}

.yard-form__check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.yard-form__check input {
  width: auto;
  margin: 0.2rem 0 0;
}

.yard-form__legal {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--yard-steel-light);
}

.yard-form__success {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(45, 106, 79, 0.12);
  border: 2px solid var(--yard-safe);
  border-radius: var(--yard-radius);
  font-size: 0.92rem;
}

.yard-form__success.is-visible {
  display: block;
}

.yard-required {
  color: var(--yard-orange);
}

/* —— Privacy prose —— */
.yard-prose {
  padding: 3rem 0 4rem;
  background: #ffffff;
}

.yard-prose .yard-wrap {
  max-width: 720px;
}

.yard-prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--yard-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--yard-charcoal);
}

.yard-prose h2:first-child {
  margin-top: 0;
}

.yard-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--yard-green);
}

.yard-prose p,
.yard-prose li {
  color: var(--yard-steel);
}

.yard-prose ul {
  padding-left: 1.25rem;
}

.yard-prose strong {
  color: var(--yard-charcoal);
}

/* —— Footer —— */
.yard-footer {
  position: relative;
  isolation: isolate;
  color: var(--yard-steel);
  padding: 3rem 0 0;
  border-top: 4px solid var(--yard-green);
  background-color: #ffffff;
  color-scheme: only light;
  background-image: none;
}

.yard-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 0.9fr;
  gap: 2rem;
  padding-bottom: 2rem;
  align-items: start;
}

/* Logo top-aligned; Direct line and Navigate sit beside it in the grid */
.yard-footer__brand {
  justify-self: start;
  align-self: start;
}

.yard-footer__logo-wrap {
  display: inline-block;
  line-height: 0;
  max-width: var(--yard-footer-logo-w);
  background-color: #ffffff;
}

.yard-footer__logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.yard-footer__logo-link:hover,
.yard-footer__logo-link:focus-visible {
  color: inherit;
  opacity: 0.9;
}

.yard-footer__heading {
  margin: 0 0 1rem;
  font-family: var(--yard-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yard-orange);
}

.yard-footer__direct .yard-footer__heading {
  margin-bottom: 0.4rem;
}

.yard-footer .yard-footer__hours {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.62);
}

.yard-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.yard-footer a {
  color: var(--yard-charcoal);
  text-decoration: none;
  font-weight: 400;
}

.yard-footer a:hover {
  color: var(--yard-gold);
}

.yard-footer a.yard-footer__nav-link {
  color: var(--yard-charcoal);
  font-weight: 700;
  transition: color 0.2s ease;
}

.yard-footer a.yard-footer__nav-link:hover,
.yard-footer a.yard-footer__nav-link:focus-visible {
  color: var(--yard-gold);
}

.yard-footer__contact-row {
  margin-bottom: 0.35rem;
  font-weight: 400;
}

.yard-footer__contact-person {
  margin-bottom: 1rem;
}

.yard-footer__direct-col > .yard-footer__contact-person:last-child {
  margin-bottom: 0;
}

.yard-footer__direct-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
}

.yard-contact-label {
  color: var(--yard-green);
  font-weight: 700;
}

.yard-footer__bar .yard-piq {
  font-weight: 400;
}

.yard-footer__bar .yard-piq__payload,
.yard-footer__bar .yard-piq__iq {
  color: #000 !important;
}

.yard-footer__bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  color-scheme: only light;
  font-size: clamp(0.68rem, 1.6vw, 0.8rem);
  color: #000;
  text-align: center;
}

.yard-footer__bar-wrap {
  display: flex;
  justify-content: center;
  width: min(100% - 2rem, var(--yard-max));
}

.yard-footer__bar-inner {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  line-height: 1.2;
}

.yard-footer__bar-sep {
  display: inline-flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.35);
  font-weight: 300;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

.yard-footer__copyright {
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
}

.yard-footer__legal-link {
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
  color: var(--yard-charcoal);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.yard-footer__legal-link:hover,
.yard-footer__legal-link:focus-visible {
  color: var(--yard-gold);
}

.yard-footer__social {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}

.yard-footer__bar .yard-footer__social-link {
  width: 1.85rem;
  height: 1.85rem;
}

.yard-footer__bar .yard-footer__social-link svg {
  width: 1rem;
  height: 1rem;
}

.yard-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid var(--yard-green);
  border-radius: 50%;
  color: var(--yard-green);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.yard-footer__social-link:hover,
.yard-footer__social-link:focus-visible {
  color: var(--yard-gold);
  background-color: #ffffff;
  border-color: var(--yard-green);
}

.yard-footer__social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

/* Header & footer chrome lock lives in yard-chrome-lock.css */

/* —— Modal (checklist) —— */
.yard-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: inherit;
}

.yard-modal[hidden],
.yard-modal:not(.is-open) {
  display: none !important;
}

.yard-modal.is-open {
  display: flex !important;
}

body.yard-modal-open {
  overflow: hidden;
}

.yard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 14, 0.8);
}

.yard-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  background: var(--yard-white);
  border: 3px solid var(--yard-charcoal);
  border-top: 6px solid var(--yard-yellow);
  border-radius: var(--yard-radius);
}

.yard-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--yard-radius);
  background: var(--yard-charcoal);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.yard-modal h2 {
  margin: 0 0 0.5rem;
  font-family: var(--yard-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
}

.yard-modal p {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--yard-steel-light);
}

.yard-modal label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #000;
}

.yard-modal input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--yard-concrete);
  border-radius: var(--yard-radius);
}

.yard-modal__note {
  font-size: 0.78rem;
  color: var(--yard-dust);
  margin-bottom: 1rem;
}

/* Hidden PDF source — off-screen but painted for html2canvas */
.piq-checklist-pdf-source {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 794px;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

.piq-pdf-page {
  width: 794px;
  background: #fff;
  border: 3px solid var(--yard-yellow);
  font-family: var(--yard-font-body);
  color: var(--yard-charcoal);
  line-height: 1.45;
}

.piq-pdf-header {
  padding: 22px 28px 18px;
  background: linear-gradient(135deg, var(--yard-charcoal) 0%, var(--yard-asphalt) 100%);
  color: #fff;
  border-bottom: 4px solid var(--yard-orange);
}

.piq-pdf-header h1 {
  margin: 0 0 4px;
  font-family: var(--yard-font-display);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
}

.piq-pdf-header p {
  margin: 0;
  font-size: 14px;
  color: var(--yard-concrete);
}

.piq-pdf-header .yard-piq__payload {
  color: #7dcea0;
}

.piq-pdf-header .yard-piq__iq {
  color: var(--yard-gold);
}

.piq-pdf-content {
  padding: 20px 28px 24px;
  background: #fff;
}

.piq-pdf-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: var(--yard-cement);
  border: 2px solid var(--yard-concrete);
  border-radius: var(--yard-radius);
}

.piq-pdf-meta-label {
  display: block;
  font-family: var(--yard-font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yard-orange);
  margin-bottom: 4px;
}

.piq-pdf-meta-value {
  display: block;
  font-size: 14px;
  min-height: 18px;
  border-bottom: 1px solid var(--yard-steel-light);
  padding-bottom: 2px;
}

.piq-pdf-intro {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--yard-steel-light);
}

.piq-pdf-section {
  margin-bottom: 12px;
  border: 2px solid var(--yard-concrete);
  border-radius: var(--yard-radius);
  overflow: hidden;
}

.piq-pdf-section h2 {
  margin: 0;
  padding: 8px 12px;
  font-family: var(--yard-font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--yard-charcoal);
}

.piq-pdf-items {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: #fff;
}

.piq-pdf-items li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 7px 12px;
  border-bottom: 1px solid var(--yard-concrete);
  font-size: 12.5px;
}

.piq-pdf-items li:last-child {
  border-bottom: none;
}

.piq-pdf-box {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border: 2px solid var(--yard-orange);
  border-radius: 2px;
  background: #fff;
}

.piq-pdf-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 3px solid var(--yard-yellow);
  font-size: 12px;
  color: var(--yard-steel-light);
}

.piq-pdf-footer strong:not(.yard-piq) {
  color: var(--yard-charcoal);
}

.piq-pdf-footer .yard-piq__payload {
  color: var(--yard-green);
}

.piq-pdf-footer .yard-piq__iq {
  color: var(--yard-gold);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  :root {
    --yard-header-logo-w: 220px;
    --yard-header-logo-h: calc(var(--yard-header-logo-w) * 341 / 1024);
    --yard-header-h: max(84px, calc(var(--yard-header-logo-h) + 1.25rem));
  }

  .yard-page-home .yard-fold {
    min-height: auto;
    max-height: none;
  }

  .yard-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .yard-page-home .yard-hero::after {
    display: none;
  }

  .yard-page-home .yard-hero__visual,
  .yard-hero__visual {
    min-height: clamp(200px, 36vw, 300px);
    aspect-ratio: 3 / 2;
    height: auto;
    order: -1;
  }

  .yard-gallery__slide,
  .yard-gallery__slide--fit-left,
  .yard-gallery__slide--fit-contain,
  .yard-gallery__slide--fit-fill-y,
  .yard-gallery__slide--fit-lowbed,
  .yard-gallery__slide--fit-intermodal,
  .yard-gallery__slide--fit-wide,
  .yard-gallery__slide--fit-grain {
    background-size: contain;
    background-position: center center;
  }

  .yard-gallery__slide--fit-left,
  .yard-gallery__slide--fit-intermodal {
    background-position: left center;
  }

  .yard-gallery__slide--fit-grain {
    background-position: right center;
  }

  .yard-gallery__slide::after {
    background: linear-gradient(180deg, rgba(20, 23, 26, 0.15) 0%, transparent 35%, rgba(20, 23, 26, 0.55) 100%);
  }

  .yard-hero__badge {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
    font-size: 0.78rem;
  }

  .yard-hero__copy {
    border-right: none;
    border-top: 4px solid var(--yard-orange);
  }

  .yard-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .yard-metric:nth-child(2) {
    border-right: none;
  }

  .yard-bento {
    grid-template-columns: 1fr;
  }

  .yard-split,
  .yard-cab__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --yard-footer-logo-w: 240px;
    --yard-header-logo-w: 200px;
    --yard-header-logo-h: calc(var(--yard-header-logo-w) * 341 / 1024);
    --yard-header-h: max(76px, calc(var(--yard-header-logo-h) + 1rem));
  }

  .yard-footer__direct-cols {
    grid-template-columns: 1fr;
  }

  .yard-footer__bar .yard-footer__social-link {
    width: 1.55rem;
    height: 1.55rem;
  }

  .yard-footer__bar .yard-footer__social-link svg {
    width: 0.85rem;
    height: 0.85rem;
  }

  .yard-footer__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 1rem 0.75rem;
    align-items: start;
  }

  .yard-footer__brand {
    justify-self: start;
    align-self: start;
  }

  .yard-footer__heading {
    font-size: 0.75rem;
  }

  .yard-footer p {
    font-size: 0.82rem;
  }

  .yard-page-home .yard-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .yard-page-home .yard-hero__copy {
    padding-bottom: 1rem;
  }

  .yard-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .yard-form__intl-phone {
    flex-direction: column;
  }

  .yard-form__intl-phone select {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .yard-metrics {
    grid-template-columns: 1fr;
  }

  .yard-metric {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yard-gallery__slide {
    transition: none;
  }
}
