/* O enquadramento aproxima a fachada e o estacionamento da abertura visível. */
.hero-v2 {
  --person-width: clamp(340px, 28vw, 440px);
  --hero-photo-width: 50%;
  --hero-gutter: max(48px, calc((100% - 1240px) / 2));
  --hero-copy-width: clamp(330px, 32vw, 450px);
  height: 730px;
  min-height: 0;
  background: #1c1487;
  overflow: hidden;
  overflow: clip;
}
.hero-mask-defs { position: absolute; pointer-events: none; }
.hero-v2 .hero-window {
  position: absolute;
  inset: 0 auto 0 0;
  /* A caixa precisa ultrapassar a ponta inferior do cão, sem cortar a máscara. */
  width: max(var(--hero-photo-width), calc(100% - var(--hero-gutter) - var(--hero-copy-width) - 40px - var(--person-width) * .18074074 + 2px));
  height: 100%;
  aspect-ratio: auto;
  z-index: 1;
  filter: none;
  animation: none;
  transition: none;
  transform: none !important;
  -webkit-mask: none;
  mask: none;
  clip-path: url('#hero-photo-opening');
}
.hero-v2 .hero-photo-layer,
.hero-v2 .hero-photo-layer.is-active {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  transform: none;
  filter: none;
  animation: none;
  opacity: 0;
  transition: none;
}
.hero-v2 .hero-photo-layer.is-active { opacity: 1; }
.hero-v2.is-paused .hero-photo-layer { transition: none; }
.hero-v2 .hero-person,
.hero-v2 .hero-cat,
.hero-v2 .hero-care {
  position: absolute;
  left: calc(100% - var(--hero-gutter) - var(--hero-copy-width) - var(--hero-art-width, var(--person-width)) - 40px);
  right: auto;
  bottom: 0;
  width: var(--hero-art-width, var(--person-width));
  height: auto;
  max-height: none;
  z-index: 4;
  filter: none;
  transform: none;
  opacity: 1;
  transition: opacity 360ms ease;
  pointer-events: none;
}
.hero-v2 .hero-cat { --hero-art-width: calc(var(--person-width) * .82); visibility: hidden; }
.hero-v2.is-changing .hero-person, .hero-v2.is-changing .hero-cat, .hero-v2.is-changing .hero-care { opacity: 0; }
.hero-v2[data-slide="1"] .hero-person,
.hero-v2[data-slide="2"] .hero-person { visibility: hidden; }
.hero-v2[data-slide="2"] .hero-cat { visibility: visible; }
.hero-v2 .wrap { width: 100%; height: 100%; display: block; z-index: 5; }
.hero-v2 .hero-copy {
  position: absolute;
  left: auto;
  right: var(--hero-gutter);
  top: 50%;
  width: var(--hero-copy-width);
  max-width: 510px;
  padding: 0;
  transform: translateY(-50%);
}
.hero-v2 .hero-slide { min-height: 0; max-width: none; }
.hero-v2 h1, .hero-v2 h2 {
  color: white;
  font-size: clamp(38px, 3.8vw, 62px);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.hero-v2 h1 span, .hero-v2 h2 span { color: #87deff; }
.hero-v2 .eyebrow { font-size: 10px; line-height: 1.7; }
.hero-v2 p { font-size: 17px; line-height: 1.65; }
.hero-v2 .btn { font-size: 13px; padding: 16px 23px; }
.hero-v2 .hero-controls { margin-top: 31px; gap: 7px; }
.hero-v2 .brand-pattern { pointer-events: none; }
.hero-v2 .hero-pattern-arc {
  left: -85px; top: -55px; bottom: auto;
  width: 310px; height: 174px;
  animation: hero-brand-arc 14s ease-in-out infinite alternate;
}
.hero-v2 .hero-pattern-drop {
  top: 38px; right: 5%; width: 85px; height: 66px;
  animation: hero-brand-drop 12s ease-in-out infinite alternate;
}
.hero-v2 .hero-pattern-ring {
  right: -300px; bottom: -180px; width: 450px; height: 475px;
  animation: hero-brand-ring 21s ease-in-out infinite alternate;
}
.hero-v2.is-paused .brand-pattern { animation-play-state: paused; }
@keyframes hero-brand-arc {
  from { transform: translate(0, 0) rotate(-15deg); }
  to { transform: translate(20px, 20px) rotate(12deg); }
}
@keyframes hero-brand-drop {
  from { transform: translate(0, 0) rotate(-15deg); }
  to { transform: translate(-20px, 20px) rotate(14deg); }
}
@keyframes hero-brand-ring {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-30px, -20px) rotate(25deg); }
}
@media (min-width: 961px) and (max-width: 1600px) {
  .hero-v2 {
    --person-width: clamp(260px, 23vw, 370px);
    --hero-copy-width: clamp(300px, 25vw, 400px);
  }
  .hero-v2 { --hero-photo-width: 60%; }
}
@media (max-width: 1200px) { .hero-v2 { --hero-gutter: 32px; } }
@media (max-width: 1100px) and (min-width: 961px) {
  .hero-v2 { height: 680px; --hero-photo-width: 66.667%; }
  .hero-v2 .hero-controls { gap: 2px; }
  .hero-v2 .hero-dots { padding: 0 3px; }
  .hero-v2 .btn { font-size: 12px; padding: 15px 18px; }
}
@media (max-width: 960px) {
  .hero-v2 { --person-width: clamp(235px, 66vw, 330px); --hero-photo-width: 100%; height: 890px; }
  .hero-v2 .hero-copy {
    left: max(24px, env(safe-area-inset-left, 0px)); right: auto; top: 38px;
    width: calc(100% - max(24px, env(safe-area-inset-left, 0px)) - max(24px, env(safe-area-inset-right, 0px)));
    max-width: 610px; padding: 0; transform: none;
  }
  .hero-v2 h1, .hero-v2 h2 { font-size: 47px; max-width: 600px; }
  .hero-v2 .hero-slide { min-height: 0; }
  .hero-v2 .hero-window { top: auto; bottom: 0; width: 100%; height: 520px; }
  .hero-v2 .hero-photo-layer, .hero-v2 .hero-photo-layer.is-active { object-position: 75% center; }
  .hero-v2 .hero-person, .hero-v2 .hero-cat,
  .hero-v2 .hero-care { left: auto; right: 8%; width: var(--hero-art-width, var(--person-width)); }
  .hero-v2 .hero-controls { margin-top: 22px; }
  .hero-v2 .hero-pattern-arc { top: auto; bottom: 315px; width: 240px; height: 135px; }
  .hero-v2 .hero-pattern-drop { top: 35px; right: 20px; width: 65px; height: 50px; }
  .hero-v2 .hero-pattern-ring { width: 330px; height: 348px; right: -230px; bottom: -120px; }
}
@media (max-width: 640px) {
  .hero-v2 { height: 850px; }
  .hero-v2 .hero-copy { top: 34px; left: max(20px, env(safe-area-inset-left, 0px)); width: calc(100% - max(20px, env(safe-area-inset-left, 0px)) - max(20px, env(safe-area-inset-right, 0px))); }
  .hero-v2 h1, .hero-v2 h2 { font-size: 41px; max-width: 390px; }
  .hero-v2 .eyebrow { font-size: 9px; max-width: 285px; }
  .hero-v2 p { font-size: 16px; margin-top: 17px; }
  .hero-v2 .hero-person, .hero-v2 .hero-cat,
  .hero-v2 .hero-care { right: 8px; }
  .hero-v2 .hero-window { height: 450px; }
  .hero-v2 .hero-controls { margin-top: 20px; gap: 8px; }
  .hero-v2 .hero-pattern-drop { top: 370px; right: 25px; width: 57px; height: 44px; }
  .hero-v2 .hero-pattern-arc { bottom: 270px; left: -78px; width: 205px; height: 115px; }
}
@media (max-width: 360px) {
  .hero-v2 { height: 840px; }
  .hero-v2 .hero-copy { left: 20px; width: calc(100% - 40px); }
  .hero-v2 h1, .hero-v2 h2 { font-size: 36px; }
  .hero-v2 .hero-window { height: 430px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2 .brand-pattern { animation: none; }
  .hero-v2 .hero-photo-layer { transition: none; }
  .hero-v2 .hero-person, .hero-v2 .hero-cat,
  .hero-v2 .hero-care { transition: none; }
}

/* Segundo destaque: a cor do chão original continua na superfície da onda. */
.hero-v2 { --hero-care-width: clamp(540px, 38vw, 679px); }
.hero-v2[data-slide="1"] { background: #1f54db; }
.hero-v2 .hero-care {
  width: var(--hero-care-width);
  max-width: none;
  left: calc(100% - var(--hero-gutter) - var(--hero-copy-width) - var(--hero-care-width) * .667 - 40px);
  visibility: hidden;
}
.hero-v2[data-slide="1"] .hero-care { visibility: visible; }
@media (max-width: 960px) {
  .hero-v2 { --hero-care-width: clamp(370px, 90vw, 520px); }
  .hero-v2 .hero-care { left: auto; right: calc(8% - var(--hero-care-width) * .333); }
}
@media (max-width: 640px) {
  .hero-v2 .hero-care { right: calc(8px - var(--hero-care-width) * .333); }
}

/* O banner da agenda conserva o enquadramento e a onda já aprovados. */
.hero-v2[data-slide="1"] .hero-window { width: var(--hero-photo-width); }

/* Somente a nova fotografia do terceiro destaque: preservar rosto e carinho no recorte. */
.hero-v2 .hero-photo-layer:nth-child(3) { object-position: 44% center; }

@media (max-width: 960px) {
  .hero-v2 .hero-photo-layer:nth-child(3) { object-position: 52% center; }
}

/* Composição mobile aprovada em 28/10: curva contínua sob o texto.
   A foto ocupa toda a largura; a própria máscara desenha sua borda superior. */
@media (max-width: 960px) {
  .hero-v2 .hero-window { height: 460px; }
  .hero-v2 .hero-photo-layer { clip-path: url('#hero-mobile-wave-opening'); }
  .hero-v2 .hero-person { right: -14%; }
  .hero-v2 .hero-pattern-arc,
  .hero-v2 .hero-pattern-drop,
  .hero-v2 .hero-pattern-ring { visibility: hidden; }
}
@media (max-width: 640px) {
  .hero-v2 { --hero-mobile-photo-height: clamp(320px, 90vw, 450px); height: calc(420px + var(--hero-mobile-photo-height)); }
  .hero-v2 .hero-window { height: var(--hero-mobile-photo-height); }
}
