/* Custom Products page only */

.custom-products__wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.custom-products__wrapper {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  line-height: 1.6;
  color: #0032A0;
}

.custom-products__wrapper .custom-products__header {
  background: url('https://rixstinewebsitephotos.s3.us-east-2.amazonaws.com/Websitestaticspages/vecteezy_blue-abstract-futuristic-technology-background_12978128.jpg') no-repeat center center/cover;
  color: #ffffff;
  padding: 6rem 3rem;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.custom-products__wrapper .custom-products__header h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.custom-products__wrapper .custom-products__header p {
  font-size: 2rem;
  opacity: 0.85;
  font-weight: 400;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.custom-products__wrapper .custom-products__section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-products__wrapper .custom-products__section .service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.custom-products__wrapper .custom-products__section .service-item {
  background: #f4f4f4;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.custom-products__wrapper .custom-products__section .service-item h3 {
  font-size: 3rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #0032A0;
  word-break: break-word;
}

.custom-products__wrapper .custom-products__section .service-item p {
  font-size: 1.4rem;
  margin-top: 1rem;
  line-height: 1.6;
}

/* 1 image per card */
.custom-products__wrapper .custom-products__section .service-item .image-block {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  margin-top: 1rem !important;
}

.custom-products__wrapper .custom-products__section .service-item .image-block img {
  width: 100% !important;
  max-width: 100% !important;
  height: 250px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  display: block !important;
  background: #ffffff !important;
}

/* Materials box + CTA pinned */
.custom-products__wrapper .custom-products__section .materials-box {
  background-color: #f0f0f0;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.custom-products__wrapper .custom-products__section .materials-box h4 {
  font-size: 1.6rem;
  color: #0032A0;
  margin-bottom: 1rem;
}

.custom-products__wrapper .custom-products__section .materials-box ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding-left: 0;
  color: #0032A0;
  margin-bottom: 12px;
}

.custom-products__wrapper .custom-products__section .materials-box li {
  font-size: 1.2rem;
  margin-right: 1rem;
}

.custom-products__wrapper .custom-products__section .materials-cta {
  margin-top: auto;
}

.custom-products__wrapper .custom-products__section .materials-box .materials-quote-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f0f0f0;
  color: #0032A0;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid #0032A0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-products__wrapper .custom-products__section .materials-box .materials-quote-btn:hover {
  background-color: #0032A0;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .custom-products__wrapper .custom-products__header h1 {
    font-size: 3rem;
  }

  .custom-products__wrapper .custom-products__section .service-item {
    padding: 1.5rem;
  }

  .custom-products__wrapper .custom-products__section .service-block {
    grid-template-columns: 1fr;
  }
}
