/* Shared responsive layout + 3D viewer sizing */

html {
  scroll-padding-top: 6.5rem;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.site-header + *,
body > article {
  padding-top: 0;
}

article {
  overflow-x: hidden;
}

section.container,
section .container {
  max-width: 1140px;
}

/* Keep 3D stages in the layout without overflowing */
.model-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  max-height: min(520px, 68vh);
  border-radius: 24px;
  overflow: hidden;
}

.hero-model-stage {
  flex: 1 1 320px;
  max-width: 560px;
  margin-inline: auto;
}

.model-stage model-viewer,
model-viewer.scroll-safe-model,
.ratio model-viewer {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  display: block;
  touch-action: pan-y;
}

.ratio,
.model-stage {
  background: transparent;
}

.customizeBtn,
.placeorderBtn {
  white-space: nowrap;
}

.d-flex.gap-2.justify-content-center {
  flex-wrap: wrap;
}

footer {
  padding-bottom: 1.5rem;
}

/* Images that previously used fixed heights / floats */
#img,
#missionImg,
#visionImg,
#productsImg,
#aboutSectionImg {
  float: none !important;
  width: 100%;
  max-width: 480px;
  height: auto !important;
  margin: 0 auto !important;
  display: block;
}

#servicesModel,
#moreServicesModel,
#productsIntroModel {
  margin: 0 auto;
}

.products-img {
  max-width: 100%;
}

#OurProductsDescription {
  width: 100%;
  position: static;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
  padding: 1.5rem 1rem 2rem;
  border-radius: 12px;
}

.ShowcaseDialogueBox {
  z-index: 2000;
  background: rgba(1, 32, 78, 0.35);
  padding: 1rem;
}

.dialogueText {
  width: min(520px, 92vw);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
}

footer img.img-fluid {
  max-width: min(280px, 100%);
}

@media (max-width: 1199.98px) {
  .hero-model-stage {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .hero-container {
    min-height: auto;
    padding: 7.5rem 0 3rem;
  }

  .heroContent {
    margin-top: 0;
    flex-direction: column;
    text-align: center;
  }

  .heroText {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
    line-height: 1.35;
  }

  .highlightedText {
    box-shadow: 0 6px 0 #028393, 0 12px 0 #f65625, 0 20px 0 #faaa68;
  }

  .contactUsComingSoon {
    width: min(100%, 22rem);
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  #contactUsHr,
  #founderHeadingHr {
    width: min(100%, 20rem);
  }

  .foundersHeading {
    width: auto;
  }

  .contactemail {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .header-container {
    padding: 0 1rem;
  }

  .logo img {
    width: min(11.5rem, 62vw);
  }

  .model-stage {
    border-radius: 16px;
    min-height: 200px;
  }

  .products-slider-btn {
    width: 2.15rem;
    height: 2.15rem;
  }

  .products-slider-prev {
    left: 0.45rem;
  }

  .products-slider-next {
    right: 0.45rem;
  }

  .card-body {
    padding: 1rem !important;
  }
}
