/* VidaPlena V2.0 · hero.css — Hero: texto de abertura, figura interativa (módulos figure.js/interaction.js), arco, abas das especialidades e painel. */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font: 600 .78rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentcolor;
}
.hero__title em {
  font-style: italic;
  color: var(--champagne-hi);
}
.figure__frame,
.figure__grade,
.figure > .figure__lqip,
.figure__grade > picture,
.figure__base,
.figure__layer,
.figure__dim {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
}
.figure__base, .figure__layer {
  object-fit: cover;
}
.figure__lqip {
  filter: blur(18px);
  transform: scale(1.06);
  transition: opacity .9s var(--ease);
}
.js .figure__base {
  transition: opacity .9s var(--ease);
}
.js .figure.is-ready .figure__base {
  opacity: 1;
}
.figure.is-ready .figure__lqip {
  opacity: 0;
}
.figure__layer {
  opacity: 0;
  transition: opacity var(--swap) var(--ease);
  pointer-events: none;
}
.stage[data-active="cardio"] .figure__layer[data-layer="cardio"],
.stage[data-active="neuro"] .figure__layer[data-layer="neuro"],
.stage[data-active="gastro"] .figure__layer[data-layer="gastro"] {
  opacity: 1;
}
.figure__frame {
  transform-origin: 0px 0px;
  transition: transform var(--camera) var(--camera-ease);
}
.figure[data-transition="b"].is-ready .figure__frame {
  transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--s, 1));
  will-change: transform;
}
.stage[data-active="cardio"] .figure__frame {
  --s: 1.05;
  --tx: -2.5375%;
  --ty: -2.975%;
}
.stage[data-active="neuro"] .figure__frame {
  --s: 1.05;
  --tx: -4.9%;
  --ty: 1.45%;
}
.stage[data-active="gastro"] .figure__frame {
  --s: 1.04;
  --tx: -1.824%;
  --ty: -2.612%;
}
.figure__dim {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--swap) var(--ease);
}
.figure__dim[data-dim="cardio"] {
  background: radial-gradient(21% 14% at 50.75% 49.5%, rgba(12, 12, 9, 0) 0%, rgba(12, 12, 9, 0) 50%, rgba(12, 12, 9, 0.44) 100%);
}
.figure__dim[data-dim="neuro"] {
  background: radial-gradient(22% 13% at 64% 11%, rgba(12, 12, 9, 0) 0%, rgba(12, 12, 9, 0) 50%, rgba(12, 12, 9, 0.44) 100%);
}
.figure__dim[data-dim="gastro"] {
  background: radial-gradient(30% 21% at 45.6% 70.3%, rgba(12, 12, 9, 0) 0%, rgba(12, 12, 9, 0) 50%, rgba(12, 12, 9, 0.44) 100%);
}
.stage[data-active="cardio"] .figure.is-ready .figure__dim[data-dim="cardio"],
.stage[data-active="neuro"] .figure.is-ready .figure__dim[data-dim="neuro"],
.stage[data-active="gastro"] .figure.is-ready .figure__dim[data-dim="gastro"] {
  opacity: 1;
}
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 0px;
  padding: 0px;
  background: none;
  border-radius: 50%;
  cursor: pointer;
}
.explorer > * {
  pointer-events: auto;
}
.arc {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.arc__line {
  fill: none;
  stroke: url("#arc-fade");
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.nodes {
  position: absolute;
  inset: 0px;
  pointer-events: none;
}
.node {
  pointer-events: auto;
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-28px, -28px);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0px 0.5rem 0px 0px;
  border: 0px;
  background: none;
  color: var(--on-dark-2);
  font: 500 1.05rem/1.2 var(--sans);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
}
.node__dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--on-dark-line-2);
  background: rgba(22, 24, 20, 0.66);
  backdrop-filter: blur(6px);
  transition: border-color var(--swap) var(--ease), background-color var(--swap) var(--ease), box-shadow var(--swap) var(--ease);
}
.node__dot svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color var(--swap) var(--ease);
}
.node__label {
  transition: color var(--swap) var(--ease);
}
.node:hover {
  color: var(--on-dark);
}
.node:hover .node__dot {
  border-color: rgba(247, 189, 120, 0.6);
}
.node[aria-selected="true"] {
  color: var(--on-dark);
}
.node[aria-selected="true"] .node__label {
  font-weight: 600;
}
.node[aria-selected="true"] .node__dot {
  color: var(--champagne-hi);
  border-color: rgba(247, 189, 120, 0.85);
  background: rgba(60, 40, 22, 0.55);
  box-shadow: rgba(233, 163, 90, 0.08) 0px 0px 0px 4px, rgba(240, 170, 100, 0.22) 0px 0px 18px;
}
.node:focus-visible {
  outline: none;
}
.node:focus-visible .node__dot {
  outline: 2px solid var(--champagne-hi);
  outline-offset: 4px;
}
.readout {
  position: absolute;
  left: 66.5%;
  top: 56%;
  right: calc(12px - var(--gutter) - clamp(0px, calc((100vw - 1100px) * .3), 110px));
}
.panels {
  display: grid;
}
.panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity calc(var(--swap) / 2) var(--ease), visibility 0s linear calc(var(--swap) / 2);
}
.panel.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity calc(var(--swap) / 2) var(--ease) calc(var(--swap) / 2), visibility 0s;
}
.panel:focus-visible {
  outline-offset: 6px;
}
.panel__kicker {
  font: 600 .74rem/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.panel__title {
  margin-top: 0.35rem;
  font: 500 clamp(1.7rem, 2.2vw, 2.1rem)/1.05 var(--serif);
}
.panel__text {
  margin-top: 0.55rem;
  color: var(--on-dark-2);
  font-size: 0.98rem;
  line-height: 1.55;
}
.panel__link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.explorer__disclaimer {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--on-dark-3);
}
.rotation-toggle {
  position: absolute;
  left: 54.2%;
  top: 12.6%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0px;
  border: 1px solid var(--on-dark-line-2);
  border-radius: 50%;
  background: rgba(24, 22, 17, 0.72);
  color: var(--on-dark-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.rotation-toggle__label {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  background: rgba(24, 22, 17, 0.88);
  color: var(--on-dark);
  font: 500 .8rem/1 var(--sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.rotation-toggle:hover .rotation-toggle__label,
.rotation-toggle:focus-visible .rotation-toggle__label {
  opacity: 1;
}
.rotation-toggle:focus-visible {
  outline-offset: 3px;
  border-radius: 50%;
}
.rotation-toggle:hover {
  color: var(--on-dark);
  border-color: var(--on-dark-line-2);
}
.rotation-toggle__icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rotation-toggle__icon .i-play {
  display: none;
  fill: currentcolor;
  stroke: none;
}
.rotation-toggle[data-state="paused"] .i-pause {
  display: none;
}
.rotation-toggle[data-state="paused"] .i-play {
  display: block;
}
html:not(.js) .nodes,
html:not(.js) .rotation-toggle,
html:not(.js) .hotspot,
html:not(.js) .figure__lqip,
html:not(.js) .arc {
  display: none;
}
html:not(.js) .panel {
  opacity: 1;
  visibility: visible;
  grid-area: auto;
}
html:not(.js) .panels {
  gap: 1.2rem;
}

@media (min-width: 1100px) and (max-height: 820px) {
  .panel__text {
    font-size: 0.92rem;
    line-height: 1.45;
  }
  .panel__title {
    font-size: 1.6rem;
  }
  .explorer__disclaimer {
    display: none;
  }
  .node__dot {
    width: 48px;
    height: 48px;
  }
  .node {
    transform: translate(-24px, -24px);
    font-size: 0.98rem;
  }
}

@media (max-width: 1099px) {
  .room__slats {
    display: none;
  }
  .arc {
    display: none;
  }
  .nodes {
    position: static;
    display: grid;
    gap: 6px;
  }
  .node {
    position: static;
    transform: none;
  }
  .readout {
    position: static;
    margin-top: 1.4rem;
    max-width: none;
  }
  .rotation-toggle {
    position: static;
    transform: none;
    display: inline-flex;
    gap: 0.55rem;
    width: auto;
    height: 40px;
    padding: 0px 0.9rem 0px 0.75rem;
    border-radius: 999px;
    margin-top: 1rem;
  }
  .rotation-toggle__label {
    position: static;
    transform: none;
    opacity: 1;
    padding: 0px;
    background: none;
    color: var(--on-dark-2);
  }
}

@media (max-width: 760px) {
  .nodes {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: -56px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--on-dark-line);
  }
  .node {
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.3rem 0.15rem 0.7rem;
    text-align: center;
    justify-content: flex-start;
    white-space: normal;
    font-size: 0.8rem;
    border-bottom: 2px solid transparent;
    border-radius: 10px 10px 0px 0px;
    margin-bottom: -1px;
  }
  .node[aria-selected="true"] {
    border-bottom-color: var(--champagne);
  }
  .node__dot {
    width: 46px;
    height: 46px;
  }
  .readout {
    margin-top: 1rem;
  }
  .panel__title {
    font-size: 1.65rem;
  }
  .panel__text {
    font-size: 0.95rem;
  }
  .rotation-toggle {
    position: absolute;
    top: 2px;
    left: auto;
    right: var(--gutter);
    margin: 0px;
    width: 40px;
    height: 40px;
    padding: 0px;
    justify-content: center;
    border-radius: 50%;
  }
  .rotation-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0px, 0px, 0px, 0px);
    white-space: nowrap;
  }
  .stage[data-active="cardio"] .figure__frame {
    --s: 1.03;
    --tx: -1.52%;
    --ty: -1.735%;
  }
  .stage[data-active="neuro"] .figure__frame {
    --s: 1.025;
    --tx: -2.45%;
    --ty: .725%;
  }
  .stage[data-active="gastro"] .figure__frame {
    --s: 1.025;
    --tx: -1.14%;
    --ty: -2.2575%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .figure[data-transition="b"].is-ready .figure__frame {
    transform: none;
  }
}
main > section:not(.hero) {
  scroll-margin-top: 90px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(at 55% 44%, #2b4e55 0%, #123540 42%, #09242e 83%);
  min-height: 650px;
}
.hero__room {
  position: absolute;
  inset: 0px;
  z-index: -4;
  background: linear-gradient(90deg, #0c2c36, #153d47);
}
.hero__shade {
  position: absolute;
  inset: 0px;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 28, 37, 0.94), rgba(6, 28, 37, 0.66) 25%, rgba(6, 28, 37, 0.05) 54%, rgba(6, 28, 37, 0.25) 100%);
}
.hero__ambient {
  position: absolute;
  inset: -12%;
  z-index: -3;
  mix-blend-mode: screen;
  background: url("../assets/figure-rest.webp") 74% 34% / auto 120% no-repeat;
  filter: blur(24px) saturate(0.5) brightness(0.55);
  opacity: 0.3;
}
.hero__lead {
  color: var(--on-dark-2);
  font-size: 1rem;
  line-height: 1.55;
  margin-top: 17px;
  max-width: 31ch;
}
.stage {
  position: absolute;
  z-index: 1;
  aspect-ratio: 1 / 1;
  scroll-margin-top: 0px;
  filter: saturate(0.88);
}

@media (max-width: 1099px) {
  .stage {
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;
    aspect-ratio: auto;
    width: 100%;
    max-width: 920px;
    margin: 8px auto 0px;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
    align-items: center;
    gap: 8px 28px;
  }
}

@media (max-width: 760px) {
  .stage {
    display: block;
    margin-top: 4px;
    max-width: none;
  }
}
.figure__base {
  filter: saturate(0.93);
}
.panel__kicker, .eyebrow {
  color: #efbf80;
}
.panel__link {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
  min-height: 32px;
  align-items: center;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  color: #e9b976;
}

@media (max-width: 750px) {
  .hero__lead {
    max-width: 36ch;
  }
  .hero__note {
    display: none;
  }
}

@media (min-width: 1100px) {
  .hero__lead {
    max-width: 37ch;
  }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
  gap: 14px;
  position: relative;
  z-index: 5;
}

@media (max-width: 1099px) {
  .hero__copy {
    max-width: 40rem;
    padding: calc(var(--header-height-legacy) + 28px) var(--gutter) 0;
    width: 46%;
  }
}
.hero__copy {
  position: relative;
  padding-top: clamp(128px, 12vw, 160px);
  padding-bottom: 125px;
  padding-left: max(30px, -685px + 50vw);
  z-index: 5;
}

@media (max-width: 1099px) {
  .hero {
    padding-bottom: calc(var(--curve-h) + 8px);
    max-height: none;
  }
}

@media (max-width: 750px) {
  .hero__copy {
    max-width: 520px;
    padding: 120px 24px 0px;
    width: auto;
  }
  .hero {
    min-height: 820px;
    overflow: hidden;
  }
}
.hero__title {
  font: 500 clamp(3rem, 5.4vw, 5.6rem)/1 var(--serif);
  margin-top: 20px;
  max-width: 600px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: initial;
}
.hero__title .hero-title-line {
  display: block;
  white-space: normal;
}
.hero__title .hero-title-inline {
  display: inline;
  white-space: normal;
}
.hero__title .hero-title-emphasis {
  margin-left: 0.22em;
}

@media (min-width: 751px) and (max-width: 1099px) {
  .hero__title {
    font-size: clamp(2.8rem, 4.7vw, 4.1rem);
  }
}

@media (max-width: 750px) {
  .hero__title {
    font-size: clamp(2.8rem, 9vw, 4.3rem);
  }
  .hero__title .hero-title-emphasis {
    margin-left: 0.18em;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: clamp(2.45rem, 10vw, 3rem);
  }
}

@media (min-width: 1100px) {
  .readout {
    left: 66%;
    right: auto;
    width: clamp(220px, 33%, 300px);
    max-width: none;
  }
}
.stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -14%;
  top: 2%;
  width: 92%;
  height: 84%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 178, 108, 0.3), rgba(242, 178, 108, 0.1) 55%, rgba(242, 178, 108, 0) 100%);
  filter: blur(18px);
}
.figure {
  position: absolute;
  left: 0px;
  top: 0px;
  margin: 0px;
  height: 100%;
  aspect-ratio: 2 / 3;
  mask-image: linear-gradient(90deg, transparent 0%, #000000 30%, #000000 80%, transparent 100%), linear-gradient(transparent 0%, #000000 7%, #000000 86%, transparent 97%);
  mask-composite: intersect;
  overflow: hidden;
  z-index: 1;
}

@media (max-width: 1099px) {
  .figure {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

@media (max-width: 760px) {
  .figure {
    width: min(72vw, 320px);
    margin: 0px auto;
  }
}
.explorer {
  position: absolute;
  inset: 0px;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 1099px) {
  .explorer {
    position: static;
  }
}
.figure__grade {
  filter: saturate(1.02) brightness(1.1) contrast(1.06);
}
.room__slats {
  position: absolute;
  right: 0px;
  top: 4%;
  height: 58%;
  width: min(16vw, 250px);
  background: repeating-linear-gradient(90deg, rgba(236, 172, 104, 0) 0px, rgba(236, 172, 104, 0) 13px, rgba(236, 172, 104, 0.16) 13px, rgba(236, 172, 104, 0.16) 15px, rgba(236, 172, 104, 0) 15px, rgba(236, 172, 104, 0) 26px), radial-gradient(80% 60% at 70% 35%, rgba(233, 163, 90, 0.1), rgba(233, 163, 90, 0) 75%);
  mask-image: linear-gradient(transparent 0%, #000000 22%, #000000 55%, transparent 100%), linear-gradient(90deg, transparent 0%, #000000 45%);
  mask-composite: intersect;
  opacity: 0.45;
}
.hero__trust {
  list-style: none;
  margin: 26px 0px 0px;
  padding: 0px;
  display: grid;
  gap: 10px;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dfe8e8;
  font-size: 0.95rem;
}
.hero__trust svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(233, 183, 121, 0.16);
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__note {
  font-size: 0.68rem;
  max-width: 300px;
  color: #bdc9c8;
  position: relative;
  z-index: 5;
  margin-top: 22px;
}
.hero .btn--primary {
  background: var(--champagne);
  color: #112b35;
  border: 0px;
  cursor: pointer;
  font: 700 1rem Manrope, Arial, sans-serif;
  min-height: 52px;
  box-shadow: rgba(233, 183, 121, 0.8) 0px 10px 26px -12px;
  padding: 0px 28px;
}

@media (max-width: 1099px) {
  .hero__trust {
    margin-top: 18px;
  }
}

@media (min-width: 1100px) {
  .hero {
    isolation: isolate;
    max-height: none;
    overflow: hidden;
    height: auto;
    min-height: var(--hero-h);
  }
  .hero__actions {
    flex-wrap: nowrap;
  }
  .hero__trust {
    margin-top: 22px;
    gap: 8px;
  }
  .hero__title {
    font-size: clamp(3.2rem, min(4.2vw, 7vh), 5rem);
  }
  .stage {
    transform-origin: right top;
    top: auto;
    bottom: -8px;
    transform: none;
    filter: none;
    right: max(24px, -712px + 50vw);
    height: min(100% - 4px, 980px);
  }
  .hero__copy {
    padding-right: 12px;
    max-width: none;
    padding-bottom: calc(40px + clamp(70px, 7vw, 120px));
    padding-top: clamp(48px, 7vh, 96px);
    box-sizing: border-box;
    width: calc(min(540px, 38vw) + max(30px, -685px + 50vw));
  }
}
