/* ========== SERVICES SECTION ========== */

/* Container */
.services {
  padding: 2rem 0;
  background-color: #fff;
}

/* Inner layout */
.services .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Text block */
.services-text {
  text-align: center;
}
.services-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  color: #B79A63;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.services-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.2;
  color: #131210;
  margin-bottom: 1rem;
}
.services-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
}

/* Media (image) block */
.services-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.services-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: auto;
}

/* Overlaid CTA box */
.services-cta {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  max-width: 320px;
  background-color: #EBEBEB;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1;
}
.services-cta .cta-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #131210;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.services-cta .cta-text {
  font-size: 0.9375rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* CTA button inside services */
.services-cta .btn-cta {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #B79A63;
  color: #EBEBEB;
  font-weight: bold;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.3s;
}
.services-cta .btn-cta:hover {
  background-color: #131210;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Desktop & large tablets */
@media (min-width: 768px) {
  .services .container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .services-text {
    flex: 1 1 40%;
    text-align: left;
    margin: 0;
  }
  .services-media {
    flex: 1 1 60%;
    height: 0;
    padding-bottom: 40%; /* maintains aspect ratio */
  }
  .services-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* Mobile phones & small tablets */
@media (max-width: 767px) {
  .services .container {
    flex-direction: column;
  }
  .services-cta {
    position: static;
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #EBEBEB;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem auto 0;
    max-width: 90%;
    text-align: center;
  }
  .services-cta .cta-heading {
    font-size: 1.125rem;
  }
  .services-cta .btn-cta {
    margin-top: 0.5rem;
  }
}
