/* Shared alignment and responsive stability for every public page. */
:root {
  --ds-page-gutter: clamp(16px, 3vw, 40px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

img,.ds-topbar-item, .ds-topbar-call, .ds-topbar-call strong
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Keep page content equally spaced from the left and right edges. */
:where(
  .container,
  .ds-container,
  .ds-topbar-container,
  .ds-header-container,
  .ds-hero-container,
  .ds-stats-container,
  .ds-search-container,
  .ds-about-container,
  .ds-number-container,
  .ds-media-container,
  .ds-locations-container,
  .ds-why-container,
  .ds-process__container,
  .ds-professional-container,
  .ds-faq-container,
  .ds-trust-container,
  .ds-service-hero__container,
  .about-hero__container,
  .contact-container,
  .gantry-container,
  .up-container,
  .vm-container,
  .truck-container
) {
  box-sizing: border-box;
  padding-left: var(--ds-page-gutter);
  padding-right: var(--ds-page-gutter);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  .ds-header-actions .ds-campaign-trigger { display: none; }
  .ds-mobile-toggle { display: inline-block; }
}

@media (max-width: 767px) {
  :root { --ds-page-gutter: 14px; }
  html,
  body { max-width: 100%; overflow-x: hidden; }
  h1,
  h2,
  h3,
  p,
  a,
  span { overflow-wrap: break-word; }
}

/* Final cross-page responsive guardrails. Loaded after component styles. */
body,
main,
section,
header,
footer {
  min-width: 0;
}

:where(.ds-header-container, .ds-topbar-container) > * {
  min-width: 0;
}

:where(.ds-menu-list, .ds-mobile-menu-inner, .ds-topbar-left, .ds-topbar-right) {
  min-width: 0;
}

:where(h1, h2, h3, h4, p, li, a, button, label, strong, small, span) {
  word-break: normal;
  overflow-wrap: anywhere;
}

:where(input, select, textarea, button) {
  max-width: 100%;
  font: inherit;
}

table {
  max-width: 100%;
}

.ds-topbar-container {
  padding-left: var(--ds-page-gutter);
  padding-right: var(--ds-page-gutter);
}

.ds-topbar-left,
.ds-topbar-right {
  flex-wrap: nowrap;
}

.ds-mobile-navigation {
  overscroll-behavior: contain;
}

.ds-mobile-menu-inner {
  width: min(100%, 720px);
  margin-inline: auto;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/* About page: readable hero type and cards that grow with their content. */
.about-hero__title {
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  text-wrap: balance;
}

.about-hero__description {
  max-width: 62ch;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.7;
}

.vm-cards,
.ds-achievements-grid {
  align-items: stretch;
}

.vm-card,
.ds-achievement-card {
  min-width: 0;
  height: auto;
  overflow: hidden;
}

.vm-card-content,
.ds-achievement-card .ds-card-content {
  min-width: 0;
}

.vm-card p,
.ds-achievement-card p {
  max-width: 100%;
  overflow-wrap: break-word;
}

@media (max-width: 1100px) {
  .ds-topbar-container {
    gap: 12px;
  }

  .ds-main-header {
    z-index: 998;
  }

  .ds-mobile-navigation.ds-mobile-nav-open {
    max-height: calc(100dvh - var(--ds-header-height));
  }
}

@media (max-width: 850px) and (min-width: 651px) {
  .ds-topbar-container {
    justify-content: space-between;
  }

  .ds-topbar-item,
  .ds-topbar-call,
  .ds-topbar-call strong {
    font-size: 11px;
  }
}

@media (max-width: 650px) {
  .ds-topbar {
    min-height: 42px;
  }

  .ds-topbar-container {
    min-height: 42px;
    padding-inline: var(--ds-page-gutter);
  }

  .ds-topbar-mobile {
    justify-content: flex-end;
    gap: 10px;
  }

  .ds-topbar-mobile a {
    flex: 0 0 30px;
    overflow: visible;
  }

  .ds-header-container {
    width: 100%;
    padding-inline: var(--ds-page-gutter);
  }

  .ds-header-logo {
    min-width: 0;
    max-width: calc(100% - 58px);
  }

  .ds-header-logo img {
    width: auto;
    max-width: min(180px, 100%);
    height: auto;
    max-height: 58px;
    object-fit: contain;
  }

  .ds-mobile-menu-inner {
    padding-inline: var(--ds-page-gutter);
  }

  .about-hero {
    min-height: 0;
  }

  .about-hero__container {
    padding-top: clamp(64px, 16vw, 90px);
    padding-bottom: clamp(80px, 20vw, 110px);
  }

  .about-hero__content {
    max-width: 100%;
  }

  .about-hero__title {
    font-size: clamp(38px, 12vw, 56px);
    line-height: 1.02;
  }

  .about-hero__description {
    font-size: 15px;
    line-height: 1.65;
  }

  .vm-cards,
  .ds-achievements-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vm-card {
    padding: 28px 22px 22px;
  }

  .vm-card h3 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.08;
  }

  .vm-card p {
    font-size: 14px;
    line-height: 1.75;
  }

  .vm-card-footer {
    position: static;
    margin-top: 20px;
  }

  .ds-achievement-card {
    min-height: 0;
    padding: 24px 20px;
  }
}

@media (max-width: 380px) {
  :root {
    --ds-page-gutter: 12px;
  }

  .ds-header-logo img {
    max-width: 150px;
  }

  .ds-mobile-toggle {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }

  .about-hero__label {
    font-size: 11px;
    letter-spacing: 1.4px;
  }

  .about-hero__title {
    font-size: clamp(34px, 11.5vw, 44px);
  }

  .vm-card {
    padding-inline: 18px;
  }
}

/* =====================================================
   FINAL MOBILE POLISH — shared across every public page
===================================================== */
@media (max-width: 1100px) {
  .ds-topbar-container {
    min-height: 50px;
    padding-block: 5px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px 16px;
  }

  .ds-topbar-left,
  .ds-topbar-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ds-working-hours,
  .ds-topbar-left .ds-topbar-item:nth-of-type(2),
  .ds-topbar-socials a:nth-child(n) {
    display: inline-flex;
  }
}

@media (max-width: 650px) {
  /* Keep every desktop top-bar item on mobile in two compact rows. */
  .ds-topbar {
    min-height: 0;
    overflow: visible;
  }

  .ds-topbar-container {
    min-height: 0;
    padding: 7px 12px 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .ds-topbar-left,
  .ds-topbar-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 9px;
  }

  .ds-topbar-item,
  .ds-topbar-call,
  .ds-topbar-call strong {
    min-height: 22px;
    font-size: 10px;
    line-height: 2.25;
    white-space: normal;
    text-align: center;
    overflow-wrap: normal;
  }

  .ds-topbar-icon {
    flex: 0 0 auto;
    font-size: 10px;
  }

  .ds-topbar-divider {
    display: block;
    height: 14px;
  }

  .ds-working-hours {
    display: inline-flex;
  }

  .ds-topbar-left .ds-topbar-item:nth-of-type(2) {
    display: inline-flex;
  }

  .ds-topbar-socials {
    gap: 5px;
  }

  .ds-topbar-socials a:nth-child(n) {
    display: inline-flex;
  }

  .ds-social-link {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    font-size: 10px;
  }

  .ds-topbar-mobile {
    display: none;
  }

  /* Consistent, compact typography and safe wrapping on all pages. */
  main :where(h1, .page-title, .service-hero__title, .about-hero__title) {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 44px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em;
  }

  main :where(h2, .section-title, .ds-section-title, .ds-professional-heading h2) {
    max-width: 100%;
    font-size: clamp(27px, 8vw, 34px) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.015em;
  }

  main :where(h3, .card-title) {
    max-width: 100%;
    font-size: clamp(19px, 5.8vw, 23px) !important;
    line-height: 1.28 !important;
  }

  main :where(p, li, .about-hero__description, .service-hero__description) {
    max-width: 100%;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  main :where(a, button, label, input, select, textarea) {
    font-size: 13px;
  }

  main :where(section) {
    min-width: 0;
  }

  /* About achievement cards: content determines height; badge stays in flow. */
  .ds-achievement-card,
  .ds-card-quality,
  .ds-card-journey {
    min-height: 0 !important;
    height: auto !important;
    padding: 22px 18px !important;
  }

  .ds-card-content {
    margin-top: 28px;
  }

  .ds-card-content h3 {
    margin: 14px 0 8px;
  }

  .ds-card-bottom {
    position: static;
    margin-top: 18px;
  }

  .ds-small-badge {
    margin: 0;
    white-space: normal;
    line-height: 1.35;
  }

  /* Footer copy always remains above the decorative highway artwork. */
  .ds-footer-main,
  .ds-footer-grid,
  .ds-footer-column,
  .ds-contact-list,
  .ds-contact-list li,
  .ds-contact-list li > div {
    position: relative;
    z-index: 6;
  }

  .ds-footer-contact {
    padding: 18px 16px;
    border: 1px solid rgba(32, 75, 117, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 30px rgba(13, 34, 53, 0.08);
  }

  .ds-footer-contact :where(strong, p, a),
  .ds-footer-title {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .ds-contact-list a,
  .ds-contact-list p {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .ds-footer-landscape {
    z-index: 1;
  }

  .ds-campaign-submit .ds-submit-arrow i {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
  }
}

/* Homepage location pins: first tap reveals the name, second tap follows link. */
.ds-mobile-pin-hint {
  display: none;
}

@media (max-width: 767px) {
  .ds-location-map .ds-map-pin {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .ds-location-map .ds-pin-label {
    display: block;
    width: max-content;
    min-width: 128px;
    max-width: 180px;
    padding: 9px 11px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 9px);
  }

  .ds-location-map .ds-map-pin.is-active {
    z-index: 120;
  }

  .ds-location-map .ds-map-pin.is-active .ds-pin-label {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .ds-location-map .ds-pin-label strong {
    margin-bottom: 2px;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: normal;
  }

  .ds-location-map .ds-pin-label small {
    font-size: 8px;
    line-height: 1.3;
  }

  .ds-location-map .ds-mobile-pin-hint {
    display: block;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 8px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
  }
}

@media (max-width: 390px) {
  .ds-topbar-container {
    padding-inline: 8px;
  }

  .ds-topbar-left,
  .ds-topbar-right {
    gap: 4px 7px;
  }

  .ds-topbar-item,
  .ds-topbar-call,
  .ds-topbar-call strong {
    font-size: 9px;
  }

  .ds-social-link {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  main :where(h1, .page-title, .service-hero__title, .about-hero__title) {
    font-size: clamp(31px, 9.5vw, 38px) !important;
  }

  main :where(h2, .section-title, .ds-section-title, .ds-professional-heading h2) {
    font-size: clamp(25px, 7.5vw, 30px) !important;
  }
}
