html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

main > section[id] {
  scroll-margin-top: 82px;
}

.catalogue-hero#products,
.contact-hero#contact {
  scroll-margin-top: 78px;
}

.catalogue-hero .breadcrumbs,
.contact-hero .breadcrumbs {
  display: none;
}

.catalogue-hero {
  padding-top: 105px;
}

.contact-hero {
  padding-top: 94px;
  padding-bottom: 142px;
}

.services-section .service-card > a {
  cursor: pointer;
}

.product-modal {
  --bs-modal-width: 1180px;
  --bs-modal-border-width: 0;
  --bs-modal-border-radius: 18px;
}

.product-modal .modal-dialog {
  width: min(1180px, calc(100% - 1.5rem));
  max-width: 1180px;
}

.product-modal .modal-content {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 90px rgba(2, 25, 48, 0.3);
}

.product-modal .modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 62px;
  padding: 0.65rem 1.2rem;
  color: #fff;
  background: linear-gradient(110deg, #041f3a, #075183);
  border: 0;
}

.product-modal .modal-header .btn-close {
  margin: 0 0 0 auto;
  padding: 0.7rem;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.9;
}

.modal-product-title {
  display: flex;
  align-items: center;
  min-width: 0;
}

.modal-product-title > span {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.85rem;
  padding-right: 0.85rem;
  color: #ffad72;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-product-title h2 {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font: 800 1.2rem/1.2 "Manrope", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-modal .modal-body {
  padding: 0;
  background: #f4f7f9;
}

.product-modal .site-container {
  width: 100%;
  max-width: none;
  padding-right: 2rem;
  padding-left: 2rem;
}

.product-modal .product-overview {
  padding: 2.2rem 0;
  background: #fff;
}

.product-modal .overview-grid {
  gap: 3rem;
}

.product-modal .product-main-image {
  max-width: 455px;
  margin: auto;
}

.product-modal .product-intro h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.product-modal .product-information {
  padding: 2rem 0;
}

.product-modal .info-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.product-modal .enquiry-panel {
  top: 0;
}

.product-modal .content-panel,
.product-modal .enquiry-panel {
  box-shadow: 0 8px 24px rgba(6, 43, 82, 0.06);
}

.product-modal .public-packaging-grid img {
  max-height: 220px;
}

.modal-backdrop.show {
  opacity: 0.72;
}

body.modal-open .back-to-top,
body.modal-open .mobile-app-nav {
  visibility: hidden;
}

.static-form-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  color: #587186;
  font-size: 0.7rem;
}

@media (max-width: 800px) {
  .product-modal .site-container {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .product-modal .overview-grid,
  .product-modal .info-layout {
    grid-template-columns: 1fr;
  }

  .product-modal .product-overview,
  .product-modal .product-information {
    padding: 1.4rem 0;
  }

  .product-modal .modal-dialog {
    width: calc(100% - 0.5rem);
    margin: 0.25rem;
  }
}

@media (max-width: 580px) {
  .catalogue-hero {
    padding-top: 75px;
  }

  .contact-hero {
    padding-top: 70px;
  }

  .product-modal .modal-header {
    min-height: 58px;
    padding: 0.55rem 0.85rem;
  }

  .modal-product-title > span {
    margin-right: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.54rem;
    letter-spacing: 0.07em;
  }

  .modal-product-title h2 {
    max-width: min(50vw, 210px);
    font-size: 0.95rem;
  }

  .product-modal .site-container {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }
}

@media print {
  body.product-printing > *:not(.product-modal.show) {
    display: none !important;
  }

  body.product-printing .product-modal.show {
    position: static;
    display: block !important;
    overflow: visible;
  }

  body.product-printing .product-modal.show .modal-dialog,
  body.product-printing .product-modal.show .modal-content,
  body.product-printing .product-modal.show .modal-body {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  body.product-printing .product-modal.show .modal-header {
    display: none;
  }
}
