/**
 * Build Section - Consolidated Styles
 * Replaces: build-mobile-equal-height.css, build-mobile-spacing-fix.css,
 *           build-responsive.css, build-section-consolidated.css,
 *           build-section-padding-reduction.css, build-text-spacing-override.css
 */

/* ===========================================
   Main Build Section
   =========================================== */
.build-section {
  background-color: #ececec;
  padding: 8rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 600px;
  overflow: visible;
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
}

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

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

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

.build-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===========================================
   Mobile (767px and below)
   =========================================== */
@media screen and (max-width: 767px) {
  .build-section {
    padding: 4rem 1rem;
    height: auto;
    min-height: auto;
    align-items: flex-start;
  }

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

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

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

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

  .build-text {
    height: auto;
    min-height: 300px;
    max-height: none;
    padding: 2rem 1.5rem;
  }

  .build-text h2 {
    margin-bottom: 0.75rem;
    font-size: 2rem;
  }

  .build-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
  }
}

/* ===========================================
   Small Mobile (640px and below)
   =========================================== */
@media screen and (max-width: 640px) {
  .build-section {
    padding: 3rem 1rem;
  }

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

  .build-text {
    min-height: 280px;
    padding: 1.5rem 1.25rem;
  }

  .build-text h2 {
    font-size: 1.85rem;
  }

  .build-text p {
    font-size: 0.95rem;
  }
}

/* ===========================================
   Very Small Mobile (480px and below)
   =========================================== */
@media screen and (max-width: 480px) {
  .build-section {
    padding: 2.5rem 1rem;
  }

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

  .build-text {
    min-height: 260px;
    padding: 1.25rem 1rem;
  }

  .build-text h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .build-text p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
}

/* ===========================================
   Extra Small Mobile (375px and below)
   =========================================== */
@media screen and (max-width: 375px) {
  .build-section {
    padding: 2rem 0.75rem;
  }

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

  .build-text {
    min-height: 240px;
    padding: 1rem 0.75rem;
  }

  .build-text h2 {
    font-size: 1.65rem;
    margin-bottom: 0.4rem;
  }

  .build-text p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }
}

/* ===========================================
   Adjacent Section Fix
   =========================================== */
.testimonials-section {
  position: relative;
  z-index: 0;
  margin-top: 0;
}
