@media (max-width: 780px) {
  .site-header,
  .site-header.is-scrolled { height: 68px; }

  .brand img {
    max-width: 154px;
    height: auto;
  }

  .service-card-actions { grid-template-columns: 1fr; }

  .hero-actions .btn,
  .cta-actions .btn,
  .form-actions .btn,
  .center-actions .btn { width: 100%; }

  .client-logo-track { animation-duration: 16s; }
}

@media (max-width: 520px) {
  .footer-bottom { gap: 10px; text-align: center; }

  .chat-window {
    right: 10px;
    bottom: 154px;
    left: 10px;
    width: auto;
    max-height: calc(100svh - 174px);
  }
}

/* Final header and footer alignment */
.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
}

.footer-social a i,
.footer-social a svg,
.footer-contact-line > i,
.footer-contact-line > svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  stroke-width: 2;
}

.footer-contact-line {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.footer-contact-line span,
.footer-contact-line a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-bottom {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

@media (min-width: 981px) {
  .site-header .nav-shell {
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: clamp(16px, 1.8vw, 26px);
  }

  .site-header .brand {
    width: 170px;
    min-width: 170px;
  }

  .site-header .site-nav {
    position: static !important;
    display: flex !important;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center;
    gap: clamp(11px, 1.25vw, 20px) !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: auto !important;
    white-space: nowrap;
  }

  .site-header .site-nav > a,
  .site-header .dropdown-toggle {
    display: inline-flex !important;
    width: auto !important;
    min-width: max-content;
    min-height: 0;
    padding: 25px 0 !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0 !important;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .site-header .nav-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  .site-header .nav-actions .icon-link {
    width: auto;
    min-width: 92px;
    min-height: 44px;
    padding: 0 15px;
    white-space: nowrap;
  }

  .site-header .nav-actions .icon-link span {
    display: inline-flex !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  .site-header .menu-button {
    display: none !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .site-header .nav-shell {
    grid-template-columns: 148px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .site-header .brand {
    width: 148px;
    min-width: 148px;
  }

  .site-header .site-nav {
    gap: 10px !important;
  }

  .site-header .site-nav > a,
  .site-header .dropdown-toggle {
    font-size: 12px;
  }

  .site-header .nav-cta {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .site-header .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    gap: 12px;
  }

  .site-header .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .site-header .nav-actions .icon-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
  }

  .site-header .nav-actions .icon-link span {
    display: none !important;
  }

  .site-header .nav-actions .icon-link i,
  .site-header .nav-actions .icon-link svg {
    width: 19px;
    height: 19px;
  }

  .site-header .menu-button {
    display: block !important;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .site-header .nav-cta {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
