/* Build Section - Consolidated Styles */

/* ===========================================
   Main Build Section
   =========================================== */
.build-section {
  /* Gray background */
  background-color: #ececec !important;

  /* Desktop padding */
  padding: 8rem 4rem !important;

  /* Layout */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;

  /* Height management */
  height: auto !important;
  min-height: 600px !important;

  /* Visibility */
  overflow: visible !important;
  position: relative !important;
  z-index: 1 !important;

  /* No margins */
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ===========================================
   Container
   =========================================== */
.build-section .container {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 450px !important;
  overflow: visible !important;
}

/* ===========================================
   Content Wrapper
   =========================================== */
.build-content {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 3rem !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 450px !important;
  min-height: 450px !important;
  overflow: visible !important;
  position: relative !important;
  margin: 0 auto !important;
}

/* ===========================================
   Image & Text Boxes
   =========================================== */
.build-image,
.build-text {
  flex: 1 1 0 !important;
  max-width: calc(50% - 1.5rem) !important;
  width: calc(50% - 1.5rem) !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  height: 450px !important;
  min-height: 450px !important;
  max-height: 450px !important;
  overflow: visible !important;
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Image specific */
.build-image {
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.build-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 8px !important;
}

/* Text specific */
.build-text {
  padding: 6.5rem 3rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.build-text h2 {
  font-size: 2.5rem !important;
  font-weight: 400 !important;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
  color: #000000 !important;
  line-height: 1.2 !important;
}

.build-text p {
  font-size: 1.125rem !important;
  line-height: 1.6 !important;
  color: #666666 !important;
  margin-bottom: 2.5rem !important;
  padding: 0 1rem !important;
  flex-grow: 1 !important;
  display: flex !important;
  align-items: center !important;
}

/* Button */
.build-text .cta-button,
.build-text .build-button {
  background-color: #000 !important;
  color: #fff !important;
  padding: 0.75rem 2rem !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* ===========================================
   Large Screens (1440px+)
   =========================================== */
@media screen and (min-width: 1440px) {
  .build-section {
    padding: 10rem 5rem !important;
    min-height: 650px !important;
  }

  .build-section .container {
    max-width: 1600px !important;
  }

  .build-content {
    height: 500px !important;
    min-height: 500px !important;
  }

  .build-image,
  .build-text {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }

  .build-text {
    padding: 7.5rem 4rem !important;
  }
}

/* Very large screens (1920px+) */
@media screen and (min-width: 1920px) {
  .build-section {
    padding: 11rem 6rem !important;
    min-height: 700px !important;
  }

  .build-section .container {
    max-width: 1800px !important;
  }
}

/* ===========================================
   Medium Screens (1280-1439px)
   =========================================== */
@media screen and (min-width: 1280px) and (max-width: 1439px) {
  .build-section {
    padding: 9rem 4rem !important;
    min-height: 600px !important;
  }

  .build-section .container {
    max-width: 1200px !important;
  }

  .build-content {
    height: 475px !important;
    min-height: 475px !important;
  }

  .build-image,
  .build-text {
    height: 475px !important;
    min-height: 475px !important;
    max-height: 475px !important;
  }

  .build-text {
    padding: 7rem 3.5rem !important;
  }
}

/* ===========================================
   Small Desktop (1024-1279px)
   =========================================== */
@media screen and (min-width: 1024px) and (max-width: 1279px) {
  .build-section {
    padding: 8rem 3rem !important;
    min-height: 550px !important;
  }

  .build-section .container {
    max-width: 1000px !important;
  }

  .build-content {
    height: 425px !important;
    min-height: 425px !important;
  }

  .build-image,
  .build-text {
    height: 425px !important;
    min-height: 425px !important;
    max-height: 425px !important;
  }

  .build-text {
    padding: 6rem 2.5rem !important;
  }
}

/* ===========================================
   Tablet (768-1023px) - Keep side by side
   =========================================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .build-section {
    padding: 7rem 2rem !important;
    min-height: auto !important;
  }

  .build-content {
    flex-direction: row !important;
    gap: 2rem !important;
    height: 400px !important;
    min-height: 400px !important;
  }

  .build-image,
  .build-text {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
    width: calc(50% - 1rem) !important;
    max-width: calc(50% - 1rem) !important;
  }

  .build-text {
    padding: 5rem 2.5rem !important;
    overflow-y: auto !important;
  }
}

/* ===========================================
   Mobile (767px and below) - Stack vertically
   =========================================== */
@media screen and (max-width: 767px) {
  .build-section {
    /* Increased padding for mobile (50% more) */
    padding: 9rem 1rem !important;
    height: auto !important;
    min-height: calc(300px + 300px + 2rem + 18rem) !important;
    align-items: flex-start !important;
  }

  .build-section .container {
    padding: 0 !important;
    height: auto !important;
    min-height: auto !important;
  }

  .build-content {
    flex-direction: column !important;
    gap: 2rem !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }

  .build-image,
  .build-text {
    width: 100% !important;
    max-width: 100% !important;
  }

  .build-image {
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
  }

  .build-text {
    height: auto !important;
    min-height: 350px !important;
    max-height: none !important;
    padding: 4rem 2rem !important;
  }
}

/* ===========================================
   Small Mobile (640px and below)
   =========================================== */
@media screen and (max-width: 640px) {
  .build-section {
    padding: 8.25rem 1rem !important;
    min-height: calc(325px + 325px + 2rem + 16.5rem) !important;
  }

  .build-image {
    height: 325px !important;
    min-height: 325px !important;
    max-height: 325px !important;
  }

  .build-text {
    min-height: 325px !important;
    padding: 3.5rem 1.5rem !important;
  }
}

/* ===========================================
   Very Small Mobile (480px and below)
   =========================================== */
@media screen and (max-width: 480px) {
  .build-section {
    padding: 7.5rem 1rem !important;
    min-height: calc(300px + 300px + 2rem + 15rem) !important;
  }

  .build-image {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
  }

  .build-text {
    min-height: 300px !important;
    padding: 3.5rem 1.5rem !important;
  }
}

/* ===========================================
   Extra Small Mobile (375px and below)
   =========================================== */
@media screen and (max-width: 375px) {
  .build-section {
    padding: 6.75rem 0.5rem !important;
    min-height: calc(275px + 275px + 2rem + 13.5rem) !important;
  }

  .build-image {
    height: 275px !important;
    min-height: 275px !important;
    max-height: 275px !important;
  }

  .build-text {
    min-height: 275px !important;
    padding: 3.5rem 1.5rem !important;
  }
}

/* ===========================================
   Utility overrides
   =========================================== */
* {
  clip: auto !important;
  clip-path: none !important;
}

.build-section,
.build-section *:not(img) {
  overflow: visible !important;
}

.build-section,
.build-content,
.build-text {
  max-height: none !important;
}

/* Prevent overlapping with adjacent sections */
.testimonials-section {
  position: relative !important;
  z-index: 0 !important;
  margin-top: 0 !important;
}