/* Servicos - Hero */
.services-hero {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 82%);
  padding-top: 170px;
  padding-bottom: 96px;
}

.services-hero__inner {
  width: min(1214px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.services-hero__title {
  margin: 0;
  width: min(828px, 100%);
  color: #1a1a1a;
  font-size: 64px;
  line-height: 1.15;
  font-weight: 600;
}

.services-hero__description {
  margin: 0;
  width: min(590px, 100%);
  color: #332f30;
  font-size: 16px;
  line-height: 1.5;
}

.services-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.services-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  transition: all 0.2s ease;
}

.services-hero__button--primary {
  background: #980577;
  border-color: #980577;
  color: #ffffff;
}

.services-hero__button--primary:hover,
.services-hero__button--primary:focus-visible {
  background: #860468;
  border-color: #860468;
}

.services-hero__button--secondary {
  background: transparent;
  border-color: #980577;
  color: #980577;
}

.services-hero__button--secondary:hover,
.services-hero__button--secondary:focus-visible {
  background: rgba(152, 5, 119, 0.08);
}

/* Servicos - O que fazemos */
.services-what {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  padding: 111px 0 128px;
}

.services-what__union {
  position: absolute;
  top: -437px;
  right: -171px;
  width: 1215px;
  height: 1108px;
  max-width: none;
  z-index: 0;
  pointer-events: none;
}

.services-what__inner {
  position: relative;
  z-index: 1;
  width: min(1216px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 592px 488px;
  justify-content: space-between;
  align-items: start;
}

.services-what__media {
  position: relative;
  min-height: 517px;
}

.services-what__image {
  margin: 0;
  overflow: hidden;
  background: #a3a3a3;
}

.services-what__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-what__image--one {
  position: absolute;
  top: 0;
  left: 0;
  width: 384px;
  height: 440px;
}

.services-what__image--two {
  position: absolute;
  top: 77px;
  left: 208px;
  width: 384px;
  height: 440px;
  border: 4px solid #f5f5f5;
  box-sizing: border-box;
}

.services-what__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.services-what__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #980577 0%, #ff377a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-what__title {
  margin: 0;
  width: min(419px, 100%);
  color: #1a1a1a;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
}

.services-what__description {
  margin: 0;
  color: #332f30;
  font-size: 16px;
  line-height: 1.5;
}

/* Servicos - Principais */
.services-main {
  background: #1a1a1a;
  padding: 104px 0 120px;
  position: relative;
}

.services-main__inner {
  width: min(1218px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.services-main__title {
  margin: 0;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
}

.services-main__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
}

.services-main__card {
  background: rgba(245, 245, 245, 0.1);
  border: 0;
  height: 132px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 48px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
  box-sizing: border-box;
}

.services-main__card:hover,
.services-main__card:focus-visible {
  background: rgba(245, 245, 245, 0.15);
}

.services-main__card-content {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.services-main__card-title {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
}

.services-main__card-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  line-height: 1.5;
}

.services-main__card-arrow {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.services-main__card:hover .services-main__card-arrow,
.services-main__card.is-active .services-main__card-arrow {
  background: #980577;
  border-color: #980577;
}

.services-main__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 6px;
  background: #980577;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.services-main__button:hover,
.services-main__button:focus-visible {
  background: #860468;
}

/* Services Popup */
.services-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.services-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  border: 0;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.24s ease;
}

.services-popup__panel {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: min(800px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  padding: 64px 48px 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-popup__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.services-popup__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.services-popup__title {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
}

.services-popup__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  line-height: 1.5;
}

.services-popup__description {
  margin-top: 32px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.5;
  white-space: pre-line;
}

.services-popup.is-open {
  pointer-events: auto;
}

.services-popup.is-open .services-popup__overlay {
  opacity: 1;
}

.services-popup.is-open .services-popup__panel {
  transform: translateX(-50%) translateY(0);
}

body.services-popup-open {
  overflow: hidden;
}

/* Servicos - Diferenciais */
.services-reasons {
  background: #ffffff;
  padding: 124px 0 96px;
}

.services-reasons__inner {
  width: min(1216px, calc(100% - 32px));
  margin: 0 auto;
}

.services-reasons__header {
  margin: 0 auto;
  width: min(568px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.services-reasons__title {
  margin: 0;
  color: #1a1a1a;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
}

.services-reasons__description {
  margin: 0;
  color: #332f30;
  font-size: 16px;
  line-height: 1.5;
}

.services-reasons__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.services-reasons__card {
  background: #f5f5f5;
  min-height: 180px;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.services-reasons__card-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.services-reasons__card-text {
  margin: 0;
  color: #4d4648;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

/* Servicos - Laboratorios */
.services-labs {
  background: #ffffff;
  padding: 34px 0 80px;
}

.services-labs__inner {
  width: min(1216px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 488px 488px;
  justify-content: space-between;
  align-items: center;
}

.services-labs__media {
  margin: 0;
  width: 100%;
  height: 366px;
  overflow: hidden;
}

.services-labs__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-labs__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.services-labs__title {
  margin: 0;
  color: #1a1a1a;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
}

.services-labs__description {
  margin: 0;
  color: #332f30;
  font-size: 16px;
  line-height: 1.5;
}

/* Servicos - CTA equipe */
.services-team-cta {
  position: relative;
  overflow: hidden;
  background: #000000;
  min-height: 412px;
}

.services-team-cta__bg,
.services-team-cta__overlay {
  position: absolute;
  inset: 0;
}

.services-team-cta__bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.services-team-cta__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.44) 100%);
}

.services-team-cta__inner {
  position: relative;
  z-index: 1;
  width: min(1216px, calc(100% - 32px));
  min-height: 412px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.services-team-cta__title {
  margin: 0;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
}

.services-team-cta__description {
  margin: 0;
  width: min(568px, 100%);
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.services-team-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 6px;
  background: #980577;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.services-team-cta__button:hover,
.services-team-cta__button:focus-visible {
  background: #860468;
}

/* Notebook */
@media (max-width: 1439px) {

  .services-hero__inner,
  .services-what__inner,
  .services-main__inner,
  .services-reasons__inner,
  .services-labs__inner,
  .services-team-cta__inner {
    width: calc(100% - 48px);
  }

  .services-hero {
    padding-top: 150px;
    padding-bottom: 84px;
  }

  .services-hero__title {
    font-size: 54px;
  }

  .services-what {
    padding: 96px 0 112px;
  }

  .services-what__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 36px;
  }

  .services-what__media {
    min-height: 470px;
  }

  .services-what__image--one,
  .services-what__image--two {
    width: 340px;
    height: 390px;
  }

  .services-what__image--two {
    left: 176px;
    top: 64px;
  }

  .services-main {
    padding: 88px 0 96px;
  }

  .services-main__title,
  .services-reasons__title,
  .services-labs__title,
  .services-team-cta__title {
    font-size: 36px;
  }

  .services-reasons {
    padding: 104px 0 84px;
  }

  .services-reasons__grid {
    gap: 20px;
  }

  .services-reasons__card-text {
    font-size: 18px;
  }

  .services-labs__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .services-team-cta {
    min-height: 380px;
  }

  .services-team-cta__inner {
    min-height: 380px;
  }
}

/* Tablet */
@media (max-width: 1023px) {

  .services-hero__inner,
  .services-what__inner,
  .services-main__inner,
  .services-reasons__inner,
  .services-labs__inner,
  .services-team-cta__inner {
    width: calc(100% - 40px);
  }

  .services-hero {
    padding-top: 136px;
    padding-bottom: 72px;
  }

  .services-hero__title {
    font-size: 42px;
  }

  .services-hero__actions {
    gap: 16px;
  }

  .services-what {
    padding: 72px 0 84px;
  }

  .services-what__inner {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .services-what__media {
    min-height: 420px;
  }

  .services-what__image--one,
  .services-what__image--two {
    width: 320px;
    height: 360px;
  }

  .services-what__image--two {
    left: 164px;
    top: 58px;
  }

  .services-main {
    padding: 72px 0 80px;
  }

  .services-main__title {
    font-size: 32px;
  }

  .services-main__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-popup__panel {
    padding: 56px 32px 40px;
  }

  .services-popup__title {
    font-size: 28px;
  }

  .services-reasons {
    padding: 80px 0 72px;
  }

  .services-reasons__grid {
    margin-top: 36px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .services-labs {
    padding: 16px 0 64px;
  }

  .services-labs__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-team-cta {
    min-height: 340px;
  }

  .services-team-cta__inner {
    min-height: 340px;
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 767px) {

  .services-hero__inner,
  .services-what__inner,
  .services-main__inner,
  .services-reasons__inner,
  .services-labs__inner,
  .services-team-cta__inner {
    width: calc(100% - 24px);
  }

  .services-hero {
    padding-top: 118px;
    padding-bottom: 56px;
  }

  .services-hero__inner {
    gap: 24px;
  }

  .services-hero__title {
    font-size: 38px;
  }

  .services-hero__description {
    font-size: 15px;
  }

  .services-hero__actions {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .services-hero__button {
    width: 100%;
  }

  .services-what {
    padding: 56px 0 64px;
  }

  .services-what__media {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .services-what__image--one,
  .services-what__image--two {
    position: static;
    width: 100%;
    height: 250px;
    border: 0;
  }

  .services-what__eyebrow {
    padding: 7px 16px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .services-what__title,
  .services-main__title,
  .services-reasons__title,
  .services-labs__title,
  .services-team-cta__title {
    font-size: 30px;
    line-height: 1.25;
  }

  .services-what__description,
  .services-reasons__description,
  .services-labs__description,
  .services-team-cta__description {
    font-size: 15px;
  }

  .services-main {
    padding: 56px 0 64px;
  }

  .services-main__grid {
    gap: 12px;
  }

  .services-main__card {
    height: auto;
    min-height: 80px;
    gap: 24px;
    padding: 20px;
  }

  .services-main__card-title {
    font-size: 17px;
  }

  .services-main__card-subtitle {
    font-size: 14px;
  }

  .services-popup__panel {
    padding: 52px 20px 36px;
  }

  .services-popup__title {
    font-size: 24px;
  }

  .services-popup__subtitle,
  .services-popup__description {
    font-size: 16px;
  }

  .services-reasons {
    padding: 56px 0;
  }

  .services-reasons__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-reasons__card {
    min-height: 142px;
    gap: 14px;
  }

  .services-reasons__card-text {
    font-size: 16px;
  }

  .services-labs {
    padding: 0 0 56px;
  }

  .services-labs__media {
    height: 250px;
  }

  .services-team-cta {
    min-height: 310px;
  }

  .services-team-cta__inner {
    min-height: 310px;
    gap: 18px;
  }

  .services-team-cta__button {
    width: 100%;
  }
}