/* =========================================================
   SERVIÇOS — CSS ESPECÍFICO DA PÁGINA
   Arquivo sugerido: /assets/css/servicos.css
========================================================= */


/* =========================================================
   01. HERO — SERVIÇOS
========================================================= */

.services-hero {
  position: relative;
  min-height: 610px;
  padding: 0;
  overflow: hidden;
  background: #fbf8f5;
}

.services-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: flex;
  align-items: center;
}

.services-hero-copy {
  width: min(54%, 640px);
  padding: 94px 0 86px;
}

.services-hero .display {
  max-width: 620px;
  margin: 0 0 24px;
}

.services-hero .lead {
  max-width: 520px;
  margin: 0;
}

.services-hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  border-bottom-left-radius: 130px;
}

.services-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fbf8f5 0%,
    #fbf8f5 47%,
    rgba(251, 248, 245, .96) 52%,
    rgba(251, 248, 245, .72) 58%,
    rgba(251, 248, 245, 0) 68%
  );
}


/* =========================================================
   02. NOTA DO HERO — “SEM MODELO PRONTO”
========================================================= */

.services-hero-note {
  display: grid;
  grid-template-columns: 1px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 500px;
  margin-top: 36px;
}

.services-hero-note-line {
  width: 1px;
  height: 58px;
  background: rgba(24, 33, 41, .17);
}

.services-hero-note strong {
  display: block;
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.services-hero-note p {
  margin: 0;
  max-width: 390px;
  color: var(--muted);
  line-height: 1.7;
}


/* =========================================================
   03. GRADE DE SERVIÇOS
   - 3 colunas no desktop
   - imagens no topo
   - sem ícones / sem numeração
========================================================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.service-card {
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition:
    transform .24s ease,
    border-color .24s ease,
    box-shadow .24s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(223, 29, 117, .26);
  box-shadow: 0 20px 55px rgba(24, 33, 41, .08);
}


/* =========================================================
   04. IMAGEM DOS CARDS
========================================================= */

.service-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #f4eae0;
}

.service-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.service-card--01 .service-card-media img { object-position: center 5%; }
.service-card--02 .service-card-media img { object-position: center top; }
.service-card--03 .service-card-media img { object-position: center top; }
.service-card--04 .service-card-media img { object-position: center top; }
.service-card--05 .service-card-media img { object-position: center 15%; }
.service-card--06 .service-card-media img { object-position: center 10%; }

.service-card:hover .service-card-media img {
  transform: scale(1.025);
}


/* =========================================================
   05. CONTEÚDO DOS CARDS
========================================================= */

.service-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 28px;
}

.service-card .h3 {
  margin: 0 0 14px;
}

.service-card p {
  flex: 1;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.service-card button {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0 0 4px;
  border-bottom: 1px solid rgba(223, 29, 117, .35);
  color: var(--pink);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  transition:
    color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.service-card button:hover {
  color: #c81767;
  border-color: currentColor;
  transform: translateX(2px);
}

.service-card button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 5px;
  border-color: transparent;
}


/* =========================================================
   06. POPUPS / DIALOGS DOS SERVIÇOS
========================================================= */

/* Connected care journey, scoped to the Services page. */
.care-flow {
  overflow: hidden;
  background: radial-gradient(ellipse at 95% 0%, rgba(214, 108, 132, .09), transparent 48%),
    linear-gradient(135deg, #fbf5ef, #f4eae0);
}

.care-flow .eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
}

.care-flow .eyebrow::after {
  content: '';
  width: 84px;
  height: 1px;
  background: var(--pink);
  opacity: .5;
}

.care-flow > .container > .lead {
  max-width: 880px;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.5;
}

.care-flow .steps {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  border: 0;
  margin-top: 46px;
}

.care-flow .step {
  min-width: 0;
  margin: 0;
  padding: 28px 28px 32px;
  border: 1px solid rgba(214, 108, 132, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 18px 40px rgba(45, 33, 37, .04);
}

.care-flow .step-num {
  position: relative;
  z-index: 1;
  transform: translateY(-16px);
  width: fit-content;
  min-height: 3.45rem;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--rose);
  opacity: .55;
  line-height: 1;
  letter-spacing: -.055em;
  margin-bottom: 36px;
}

.care-flow .step .h3 {
  font-size: clamp(1.5rem, 2.15vw, 1.95rem);
  letter-spacing: -.03em;
}

.care-flow .step .h3::after {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background: var(--pink);
  margin-top: 20px;
}

.care-flow .step p {
  margin: 19px 0 0;
  font-size: .95rem;
  line-height: 1.8;
}

.care-flow-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.care-flow-track, .care-flow-shine {
  fill: none;
  stroke: var(--pink);
  stroke-width: 1;
}

.care-flow-track { opacity: .55; }
.care-flow-shine {
  stroke: #f34e95;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 94;
  filter: drop-shadow(0 0 4px rgba(223, 29, 117, .5));
  animation: care-flow-travel 10s linear infinite;
}

.care-flow-dot { fill: var(--pink); stroke: #fff5f7; stroke-width: 3; }
.care-flow-halo {
  fill: var(--pink);
  opacity: .12;
  filter: drop-shadow(0 0 5px rgba(223, 29, 117, .3));
  animation: care-flow-pulse 10s linear infinite;
  animation-delay: var(--point-delay);
}

.care-flow-shine, .care-flow-halo { animation-play-state: paused; }
.care-flow.is-flow-visible .care-flow-shine,
.care-flow.is-flow-visible .care-flow-halo { animation-play-state: running; }

@keyframes care-flow-travel {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes care-flow-pulse {
  0%, 10%, 100% { opacity: .12; }
  3% { opacity: .38; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .care-flow .steps { gap: 16px; }
  .care-flow .step { padding-inline: 20px; }
}

@media (max-width: 900px) {
  .care-flow .steps { grid-template-columns: 1fr; gap: 20px; }
  .care-flow .step { padding: 28px 26px 32px 62px; }
  .care-flow .step-num { margin-bottom: 22px; }
  .care-flow .step .h3 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .care-flow-shine { display: none; animation: none; }
  .care-flow-halo { animation: none; }
}

/* FINAL CTA: off-white editorial composition matching the supplied reference. */
.services-final-cta {
  isolation: isolate;
  background: #fdf8f7;
  color: var(--ink);
  padding-block: 100px;
  min-height: clamp(640px, 56.3vw, 940px);
  display: flex;
  align-items: center;
}

.services-final-cta-photo {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 50%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 14% 0 0 50% / 38% 0 0 64%;
}

/* Crop the right-hand photo from the reference; its text is never displayed. */
.services-final-cta-photo img {
  position: absolute;
  inset: 0 auto 0 -100%;
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.services-final-cta::before, .services-final-cta::after { content: none; }
.services-final-cta .container { display: block; width: min(calc(100% - 11%), 1488px); }
.services-final-cta .container > div { max-width: 47%; }
.services-final-cta .eyebrow { color: var(--pink); margin-bottom: 32px; font-size: clamp(12px, 1.2vw, 18px); letter-spacing: .18em; }
.services-final-cta .h2 {
  color: var(--ink);
  max-width: none;
  font-size: clamp(2.8rem, 5.65vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.045em;
  margin-bottom: 30px;
}
.services-final-cta-accent { display: block; color: var(--pink); }
.services-final-cta p { color: #39414b; }
.services-final-cta p:not(.eyebrow) { font-size: clamp(1rem, 1.55vw, 1.5rem); line-height: 1.6; margin: 0; }
.services-final-cta .btn { margin-top: 36px; padding: 18px 30px; min-height: 64px; font-size: clamp(.9rem, 1.4vw, 1.35rem); gap: 24px; }
.services-final-cta-detail { position: absolute; bottom: -80px; left: -38px; width: 300px; height: 240px; pointer-events: none; stroke: #f7ccdc; stroke-width: 2; }

/* Stack the same composition on mobile, retaining the curved photo boundary. */
@media (max-width: 760px) {
  .services-final-cta {
    padding-block: 56px 0;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .services-final-cta .container > div { max-width: 100%; }
  .services-final-cta .container { width: calc(100% - 48px); }
  .services-final-cta .h2 { font-size: clamp(2.65rem, 7.7vw, 4rem); }
  .services-final-cta .eyebrow { margin-bottom: 24px; }
  .services-final-cta .btn { padding-inline: 24px; min-height: 56px; gap: 16px; }
  .services-final-cta-detail { display: none; }
  .services-final-cta-photo {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(280px, 56.3vw, 420px);
    margin-top: 36px;
    border-radius: 14% 0 0 0 / 40% 0 0 0;
    order: 2;
  }
}

/* MODALS: shared shell and backdrop for all six services. */
.service-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(880px, calc(100% - 40px));
  max-width: 880px;
  height: fit-content;
  max-height: none;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: #fffdfb;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(24, 25, 30, .2);
}

.service-dialog::backdrop {
  background: rgba(24, 25, 30, .55);
  backdrop-filter: blur(7px);
}

.service-dialog .dialog-inner {
  position: relative;
  padding: 0;
}

/* CONTENT: category, title, short description and supporting paragraph. */
.service-dialog .dialog-content {
  min-width: 0;
  padding: 32px 40px;
}

.service-dialog .dialog-head .eyebrow {
  display: inline-block;
  padding: 0 54px 0 0;
  margin-bottom: 18px;
  color: var(--pink);
  font-size: .72rem;
  letter-spacing: .17em;
}

.service-dialog .dialog-head .h2 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
}

/* CLOSE CONTROL: existing data-dialog-close behavior is unchanged. */
.service-dialog .dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #f3eeea;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  transition:
    transform .2s ease,
    border-color .2s ease;
}

.service-dialog .dialog-close:hover {
  transform: rotate(4deg);
  border-color: rgba(223, 29, 117, .35);
}

.service-dialog .dialog-close:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.service-dialog p {
  color: var(--muted);
}

.service-dialog .dialog-content > .lead {
  max-width: none;
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.45;
}

.service-dialog .dialog-content > .lead + p {
  margin: 20px 0 0;
  font-family: var(--sans);
  font-size: .98rem;
  line-height: 1.65;
}

/* FOOTER: full-width divider, support text and highlighted CTA. */
.service-dialog .dialog-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.service-dialog .dialog-footer .text-muted {
  font-size: .88rem;
  line-height: 1.55;
}

.service-dialog .dialog-footer .btn {
  min-height: 52px;
  padding: 13px 22px;
  font-size: .9rem;
  text-align: center;
  background: linear-gradient(110deg, #e21a78, #ce1468);
  box-shadow: 0 12px 28px rgba(223, 29, 117, .16);
}

.service-dialog .dialog-footer .btn::after {
  content: '\2192';
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

/* RESPONSIVE: compact spacing, no internal scrolling, stacked mobile footer. */
@media (max-width: 760px) {
  .service-dialog {
    width: calc(100% - 24px);
    border-radius: 24px;
  }
  .service-dialog .dialog-content { padding: 24px 22px; }
  .service-dialog .dialog-close { top: 12px; right: 12px; width: 34px; height: 34px; }
  .service-dialog .dialog-head .eyebrow { font-size: .65rem; padding-right: 40px; }
  .service-dialog .dialog-head .h2 { font-size: clamp(1.8rem, 6.8vw, 2.3rem); }
  .service-dialog .dialog-content > .lead + p { font-size: .92rem; line-height: 1.55; }
  .service-dialog .dialog-footer { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; padding-top: 18px; }
  .service-dialog .dialog-footer .btn { width: 100%; justify-self: stretch; }
}

/* SHORT SCREENS: reduce vertical spacing further without truncating text. */
@media (max-height: 650px) {
  .service-dialog .dialog-content { padding: 18px 22px; }
  .service-dialog .dialog-head .eyebrow { margin-bottom: 12px; }
  .service-dialog .dialog-head .h2 { font-size: clamp(1.65rem, 3.8vw, 2.4rem); }
  .service-dialog .dialog-content > .lead { margin-top: 12px; font-size: 1.05rem; line-height: 1.4; }
  .service-dialog .dialog-content > .lead + p { margin-top: 14px; font-size: .88rem; line-height: 1.5; }
  .service-dialog .dialog-footer { margin-top: 16px; padding-top: 14px; gap: 10px; }
  .service-dialog .dialog-footer .text-muted { font-size: .82rem; line-height: 1.45; }
  .service-dialog .dialog-footer .btn { min-height: 44px; padding: 10px 18px; font-size: .85rem; }
}


/* =========================================================
   07. TABLET — ATÉ 1024PX
========================================================= */

@media (max-width: 1024px) {
  .services-hero,
  .services-hero-inner {
    min-height: 560px;
  }

  .services-hero-copy {
    width: 58%;
    padding: 80px 0 72px;
  }

  .services-hero-photo {
    width: 46%;
    border-bottom-left-radius: 100px;
  }

  .services-hero::after {
    background: linear-gradient(
      90deg,
      #fbf8f5 0%,
      #fbf8f5 51%,
      rgba(251, 248, 245, .9) 57%,
      rgba(251, 248, 245, 0) 70%
    );
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   08. MOBILE — ATÉ 760PX
========================================================= */

@media (max-width: 760px) {
  .services-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .services-hero::after {
    display: none;
  }

  .services-hero-inner {
    min-height: 0;
    order: 1;
  }

  .services-hero-copy {
    width: 100%;
    padding: 68px 0 42px;
  }

  .services-hero .display,
  .services-hero .lead {
    max-width: 100%;
  }

  .services-hero-photo {
    position: relative;
    inset: auto;
    order: 2;
    width: calc(100% - 32px);
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 16px 56px;
    border-radius: 24px 24px 24px 6px;
    object-position: center 34%;
  }

  .services-hero-note {
    margin-top: 28px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card-body {
    padding: 24px;
  }

}
