/* TruckLo Home — Figma 65:1543 / 644:13457 */
:root {
  --tl-primary: #0d1234;
  --tl-accent: #ef4136;
  --tl-ink: #292d32;
  --tl-muted-bg: #f4f4f5;
  --tl-white: #ffffff;
  --tl-border: rgba(13, 18, 52, 0.12);
  --tl-font-display: "Open Sans", system-ui, sans-serif;
  --tl-font-ui: "Inter", system-ui, sans-serif;
  --tl-radius-pill: 56px;
  --tl-radius-btn: 0 16px 16px 16px;
  --tl-content-max: 1640px;
  --tl-gutter: 140px;
}

.tl-page--home {
  background: var(--tl-white);
  color: var(--tl-primary);
  font-family: var(--tl-font-ui);
}

.tl-page--home .tl-main {
  overflow-x: clip;
}

.tl-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.tl-home-wrap {
  width: min(100% - 2 * var(--tl-gutter), var(--tl-content-max));
  margin-inline: auto;
}

.tl-eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--tl-font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tl-accent);
}

.tl-home-h2 {
  margin: 0;
  font-family: var(--tl-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  color: var(--tl-primary);
}

.tl-home-lead {
  margin: 1rem 0 0;
  font-family: var(--tl-font-display);
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--tl-ink);
  max-width: 42rem;
}

.tl-home-section {
  padding: 80px 0;
}

.tl-home-section__head { margin-bottom: 48px; }
.tl-home-section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.tl-home-section__head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-home-section__cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.tl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tl-primary);
}
.tl-text-link:hover { color: var(--tl-accent); }

/* ——— Hero ——— */
.tl-home-hero {
  position: relative;
  min-height: 900px;
  padding: 63px 0 80px;
  background: var(--tl-white);
  overflow: hidden;
}

.tl-home-hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.tl-home-hero__veh {
  position: absolute;
  opacity: 0.9;
  object-fit: cover;
  max-width: none;
}

.tl-home-hero__veh--tl {
  width: min(42vw, 696px);
  left: -4%;
  top: -4%;
  transform: rotate(2.83deg);
}
.tl-home-hero__veh--van {
  width: min(45vw, 757px);
  left: -12%;
  top: 28%;
  transform: scaleX(-1);
}
.tl-home-hero__veh--tr {
  width: min(32vw, 538px);
  right: -4%;
  top: -2%;
}
.tl-home-hero__veh--tanker {
  width: min(34vw, 554px);
  right: -2%;
  top: 18%;
}
.tl-home-hero__veh--bus {
  width: min(55vw, 1011px);
  right: -18%;
  bottom: -2%;
  transform: rotate(-2.9deg) scaleX(-1);
}

.tl-home-hero__content {
  position: relative;
  z-index: 1;
  width: min(899px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.tl-home-hero__title {
  margin: 0;
  font-family: var(--tl-font-display);
  font-weight: 700;
  font-size: 80px;
  line-height: 84px;
  color: var(--tl-primary);
}
.tl-home-hero__title span { display: block; }
.tl-home-hero__title-accent { color: var(--tl-accent); }

.tl-home-hero__sub {
  margin: 0;
  font-family: var(--tl-font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  color: var(--tl-ink);
}

.tl-home-hero__controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tl-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--tl-muted-bg);
  border-radius: var(--tl-radius-pill);
  padding: 4px;
}

.tl-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--tl-font-ui);
  font-weight: 600;
  font-size: 18px;
  color: var(--tl-ink);
  padding: 18px 60px;
  border-radius: 46px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tl-tabs__btn.is-active {
  background: var(--tl-white);
  color: var(--tl-accent);
}

.tl-searchbar {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--tl-primary);
  border: 1px solid var(--tl-primary);
  border-radius: var(--tl-radius-pill);
  padding: 4px;
  gap: 0;
}
.tl-searchbar.is-hidden { display: none; }

.tl-searchbar__mobile-label {
  display: none;
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--tl-ink);
  text-align: center;
}

.tl-searchbar__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 10px 20px;
  color: var(--tl-white);
  text-decoration: none;
  position: relative;
}
.tl-searchbar__field--query {
  border-right: 1px solid rgba(217, 217, 217, 0.8);
  border-radius: 46px 0 0 46px;
}
.tl-searchbar__field span,
.tl-searchbar__field select,
.tl-searchbar__field input {
  font-family: var(--tl-font-ui);
  font-size: 18px;
  color: var(--tl-white);
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
  appearance: none;
}
.tl-searchbar__field select option { color: var(--tl-primary); }
.tl-searchbar__field input::placeholder { color: rgba(255,255,255,.75); }
.tl-searchbar__chevron {
  flex-shrink: 0;
  pointer-events: none;
  filter: brightness(0) invert(1);
}
.tl-searchbar__field img:first-child {
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.tl-searchbar__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--tl-font-ui);
  font-weight: 600;
  font-size: 18px;
}
.tl-searchbar__submit--icon {
  width: 80px;
  height: 80px;
  border-radius: 46px;
  background: var(--tl-white);
}
.tl-searchbar__submit--icon img {
  filter: invert(27%) sepia(89%) saturate(2878%) hue-rotate(346deg) brightness(97%) contrast(93%);
}
.tl-searchbar__submit--text {
  display: none;
  height: 60px;
  padding: 0 20px;
  border-radius: 46px;
  background: var(--tl-white);
  color: var(--tl-primary);
}
.tl-searchbar__submit--text img { filter: none; }

/* ——— Categories ——— */
.tl-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.tl-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 163px;
  padding: 20px 12px;
  background: var(--tl-muted-bg);
  border-radius: 16px;
  text-decoration: none;
  color: var(--tl-primary);
  font-family: var(--tl-font-display);
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tl-cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 18, 52, 0.08);
}
.tl-cat-tile img { width: 80px; height: 80px; }

/* ——— Ready stock ——— */
.tl-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.tl-carousel::-webkit-scrollbar { display: none; }
.tl-carousel__arrows { display: flex; gap: 8px; }
.tl-carousel__arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--tl-primary);
  background: var(--tl-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tl-carousel__arrow--next {
  background: var(--tl-primary);
}
.tl-carousel__arrow--next img { filter: brightness(0) invert(1); }

.tl-offer-card {
  flex: 0 0 min(350px, 85vw);
  scroll-snap-align: start;
  background: var(--tl-muted-bg);
  border-radius: 16px;
  overflow: hidden;
}
.tl-offer-card__media {
  display: block;
  height: 280px;
  background: #e8e8ea;
  overflow: hidden;
}
.tl-offer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tl-offer-card__body { padding: 20px; }
.tl-offer-card__cat {
  margin: 0;
  font-size: 14px;
  color: var(--tl-accent);
  font-weight: 600;
}
.tl-offer-card__title {
  margin: 4px 0 12px;
  font-family: var(--tl-font-display);
  font-size: 20px;
  line-height: 1.3;
  color: var(--tl-primary);
}
.tl-offer-card__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--tl-font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--tl-primary);
}
.tl-offer-card__price small {
  font-size: 18px;
  font-weight: 600;
}
.tl-offer-card__meta {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--tl-ink);
}

/* ——— Trust ——— */
.tl-home-trust {
  background: var(--tl-muted-bg);
}
.tl-trust-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 20px;
  justify-content: center;
  margin: 40px 0 56px;
}
.tl-trust-stat {
  background: var(--tl-white);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
}
.tl-trust-stat__num {
  margin: 0;
  font-family: var(--tl-font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--tl-primary);
}
.tl-trust-stat__label {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--tl-ink);
}
.tl-trust-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tl-trust-logo {
  background: var(--tl-white);
  border-radius: 12px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0.85;
}
.tl-trust-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
}

/* ——— Blog ——— */
.tl-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.tl-blog-card {
  background: var(--tl-muted-bg);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tl-blog-card__media {
  display: block;
  height: 240px;
  overflow: hidden;
}
.tl-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tl-blog-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.tl-blog-card__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--tl-white);
  color: var(--tl-primary);
}
.tl-blog-card__title {
  margin: 0;
  font-family: var(--tl-font-display);
  font-size: 22px;
  line-height: 1.25;
  color: var(--tl-primary);
}
.tl-blog-card__lead {
  margin: 0;
  color: var(--tl-ink);
  font-size: 15px;
  line-height: 1.45;
  flex: 1;
}

/* ——— Partners ——— */
.tl-home-partners { padding-top: 0; }
.tl-partners-banner {
  height: 360px;
  overflow: hidden;
  background: var(--tl-primary);
}
.tl-partners-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: luminosity;
}
.tl-home-partners .tl-home-wrap { padding-top: 56px; }
.tl-home-partners .tl-btn { margin-top: 24px; }
.tl-partners-benefits {
  margin-top: 48px;
  display: grid;
  gap: 16px;
}
.tl-benefit {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: var(--tl-muted-bg);
  border-radius: 16px;
}
.tl-benefit--accent {
  background: var(--tl-primary);
  color: var(--tl-white);
}
.tl-benefit--accent h3,
.tl-benefit--accent p { color: var(--tl-white); }
.tl-benefit__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--tl-accent);
  background: var(--tl-white);
  border-radius: 12px;
}
.tl-benefit--accent .tl-benefit__icon { background: rgba(255,255,255,.1); }
.tl-benefit h3 {
  margin: 0 0 8px;
  font-family: var(--tl-font-display);
  font-size: 24px;
  color: var(--tl-primary);
}
.tl-benefit p {
  margin: 0;
  color: var(--tl-ink);
  line-height: 1.45;
}

/* ——— Contact ——— */
.tl-home-contact {
  background: var(--tl-muted-bg);
}
.tl-home-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.tl-contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  text-decoration: none;
  color: var(--tl-primary);
  font-size: 20px;
  font-weight: 600;
}
.tl-contact-row__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--tl-white);
  display: grid;
  place-items: center;
}
.tl-home-contact__form-title {
  margin: 0 0 20px;
  font-family: var(--tl-font-display);
  font-size: 28px;
  color: var(--tl-primary);
}
.tl-home-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tl-home-field {
  display: block;
  background: var(--tl-white);
  border-radius: 12px;
  padding: 4px;
}
.tl-home-field input,
.tl-home-field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  padding: 16px 18px;
  color: var(--tl-primary);
  resize: vertical;
}
.tl-home-field--area textarea { min-height: 140px; }

/* ——— Final CTA ——— */
.tl-home-final-cta {
  background: var(--tl-primary);
  color: var(--tl-white);
}
.tl-home-final-cta .tl-home-h2,
.tl-home-final-cta .tl-home-lead { color: var(--tl-white); }
.tl-home-final-cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.tl-home-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.tl-home-final-cta .tl-btn--outline {
  border-color: var(--tl-white);
  color: var(--tl-white);
}

/* ——— Responsive ≤768 (mobile 644) ——— */
@media (max-width: 768px) {
  :root { --tl-gutter: 16px; }

  .tl-home-section { padding: 60px 0; }
  .tl-home-hero {
    min-height: 0;
    padding: 24px 0 0;
  }
  .tl-home-hero__content {
    width: min(400px, calc(100% - 40px));
    gap: 28px;
    align-items: stretch;
  }
  .tl-home-hero__title {
    font-size: 40px;
    line-height: 48px;
  }
  .tl-home-hero__sub {
    font-size: 18px;
    line-height: 26px;
  }
  .tl-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .tl-tabs__btn {
    flex: 1;
    padding: 16px 12px;
    font-size: 14px;
  }
  .tl-searchbar {
    flex-wrap: wrap;
    background: transparent;
    border: 0;
    padding: 0;
    gap: 12px;
  }
  .tl-searchbar__mobile-label { display: block; width: 100%; }
  .tl-searchbar__field--query { display: none; }
  .tl-searchbar[data-tl-panel="self"] .tl-searchbar__field--query {
    display: flex;
    width: 100%;
    flex: 1 1 100%;
    background: var(--tl-primary);
    border-radius: 46px;
    border-right: 0;
  }
  .tl-searchbar__field--cat {
    flex: 1 1 auto;
    background: var(--tl-primary);
    border-radius: 46px;
  }
  .tl-searchbar__submit--icon { display: none; }
  .tl-searchbar__submit--text { display: inline-flex; }

  .tl-home-hero__art {
    position: relative;
    height: 380px;
    margin-top: 24px;
  }
  .tl-home-hero__veh--tl,
  .tl-home-hero__veh--van { display: none; }
  .tl-home-hero__veh--tr {
    width: 244px;
    left: 5px; right: auto; top: 0;
  }
  .tl-home-hero__veh--tanker {
    width: 251px;
    left: 141px; right: auto; top: 59px;
  }
  .tl-home-hero__veh--bus {
    width: 314px;
    left: 29px; right: auto; bottom: 0; top: auto;
    transform: none;
  }
  .tl-home-hero {
    display: flex;
    flex-direction: column;
  }
  .tl-home-hero__content { order: 1; }
  .tl-home-hero__art { order: 2; }

  .tl-cat-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .tl-cat-tile {
    flex: 0 0 155px;
    scroll-snap-align: start;
  }

  .tl-blog-grid,
  .tl-home-contact__grid,
  .tl-trust-logos {
    grid-template-columns: 1fr;
  }
  .tl-trust-stats {
    grid-template-columns: 1fr 1fr;
  }
  .tl-trust-stat__num { font-size: 48px; }
  .tl-partners-banner { height: 280px; }
  .tl-benefit { flex-direction: column; }
  .tl-home-section__head--row { align-items: center; }
  .tl-home-final-cta__actions { flex-direction: column; width: 100%; }
  .tl-home-final-cta__actions .tl-btn { width: 100%; }
}

@media (max-width: 1100px) and (min-width: 769px) {
  :root { --tl-gutter: 40px; }
  .tl-home-hero__title { font-size: 56px; line-height: 60px; }
  .tl-home-hero__sub { font-size: 24px; }
  .tl-tabs__btn { padding: 16px 28px; font-size: 16px; }
  .tl-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-trust-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
