/* Suntor — página "Serviços" (Figma: Serviços 2663:4836, frame 1440px).
   .btn, .eyebrow, .title, .decor, .read-more and .cta-visit come from site.css. */

.serv article > * { margin-left: 0; margin-right: 0; max-width: none; }

/* ---------- Hero ---------- */
.serv-hero { position: relative; overflow: hidden; height: 542px; box-sizing: border-box; background: var(--primary-50); padding: 0 var(--gutter); display: flex; align-items: center; }
.serv-hero__lines { position: absolute; left: -79px; top: -19px; width: 671px; height: 440px; pointer-events: none; -webkit-mask: url('../assets/images/servicos/hero-left-mask.svg') no-repeat 0 0 / 671px 440px; mask: url('../assets/images/servicos/hero-left-mask.svg') no-repeat 0 0 / 671px 440px; }
.serv-hero__lines img { position: absolute; left: -200px; top: -370px; width: 700.636px; height: 1028.901px; }
.serv-hero__content { position: relative; z-index: 1; width: 576px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.serv-hero__text { width: 471px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; animation: reveal-up .9s var(--ease, ease) backwards; }
.serv-hero__text h1 { margin: 0; font: 400 44px/1.1 var(--font-head); color: var(--primary-500); }
.serv-hero__text p { margin: 0; font: 400 16px/1.4 var(--font-body); color: var(--primary-900); }
.serv-hero__content > .btn { animation: reveal-up .9s var(--ease, ease) .15s backwards; }
.serv-hero__visual { position: absolute; inset: 0; pointer-events: none; }
.serv-hero__photo { position: absolute; left: calc(50% - 25px); top: -42.276px; width: 887.08px; height: 1016.43px; animation: serv-photo-in 1.6s var(--ease, ease) both; }
.serv-hero__line { position: absolute; left: calc(50% + 87.922px); top: 16.477px; width: 887.08px; height: 1016.43px; animation: serv-line-in 2s var(--ease, ease) .3s both; }
@keyframes serv-photo-in { from { opacity: 0; transform: translate3d(48px, 0, 0) scale(1.04); } }
@keyframes serv-line-in { from { opacity: 0; transform: translate3d(-32px, 24px, 0); } }

/* ---------- Cuidado que continua ---------- */
.serv-cuidado { position: relative; overflow: hidden; padding: 80px var(--gutter); display: flex; align-items: center; gap: 96px; }
.serv-cuidado__visual { position: relative; flex: none; width: 478px; height: 476px; }
.serv-cuidado__photo { position: absolute; left: -.17px; top: .35px; width: 478px; height: 476px; transition: transform 1.2s var(--ease, ease); }
.serv-cuidado__line { position: absolute; left: -79px; top: -83px; width: 649.719px; height: 649.691px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.serv-cuidado__line img { flex: none; width: 460px; height: 459px; transform: rotate(43.87deg); transition: transform 1.6s var(--ease, ease); }
.serv-cuidado__visual:hover .serv-cuidado__photo { transform: scale(1.03); }
.serv-cuidado__visual:hover .serv-cuidado__line img { transform: rotate(52deg); }
.serv-cuidado__copy { position: relative; width: 636px; max-width: 100%; display: flex; flex-direction: column; }
.serv-cuidado__copy .title { margin-top: 12px; }
.serv-cuidado__text { margin: 16px 0 0; font: 400 16px/1.4 var(--font-body); color: var(--primary-900); }

/* ---------- Accordion de serviços ---------- */
.serv-lista { padding: 24px var(--gutter) 104px; display: flex; flex-direction: column; gap: 16px; }
.serv-acc { box-sizing: border-box; border: 1px solid rgba(71, 74, 81, .2); border-radius: 12px; background: var(--white); transition: border-color .3s ease, box-shadow .4s var(--ease, ease); scroll-margin-top: 24px; }
.serv-acc:hover { border-color: rgba(206, 105, 106, .4); }
.serv-acc.is-open { border-color: rgba(206, 105, 106, .4); box-shadow: 0 16px 40px rgba(206, 105, 106, .12); }
.serv-acc__heading { margin: 0; }
.serv-acc__head { width: 100%; margin: 0; padding: 20px 32px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 16px; text-align: left; border-radius: 12px; }
.serv-acc__head:focus-visible { outline: 2px solid var(--primary-700); outline-offset: -2px; }
.serv-acc__icon { position: relative; flex: none; width: 40px; height: 40px; transition: transform .5s var(--ease, ease); }
.serv-acc__mask { position: absolute; display: block; -webkit-mask: var(--m) no-repeat 0 0 / 100% 100%; mask: var(--m) no-repeat 0 0 / 100% 100%; }
/* Figma keeps the 48px-icon artwork unscaled inside the 40px slot */
.serv-acc__svg { position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; }
.serv-acc__head:hover .serv-acc__icon, .serv-acc.is-open .serv-acc__icon { transform: scale(1.1); }
.serv-acc__title { flex: 1; min-width: 0; font: 500 24px/1.2 var(--font-head); color: var(--primary-500); }
.serv-acc__toggle { position: relative; flex: none; width: 24px; height: 24px; transition: transform .45s var(--ease, ease); }
.serv-acc__toggle::before, .serv-acc__toggle::after { content: ''; position: absolute; left: 3px; top: 11.25px; width: 18px; height: 1.5px; border-radius: 1px; background: var(--primary-900); }
.serv-acc__toggle::after { transform: rotate(90deg); }
.serv-acc.is-open .serv-acc__toggle { transform: rotate(135deg); }
.serv-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease, ease); }
.serv-acc.is-open .serv-acc__panel { grid-template-rows: 1fr; }
.serv-acc__inner { overflow: hidden; min-height: 0; }
.serv-acc__body { padding: 0 32px 32px 88px; max-width: 900px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font: 400 16px/1.4 var(--font-body); color: var(--primary-900); opacity: 0; transform: translateY(-8px); transition: opacity .35s ease, transform .5s var(--ease, ease); }
.serv-acc.is-open .serv-acc__body { opacity: 1; transform: none; transition-delay: .1s; }
.serv-acc__body > * { margin: 0; }
.serv-acc__body h3 { margin-top: 12px; font: 500 20px/1.2 var(--font-head); color: var(--primary-500); }
.serv-acc__lead { font-weight: 600; }
.serv-acc__body strong { font-weight: 600; }
.serv-acc__checks, .serv-acc__steps { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.serv-acc__checks li, .serv-acc__steps li { position: relative; padding-left: 36px; }
.serv-acc__checks li::before { content: ''; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; background: url('../assets/images/servicos/icon-check.svg') no-repeat center / 24px 24px; }
.serv-acc__steps { counter-reset: etapa; }
.serv-acc__steps li { counter-increment: etapa; }
.serv-acc__steps li::before { content: counter(etapa); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-400); display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-body); color: var(--white); }

/* ---------- Como começar ---------- */
.serv-passos { background: var(--primary-25); padding: 80px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 48px; }
.serv-passos__head { width: 820px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.serv-passos__head p { width: 702px; max-width: 100%; margin: 0; font: 400 16px/1.4 var(--font-body); color: var(--neutral-900); }
.serv-passos__list { width: 100%; margin: 0; padding: 0; list-style: none; display: flex; align-items: flex-start; gap: 34px; }
.serv-passo { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.serv-passo__media { width: 100%; height: 248px; border-radius: 24px; overflow: hidden; }
.serv-passo__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease, ease); }
.serv-passo:hover .serv-passo__media img { transform: scale(1.04); }
/* in the flow: overlaps the photo by 24px (Figma top 224px) and keeps the 48px gap to the text */
.serv-passo__num { position: relative; z-index: 1; flex: none; margin: -72px 0 -24px; width: 48px; height: 48px; box-sizing: border-box; transform: translateX(4px); border: 2px solid var(--white); border-radius: 200px; background: var(--primary-400); display: flex; align-items: center; justify-content: center; font: 700 16px/1.4 var(--font-body); color: var(--white); filter: drop-shadow(0 26px 3.5px rgba(218, 167, 154, .01)) drop-shadow(0 17px 3.5px rgba(218, 167, 154, .12)); transition: transform .4s var(--ease, ease); }
.serv-passo:hover .serv-passo__num { transform: translateX(4px) scale(1.12); }
.serv-passo:nth-child(3) .serv-passo__num { margin-top: -79px; margin-bottom: -17px; transform: translateX(3.33px); }
.serv-passo:nth-child(3):hover .serv-passo__num { transform: translateX(3.33px) scale(1.12); }
.serv-passo__text { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.serv-passo__text h3 { margin: 0; font: 600 20px/1.4 var(--font-body); color: var(--primary-400); }
.serv-passo__text p { margin: 0; font: 400 16px/1.4 var(--font-body); color: var(--primary-900); }

/* ---------- CTA ---------- */
.cta-visit--serv .cta-visit__organic--left { left: calc(50% - 720px); }
.cta-visit--serv .cta-visit__copy .title { width: 694px; max-width: 100%; white-space: normal; }
@media (min-width: 1101px) { .cta-visit--serv .cta-visit__copy p { white-space: nowrap; } }
@media (max-width: 1100px) { .cta-visit--serv .cta-visit__copy .title { width: auto; } }

@media (prefers-reduced-motion: reduce) {
  .serv-hero__text, .serv-hero__content > .btn, .serv-hero__photo, .serv-hero__line { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .serv-hero__photo { left: calc(50% + 40px); }
  .serv-hero__line { left: calc(50% + 153px); }
  .serv-cuidado { gap: 56px; }
  .serv-cuidado__visual { transform: scale(.85); margin: -36px; }
}

@media (max-width: 1000px) {
  .serv-hero { height: auto; flex-direction: column; align-items: stretch; padding-top: 56px; padding-bottom: 0; }
  .serv-hero__visual { position: relative; inset: auto; height: 360px; margin: 32px calc(-1 * var(--gutter)) 0; overflow: hidden; }
  .serv-hero__photo { left: 50%; top: -40px; width: 620px; height: auto; transform: translateX(-38%); animation: none; }
  .serv-hero__line { display: none; }
  .serv-cuidado { flex-direction: column; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
  .serv-cuidado__visual { transform: scale(.7); margin: -72px 0; }
  .serv-passos__list { flex-direction: column; align-items: center; gap: 48px; }
  .serv-passo { width: 100%; max-width: 480px; }
  .serv-passo__media { height: auto; aspect-ratio: 415 / 248; }
}

@media (max-width: 720px) {
  .serv-hero__text h1 { font-size: 34px; }
  .serv-hero__visual { height: 300px; }
  .serv-cuidado__visual { transform: scale(.6); margin: -96px 0; }
  .serv-lista { padding: 8px var(--gutter) 56px; gap: 12px; }
  .serv-acc__head { padding: 16px; gap: 12px; }
  .serv-acc__title { font-size: 19px; }
  .serv-acc__body { padding: 0 16px 24px; }
  .serv-passos { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
}
