/* Foundations used only by BlueAI pages. */

html,
body,
section#body {
  background-color: #f5f7f7 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3 {
  font-family: 'Space Grotesk', sans-serif !important;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont,
  'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000 !important;
}

a:not(.project-link) img {
  transition: transform 0.15s ease;
}

a:not(.project-link):hover img {
  transform: scale(1.05);
}

.content a:not(.btn),
article a:not(.btn),
p a:not(.btn),
li a:not(.btn) {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 400;
  display: inline-block;
  transition: color 0.15s ease;
}

.content a:not(.btn):hover,
article a:not(.btn):hover,
p a:not(.btn):hover,
li a:not(.btn):hover {
  color: #0052a3;
  text-decoration: underline;
}

a.btn {
  transform: none !important;
  font-weight: inherit !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none !important;

  color: #000;
  background: transparent;
  border: 1.5px solid currentColor;
  box-shadow: none;

  transform: none;
  transform-origin: center;
  will-change: transform;

  transition:
  background-color 0.2s ease,
  color 0.2s ease,
  transform 0.15s ease,
  box-shadow 0.15s ease;
}

section#body {
  text-align: center;
}

section#body img {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

section#body p {
  text-align: center;
}

section#body {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

body.blueai-project {
  background: #f1ece5 !important;
  overflow-x: hidden !important;
}

body.blueai-project section#body {
  background: #f1ece5 !important;
}

body.blueai-project > .page-wrap {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body.blueai-project .content {
  margin-top: 0;
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.blueai-project .blueai-topbar,
body.blueai-project .blueai-hero-frame {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.blueai-project .blueai-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #273912;
}

body.blueai-project .blueai-topbar-inner {
  max-width: 1000px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.blueai-project .blueai-logo img {
  display: block;
  height: 21px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(95%) sepia(9%) saturate(385%) hue-rotate(351deg) brightness(104%) contrast(92%);
}

body.blueai-project .blueai-nav {
  margin-left: auto;
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

body.blueai-project .blueai-nav a {
  text-decoration: none;
  color: #f1ece5 !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

body.blueai-project .blueai-nav a:hover {
  opacity: 0.86;
}

body.blueai-project .blueai-hero-frame {
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  background: #f1ece5;
  height: 525px;
  overflow: hidden;
}

body.blueai-project .blueai-hero-inner {
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 160px;
}

body.blueai-project .blueai-hero-logo img {
  height: 77px;
  width: auto;
  display: block;
}

body.blueai-project .blueai-hero-copy {
  max-width: 520px;
}

body.blueai-project .blueai-hero-copy p {
  margin: 0;
  color: #273912 !important;
  font-size: 1.24rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  line-height: 1.42;
  text-align: left;
}

body.blueai-project .blueai-hero-more {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #273912 !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  border: 1.5px solid #273912;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.blueai-project .btn,
body.blueai-project a[class*="btn-"] {
  border-color: #273912 !important;
  color: #273912 !important;
  background: transparent !important;
  text-decoration: none !important;
}

body.blueai-project .btn:hover,
body.blueai-project a[class*="btn-"]:hover {
  background: #273912 !important;
  color: #f1ece5 !important;
  border-color: #273912 !important;
}

body > .page-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem;
}

body.blueai-project .main-footer {
  margin-top: 3rem;
  background: #273912;
  width: 100%;
}

body.blueai-project .main-footer-inner {
  max-width: 1100px;
  min-height: 322px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 2.6rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

body.blueai-project .main-footer,
body.blueai-project .main-footer p,
body.blueai-project .main-footer h2,
body.blueai-project .main-footer a,
body.blueai-project .main-footer li {
  color: #f2f5f7 !important;
}

body.blueai-project .footer-title {
  margin: 0 0 1.4rem 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.blueai-project .footer-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.75rem 2.2rem;
}

body.blueai-project .footer-items a {
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  opacity: 0.95;
  display: inline-block;
  transform-origin: left center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

body.blueai-project .footer-items a:hover {
  opacity: 1;
  transform: scale(1.05);
}

body.blueai-project .footer-brand {
  justify-self: end;
  text-align: right;
}

body.blueai-project .footer-top {
  align-self: end;
  justify-self: end;
}

body.blueai-project .footer-top-link {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

body.blueai-project .footer-top-link:hover {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  body.blueai-project .main-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
  }

  body.blueai-project .footer-brand {
    justify-self: start;
    text-align: left;
    justify-items: start;
  }

  body.blueai-project .footer-top {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  body.blueai-project .blueai-topbar-inner {
    min-height: 0;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }

  body.blueai-project .blueai-logo img {
    height: 18px;
  }

  body.blueai-project .blueai-nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
  }

  body.blueai-project .blueai-nav a {
    font-size: 0.72rem;
    flex: 0 0 auto;
  }

  body.blueai-project .blueai-hero-frame {
    height: auto;
    min-height: 0;
  }

  body.blueai-project .blueai-hero-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
  }

  body.blueai-project .blueai-hero-logo img {
    height: 170px;
  }

  body.blueai-project .blueai-hero-copy {
    max-width: 100%;
    text-align: center;
  }

  body.blueai-project .blueai-hero-copy p {
    font-size: 1.02rem;
    line-height: 1.45;
    text-align: center;
  }

  body.blueai-project .blueai-hero-more {
    margin-top: 0.85rem;
  }
}

@media (max-width: 560px) {
  body.blueai-project .blueai-nav a {
    font-size: 0.69rem;
  }

  body.blueai-project .main-footer-inner {
    padding: 2.3rem 1rem 2rem;
  }

  body.blueai-project .footer-title {
    font-size: 1.55rem;
  }
}

@media (max-width: 980px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.blueai-project .page-wrap {
    overflow-x: clip;
  }

  body.blueai-project .main-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 1.3rem !important;
    min-height: 0 !important;
  }
}

@media (max-width: 980px) {
  body.blueai-project .blueai-menu-toggle {
    display: inline-flex !important;
    order: 2 !important;
    margin-left: auto !important;
    width: 38px !important;
    height: 38px !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    border-radius: 8px !important;

    color: #fff !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  body.blueai-project .blueai-menu-toggle-icon {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-1px);
  }

  body.blueai-project .blueai-topbar {
    z-index: 90 !important;
  }

  body.blueai-project .blueai-topbar-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  body.blueai-project .blueai-logo {
    order: 1 !important;
    margin-right: auto !important;
  }

}

@media (max-width: 640px) {
  body.blueai-project .blueai-nav a {
    font-size: 1.08rem !important;
  }

  body.blueai-project .footer-title {
    font-size: 1.35rem !important;
    line-height: 1.15;
  }
}

body.blueai-project .blueai-logo img[alt="BlueAI"] {
  filter: none !important;
}

body.blueai-project.blueai-home,
body.blueai-project.blueai-home .page-wrap,
body.blueai-project.blueai-home main.wrap {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow-x: clip !important;
}

body.blueai-project.blueai-home main.wrap > .blueai-hero.blueai-hero-frame,
body.blueai-project.blueai-home .blueai-hero.blueai-hero-frame {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-sizing: border-box !important;
}
