/* =========================================
   UCaaaS Styles
   ========================================= */


/* --- Hero Banner --- */

.hero {
  text-align: center;
  background-color: #e51937;
  margin-top: -20px;
}

.hero__inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 30px 0;
}

/* Products page: narrower inner with more padding */
.hero__inner--spacious {
  max-width: 860px;
  padding: 50px 0;
}

.hero__heading {
  color: #fff;
  text-transform: uppercase;
  line-height: 32px;
  padding: 20px 0;
}

/* Products page hero heading */
.hero__heading--lg {
  font-size: 30px;
  line-height: 33px;
  padding: 10px;
}

.hero__subtext {
  color: #fff;
  font-size: 18px;
  line-height: 25px;
  padding: 0 15px;
}


/* --- Page Wrapper --- */

/* Racks page: white background that overlaps the platform header */
.page-wrapper {
  background-color: #fff;
  margin-top: -60px;
}


/* --- Section (Products page only) --- */

/* Wraps each row on the products overview page */
.section {
  background-color: #ffffff;
}


/* --- Container --- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Products page sections use a slightly wider container */
.container--wide {
  max-width: 1170px;
}


/* --- Rows --- */

.row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.row__text {
  flex: 0 0 calc(60% - 10px);
  text-align: left;
  margin: 20px 0;
}

.row__image {
  flex: 0 0 calc(40% - 10px);
  text-align: center;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .row__text {
    flex: 0 0 100%;
  }
}

.row__image img {
  max-width: 100%;
  height: auto;
}



/* --- Typography --- */

.section__heading {
  color: #e51937;
  padding: 15px 0;
}

.section__body {
  font-size: 18px;
  line-height: 25px;
  margin: 10px 0 20px;
}

.section__list {
  font-size: 18px;
  line-height: 25px;
  padding-left: 20px;
  list-style-type: disc;
}

.section__list li {
  margin-bottom: 8px;
}

.section__link {
  font-size: 18px;
  line-height: 25px;
  font-weight: 800;
  padding-bottom: 20px;
}


/* --- Buttons --- */

/* Red button for use within .row__text (replaces .section__link) */
.btn--red,
.btn--red:link,
.btn--red:visited {
  display: inline-block;
  background-color: #e51937;
  border: 2px solid #e51937;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 25px;
  text-transform: uppercase;
  padding: 12px 24px;
  text-decoration: none;
  margin-bottom: 20px;
}

.btn--red:hover {
  background-color: #c0102a;
}

/* White-outline button for use within .hero__inner */
.btn--hero,
.btn--hero:link,
.btn--hero:visited {
  display: inline-block;
  background-color: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 25px;
  text-transform: uppercase;
  padding: 12px 40px;
  border: 2px solid #fff;
  text-decoration: none;
  margin-top: 10px;
}


.btn--hero:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Red-outline button for use on white backgrounds */
.btn--outline,
.btn--outline:link,
.btn--outline:visited {
  display: inline-block;
  background-color: transparent;
  color: #e51937;
  font-size: 18px;
  font-weight: 800;
  line-height: 25px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 2px solid #e51937;
  text-decoration: none;
  margin-bottom: 20px;
}

.btn--outline:hover {
  background-color: rgba(229, 25, 55, 0.08);
}


/* --- Row Image: flush to bottom --- */

.row__image--bottom {
  align-self: flex-end;
  margin-bottom: 0;
}


/* --- Partners Section --- */

.partners {
  background-color: #e51937;
  padding: 40px 20px;
  text-align: center;
}

.partners__heading {
  color: #fff;
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  margin-bottom: 30px;
}

.partners__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1170px;
  margin: 0 auto;
}

.partners__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

.partners__circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.partners__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners__item .btn--hero {
  margin-top: 0;
}

.partners__logo img {
  max-width: 180px;
  height: auto;
  display: block;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .partners__grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .partners__item {
    width: 100%;
    max-width: 100%;
  }

  .partners__circle {
    display: none;
  }
}


/* --- Awards Section --- */

.awards {
  background-color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.awards__heading {
  color: #e51937;
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  margin-bottom: 30px;
}

.awards__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1170px;
  margin: 0 auto;
}

.awards__item {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  text-align: center;
}

.awards__item img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .awards {
    display: none;
  }
}


/* --- CTA Block --- */

.cta-block {
  padding: 40px 20px 0px;
  text-align: center;
}

.cta-block .cta-block__subtext {
  color: #888;
  font-size: 25px;
  line-height: 29px;
  margin-bottom: 30px;
}

.cta-block__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-block__buttons .btn--red,
.cta-block__buttons .btn--outline {
  margin-bottom: 0;
}

.cta-block__heading {
  color: #e51937;
  font-size: 35px;
  line-height: 39px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 768px) {
  .cta-block__buttons {
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-block__buttons .btn--red,
  .cta-block__buttons .btn--outline {
    text-align: center;
  }
}


/* --- Utility --- */

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }

  .btn--red {
    display: block;
    width: fit-content;
    margin: 0 auto 20px auto;
  }
}
