/* Final homepage width and presentation normalization. */

/* Keep scrolling functional while hiding the visual side scrollbar. */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Keep the floating page button hidden. Carousel chevrons are positioned on the overlay band below. */
.back-to-top {
  display: none !important;
}

/* Full-width translucent band behind hero text, matching the original slider treatment. */
#carouselExampleCaptions .carousel-caption::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  left: 0;
  width: 100%;
  height: clamp(300px, 42vh, 390px);
  transform: translateY(-50%);
  background: rgba(6, 33, 71, 0.48);
  pointer-events: none;
}

#carouselExampleCaptions .carousel-caption > .container {
  position: relative;
  z-index: 1;
}

#carouselExampleCaptions .carousel-caption .row > [class*="col-"] {
  position: relative;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Previous/next controls sit at the left and right edges of the translucent band. */
#carouselExampleCaptions .carousel-control-prev,
#carouselExampleCaptions .carousel-control-next {
  display: flex !important;
  z-index: 6;
  top: 50%;
  bottom: auto;
  width: 68px;
  height: clamp(300px, 42vh, 390px);
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  opacity: 0.78;
}

#carouselExampleCaptions .carousel-control-prev .fa,
#carouselExampleCaptions .carousel-control-next .fa {
  position: static !important;
  width: auto;
  color: #ffffff;
  font-size: 30px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

#carouselExampleCaptions .carousel-control-prev:hover,
#carouselExampleCaptions .carousel-control-next:hover,
#carouselExampleCaptions .carousel-control-prev:focus-visible,
#carouselExampleCaptions .carousel-control-next:focus-visible {
  opacity: 1;
}

/* First slide: heading left, supporting copy right, actions centered below. */
#carouselExampleCaptions .carousel-caption--seo .hero-seo-layout {
  display: grid;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  grid-template-areas:
    "heading copy"
    "actions actions";
  align-items: center;
  column-gap: clamp(42px, 6vw, 110px);
  row-gap: 22px;
}

#carouselExampleCaptions .hero-seo-heading {
  grid-area: heading;
}

#carouselExampleCaptions .hero-seo-copy {
  grid-area: copy;
}

#carouselExampleCaptions .hero-seo-copy p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  line-height: 1.65;
}

#carouselExampleCaptions .carousel-caption--seo .hero-seo-actions {
  grid-area: actions;
  justify-content: center;
  width: 100%;
  margin-top: 0;
}

@media (max-width: 991px) {
  #carouselExampleCaptions .carousel-caption--seo .hero-seo-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "copy"
      "actions";
    row-gap: 16px;
  }

  #carouselExampleCaptions .hero-seo-copy p {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* The section itself and its content canvas both use the available screen width. */
#main > section,
#main > .section-wrapper,
#main > .service-wrapper,
#main > section > .container,
#main > .section-wrapper > .container,
#main > .service-wrapper > .container,
#main > .service-wrapper > .container-fluid {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

#main > section > .container,
#main > .section-wrapper > .container,
#main > .service-wrapper > .container,
#main > .service-wrapper > .container-fluid {
  padding-right: clamp(20px, 4vw, 76px) !important;
  padding-left: clamp(20px, 4vw, 76px) !important;
}

/* Full-width homepage grids without horizontal overflow from Bootstrap rows. */
#main > section > .container > .row,
#main > .section-wrapper > .container > .row,
#main > .service-wrapper > .container > .row,
#main > .service-wrapper > .container-fluid > .row,
.local-services > .container > .row {
  width: auto;
  max-width: none;
}

.section-features .feature,
.local-services .local-service-card {
  width: 100%;
  max-width: none;
}

/* Match the technology-service cards to the Why SOLOSTARTECH card language. */
.local-services .local-service-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  padding: 3.5rem 1.25rem 2rem;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 16px 47px rgba(78, 111, 178, 0.07);
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.local-services .local-service-card::before {
  display: none;
}

.local-services .local-service-card::after {
  display: none;
}

.local-services .local-service-card__bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  color: #062147;
  pointer-events: none;
}

.local-services .local-service-card__bg i {
  position: absolute;
  top: -34px;
  right: -28px;
  color: inherit;
  font-size: clamp(210px, 18vw, 350px);
  line-height: 1;
  opacity: 0.05;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.local-services .local-service-card__icon {
  position: relative;
  z-index: 2;
  display: flex;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px;
  border-radius: 50%;
  color: #ffffff;
  background: #20262c;
  box-shadow: none;
}

.local-services .local-service-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.local-services .local-service-card__content h3 {
  margin: 0 0 10px;
  color: #ff8800;
  font-size: 1.25rem;
  font-weight: 700;
}

.local-services .local-service-card__content p {
  margin: 0 0 18px;
  color: #212529;
  line-height: 1.5;
}

.local-services .local-service-card__content a {
  align-self: center;
  margin-top: auto;
  color: #ff8800;
  text-decoration: none;
}

.local-services .local-service-card:hover,
.local-services .local-service-card:focus-within {
  border-color: transparent;
  background: #062147;
  box-shadow: 0 16px 47px rgba(78, 111, 178, 0.12);
  transform: none;
}

.section-features .feature-box,
.local-services .local-service-card {
  border-radius: 14px;
  border-bottom: 4px solid #f58220;
}

.local-services .local-service-card:hover .local-service-card__bg i,
.local-services .local-service-card:focus-within .local-service-card__bg i {
  opacity: 0.08;
  transform: rotate(-36deg);
}

.local-services .local-service-card:hover .local-service-card__bg,
.local-services .local-service-card:focus-within .local-service-card__bg {
  color: #ffffff;
}

.local-services .local-service-card:hover .local-service-card__icon,
.local-services .local-service-card:focus-within .local-service-card__icon {
  background: #20262c;
  transform: none;
}

.local-services .local-service-card:hover h3,
.local-services .local-service-card:hover p,
.local-services .local-service-card:focus-within h3,
.local-services .local-service-card:focus-within p {
  color: #ffffff;
}

.local-services .local-service-card:hover a,
.local-services .local-service-card:focus-within a {
  color: #ffd09c;
}

/* The shared footer also follows the viewport instead of the old fixed container width. */
footer > .container,
footer .footer-mega > .container,
footer .footer-copyright > .container {
  width: 100% !important;
  max-width: none !important;
  padding-right: clamp(20px, 4vw, 76px) !important;
  padding-left: clamp(20px, 4vw, 76px) !important;
}

@media (max-width: 575px) {
  #carouselExampleCaptions .carousel-caption .row > [class*="col-"] {
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
    padding: 0 !important;
  }

  #carouselExampleCaptions .carousel-caption::before {
    height: clamp(430px, 66vh, 560px);
  }

  #carouselExampleCaptions .carousel-control-prev,
  #carouselExampleCaptions .carousel-control-next {
    width: 42px;
    height: clamp(430px, 66vh, 560px);
  }

  #carouselExampleCaptions .carousel-control-prev .fa,
  #carouselExampleCaptions .carousel-control-next .fa {
    font-size: 22px;
  }

  #main > section > .container,
  #main > .section-wrapper > .container,
  #main > .service-wrapper > .container,
  #main > .service-wrapper > .container-fluid {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

/* Unified typography and readable states for both homepage information-card sections. */
.section-features .feature-box,
.local-services .local-service-card {
  min-height: 300px;
  padding: 3rem 1.5rem 2rem !important;
  text-align: center !important;
}

.section-features .feature-icon,
.local-services .local-service-card__icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #ffffff;
  background: #20262c;
}

.section-features .feature-title,
.local-services .local-service-card__content h3 {
  margin: 0 0 10px !important;
  color: #f58220 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

.section-features .feature-text,
.local-services .local-service-card__content p {
  margin: 0 0 18px !important;
  color: #24364b !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  text-align: center !important;
}

.section-features .feature-box:hover .feature-title,
.section-features .feature-box:focus .feature-title,
.section-features .feature-box:hover .feature-text,
.section-features .feature-box:focus .feature-text,
.local-services .local-service-card:hover h3,
.local-services .local-service-card:focus-within h3,
.local-services .local-service-card:hover p,
.local-services .local-service-card:focus-within p {
  color: #ffffff !important;
}

.section-features .feature-box:hover .feature-icon,
.section-features .feature-box:focus .feature-icon,
.local-services .local-service-card:hover .local-service-card__icon,
.local-services .local-service-card:focus-within .local-service-card__icon {
  color: #ffffff !important;
  background: #20262c !important;
}
