/* =========================================================
   Footer
========================================================= */

/* Remove Olivero footer border */
@media (min-width: 75rem) {
  body:not(.is-always-mobile-nav) .site-footer {
    border-inline-start: 0 !important;
    border-left: 0 !important;
  }
}

/* Footer wrapper reset */
.site-footer,
.region--footer-top,
.region--footer-bottom,
.region--footer,
.footer-top,
.footer-bottom {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Footer inner reset */
.site-footer__inner,
.site-footer .container,
.site-footer .region {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Custom footer */
.sys-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(44, 116, 179, 0.22), transparent 34%),
    linear-gradient(135deg, #071B33 0%, #0A2647 55%, #102F55 100%);
}

/* Footer top layout */
.sys-footer__top {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto !important;
  padding: 58px 0 38px !important;
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.85fr 0.9fr;
  gap: 42px;
}

/* Footer brand title */
.sys-footer__brand h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

/* Footer brand text */
.sys-footer__brand p {
  max-width: 430px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.8;
}

/* Footer column title */
.sys-footer__col h3 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

/* Footer list */
.sys-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Footer list item */
.sys-footer__col li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

/* Footer links */
.sys-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

/* Footer link hover */
.sys-footer a:hover {
  color: #ffffff;
}

/* Footer social */
.sys-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer social link */
.sys-footer__social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

/* Footer social hover */
.sys-footer__social a:hover {
  background: var(--sysbasic-accent);
}

/* Footer bottom */
.sys-footer__bottom {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto !important;
  padding: 18px 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Footer bottom text */
.sys-footer__bottom p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
}

/* Remove bottom spacing */
.layout-container,
.site-footer,
.layout-main-wrapper,
.layout-main,
.main-content,
.main-content__container,
.region--footer-top,
.region--footer-bottom {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* =========================================================
   Responsive
========================================================= */

/* Tablet */
@media (max-width: 1000px) {
  .sys-home-hero__inner,
  .sys-about {
    grid-template-columns: 1fr;
  }

  .sys-home-hero__visual {
    justify-content: flex-start;
  }

  .sys-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sys-about {
    padding: 70px 28px;
  }

  .sys-about__content,
  .sys-about__stats {
    justify-self: stretch;
  }

  .sys-about > * {
    max-width: none;
  }

  .sys-cta {
    margin: 50px auto;
    padding: 36px;
    flex-direction: column;
    align-items: flex-start;
  }

  .sys-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

/* Mobile */
@media (max-width: 900px) {
  :root {
    --sysbasic-header-height: 64px;
  }

  .site-header__inner__container {
    padding: 8px 18px !important;
  }

  .site-branding__logo img {
    max-height: 36px !important;
  }

  .site-branding__name a {
    font-size: 19px !important;
  }

  .primary-nav__menu {
    gap: 14px;
  }

  .primary-nav__menu-link {
    font-size: 14px !important;
  }

  .sys-home-hero {
    min-height: auto;
    padding: 58px 0 72px !important;
  }

  .sys-home-hero__inner,
  .sys-section__head,
  .sys-services__grid,
  .sys-footer__top,
  .sys-footer__bottom {
    width: min(100% - 40px, 1280px);
  }
}

/* Small mobile */
@media (max-width: 640px) {
  .sys-home-hero h1 {
    letter-spacing: -1px;
  }

  .sys-services__grid {
    grid-template-columns: 1fr;
  }

  .sys-footer__top {
    grid-template-columns: 1fr;
    padding: 54px 0 34px !important;
  }

  .sys-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================================================
   Footer Full Bleed Final Fix
   Put this at the VERY END
========================================================= */

/* Remove Olivero footer wrapper limits */
.site-footer,
.site-footer__inner,
.site-footer .region,
.region--footer-top,
.region--footer-bottom,
.region--footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Force Sysbasic footer to escape any Drupal container */
.sys-footer {
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 0 !important;
  border: 0 !important;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, rgba(44, 116, 179, 0.22), transparent 34%),
    linear-gradient(135deg, #071B33 0%, #0A2647 55%, #102F55 100%);
}

/* Keep footer content centered inside full-width footer */
.sys-footer__top,
.sys-footer__bottom {
  width: min(1280px, calc(100% - 56px)) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Remove Olivero desktop left border */
@media (min-width: 75rem) {
  body:not(.is-always-mobile-nav) .site-footer {
    border-inline-start: 0 !important;
    border-left: 0 !important;
  }
}

/* Prevent full-bleed footer from making horizontal scrollbar */
html,
body {
  overflow-x: hidden !important;
}

