/* ==========================================================================
   HEMFRY - Page: Vangabaritni transport (vangabaritni-transport.html)
   Page-only layout. Tokens, grid and components come from hemfry.css.
   ========================================================================== */

/* 01 - Hero: panoramic photo band at natural ratio (whole machine visible),
   title overlaps only the road/grass below the load --------------------- */
.vt-hero {
  --img-h: min(
    43.65vw,
    72svh
  ); /* 2000 × 873 source → 43.65vw keeps the full frame */
  --overlap: clamp(96px, 11vw, 176px);
  min-height: 0;
  justify-content: flex-start;
  padding-top: calc(var(--img-h) - var(--overlap));
}
.vt-hero .page-hero__bg {
  bottom: auto;
  height: var(--img-h);
}
.vt-hero .page-hero__bg img {
  transform: scale(1.04);
  transition: transform 2.4s var(--ease);
}
.is-loaded .vt-hero .page-hero__bg img {
  transform: none;
}
.vt-hero .page-hero__bg::after {
  background:
    linear-gradient(
      0deg,
      var(--ink) 0%,
      rgba(17, 17, 17, 0.86) 16%,
      rgba(17, 17, 17, 0.25) 40%,
      rgba(17, 17, 17, 0) 58%
    ),
    linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.62) 0%,
      rgba(17, 17, 17, 0.18) 20%,
      rgba(17, 17, 17, 0) 30%
    );
}
.vt-hero .eyebrow {
  margin-bottom: 20px;
}
.vt-hero .breadcrumb,
.vt-hero .breadcrumb li + li::before {
  color: rgba(245, 245, 242, 0.72);
}
.vt-hero .breadcrumb a {
  color: rgba(245, 245, 242, 0.86);
}
.vt-hero .breadcrumb [aria-current] {
  color: var(--paper);
}
.vt-hero__title {
  font-size: clamp(2.5rem, 1.25rem + 3.7vw, 4.875rem);
  max-width: 20ch;
}
.vt-hero__row {
  margin-top: clamp(28px, 3vw, 44px);
  row-gap: 28px;
}
.vt-hero__row .lead {
  color: #d2d1ca;
  max-width: 48ch;
}
.vt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 1100px) {
  .vt-hero__actions {
    justify-content: flex-end;
  }
}
.vt-hero__foot {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 242, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  color: #a3a29b;
}
.vt-hero__foot > span:first-child {
  color: var(--fg);
}
@media (max-width: 699px) {
  .vt-hero {
    --img-h: 78vw;
    --overlap: 44px;
  }
  .vt-hero .breadcrumb {
    position: static;
    margin-bottom: 18px;
  }
  .vt-hero__actions .btn {
    width: 100%;
  }
  .vt-hero__actions .btn--ghost {
    display: none;
  }
  .vt-hero__cap {
    display: none;
  }
  .vt-hero__eyebrow-x {
    display: none;
  }
}

/* 02 - Cargo index (typographic list) ------------------------------------ */
.vt-cargo {
  border-top: 1px solid var(--ink);
}
.vt-cargo__row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px 16px;
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}
.vt-cargo__idx {
  padding-top: 8px;
  color: var(--fg-faint);
}
.vt-cargo__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 670;
  font-size: clamp(1.5rem, 0.95rem + 1.9vw, 2.875rem);
  letter-spacing: -0.028em;
  line-height: 1.02;
  text-wrap: balance;
}
.vt-cargo__items,
.vt-cargo__ref {
  grid-column: 2;
}
.vt-cargo__items {
  color: var(--fg-muted);
  max-width: 46ch;
  text-wrap: pretty;
}
.vt-cargo__ref {
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vt-cargo__ref > span {
  color: var(--fg-faint);
}
.vt-cargo__ref a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
@media (min-width: 1100px) {
  .vt-cargo__row {
    grid-template-columns: 64px minmax(0, 5.2fr) minmax(0, 3.6fr) minmax(
        0,
        2.4fr
      );
    column-gap: var(--gap);
    align-items: baseline;
    padding: 34px 0 36px;
  }
  .vt-cargo__items,
  .vt-cargo__ref {
    grid-column: auto;
  }
  .vt-cargo__idx {
    padding-top: 0;
  }
}

/* 03 - Equipment ---------------------------------------------------------- */
.vt-equip {
  row-gap: clamp(40px, 5vw, 64px);
}
.vt-equip__item .media {
  margin-bottom: 20px;
}
.vt-equip__cat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-faint);
}
.vt-equip__cat span:first-child {
  color: var(--accent);
}
.vt-equip__name {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 660;
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.vt-equip__text {
  margin-top: 10px;
  font-size: var(--fs-small);
  color: var(--fg-muted);
  max-width: 42ch;
}

/* 03 - Technical block: schematic + table + permits ----------------------- */
.vt-tech {
  margin-top: clamp(72px, 9vw, 144px);
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.vt-tech__head {
  row-gap: 16px;
  margin-bottom: clamp(32px, 4vw, 56px);
  align-items: end;
}

.vt-draw {
  margin: 0 0 clamp(40px, 5vw, 64px);
}
.vt-draw__scroll {
  overflow-x: auto;
  scrollbar-width: none;
}
.vt-draw__scroll::-webkit-scrollbar {
  display: none;
}
.vt-draw__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.vt-draw__svg * {
  vector-effect: non-scaling-stroke;
}
.vt-draw__svg .d-veh {
  fill: none;
  stroke: var(--fg-muted);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.vt-draw__svg .d-body {
  fill: rgba(245, 245, 242, 0.04);
}
.vt-draw__svg .d-dot {
  fill: var(--fg-muted);
  stroke: none;
}
.vt-draw__svg .d-ground {
  stroke: var(--line-strong);
  stroke-width: 1.2;
}
.vt-draw__svg .d-hatch {
  stroke: var(--line);
  stroke-width: 1;
}
.vt-draw__svg .d-warn {
  stroke: var(--accent);
  stroke-width: 3;
}
.vt-draw__svg .d-ext {
  stroke: rgba(245, 245, 242, 0.4);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  fill: none;
}
.vt-draw__svg .d-dim {
  stroke: var(--fg);
  stroke-width: 1.2;
  fill: none;
}
.vt-draw__svg .d-tick {
  stroke: var(--accent);
  stroke-width: 2.4;
  fill: none;
}
.vt-draw__svg .d-lbl {
  fill: var(--fg);
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
}
.vt-draw__hint {
  display: none;
}
@media (max-width: 699px) {
  .vt-draw__scroll {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .vt-draw__svg {
    width: 760px;
    max-width: none;
  }
  .vt-draw__hint {
    display: inline;
    color: var(--accent);
  }
}
/* line-draw on reveal */
.js .vt-draw .d-veh,
.js .vt-draw .d-dim {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 2.6s var(--ease-io);
}
.js .vt-draw.is-in .d-veh,
.js .vt-draw.is-in .d-dim {
  stroke-dashoffset: 0;
}
.js .vt-draw .d-lbl,
.js .vt-draw .d-tick {
  opacity: 0;
  transition: opacity 800ms var(--ease) 1.6s;
}
.js .vt-draw.is-in .d-lbl,
.js .vt-draw.is-in .d-tick {
  opacity: 1;
}

.theme-dark .table-wrap {
  border-top-color: var(--fg);
}
.vt-table td {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.vt-table td:first-child {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
}
.vt-table th:first-child,
.vt-table td:first-child {
  width: 34%;
}
.vt-code {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin-left: 10px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  vertical-align: 0.2em;
}

.vt-permit {
  position: relative;
  display: grid;
  gap: 20px 40px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 36px clamp(20px, 3vw, 40px) 32px;
  background: var(--ink-3);
  border-radius: var(--r-xs);
  overflow: hidden;
}
.vt-permit .chevrons {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.vt-permit__label .mono {
  color: var(--accent);
}
.vt-permit__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 680;
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2.125rem);
  letter-spacing: -0.024em;
  line-height: 1.05;
}
.vt-permit__text {
  color: var(--fg-muted);
  max-width: 58ch;
}
.vt-permit__list {
  display: grid;
  gap: 10px;
  align-content: start;
  color: var(--fg);
}
.vt-permit__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vt-permit__list li::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--accent);
}
@media (min-width: 1100px) {
  .vt-permit {
    grid-template-columns: 3fr 5fr 3fr;
    align-items: start;
  }
}

/* 04 - Specs summary + request form -------------------------------------- */
.vt-ask {
  padding-right: clamp(0px, 2vw, 32px);
}
.vt-ask__call {
  margin-top: 40px;
}
.vt-ask__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  letter-spacing: -0.02em;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px
    no-repeat;
  transition: background-size var(--t) var(--ease);
}
.vt-ask__phone:hover {
  background-size: 100% 2px;
}
.vt-ask__phone svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 1099px) {
  .vt-form {
    margin-top: clamp(40px, 6vw, 64px);
  }
}

.vt-form {
  border-top: 3px solid var(--accent);
  background: var(--paper);
  --surface: var(--white);
}
.vt-form__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.vt-form__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 16px;
}
.vt-form__full {
  grid-column: 1 / -1;
}
.vt-form__weight {
  grid-column: 1 / -1;
}
.vt-form__dims {
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .vt-form__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .vt-form__grid > .field {
    grid-column: span 3;
  }
  .vt-form__grid > .vt-form__full {
    grid-column: 1 / -1;
  }
  .vt-form__grid > .vt-form__weight {
    grid-column: span 2;
  }
  .vt-form__grid > .vt-form__dims {
    grid-column: span 4;
  }
}
.vt-dims {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.vt-dims .input {
  padding-right: 34px;
  padding-left: 14px;
}
.vt-dims .input-unit__u {
  right: 12px;
}
.vt-dims__x {
  font-family: var(--font-mono);
  color: var(--fg-faint);
}
.vt-form .input[type="date"] {
  font-family: var(--font-body);
}

.vt-toggle {
  position: relative;
}
.vt-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.vt-toggle span {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--surface);
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.vt-toggle:hover span {
  border-color: var(--fg-muted);
}
.vt-toggle input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.vt-toggle input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.vt-form__flex .chips {
  flex-wrap: nowrap;
}
.vt-form__flex .vt-toggle {
  flex: 1;
}
.vt-form__flex .vt-toggle span {
  width: 100%;
  justify-content: center;
}

.vt-upload {
  min-height: 150px;
  padding: 24px 20px;
}
.vt-upload .upload__icon {
  width: 44px;
  height: 44px;
}
.vt-form__actions {
  margin-top: 32px;
}
@media (max-width: 699px) {
  .vt-form__actions {
    position: static;
    margin-inline: 0;
    padding: 24px 0 0;
    background: none;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .vt-form__actions .btn {
    width: 100%;
  }
}

/* 05 - Gallery ------------------------------------------------------------ */
.vt-gallery {
  align-items: start;
}
.vt-gallery__end {
  align-self: end;
}
.vt-gallery .figcap span:last-child {
  color: var(--fg);
}
@media (max-width: 699px) {
  .vt-gallery__pano {
    aspect-ratio: 16 / 9;
  }
}

/* 07 - CTA --------------------------------------------------------------- */
.vt-cta__title {
  font-size: clamp(2.75rem, 1.2rem + 5.8vw, 7.25rem);
}
