/* =========================================================
   ORIGINAL DIAGNÓSTICO — servicos.css
   Seções exclusivas da página Serviços (medidas do Figma, base 1366px).
   Animais, planos e diagnósticos vêm do home.css (mesmo bloco da Home).
   ========================================================= */

/* =================== TOPO =================== */
.svc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: max(358px, 26.2vw); /* proporção do Figma (1366 × 358 abaixo do header) */
  color: var(--c-white);
  text-align: center;
}
/* degradê do Figma: o retângulo começa atrás do header (1366 × 495) */
.svc-hero::before {
  content: "";
  position: absolute; z-index: -2;
  left: 0; right: 0; bottom: 0;
  top: calc(var(--header-h) * -1);
  background: linear-gradient(113.77deg, var(--c-gold) 9.158%, var(--c-green) 66.067%);
}
/* trama fina por cima (sobreposição a 50%, como no Figma) */
.svc-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/servicos/textura.png") 0 0 / 3px 3px repeat;
  mix-blend-mode: overlay;
  opacity: .5;
  pointer-events: none;
}
.svc-hero__content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-block: 0 46px; /* o card verde sobe 46px sobre o banner */
}
.svc-hero__eyebrow { line-height: 64px; }
.svc-hero__title {
  max-width: 763px;
  margin-top: -13px;
  font-family: var(--ff-title);
  font-size: clamp(2.5rem, 1.2rem + 3.9vw, 4.375rem);
  font-weight: 600;
  line-height: .857; /* 60px em 70px */
}
.svc-hero__title .text-gold { font-weight: 700; }

/* card verde com o resumo + entalhe com seta */
.svc-intro {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  margin-top: -46px;
  padding-inline: var(--gutter);
}
.svc-intro__box {
  display: grid; place-items: center;
  width: 100%; max-width: 410px;
  min-height: 103px;
  padding: 10px 16px 18px;
  border-radius: var(--radius);
  background: var(--c-green);
  color: var(--c-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}
.svc-intro__notch { width: 150px; height: 40px; margin-top: -4px; }

/* =================== GRADE DE SERVIÇOS =================== */
.svc-list { padding: 65px 0 147px; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 350px));
  justify-content: center;
  gap: 35px 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.svc-card {
  position: relative;
  height: 100%;
  min-height: 248px;
  padding: 71px 20px 14px;
  border: 1px solid var(--c-gold);
  border-radius: var(--radius);
  background: #fbf9f3;
  color: var(--c-green);
  text-align: center;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  scroll-margin-top: 40px;
}
.svc-card__icon {
  position: absolute; top: -13px; left: 50%;
  display: grid; place-items: center;
  width: 71px; height: 71px;
  border-radius: 50%;
  background: var(--c-gold);
  transform: translateX(-50%);
}
.svc-card__title {
  font-family: var(--ff-title);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: -0.01em;
  transition: color .3s var(--ease);
}
.svc-card p {
  max-width: 280px;
  margin: 23px auto 0;
  font-size: 0.8125rem;
  line-height: 20px;
  letter-spacing: -0.02em;
}
.svc-card--wide p { max-width: 313px; }
.svc-card:hover, .svc-card:target { background: var(--c-green); color: var(--c-white); }
.svc-card:hover .svc-card__title, .svc-card:target .svc-card__title { color: #e7bf41; font-weight: 600; }

/* blocos da Home ajustados às medidas desta página no Figma */
.page-servicos .od-strip { height: 53px; background-size: auto 53px; }
.page-servicos .plans { padding-bottom: 79px; }
.page-servicos .diagnostics .section-title { font-weight: 400; }
.page-servicos .diagnostics__pattern { background-position: -88px 0; } /* nesta página o título vem sem negrito no Figma */

/* faixa degradê verde → bege abaixo dos planos */
.svc-fade { height: 14px; background: linear-gradient(90deg, var(--c-green) 0%, #fbf9f3 100%); }

/* =================== PACOTES =================== */
.packages { padding: 67px 0 95px; text-align: center; }
.packages__eyebrow { line-height: 64px; }
.packages__title { line-height: 40px; }
.packages__lead {
  max-width: 351px;
  margin: 35px auto 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 20px;
  color: var(--c-green);
}
.packages__grid {
  position: relative;
  display: flex; justify-content: center;
  margin-top: 0;
  padding-inline: var(--gutter);
}
.pack {
  flex: 0 0 auto;
  width: 586px;
  padding: 23px;
  border-radius: 50%;
  background: #fbf9f3;
}
.packages__mark + .pack { margin-left: -18px; }
.pack__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  aspect-ratio: 1;
  padding-top: 130px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
}
.pack__eyebrow { line-height: 15px; }
.pack__title {
  max-width: 360px;
  min-height: 80px; /* 2 linhas: as listas ficam na mesma altura nos dois círculos */
  margin-top: 6px;
  font-family: var(--ff-title);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: var(--c-green);
}
.pack__list {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 78px auto;
  margin: 15px 0 0 124px;
  list-style: none;
  text-align: left;
}
.pack__list li { display: contents; }
.pack__list strong {
  font-family: var(--ff-title);
  font-size: 2rem;
  font-weight: 700;
  line-height: 40px;
}
.pack__list span { align-self: center; font-size: 1rem; font-weight: 600; line-height: 20px; letter-spacing: -0.02em; padding-top: 5px; }
.pack--light .pack__inner { background: #fbf9f3; color: var(--c-green); }
.pack--dark .pack__inner { background: var(--c-green); color: #fbf9f3; }
.pack--dark .pack__title { color: #fbf9f3; }
.pack--dark .pack__list { margin-left: 97px; }
.packages__mark {
  position: absolute; z-index: 1;
  top: calc(50% - 5px); left: 50%;
  width: 109px; height: 109px;
  transform: translate(-50%, -50%);
}

/* =================== CHAMADA =================== */
.svc-cta { padding-bottom: 93px; }
.svc-cta__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; align-items: center;
  min-height: 551px;
  padding: 40px 61px;
  border-radius: 10px;
  background: var(--c-green);
  color: var(--c-white);
}
.svc-cta__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* véu verde medido no Figma: cheio até 40% e some em 81% */
.svc-cta__card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-green) 40%, rgba(9, 61, 41, 0) 81%);
}
.svc-cta__content { max-width: 560px; }
.svc-cta__content > .eyebrow, .svc-cta__text { padding-left: 3px; }
.svc-cta__title {
  margin: 22px 0 22px;
  font-family: var(--ff-title);
  font-size: clamp(2.4rem, 1.35rem + 3.1vw, 3.75rem);
  font-weight: 600;
  line-height: 1.167;
  color: var(--c-gold);
}
.svc-cta__text { max-width: 455px; font-size: 0.8125rem; font-weight: 600; line-height: 20px; }
.svc-cta__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 71px; }
.svc-cta__btn { min-width: 217px; min-height: 50px; padding: 0 12px; border-radius: var(--radius); border-width: 1px; font-family: var(--ff-ui); font-size: 1rem; font-weight: 600; gap: 6px; }
.svc-cta__btn + .svc-cta__btn { min-width: 181px; padding: 0 20px; gap: 16px; }
.svc-cta__wa { width: 25px; height: 25px; }
.svc-cta__arrow { width: 41px; height: 10px; }

/* =================== PERGUNTAS FREQUENTES =================== */
.faq {
  position: relative;
  overflow: hidden;
  padding: 28px 0 71px;
  background: linear-gradient(180deg, #fbf9f3 0, #fbf9f3 180px, var(--c-green) 180px);
}
/* símbolo OD dourado atrás do card (posição do Figma em relação ao card) */
.faq__ornament {
  position: absolute; top: -3px;
  left: calc(50% - 1202px);
  width: 1360px; height: 828px; max-width: none;
  pointer-events: none;
}
.faq__card {
  position: relative;
  max-width: 922px;
  margin-inline: auto;
  padding: 62px 95px 60px;
  border: 1px solid var(--c-gold);
  border-radius: 10px;
  background: var(--c-white);
  text-align: center;
}
.faq__eyebrow { line-height: 15px; letter-spacing: .3em; }
.faq__title {
  max-width: 542px;
  margin: 7px auto 0;
  font-family: var(--ff-title);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-gold);
}
.faq__lead { max-width: 447px; margin: 9px auto 0; font-size: 0.875rem; line-height: 20px; color: var(--c-green); }
.faq__list { display: grid; gap: 12px; margin: 35px 0 0; text-align: left; }
@media (min-width: 901px) { .faq__list { margin-inline: 5px -5px; } } /* lista 5px à direita do centro, como no Figma */

.faq-item {
  border: 1px solid #cbcccd;
  border-radius: var(--radius);
  background: var(--c-white);
}
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%;
  min-height: 87px;
  padding: 12px 65px 12px 64px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 20px;
  color: var(--c-gold);
  text-align: left;
}
.faq-item__icon {
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-white);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.faq-item__icon .icon { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.faq-item__q:hover .faq-item__icon { background: var(--c-white); color: var(--c-gold); }
.faq-item.is-open .faq-item__icon { background: var(--c-white); color: var(--c-gold); }
.faq-item.is-open .faq-item__icon .icon { transform: rotate(180deg); }
.faq-item__a { margin: -2px 65px 0 64px; padding: 24px 0 29px; border-top: 1px solid var(--c-green); }
.faq-item__a p { font-size: 0.75rem; line-height: 20px; color: #6c6f70; }

/* =================== RESPONSIVO =================== */
@media (max-width: 1240px) {
  /* círculos empilhados */
  .packages__grid { flex-direction: column; align-items: center; }
  .packages__mark { position: relative; top: auto; left: auto; transform: none; margin: -54.5px 0; }
  .packages__mark + .pack { margin: 0; }
}

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 350px)); }
  .faq__ornament { display: none; }
}

@media (max-width: 900px) {
  .svc-hero { min-height: 0; }
  .svc-hero__content { padding-block: 2.5rem calc(46px + 2.5rem); }
  .svc-hero__eyebrow { line-height: 1.6; }
  .svc-hero__title { margin-top: .9rem; line-height: .95; }

  .svc-list { padding-bottom: 5rem; }

  .svc-cta { padding-bottom: 4rem; }
  .svc-cta__card { flex-direction: column; align-items: stretch; min-height: 0; padding: 0; }
  .svc-cta__img {
    position: relative; inset: auto; z-index: 0;
    height: 62vw; min-height: 230px;
    object-position: 85% center;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .svc-cta__card::before { display: none; }
  .svc-cta__content { max-width: none; padding: .5rem 1.5rem 2.5rem; }
  .svc-cta__actions { margin-top: 2rem; }

  .faq__card { padding: 2.75rem 1.25rem 2rem; }
  .faq-item__q { min-height: 72px; padding: 14px 16px 14px 20px; }
  .faq-item__a { margin-inline: 20px 16px; padding: 18px 0 22px; }
}

@media (max-width: 640px) {
  .svc-grid { grid-template-columns: minmax(0, 400px); row-gap: 48px; }

  /* no celular os círculos viram cartões arredondados */
  .packages { padding-bottom: 4rem; }
  .packages__grid { gap: 0; }
  .pack { width: 100%; max-width: 420px; padding: 12px; border-radius: 36px; }
  .pack__inner { aspect-ratio: auto; padding: 2.5rem 1.25rem 2.25rem; border-radius: 28px; }
  .pack__title { min-height: 0; font-size: 2rem; line-height: 1.1; }
  .pack__list, .pack--dark .pack__list { align-self: center; grid-template-columns: 62px auto; margin-left: 0; }
  .pack__list strong { font-size: 1.6rem; }
  .pack__list span { font-size: .9375rem; }
  .packages__mark { width: 84px; height: 84px; margin: -30px 0; }

  .svc-cta__btn { flex: 1 1 100%; }
}
