/*
 * Páginas de mama, corpo e injetáveis — jornada de decisão mobile-first.
 * O escopo depende de data-marketing-refresh para não afetar as páginas faciais finalizadas.
 */
html[data-marketing-refresh="true"] {
  --pm-ink: #352c29;
  --pm-muted: #66534d;
  --pm-accent: #7b5b52;
  --pm-accent-dark: #5f433b;
  --pm-paper: #fffaf7;
  --pm-ivory: #f8f1ed;
  --pm-sand: #eee1da;
  --pm-line: rgba(82, 57, 50, .14);
  --pm-shadow: 0 18px 48px rgba(65, 43, 36, .08);
  color: var(--pm-ink);
  scroll-behavior: smooth;
}

html[data-marketing-refresh="true"] body {
  color: var(--pm-ink);
  background: var(--pm-ivory);
}

html[data-marketing-refresh="true"] :is(h1, h2, h3) {
  color: var(--pm-ink);
  text-wrap: balance;
}

html[data-marketing-refresh="true"] :is(p, li, blockquote) {
  color: var(--pm-muted);
}

html[data-marketing-refresh="true"] :is(#resultados, #indicacoes, #procedimento, #procedimentos, #consulta, #recuperacao, #seguranca, #faq, #contato) {
  scroll-margin-top: 86px;
}

html[data-marketing-refresh="true"] body > header {
  border-bottom: 1px solid var(--pm-line);
  background: rgba(255, 250, 247, .94);
  box-shadow: 0 8px 28px rgba(60, 40, 34, .055);
  backdrop-filter: blur(16px);
}

html[data-marketing-refresh="true"] body > header .nav {
  min-height: 70px;
}

html[data-marketing-refresh="true"] .hero {
  min-height: 0;
  background: linear-gradient(135deg, #f9f2ee 0%, #f2e6e0 100%);
}

html[data-marketing-refresh="true"] .hero-copy {
  align-items: center;
}

html[data-marketing-refresh="true"] .hero-inner {
  max-width: 700px;
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(48px, 7vw, 92px);
}

html[data-marketing-refresh="true"] .hero h1 {
  max-width: 16ch;
  margin: 10px 0 18px;
  font-size: clamp(45px, 5.3vw, 72px);
  line-height: .98;
  letter-spacing: -.025em;
}

html[data-marketing-refresh="true"] .hero .lead {
  max-width: 62ch;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.58;
}

html[data-marketing-refresh="true"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

html[data-marketing-refresh="true"] .hero-actions .btn {
  min-height: 50px;
  border-radius: 999px;
}

html[data-marketing-refresh="true"] .hero-note {
  max-width: 58ch;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--pm-line);
  color: #6e5a53;
  font-size: 13px;
  line-height: 1.5;
}

html[data-marketing-refresh="true"] .hero-media {
  min-height: 560px;
  background: #e9d9d1;
}

html[data-marketing-refresh="true"] .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

html[data-marketing-refresh="true"] main > .trust {
  border-top: 1px solid var(--pm-line);
  border-bottom: 1px solid var(--pm-line);
  background: var(--pm-paper);
}

html[data-marketing-refresh="true"] main > .trust .trust-grid {
  gap: 0;
}

html[data-marketing-refresh="true"] main > .trust .trust-item {
  min-height: 92px;
  padding: 20px;
  border-right: 1px solid var(--pm-line);
}

html[data-marketing-refresh="true"] main > .trust .trust-item:last-child {
  border-right: 0;
}

html[data-marketing-refresh="true"] main > section:not(.hero) {
  padding-top: clamp(54px, 6vw, 82px);
  padding-bottom: clamp(54px, 6vw, 82px);
}

html[data-marketing-refresh="true"] main > section:nth-of-type(even):not(.hero):not(.cta) {
  background: rgba(255, 250, 247, .72);
}

html[data-marketing-refresh="true"] .section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

html[data-marketing-refresh="true"] .section-head h2 {
  max-width: 19ch;
  margin: 9px 0 13px;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -.018em;
}

html[data-marketing-refresh="true"] .section-head p {
  max-width: 66ch;
  font-size: 16px;
  line-height: 1.62;
}

html[data-marketing-refresh="true"] :is(.patient-language-grid, .panel-grid, .comparison-grid, .procedure-grid, .steps, .outcome-grid, .contact-flow-grid) {
  gap: 14px;
}

html[data-marketing-refresh="true"] :is(.patient-language-card, .panel, .comparison-card, .step, .contact-step, .procedure-detail > div) {
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--pm-line);
  border-radius: 16px;
  background: var(--pm-paper);
  box-shadow: 0 8px 24px rgba(65, 43, 36, .045);
}

html[data-marketing-refresh="true"] :is(.patient-language-card, .panel, .comparison-card, .step, .contact-step) h3 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.1;
}

html[data-marketing-refresh="true"] :is(.patient-language-card, .panel, .comparison-card, .step, .contact-step) p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
}

html[data-marketing-refresh="true"] .fit-check-inner {
  border: 1px solid var(--pm-line);
  border-radius: 22px;
  background: var(--pm-paper);
  box-shadow: var(--pm-shadow);
}

html[data-marketing-refresh="true"] .procedure-detail {
  border-radius: 20px;
  overflow: hidden;
}

html[data-marketing-refresh="true"] .internal-trust-card,
html[data-marketing-refresh="true"] .safety-note,
html[data-marketing-refresh="true"] .location-card {
  border-radius: 20px;
  box-shadow: var(--pm-shadow);
}

html[data-marketing-refresh="true"] .procedure-video-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

html[data-marketing-refresh="true"] .procedure-video-card {
  overflow: hidden;
  border: 1px solid var(--pm-line);
  border-radius: 20px;
  background: #2e2421;
  box-shadow: var(--pm-shadow);
}

html[data-marketing-refresh="true"] .procedure-video-card video {
  display: block;
  width: 100%;
  max-height: 620px;
  aspect-ratio: 9 / 16;
  margin: auto;
  object-fit: contain;
  background: #2e2421;
}

/* Resultados: nunca recortar fotografias clínicas neste grupo de páginas. */
html[data-marketing-refresh="true"] #resultados {
  background: #efe3dd;
}

html[data-marketing-refresh="true"] #resultados .section-head {
  margin-bottom: 24px;
}

html[data-marketing-refresh="true"] #resultados .result-grid,
html[data-marketing-refresh="true"] #resultados .result-grid.mobile-carousel {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
}

html[data-marketing-refresh="true"] #resultados .result-grid:not(:has(.result-card:nth-child(3))) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-inline: auto !important;
}

html[data-marketing-refresh="true"] #resultados .result-card {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden;
  border: 1px solid var(--pm-line);
  border-radius: 18px;
  background: var(--pm-paper);
  box-shadow: 0 12px 30px rgba(65, 43, 36, .065);
}

html[data-marketing-refresh="true"] #resultados .result-card > img,
html[data-marketing-refresh="true"] #resultados .result-card picture img,
html[data-marketing-refresh="true"] #resultados .result-card .result-img-body,
html[data-marketing-refresh="true"] #resultados .result-pair-desktop img,
html[data-marketing-refresh="true"] #resultados .result-pair-mobile img {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--auxiliary-image-ratio, auto) !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  background: #eaded8;
}

html[data-marketing-refresh="true"] #resultados .result-img-body-frame {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  background: #eaded8;
}

html[data-marketing-refresh="true"] #resultados .result-card > div:last-child {
  padding: 18px;
}

html[data-marketing-refresh="true"] #resultados .result-card h3 {
  margin: 0 0 7px;
  font-size: 24px;
  line-height: 1.08;
}

html[data-marketing-refresh="true"] #resultados .result-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

html[data-marketing-refresh="true"] #resultados .mobile-scroll-hint {
  display: none !important;
}

html[data-marketing-refresh="true"] .faq-grid {
  max-width: 880px;
  gap: 10px;
}

html[data-marketing-refresh="true"] .faq-item {
  overflow: hidden;
  border: 1px solid var(--pm-line);
  border-radius: 14px;
  background: var(--pm-paper);
}

html[data-marketing-refresh="true"] .faq-item summary {
  min-height: 58px;
  padding: 17px 18px;
}

html[data-marketing-refresh="true"] .faq-answer {
  padding: 0 18px 18px;
}

html[data-marketing-refresh="true"] .cta {
  background: var(--pm-accent-dark);
}

html[data-marketing-refresh="true"] .cta :is(h2, p, .eyebrow) {
  color: #fffaf7;
}

html[data-marketing-refresh="true"] .cta .btn {
  border-radius: 999px;
  background: #fffaf7;
  color: var(--pm-accent-dark);
}

html[data-marketing-refresh="true"] footer {
  background: #4d3832;
}

html[data-marketing-refresh="true"] footer :is(a, span, strong, p, button) {
  color: rgba(255, 250, 247, .9);
}

@media (max-width: 900px) {
  html[data-marketing-refresh="true"] body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  html[data-marketing-refresh="true"] .breadcrumb {
    display: none;
  }

  html[data-marketing-refresh="true"] body > header .nav {
    min-height: 64px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  html[data-marketing-refresh="true"] .hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  html[data-marketing-refresh="true"] .hero-copy {
    order: 1;
    padding: 0 10px;
  }

  html[data-marketing-refresh="true"] .hero-inner {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  html[data-marketing-refresh="true"] .hero h1 {
    max-width: 18ch;
    margin: 8px 0 13px;
    font-size: clamp(34px, 9.4vw, 43px) !important;
    line-height: 1.01;
  }

  html[data-marketing-refresh="true"] .hero .lead {
    font-size: 15px !important;
    line-height: 1.56 !important;
  }

  html[data-marketing-refresh="true"] .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  html[data-marketing-refresh="true"] .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  html[data-marketing-refresh="true"] .hero-note {
    margin-top: 14px;
    padding-top: 11px;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }

  html[data-marketing-refresh="true"] .hero-media {
    order: 2;
    min-height: 0;
    padding: 0 10px 24px;
    background: transparent;
  }

  html[data-marketing-refresh="true"] .hero-media img,
  html[data-marketing-refresh="true"] .hero-media img.auxiliary-professional-hero {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 390px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 16px;
    object-fit: cover !important;
    object-position: 50% 32% !important;
  }

  html[data-marketing-refresh="true"] main > .trust .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-marketing-refresh="true"] main > .trust .trust-item {
    min-height: 74px;
    padding: 13px 12px;
    border-right: 1px solid var(--pm-line);
    border-bottom: 1px solid var(--pm-line);
  }

  html[data-marketing-refresh="true"] main > .trust .trust-item:nth-child(2n) {
    border-right: 0;
  }

  html[data-marketing-refresh="true"] main > .trust .trust-item strong {
    font-size: 12px;
  }

  html[data-marketing-refresh="true"] main > .trust .trust-item span {
    font-size: 10.5px;
    line-height: 1.35;
  }

  html[data-marketing-refresh="true"] main > section:not(.hero) {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  html[data-marketing-refresh="true"] .container {
    width: min(100% - 20px, 1120px);
  }

  html[data-marketing-refresh="true"] .section-head {
    margin-bottom: 20px;
  }

  html[data-marketing-refresh="true"] .section-head h2 {
    max-width: 20ch;
    font-size: clamp(29px, 8vw, 36px) !important;
    line-height: 1.04;
  }

  html[data-marketing-refresh="true"] .section-head p {
    font-size: 14.5px !important;
    line-height: 1.58 !important;
  }

  html[data-marketing-refresh="true"] :is(.patient-language-grid, .panel-grid, .comparison-grid, .procedure-grid, .steps, .outcome-grid, .contact-flow-grid),
  html[data-marketing-refresh="true"] :is(.patient-language-grid, .panel-grid, .comparison-grid, .steps).mobile-carousel {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html[data-marketing-refresh="true"] .procedure-video-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  html[data-marketing-refresh="true"] .procedure-video-card {
    max-width: 420px;
    margin-inline: auto;
    border-radius: 15px;
  }

  html[data-marketing-refresh="true"] :is(.patient-language-card, .panel, .comparison-card, .step, .contact-step, .procedure-detail > div) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 17px !important;
  }

  html[data-marketing-refresh="true"] #resultados .result-grid,
  html[data-marketing-refresh="true"] #resultados .result-grid.mobile-carousel {
    grid-template-columns: 1fr !important;
    gap: 13px !important;
    max-width: none;
    margin-inline: 0 !important;
  }

  html[data-marketing-refresh="true"] #resultados .result-card {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 15px;
  }

  html[data-marketing-refresh="true"] #resultados .result-card > div:last-child {
    padding: 16px;
  }

  html[data-marketing-refresh="true"] .mobile-disclosure-toggle {
    display: none !important;
  }

  html[data-marketing-refresh="true"] .whatsapp-float {
    right: auto;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 50%;
    width: min(286px, calc(100% - 20px));
    min-height: 48px;
    border-radius: 999px;
    translate: -50% 0;
  }

  html[data-marketing-refresh="true"] .footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
}

@media (max-width: 430px) {
  html[data-marketing-refresh="true"] .container {
    width: min(100% - 16px, 1120px);
  }

  html[data-marketing-refresh="true"] main > section:not(.hero) {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-marketing-refresh="true"] { scroll-behavior: auto; }
}

@media (max-width: 760px) {
  html[data-marketing-refresh="true"] #resultados .result-grid.auxiliary-results-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 8vw 8px 0 !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  html[data-marketing-refresh="true"] #resultados .result-grid.auxiliary-results-carousel::-webkit-scrollbar {
    display: none;
  }

  html[data-marketing-refresh="true"] #resultados .result-grid.auxiliary-results-carousel > .result-card {
    flex: 0 0 86vw !important;
    width: 86vw !important;
    max-width: 380px !important;
    scroll-snap-align: start;
  }
}
