body[data-page="servicos"] .page-hero {
  --page-hero-image: url("../img/optimized/artes/armazem-bom-sucesso-60.webp?v=20260528-opt01");
}

body[data-page="servicos"] .page-hero::before {
  background:
    linear-gradient(90deg, rgba(31, 23, 18, 0.9), rgba(31, 23, 18, 0.56) 44%, rgba(31, 23, 18, 0.18)),
    var(--page-hero-image);
  background-position: center;
  background-size: cover;
}

.services-overview-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf2 0%, #f6efe4 100%);
}

.services-overview-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(138, 106, 79, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(138, 106, 79, 0.05) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  pointer-events: none;
}

.services-overview-section .content-wrap {
  position: relative;
  z-index: 1;
}

.services-overview-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.services-overview-heading h2 {
  max-width: 820px;
  margin: 0;
  color: #2a2018;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.03;
  text-wrap: balance;
}

.services-overview-heading p {
  margin: 0;
  color: rgba(42, 32, 24, 0.74);
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.65;
  font-weight: 700;
}

.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-area-card {
  position: relative;
  min-height: clamp(520px, 42vw, 620px);
  overflow: hidden;
  color: #fff7ec;
  text-decoration: none;
  background: #1f160f;
  border: 1px solid rgba(138, 106, 79, 0.2);
  border-radius: 8px;
  box-shadow: 0 24px 62px rgba(42, 32, 24, 0.18);
  isolation: isolate;
}

.service-area-card figure {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #1f160f;
}

.service-area-card figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(28, 19, 12, 0.08) 0%, rgba(28, 19, 12, 0.18) 34%, rgba(28, 19, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(28, 19, 12, 0.48), rgba(28, 19, 12, 0.02) 74%);
}

.service-area-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.045);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.service-area-card:hover img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1);
}

.service-area-card-content {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.service-area-card .section-kicker {
  color: #f1d7ad;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.48);
}

.service-area-card h3 {
  margin: 0;
  color: #fff7ec;
  font-size: clamp(30px, 2.25vw, 38px);
  line-height: 1.05;
  hyphens: auto;
  overflow-wrap: anywhere;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.46);
}

.service-area-card p {
  margin: 0;
  color: rgba(255, 247, 236, 0.88);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
  overflow-wrap: break-word;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.46);
}

.service-card-link {
  width: max-content;
  margin-top: 6px;
  padding: 12px 18px;
  color: #2a2018;
  background: #f1d7ad;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .services-overview-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .services-overview-grid {
    grid-template-columns: 1fr;
  }

  .service-area-card {
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  body[data-page="servicos"] {
    overflow-x: hidden;
  }

  body[data-page="servicos"] .page-hero {
    min-height: clamp(520px, 124vw, 640px);
    align-items: end;
    padding-top: clamp(210px, 54vw, 280px);
    padding-bottom: 44px;
    background: #1f1712;
  }

  body[data-page="servicos"] .page-hero::before {
    background:
      linear-gradient(180deg, rgba(31, 23, 18, 0.16) 0%, rgba(31, 23, 18, 0.24) 32%, rgba(31, 23, 18, 0.8) 74%, rgba(31, 23, 18, 0.96) 100%),
      var(--page-hero-image);
    background-position: center;
    background-size: cover;
  }

  body[data-page="servicos"] .page-hero h1,
  body[data-page="servicos"] .page-hero p,
  body[data-page="servicos"] .page-hero .section-kicker {
    text-shadow: 0 6px 26px rgba(0, 0, 0, 0.7);
  }

  body[data-page="servicos"] .page-hero-inner {
    width: min(100%, 346px);
    margin-right: auto;
    margin-left: 0;
  }

  body[data-page="servicos"] .page-hero p {
    max-width: 342px;
    overflow-wrap: break-word;
  }

  .services-overview-section.content-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .services-overview-heading h2 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .services-overview-heading p {
    max-width: 330px;
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .service-area-card {
    min-height: 540px;
  }

  .service-area-card-content {
    right: 20px;
    bottom: 22px;
    left: 20px;
  }

  .service-area-card h3 {
    font-size: clamp(28px, 8.5vw, 34px);
  }

  .service-area-card p {
    max-width: 330px;
    font-size: 16px;
    overflow-wrap: break-word;
  }
}
