/* Secção "Trabalhos em obra" (fotografias reais) - servicos.html */

.real-work-section {
  padding: 96px 0 104px;
  background: #ffffff;
}

.real-work-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.real-work-head h2 {
  margin: 10px 0 16px;
  color: #0b2d47;
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.real-work-head p {
  margin: 0;
  max-width: 640px;
  color: #4f5962;
  font-size: 1.02rem;
  line-height: 1.65;
}

.real-work-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.real-work-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0b2d47;
}

.real-work-item::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 29, 51, 0) 58%, rgba(7, 29, 51, 0.7) 100%);
  content: "";
  pointer-events: none;
}

.real-work-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.real-work-item:hover img {
  transform: scale(1.035);
}

.real-work-item-wide {
  grid-column: 1 / -1;
}

.real-work-item-wide img {
  aspect-ratio: 21 / 9;
}

.real-work-item figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  z-index: 2;
  color: #ffffff;
  font-size: clamp(0.95rem, 1.1vw, 1.12rem);
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .real-work-gallery {
    grid-template-columns: 1fr;
  }

  .real-work-item-wide img {
    aspect-ratio: 4 / 3;
  }
}

.real-work-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 36px;
}

.real-work-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 640px) {
  .real-work-section {
    padding: 68px 0 76px;
  }

  .real-work-head {
    margin-bottom: 28px;
  }

  .real-work-cta {
    margin-top: 28px;
  }

  .real-work-button {
    width: 100%;
  }
}
