@import url('./faded-photo-background.css?ver=1.0.0');
@import url('./page-title.css?ver=1.0.1');
@import url('./chip.css?ver=1.0.0');
@import url('./breadcrumb.css?ver=1.0.1');
@import url('./gradient-divider.css?ver=1.0.0');
@import url('./section-nav.css?ver=1.0.0');
@import url('./section-heading.css?ver=1.0.0');
@import url('./feature-card.css?ver=1.0.0');
@import url('./service-card.css?ver=1.0.1');
@import url('./case-card.css?ver=1.0.1');
@import url('./flow-steps.css?ver=1.0.0');
@import url('./business-card.css?ver=1.0.0');
@import url('./contact-banner.css?ver=1.0.0');

/* #region hero */
.social-infrastructure-hero__inner,
.social-infrastructure__intro,
.gradient-divider-component.social-infrastructure__divider,
.social-infrastructure__body {
  width: calc(100% - 40px);
  max-width: 1200px;
  padding-inline: 0;
}

.social-infrastructure-hero {
  position: relative;
  width: 100%;
  height: 338px;
  padding-top: 80px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.social-infrastructure-hero__canvas {
  position: relative;
  width: 100%;
  height: 258px;
  overflow: hidden;
}

.social-infrastructure-hero__inner {
  position: relative;
  height: 100%;
}

.social-infrastructure-hero__heading {
  position: absolute;
  top: 56px;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.social-infrastructure-hero__breadcrumb-nav {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 1;
}

.social-infrastructure-hero__ellipse {
  position: absolute;
  display: block;
  background-color: #fff;
  border-radius: 50%;
  pointer-events: none;
}

.social-infrastructure-hero__ellipse--start {
  display: none;
}

.social-infrastructure-hero__ellipse--end {
  display: none;
}

@media screen and (min-width: 992px) {
  .social-infrastructure-hero {
    height: 500px;
    padding-top: 120px;
  }

  .social-infrastructure-hero__canvas {
    height: 380px;
  }

  .social-infrastructure-hero__heading {
    top: 100px;
  }

  .social-infrastructure-hero__ellipse--start {
    top: -44px;
    left: -33px;
    display: block;
    width: 136.81px;
    height: 136.81px;
  }

  .social-infrastructure-hero__ellipse--end {
    top: 171px;
    right: -15px;
    display: block;
    width: 75px;
    height: 75px;
  }
}
/* #endregion hero */

/* #region divider */
.gradient-divider-component.social-infrastructure__divider {
  margin-top: 0;
  margin-bottom: 40px;
}

@media screen and (min-width: 992px) {
  .gradient-divider-component.social-infrastructure__divider {
    margin-bottom: 80px;
  }
}
/* #endregion divider */

/* #region sections */
.social-infrastructure__body .section-nav-layout__content > * + * {
  margin-top: 40px;
}

.social-infrastructure__heading {
  margin-bottom: 10px;
}

@media screen and (min-width: 992px) {
  .social-infrastructure__body .section-nav-layout__content > * + * {
    margin-top: 80px;
  }

  /* The sticky section nav acts as the heading on desktop; keep it for assistive tech. */
  .social-infrastructure__heading {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}
/* #endregion sections */

/* #region overview */
.social-infrastructure-overview__card {
  padding: 20px;
  color: var(--color-text-black);
  font-family: var(--font-yu-gothic);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  background-color: #fff;
  border-radius: 16px;
}

.social-infrastructure-overview__card p {
  margin: 0;
}

.social-infrastructure-overview__card p + p {
  margin-top: 1.5em;
}

@media screen and (min-width: 992px) {
  .social-infrastructure-overview__card {
    padding: 30px;
    font-size: 16px;
    border-radius: 10px;
  }

  .social-infrastructure-overview__card p + p {
    margin-top: 0;
  }
}
/* #endregion overview */

/* #region services */
.social-infrastructure__lead {
  margin: 0 0 20px;
  color: var(--color-text-black);
  font-family: var(--font-yu-gothic);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* Mobile only: on desktop the heading is visually hidden. */
@media screen and (max-width: 991.98px) {
  .social-infrastructure__heading + .social-infrastructure__lead {
    margin-top: 20px;
  }
}

.social-infrastructure-services__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 992px) {
  /* Figma insets this section 30px from the content column. */
  .social-infrastructure-services {
    padding-left: 30px;
  }

  .social-infrastructure-services__list {
    gap: 20px;
  }
}
/* #endregion services */

/* #region cases */
.social-infrastructure-cases__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 992px) {
  /* Same 30px inset as the services section in Figma. */
  .social-infrastructure-cases {
    padding-left: 30px;
  }

  .social-infrastructure-cases__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 50px;
  }
}
/* #endregion cases */

/* #region flow */
@media screen and (max-width: 991.98px) {
  .social-infrastructure-flow .flow-steps {
    margin-top: 20px;
  }
}
/* #endregion flow */

/* #region other businesses */
.social-infrastructure-other-businesses__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (max-width: 991.98px) {
  .social-infrastructure-other-businesses .social-infrastructure__heading {
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 992px) {
  /* Figma: two 450px cards, 24px in from the content column. */
  .social-infrastructure-other-businesses__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 36px;
    padding-left: 24px;
  }
}
/* #endregion other businesses */

/* Page-specific differences between the desktop and mobile Figma frames. */
.social-infrastructure__intro {
  margin-bottom: 40px;
  color: var(--color-text-black);
  font-family: var(--font-yu-gothic);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.social-infrastructure__heading .section-heading-component__text {
  color: #004099;
}

.social-infrastructure__contact {
  margin-top: 20px;
}

.social-infrastructure__mobile-breadcrumb {
  display: flex;
  justify-content: flex-end;
  margin: 40px 20px 0;
}

.social-infrastructure__mobile-breadcrumb .breadcrumb-component__link,
.social-infrastructure__mobile-breadcrumb .breadcrumb-component__item a,
.social-infrastructure__mobile-breadcrumb .breadcrumb-component__item {
  color: #fff;
}

.social-infrastructure__mobile-breadcrumb .breadcrumb-component__item a {
  font-weight: 700;
}

/* Preserve each image layer's crop and gradient from Figma. */
.social-infrastructure__body .business-card__media {
  overflow: hidden;
}

.social-infrastructure__body .business-card__image {
  position: absolute;
  max-width: none;
}

.social-infrastructure-other-businesses__list > li:nth-child(1) .business-card__image {
  top: -9.28%;
  left: -3.67%;
  width: 103.67%;
  height: 118.56%;
}

.social-infrastructure-other-businesses__list > li:nth-child(2) .business-card__media {
  top: -4.865%;
  left: 47.111%;
  width: 56%;
  height: 109.73%;
}

.social-infrastructure-other-businesses__list > li:nth-child(2) .business-card__image {
  top: -0.9%;
  left: -12.56%;
  width: 122.18%;
  height: 100.85%;
}

.social-infrastructure-other-businesses__list > li:nth-child(2) .business-card__media::after {
  background: linear-gradient(90deg, #fff, transparent);
}

.social-infrastructure-other-businesses__list > li:nth-child(3) .business-card__media {
  top: 0;
  left: 45.333%;
  width: 54.771%;
  height: 100%;
}

.social-infrastructure-other-businesses__list > li:nth-child(3) .business-card__image {
  top: 0;
  left: -8.84%;
  width: 117.68%;
  height: 104.52%;
}

.social-infrastructure-other-businesses__list > li:nth-child(3) .business-card__media::after {
  background: linear-gradient(90deg, #fff 4.964%, transparent);
}

.social-infrastructure-other-businesses__list > li:nth-child(n+2) .business-card__content {
  isolation: isolate;
}

.social-infrastructure-other-businesses__list > li:nth-child(n+2) .business-card__content::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: #fff;
  border-radius: 10px;
  filter: blur(25px);
}

/* The city layer is stretched and offset differently in each reference frame. */
.site-main:has(.social-infrastructure__body) > .faded-photo-background-component {
  bottom: 0;
  height: 407px;
  overflow: visible;
  background: none;
}

.site-main:has(.social-infrastructure__body) > .faded-photo-background-component::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 743px;
  content: "";
  background:
    linear-gradient(180deg, #f5f5f5, transparent),
    linear-gradient(rgba(0, 18, 48, .4), rgba(0, 18, 48, .4)),
    url('../assets/images/f732181f9a896dab807879c56905cdce1e2c709f.webp');
  background-size: 100% 100%, 100% 100%, 195.84% 68.8%;
  background-position: 0 0, 0 0, 79.025% 0;
  background-repeat: no-repeat;
}

@media screen and (max-width: 991.98px) {
  .site-main:has(.social-infrastructure__body) {
    padding-bottom: 40px;
  }

  .social-infrastructure-hero__breadcrumb-nav {
    display: none;
  }

  .social-infrastructure__body .service-card {
    grid-template-columns: minmax(0, 250px) auto;
    justify-content: space-between;
  }

  .social-infrastructure__body .case-card__image {
    border-radius: 12px;
  }

  .social-infrastructure__body .case-card__button.btn {
    border-width: 0.65px;
  }

  .social-infrastructure__body .feature-card__image {
    object-fit: fill;
  }

  .social-infrastructure__body .business-card__content {
    white-space: nowrap;
  }

  .social-infrastructure__body .flow-steps__step-label {
    font-size: 16.32px;
  }

  .social-infrastructure__body .flow-steps__step-number {
    font-size: 40.8px;
  }

  .social-infrastructure__body .flow-steps__title {
    white-space: nowrap;
  }
}

@media screen and (min-width: 992px) {
  .social-infrastructure__intro {
    margin-bottom: 80px;
    font-size: 20px;
  }

  .social-infrastructure__contact {
    margin-top: 100px;
    margin-bottom: 32px;
  }

  .social-infrastructure__mobile-breadcrumb {
    display: none;
  }

  .social-infrastructure__body .flow-steps__copy {
    transform: translateY(2px);
  }

  .site-main:has(.social-infrastructure__body) > .faded-photo-background-component {
    height: 663px;
  }

  .site-main:has(.social-infrastructure__body) > .faded-photo-background-component::before {
    height: 936px;
    background-size: 100% 100%, 100% 100%, 100% 122.53%;
    background-position: 0 0;
  }
}

@media screen and (max-width: 375px) {
  .social-infrastructure__body .flow-steps__title {
    white-space: normal;
  }

  .social-infrastructure__body .business-card {
    padding-inline: 20px;
  }

}
