.sim-navigation {
  --navy: #0e3151;
  --gold: #b28a54;
  color: #17324b;
  font: 16px/1.65 'Segoe UI', Arial, sans-serif;
}
.sim-navigation *, .sim-navigation *::before, .sim-navigation *::after { box-sizing: border-box; }
.sim-navigation a { color: inherit; text-decoration: none; }
.sim-navigation img { display: block; }
.sim-navigation button { font: inherit; cursor: pointer; }
.sim-navigation :is(a, button):focus-visible { outline: 2px solid #edca94; outline-offset: 4px; }
#root.murilo-header-replaced header.header { display: none; }
.site-menu-header .header-book {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border: 1px solid;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.site-menu-header {
  position: relative;
  z-index: 5;
  background: var(--navy);
  color: #fffdf9;
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 13px 5%;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 42px);
}
.header-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.header-symbol,
.header-name-art {
  position: relative;
  display: block;
  overflow: hidden;
}
.header-symbol {
  width: clamp(33px, 3.1vw, 43px);
  aspect-ratio: 132 / 186;
}
.header-symbol img,
.header-name-art img {
  position: absolute;
  max-width: none;
  height: auto;
  filter: brightness(0) invert(1)
    drop-shadow(.45px 0 0 rgb(255 255 255 / 58%))
    drop-shadow(-.45px 0 0 rgb(255 255 255 / 58%));
}
.header-symbol img {
  /* Isola o símbolo que contorna a primeira letra na arte original. */
  width: calc(640 / 132 * 100%);
  clip-path: polygon(0 0, 21% 0, 21% 12.9%, 13% 12.9%, 13% 49.5%, 21% 49.5%, 21% 100%, 0 100%);
}
.header-wordmark {
  display: grid;
  margin-inline-start: -13px;
  width: clamp(190px, 18vw, 244px);
  gap: 5px;
  text-align: right;
}
.header-name-art {
  aspect-ratio: 557 / 66;
}
.header-name-art img {
  width: calc(640 / 557 * 100%);
  left: calc(-83 / 557 * 100%);
  top: calc(-24 / 66 * 100%);
}
.header-specialty {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .11em;
}
.site-menu-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.65vw, 26px);
}
.site-menu-header nav a {
  color: #fffdf9;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;
}
.site-menu-header nav a:hover { color: #edca94; text-decoration: underline; text-underline-offset: 6px; }
.site-menu-header .header-book {
  border-color: #edca94;
  background: #edca94;
  color: var(--navy);
  font-weight: 650;
  min-height: 44px;
  padding: 10px 17px;
  white-space: nowrap;
}
.site-menu-header .header-book:hover { background: #fff0d8; border-color: #fff0d8; }
.site-menu-header :is(a, button):focus-visible { outline-color: #edca94; }
.menu { display: none; }
@media (max-width: 1220px) {
  .header-inner { flex-wrap: wrap; column-gap: 18px; row-gap: 0; }
  .header-brand { margin-right: auto; }
  .menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #edca94;
    background: transparent;
    color: #fffdf9;
    font-size: 13px;
  }
  .menu-icon {
    width: 14px;
    height: 10px;
    border-block: 1px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  }
  .site-menu-header nav { display: none; }
  .site-menu-header nav.open {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin: 16px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid #ffffff50;
  }
  .site-menu-header .header-book { display: none; }
  .site-menu-header nav.open + .header-book { display: inline-flex; margin-top: 8px; }
}
@media (max-width: 480px) {
  .header-inner { padding: 15px 4%; column-gap: 10px; }
  .header-symbol { width: clamp(28px, 8.6vw, 36px); }
  .header-wordmark { width: clamp(151px, 48vw, 204px); gap: 4px; margin-inline-start: -8px; }
  .header-specialty { font-size: 9px; }
  .menu { padding-inline: 9px; gap: 5px; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  .site-menu-header {
    view-transition-name: murilo-menu;
  }

  ::view-transition-group(root) {
    animation-duration: 260ms;
  }

  ::view-transition-old(root) {
    animation: 180ms ease-out both murilo-page-exit;
  }

  ::view-transition-new(root) {
    animation: 260ms cubic-bezier(.2, .7, .25, 1) both murilo-page-enter;
  }

  ::view-transition-group(murilo-menu),
  ::view-transition-new(murilo-menu) {
    animation: none;
  }

  ::view-transition-old(murilo-menu) {
    animation: none;
    opacity: 0;
  }

  @keyframes murilo-page-exit {
    to { opacity: 0; }
  }

  @keyframes murilo-page-enter {
    from { opacity: 0; transform: translateY(8px); }
  }
}

.murilo-production .header-book { text-transform: none; }

@property --comparison-split {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 50%;
}

.comparison-section {
  scroll-margin-top: 18px;
  padding-top: 35px;
}
.comparison-section .section-head h2,
.comparison-section .section-head > p { margin-bottom: 0; }
.comparison-section .eyebrow { margin-bottom: 10px; }
.comparison-card {
  margin: 0;
  background: #fffdf9;
  border: 1px solid var(--line);
  padding: 8px 8px 0;
  box-shadow: 0 16px 40px #0e315110;
}
.comparison-frame {
  --comparison-split: 50%;
  isolation: isolate;
  position: relative;
  aspect-ratio: 2.2;
  overflow: hidden;
  background: var(--cream);
}
.comparison-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.comparison-frame.custom .comparison-photo {
  object-fit: contain;
  background: var(--navy);
}
.comparison-before {
  clip-path: inset(0 calc(100% - var(--comparison-split)) 0 0);
}
.comparison-tag {
  position: absolute;
  top: 14px;
  padding: 5px 11px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  pointer-events: none;
}
.comparison-tag-before { left: 14px; }
.comparison-tag-after { right: 14px; }
.near-start .comparison-tag-before,
.near-end .comparison-tag-after { opacity: 0; }
.comparison-divider {
  position: absolute;
  inset: 0 auto 0 clamp(2px, var(--comparison-split), calc(100% - 2px));
  z-index: 1;
  width: 2px;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 0 6px #0e31514a;
  pointer-events: none;
}
.comparison-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px #0e315142;
  background: #fffdf9;
  color: var(--navy);
}
.comparison-handle span {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.comparison-handle span:first-child { transform: rotate(135deg); }
.comparison-slider {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}
.comparison-slider::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.comparison-slider::-webkit-slider-thumb { appearance: none; width: 1px; height: 100%; background: transparent; }
.comparison-slider::-moz-range-track { height: 100%; background: transparent; }
.comparison-slider::-moz-range-thumb { width: 1px; height: 100%; border: 0; background: transparent; }
.comparison-frame:has(.comparison-slider:focus-visible) .comparison-handle {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.comparison-toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 10px 4px;
}
.comparison-views { display: flex; gap: 4px; }
.comparison-views button {
  padding: 6px 13px;
  min-height: 44px;
  background: var(--cream);
  border: 1px solid transparent;
  color: var(--navy);
  font-size: 13px;
}
.comparison-views button:hover { border-color: var(--gold); }
.comparison-views button[aria-pressed="true"] { background: var(--navy); color: white; }
.comparison-caption { margin: 0; color: var(--muted); font-size: 13px; }
.comparison-uploads { margin-top: 18px; }
.comparison-uploads .actions { margin-top: 14px; }
.comparison-reset {
  border: 0;
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .comparison-section { padding-top: 12px; }
  .comparison-section .section-head > p { margin-top: 12px; }
  .comparison-frame { aspect-ratio: 1.24; }
  .comparison-handle { width: 46px; height: 46px; }
  .comparison-tag { top: 8px; }
  .comparison-tag-before { left: 8px; }
  .comparison-tag-after { right: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .comparison-frame.is-animating { transition: --comparison-split 420ms cubic-bezier(.2,.7,.25,1); }
  .comparison-tag { transition: opacity 180ms ease; }
  .comparison-views button,
  .comparison-section .btn { transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
}

#murilo-consultorios-anterior[hidden],
#consultorios [hidden],
#antes-e-depois [hidden] { display: none !important; }
#consultorios.dark,
#antes-e-depois.comparison-section {
  --navy: #0e3151;
  --gold: #b78f58;
  --cream: #f8f4ed;
  --line: #e3dbce;
  --muted: #4d5f6e;
  width: 100%;
  font: 16px/1.65 'Segoe UI', Arial, sans-serif;
}
#consultorios.dark { background: var(--navy); color: #fffdf9; }
#consultorios .section.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  max-width: 1720px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 76px) 3.4%;
}
#consultorios .eyebrow, #antes-e-depois .eyebrow {
  color: var(--gold);
  font-size: 14px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 22px;
}
#consultorios h2, #antes-e-depois h2 {
  font: 400 clamp(34px, 4vw, 62px)/1.05 Georgia, serif;
  letter-spacing: -.045em;
  color: inherit;
  margin: 0 0 24px;
}
#consultorios .muted { color: #cfdae8; font-size: clamp(16px, 1.25vw, 20px); margin: 0 0 18px; }
#consultorios .locations { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 32px 0; }
#consultorios .locations button,
#consultorios .btn,
#antes-e-depois .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  color: inherit;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 1px solid #738a9e;
}
#consultorios .locations button[aria-pressed="true"] { border-color: #d5b685; background: #234765; }
#consultorios .btn { min-height: 60px; padding: 12px 28px; }
#consultorios .btn.gold { background: var(--gold); border-color: var(--gold); color: #102c45; }
#consultorios .mapa-unidade { color: #efdabc; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
#consultorios .note { font-size: 14px; }
#antes-e-depois.comparison-section {
  max-width: 1420px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 90px) 5%;
  color: var(--navy);
}
#antes-e-depois .section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px 38px; margin-bottom: 24px; }
#antes-e-depois .section-head > p { max-width: 33ch; }
#antes-e-depois .btn { border-color: var(--navy); }
#antes-e-depois .comparison-uploads summary { cursor: pointer; }
#antes-e-depois .comparison-uploads .actions { display: flex; flex-wrap: wrap; gap: 10px; }
#antes-e-depois .comparison-frame.custom .comparison-photo:not([data-foto-local]) { object-fit: cover; }
#consultorios :is(a,button):focus-visible,
#antes-e-depois :is(button,summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 760px) {
  #consultorios .section.split { grid-template-columns: 1fr; padding-inline: 6%; }
  #antes-e-depois .section-head { display: block; }
}
