/* Studio Vitória · keys mounted in a fixed base.
   A highlight from the upper left follows the same bevel on each material. */
:root {
  --cap-release: 155ms cubic-bezier(.22, 1, .36, 1);
  --cap-tap-target: 44px;
  --cap-light: #fffaf0;
  --cap-mid: #f2e9d7;
  --cap-low: #dfd1ba;
  --cap-edge: #a9916b;
  --cap-foot: #8a7555;
  --cap-ink: #28291f;
  --cap-glint: #fffcf4eb;
  --cap-shade: #715b3b50;
  --cap-travel: 1.5px;
  --cap-bevel: 1px;
  --cap-down: 0px;
  --cap-contact: 0 1px 1px #10120f55;
}

/* Only the painted face and the legend travel. The interactive rectangle stays put. */
html :is(#vt-ver-combos, #see-times, #closing-continue, #explore-body, #explore-machine,
         .hero-invitation .action, .site-header .menu-toggle, .map-quote-times,
         .pricing-mode button, .map-sides button, [data-relief], .pb-actions .pb-button) {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--cap-foot);
  border-radius: 4px;
  color: var(--cap-ink);
  background: var(--cap-foot);
  box-shadow: var(--cap-contact);
  cursor: pointer;
  filter: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: none;
  transition: box-shadow var(--cap-release);

  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: -1px -1px calc(var(--cap-travel) - 1px);
    margin: 0;
    width: auto;
    height: auto;
    opacity: 1;
    border: var(--cap-bevel) solid transparent;
    border-radius: inherit;
    background:
      linear-gradient(165deg, var(--cap-light), var(--cap-mid) 44%, var(--cap-low)) padding-box,
      linear-gradient(145deg, var(--cap-glint), var(--cap-edge) 42%, var(--cap-foot) 84%) border-box;
    box-shadow: inset 1px 1px 0 var(--cap-glint), inset -1px -1px 0 var(--cap-shade);
    transform: translateY(var(--cap-down));
    transition: transform var(--cap-release);
  }

  & > :where(span, strong, svg) {
    translate: 0 calc(var(--cap-down) - 1px);
    transition: translate var(--cap-release);
  }

  &.vt-cap-down, &:active:where(html:not(.vt-cap-input) *) {
    --cap-down: calc(var(--cap-travel) - .5px);
    box-shadow: 0 1px 2px #10120f56;
    transition-duration: 0s;
  }

  &.vt-cap-down::before, &.vt-cap-down > :where(span, strong, svg),
  &:active:where(html:not(.vt-cap-input) *)::before,
  &:active:where(html:not(.vt-cap-input) *) > :where(span, strong, svg) {
    transition-duration: 0s;
  }

  &:focus-visible {
    outline: 2px solid #f2cc87;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #34382f, var(--cap-contact);
  }

  &:disabled {
    --cap-travel: 1px;
    opacity: .55;
    cursor: default;
    box-shadow: none;
  }
}

/* Ink keys sit against the map and the header, with a thin cut bronze rim. */
html :is(.site-header .menu-toggle, #see-times, #explore-body, #explore-machine,
         .map-sides button, [data-relief="combo"], .pb-actions .pb-primary,
         .pricing-mode button[aria-pressed=true]) {
  --cap-light: #3a453a;
  --cap-mid: #2e362d;
  --cap-low: #232a23;
  --cap-ink: #fff5e3;
  --cap-edge: #8c805f;
  --cap-foot: #111a14;
  --cap-glint: #e3d2a14f;
  --cap-shade: #101a1170;
}
html .site-header .menu-toggle {
  padding: 0 12px;
  min-width: 88px;
  min-height: var(--cap-tap-target);
  --cap-travel: 1px;
  --cap-edge: #746e58;
}
html .site-header .menu-toggle:is(:active,.rv-touched) .menu-lines { transform: none; }

html :is(.map-sides button, .pricing-mode button, [data-relief="single"], .pb-actions .pb-secondary) {
  --cap-travel: 1px;
  --cap-bevel: 1px;
  --cap-contact: 0 1px 1px #13160f54;
}
html #regioes [data-relief="combo"][aria-pressed=true],
html #regioes [data-relief="combo"][aria-checked=true],
html[data-capa] .hero #vt-ver-combos {
  --cap-light: #f1dab1;
  --cap-mid: #ddc298;
  --cap-low: #c9a77a;
  --cap-ink: #28251c;
  --cap-edge: #b59a72;
  --cap-foot: #826744;
  --cap-glint: #fff4dce8;
  --cap-shade: #72503266;
}
html #regioes .map-sides button[aria-pressed=true] {
  --cap-light: #f4eedf;
  --cap-mid: #e9e1d0;
  --cap-low: #d9d0bf;
  --cap-ink: #292b22;
  --cap-foot: #686859;
}
html :is(#vt-ver-combos, [data-atlas-combo]) {
  --cap-travel: 4px;
  --cap-bevel: 2px;
  --cap-contact: 0 2px 2px #10120f70, 0 4px 5px -3px #0c100d75;
}
html[data-capa] .hero #vt-ver-combos.vt-oferta {
  --cap-travel: 5px;
  --cap-light: #f6e4c6;
  --cap-mid: #e8cfaa;
  --cap-low: #d6b68d;
  color: #29251c;
  background: var(--cap-foot);
}
html[data-capa] .hero #vt-ver-combos.vt-oferta > :is(#vt-oferta-nome, .vt-oferta-preco, .vt-oferta-acao) {
  color: inherit;
}
html[data-capa] .hero #vt-ver-combos.vt-oferta::before {
  content: "";
  display: block;
}
html[data-capa] .hero #vt-ver-combos::after { content: none; }

/* The index remains readable as rows. Its controls get the shallowest relief. */
html #regioes .region-group > summary {
  box-shadow: inset 0 1px 0 #fff7e1a1, inset 0 -2px 0 #7d6b4c54, 0 1px 1px #35362226;
}
html #regioes .region-group > summary.vt-cap-down {
  box-shadow: inset 0 2px 3px #3029184f;
}
html #regioes .region-choice .choice-mark,
html #regioes .body-point::before,
html .mb-hotspot .mb-mark {
  border-color: #978664;
  color: #283027;
  background: linear-gradient(152deg, #fffbed, #e4d8c0);
  box-shadow: inset 0 1px 0 #fff9ed, 0 1px 0 #766747, 0 1px 1px #161e193b;
  transition: translate var(--cap-release), box-shadow var(--cap-release);
}
html #regioes .region-choice[aria-pressed=true] .choice-mark,
html #regioes .body-point[aria-pressed=true]::before,
html .mb-hotspot[aria-pressed=true] .mb-mark {
  color: #fff7e7;
  border-color: #e2cfab;
  background: linear-gradient(145deg,#475743,#28392d);
  box-shadow: inset 0 1px 0 #c4cfaf5c, 0 1px 0 #152119, 0 1px 1px #0c140f54;
}
html #regioes .region-choice:is(:active,.rv-touched) .choice-mark { transform: none; }
html #regioes .region-choice.vt-cap-down .choice-mark,
html #regioes .body-point.vt-cap-down::before,
html .mb-hotspot.vt-cap-down .mb-mark {
  translate: 0 1.5px;
  box-shadow: inset 0 1px 2px #262b1b36, 0 1px 1px #0f170e4f;
  transition-duration: 0s;
}
html #regioes .body-point:active::before { width: 23px; height: 23px; }
html #regioes .body-point.vt-cap-down > :is(svg,span:not(.body-point-name)) { translate: 0 1.5px; }

/* Portfolio-style menu rows remain full width in the navigation sheet. */
@media (max-width:760px) {
  html .site-header #main-nav > :is(a, button) {
    box-shadow: inset 0 1px 0 #e8e0bf19, inset 0 -1px 0 #0c130f;
  }
  html .site-header #main-nav > .vt-cap-down {
    background: #384438;
    box-shadow: inset 2px 0 #c7ad81, inset 0 2px 3px #1018119e;
  }
}
@media (prefers-reduced-motion:reduce) {
  html :is(#vt-ver-combos, #see-times, #closing-continue, #explore-body, #explore-machine,
      .hero-invitation .action, .site-header .menu-toggle, .map-quote-times, .pricing-mode button,
      .map-sides button, [data-relief], .pb-actions .pb-button) {
    &, &::before, &::after, & > * { transition: none !important; animation: none !important; }
  }
  html #regioes .body-point::before,
  html #regioes .choice-mark,
  html .mb-hotspot .mb-mark { transition: none; }
}
