:root {
  --primary-color: #446084;
  --primary-hover: #36506c;
  --text-color: #333;
  --muted: #666;
  --light-bg: #f1f1f1;
  --header-height: 83px;
  --header-height-stuck: 70px;
  --container: 1080px;
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 100%;
  line-height: 1.6;
  color: var(--text-color);
  background: #fff;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: #111;
}

p {
  margin: 0 0 1em;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  box-shadow: var(--shadow);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

/* Buttons — Flatsome-like */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 0.65em 1.3em;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.button.primary {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.button.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.button.primary.gradient {
  background: linear-gradient(90deg, #36506c 0%, #446084 45%, #5a7aa0 100%);
  border: none;
}

.button.primary.gradient:hover {
  background: linear-gradient(90deg, #2d4259 0%, #36506c 45%, #446084 100%);
}

.button.outline.white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.button.outline.white:hover {
  background: #fff;
  color: #333;
}

.button.large {
  padding: 0.9em 1.7em;
  font-size: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header.is-stuck .header-main {
  height: var(--header-height-stuck);
}

.header.is-stuck .header-logo {
  max-height: var(--header-height-stuck);
}

.header-main {
  height: var(--header-height);
  transition: height 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo a {
  display: inline-block;
}

.header-logo {
  width: 200px;
  max-height: var(--header-height);
  object-fit: contain;
  transition: max-height 0.25s ease;
}

.header-nav .nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav .nav > li > a {
  display: block;
  padding: 0.6em 0.85em;
  color: #111;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.header-nav .nav > li > a:hover,
.header-nav .nav > li.active > a {
  color: var(--primary-color);
}

.header-search {
  position: relative;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.search-toggle:hover {
  color: var(--primary-color);
}

.search-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.search-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-form {
  display: flex;
  gap: 0;
}

.search-form input {
  flex: 1;
  border: 1px solid #ddd;
  border-right: 0;
  padding: 0.55em 0.75em;
  font: inherit;
  outline: none;
}

.search-form input:focus {
  border-color: var(--primary-color);
}

.search-form button {
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  padding: 0 0.85em;
  cursor: pointer;
}

.top-divider {
  height: 1px;
  background: #ececec;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #222;
}

/* Mobile menu */
.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.mobile-menu-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 360px);
  background: #1a1a1a;
  color: #fff;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-strong);
}

.mobile-menu-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.75em 0;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .active a,
.mobile-nav a:hover {
  color: #c9d7e8;
}

/* Hero slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #111;
}

.slides {
  position: relative;
  min-height: 637px;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  display: flex;
  align-items: center;
}

.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  min-height: 637px;
}

.slide-card {
  width: 55%;
  max-width: 620px;
  margin: 8% 0;
  background: rgba(51, 51, 51, 0.517);
  color: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
}

.slide-card h6 {
  margin: 0 0 0.55em;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.slide-card h3 {
  margin: 0 0 0.55em;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
}

.slide-card p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.2em;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.slider-nav:hover {
  background: #fff;
  color: #222;
}

.slider-nav.prev {
  left: 18px;
}

.slider-nav.next {
  right: 18px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.slider-dots button.is-active {
  background: #fff;
}

/* Sections */
.section {
  position: relative;
  padding: 60px 0;
}

.features {
  padding: 30px 0;
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature {
  text-align: center;
  padding: 1.25rem 1.75rem;
  position: relative;
}

.feature:not(:nth-child(4n))::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 0;
  width: 1px;
  height: 76%;
  background: #e4e4e4;
}

.feature-icon {
  width: 60px;
  margin: 0 auto 0.85rem;
}

.feature h5 {
  margin-bottom: 0.65em;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.specialists {
  background: rgb(193, 193, 193);
  position: relative;
}

.specialists::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
}

.specialists .container {
  position: relative;
  z-index: 1;
}

.specialists::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.freight {
  background: #fff;
}

.software {
  background: rgb(193, 193, 193);
  position: relative;
}

.software::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
}

.software .container {
  position: relative;
  z-index: 1;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  width: 91%;
}

.split-media img {
  width: 100%;
  box-shadow: var(--shadow-strong);
}

.split-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-transform: uppercase;
}

.split-content p {
  color: #444;
  margin-bottom: 1.35em;
}

/* CTA */
.cta-banner {
  position: relative;
  background: rgb(74, 74, 74);
  color: #fff;
  padding: 36px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-text {
  flex: 1 1 65%;
  max-width: 640px;
}

.cta-text h2 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.cta-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cta-action {
  flex: 0 0 auto;
  text-align: right;
}

/* Footer */
.footer-widgets {
  background: #fff;
  padding: 50px 0 30px;
  border-top: 1px solid #ececec;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.footer-col h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85em;
}

.footer-col p {
  color: #555;
  margin: 0;
  line-height: 1.8;
}

.footer-col a {
  color: #555;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-logo-col img {
  width: min(100%, 220px);
  margin-left: auto;
}

.absolute-footer {
  background: #111;
  color: #ddd;
  padding: 16px 0;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
}

.copyright strong {
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #111;
  color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature:not(:nth-child(4n))::after {
    display: none;
  }

  .feature:not(:nth-child(2n))::after {
    display: block;
  }
}

@media (max-width: 991px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature::after {
    display: none !important;
  }

  .feature {
    padding: 0.5rem 0;
  }

  .split-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .split-media {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo-col img {
    margin: 0;
  }
}

@media (max-width: 849px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-main,
  .header.is-stuck .header-main {
    height: 70px;
  }

  .header-logo,
  .header.is-stuck .header-logo {
    max-height: 70px;
    width: auto;
  }

  .slides,
  .slide.is-active {
    min-height: 520px;
  }

  .slide-card {
    width: 90%;
    margin: 12% 0 8%;
  }

  .slider-nav {
    display: none;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-action {
    text-align: left;
  }
}

@media (max-width: 549px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .slides,
  .slide.is-active {
    min-height: 460px;
  }

  .slide-card {
    padding: 22px;
  }

  .section {
    padding: 40px 0;
  }
}
