/* Especialidades: cartões ilustrados com expansão suave. */
#servicos.services-section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(ellipse at 80% 0, #07387866, transparent 45%), radial-gradient(ellipse at 10% 80%, #002b6266, transparent 40%), #020b18;
  overflow: clip;
}
.services-wrap {
  width: min(100% - 5rem, 90rem);
  position: relative;
  z-index: 1;
}
#servicos .section-head {
  margin-bottom: 1.5rem;
}
#servicos .section-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-block: 1rem;
}
.services-floor {
  position: absolute;
  pointer-events: none;
  inset: 55% -30% -30%;
  opacity: 0.2;
  background-image: linear-gradient(#2374cb66 1px, transparent 1px), linear-gradient(90deg, #2374cb66 1px, transparent 1px);
  background-size: 85px 85px;
  transform: perspective(500px) rotateX(55deg);
  transform-origin: center top;
  mask-image: linear-gradient(transparent, #000 30%, transparent);
}
.services-shell {
  position: relative;
}
.services-panels {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 500px;
}
.service-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 440px;
  border: 1px solid #5b84bc5c;
  border-radius: 24px;
  background: linear-gradient(155deg, #101e36e6, #020c19);
  transition:
    flex 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s,
    box-shadow 0.4s;
}
.service-panel.is-open {
  flex: 1.8 1 0;
  height: 488px;
  border-color: #5cc6ff;
  background: radial-gradient(ellipse at 90% 0, #12478980, transparent 55%), linear-gradient(155deg, #0b2346, #031020);
  box-shadow:
    0 0 0 1px #26a4ff80,
    inset 0 0 20px #0b8dff18,
    0 0 28px #007bff45;
}
.service-panel__art {
  position: absolute;
  inset: 16px 0 auto;
  height: 210px;
  overflow: hidden;
  pointer-events: none;
}
.service-panel__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  transform: scale(0.94);
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s;
}
.service-panel.is-open .service-panel__art {
  height: 230px;
}
.service-panel.is-open .service-panel__art img {
  transform: scale(1);
  opacity: 1;
}
.service-panel__heading {
  margin: 0;
}
.service-panel__summary {
  position: absolute;
  inset: 0;
  width: 100%;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font: inherit;
  background: transparent;
  border-radius: 24px;
  z-index: 2;
}
.service-panel__summary:focus-visible {
  outline: 3px solid #b5e5ff;
  outline-offset: 5px;
}
.service-panel__number {
  position: absolute;
  top: 1.3rem;
  left: 1.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b3c8e9;
}
.service-panel.is-open .service-panel__number {
  color: #329fff;
}
.service-panel__title {
  position: absolute;
  top: 230px;
  left: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.32vw, 1.32rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
  transition: top 0.6s;
}
.service-panel.is-open .service-panel__title {
  top: 248px;
  font-size: clamp(1.2rem, 1.65vw, 1.65rem);
}
.service-panel__body {
  position: absolute;
  top: 288px;
  left: 1.2rem;
  right: 1.2rem;
  pointer-events: none;
  transition: top 0.6s;
}
.service-panel.is-open .service-panel__body {
  top: 298px;
}
.service-panel__body p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #c0cee4;
}
.service-panel__features {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0.8rem 0.75rem;
  border: 1px solid #5cafff29;
  border-radius: 16px;
  background: #03112780;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s,
    transform 0.5s,
    visibility 0.25s;
}
.service-panel__features li {
  font-size: 0.72rem;
  color: #d5e2f7;
  padding-right: 1.7rem;
}
.service-panel__features li::before {
  content: "✓";
  color: #61cfff;
  margin-right: 0.6rem;
}
.service-panel.is-open .service-panel__features {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.2s;
}
.service-panel__indicator {
  position: absolute;
  bottom: 1.3rem;
  left: calc(50% - 21px);
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #8ab5f14d;
  border-radius: 50%;
  background: #061225;
  font-size: 1.3rem;
  font-weight: 400;
  transition:
    background 0.4s,
    color 0.4s,
    left 0.6s;
}
.service-panel.is-open .service-panel__indicator {
  left: calc(100% - 66px);
  bottom: 1.5rem;
  background: #fff;
  color: #031126;
  border-color: #fff;
}

.services-pagination {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 1rem;
}
.services-dot {
  width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}
.services-dot::after {
  content: "";
  width: 15px;
  height: 7px;
  background: #263d5e;
  border-radius: 99px;
  transition:
    width 0.4s,
    background 0.4s;
}
.services-dot[aria-current="true"]::after {
  width: 27px;
  background: linear-gradient(90deg, #126dff, #3cd0ff);
}
.services-hint {
  text-align: center;
  color: #abc5ec;
  font-size: 0.61rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 0.45rem;
}
@media (min-width: 900px) and (max-width: 1150px) {
  .services-wrap {
    width: calc(100% - 4rem);
  }
  .services-panels {
    gap: 0.55rem;
  }
  .service-panel.is-open {
    flex: 2.1 1 0;
  }
  .service-panel__title {
    left: 0.8rem;
    right: 0.8rem;
    font-size: 0.95rem;
  }
  .service-panel__body {
    left: 0.8rem;
    right: 0.8rem;
  }
  .service-panel__body p {
    font-size: 0.71rem;
  }
}
@media (max-width: 899px) {
  .services-wrap {
    width: 100%;
  }
  #servicos .section-head {
    width: calc(100% - 2.5rem);
    margin-inline: auto;
  }
  .services-panels {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    align-items: stretch;
    gap: 1rem;
    min-height: 0;
    padding: 1.5rem max(1.25rem, calc((100vw - 360px) / 2));
    scroll-padding-inline: 1.25rem;
  }
  .services-panels::-webkit-scrollbar {
    display: none;
  }
  .service-panel,
  .service-panel.is-open {
    overflow: hidden;
    flex: 0 0 min(82vw, 340px);
    height: 488px;
    scroll-snap-align: center;
  }
  .service-panel__title,
  .service-panel.is-open .service-panel__title {
    top: 248px;
    left: 1.25rem;
    right: 1.25rem;
    font-size: 1.45rem;
  }
  .service-panel__body,
  .service-panel.is-open .service-panel__body {
    top: 300px;
    left: 1.25rem;
    right: 1.25rem;
  }
  .service-panel__body p {
    font-size: 0.84rem;
  }
  .service-panel__art,
  .service-panel.is-open .service-panel__art {
    height: 230px;
  }

  .services-pagination {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .services-section *,
  .services-section *::after {
    transition: none;
    scroll-behavior: auto;
  }
}

.services-dot:focus-visible {
  outline: 2px solid #8ed6ff;
  outline-offset: 4px;
}
.service-panel__plus-line {
  transition: opacity 0.25s;
}
.service-panel.is-open .service-panel__plus-line {
  opacity: 0;
}
@media (max-width: 899px) {
  .service-panel {
    height: 410px;
  }
  .service-panel:not(.is-open) .service-panel__features {
    display: none;
  }
  .service-panel.is-open {
    height: 520px;
  }
  .service-panel .service-panel__title,
  .service-panel.is-open .service-panel__title {
    top: 248px;
    right: 4rem;
    font-size: 1.3rem;
  }
  .service-panel .service-panel__body,
  .service-panel.is-open .service-panel__body {
    top: 310px;
  }
  .service-panel .service-panel__indicator,
  .service-panel.is-open .service-panel__indicator {
    display: grid;
    top: 244px;
    bottom: auto;
    left: auto;
    right: 1rem;
  }
}
