/* 01-hero.css — Hero (Figma 27335:329 / 27180:1113 / 27180:1259 / 27180:1171)
   Cada banner e UMA imagem (assets/img/01-hero/banner-N-*.webp, 1440x738 @1x e @2x) exportada do Figma,
   ja sem o menu (o menu e HTML) e com os cantos inferiores arredondados/transparentes. */
.hero {
  --hero-violet: #A44BFA;
  --hero-dark: #320053;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 50;            /* acima das demais secoes: o menu fixo vive dentro do hero */
  padding-top: var(--nav-h); /* espaco do menu fixo */
  font-family: var(--font-family);
}

/* ---------- Nav ---------- */
.hero__nav {
  position: fixed;          /* menu fixo no desktop e no mobile */
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(36, 40, 42, 0.18);
  background: var(--color-secondary);
  color: var(--color-white);
}
.hero__nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 91px;
  padding: 16px 112px;
}
.hero__brand { display: block; position: relative; flex: none; width: 135px; height: 56px; overflow: hidden; }
.hero__brand-img { position: absolute; inset: 12.5% 0.74% 14.29% 0; width: 99.26%; height: 73.21%; max-width: none; }
.hero__menu { display: flex; align-items: center; gap: 48px; }
.hero__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.hero__links a {
  display: block;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  white-space: nowrap;
  text-align: center;
  transition: color var(--transition);
}
.hero__links a:hover { color: var(--color-purple-01); }
.hero__cta {
  flex: none;
  height: 56px;
  padding: 12px 24px;
  border: 1px solid var(--hero-violet);
  font-size: var(--fs-h6);
  line-height: var(--lh-h6);
  white-space: nowrap;
}
.hero__toggle { display: none; }

/* ---------- Slider ----------
   Os slides ficam empilhados na mesma celula do grid; a troca e um fade.
   O slide que sai permanece opaco por baixo ate o novo terminar de aparecer. */
.hero__slider {
  position: relative;
  z-index: 0;
  width: 100%;
  touch-action: pan-y;
}
.hero__slider:focus-visible { outline: 2px solid var(--hero-violet); outline-offset: -4px; }
.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 0s linear 0.7s, visibility 0s linear 0.7s;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 0.7s ease;
}
.hero__slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide picture { display: block; }
.hero__banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 738;
  -webkit-user-drag: none;
  user-select: none;
  filter: drop-shadow(0 19px 21px rgba(142, 111, 179, 0.1));
}

/* Controles (anterior / bolinhas / proximo / pausa) */
.hero__controls {
  position: absolute; z-index: 5;
  left: 50%; bottom: 4px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  color: var(--ctrl, var(--color-secondary));
  transition: color 0.4s ease;
}
.hero__slider[data-hero-theme="1"] { --ctrl: var(--color-secondary); }
.hero__slider[data-hero-theme="2"], .hero__slider[data-hero-theme="3"] { --ctrl: var(--color-white); }
.hero__slider[data-hero-theme="4"] { --ctrl: var(--hero-dark); }
.hero__arrow, .hero__pause {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  border: 1px solid currentColor; border-radius: var(--radius-pill);
  background: transparent; color: inherit; cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition), background-color var(--transition);
}
.hero__arrow svg { width: 14px; height: 14px; }
.hero__arrow:hover, .hero__pause:hover { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.hero__arrow:focus-visible, .hero__pause:focus-visible, .hero__dot:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hero__pause { margin-right: 4px; }
.hero__pause[hidden] { display: none; }
.hero__play-icon { display: none; }
.hero__pause.is-paused .hero__pause-icon { display: none; }
.hero__pause.is-paused .hero__play-icon { display: block; }
.hero__dots { display: flex; align-items: center; }
.hero__dot {
  position: relative; width: 20px; height: 28px; padding: 0;
  border: 0; background: transparent; color: inherit; cursor: pointer;
}
.hero__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border: 1.5px solid currentColor; border-radius: var(--radius-pill);
  box-sizing: border-box; opacity: 0.7;
  transition: width 0.3s ease, margin 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}
.hero__dot[aria-current="true"]::before { width: 20px; margin-left: -10px; background: currentColor; opacity: 1; }

/* ---------- Responsivo ---------- */
@media (max-width: 1360px) {
  .hero__nav-inner { padding-inline: var(--gutter); gap: 24px; }
  .hero__menu { gap: 24px; }
  .hero__links { gap: 16px; }
}

@media (max-width: 1200px) {
  .hero__nav-inner { justify-content: space-between; }
  .hero__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex: none;
    border: 1px solid var(--hero-violet); border-radius: var(--radius-pill);
    cursor: pointer;
  }
  .hero__toggle-bar,
  .hero__toggle-bar::before,
  .hero__toggle-bar::after {
    display: block; width: 20px; height: 2px; border-radius: 2px;
    background: var(--color-white); transition: transform var(--transition), background-color var(--transition);
  }
  .hero__toggle-bar { position: relative; }
  .hero__toggle-bar::before, .hero__toggle-bar::after { content: ""; position: absolute; left: 0; }
  .hero__toggle-bar::before { top: -6px; }
  .hero__toggle-bar::after { top: 6px; }
  .hero__toggle[aria-expanded="true"] .hero__toggle-bar { background: transparent; }
  .hero__toggle[aria-expanded="true"] .hero__toggle-bar::before { top: 0; transform: rotate(45deg); }
  .hero__toggle[aria-expanded="true"] .hero__toggle-bar::after { top: 0; transform: rotate(-45deg); }

  .hero__menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--space-3);
    padding: var(--space-3) var(--gutter) var(--space-4);
    background: var(--color-secondary);
  }
  .hero__menu.is-open { display: flex; max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  .hero__links { flex-direction: column; gap: var(--space-2); }
  .hero__links a { text-align: left; }
  .hero__cta { align-self: flex-start; }
}

@media (max-width: 1024px) {
  .hero__controls { bottom: 2px; }
}
/* mobile: usa a imagem vertical (414x769) */
@media (max-width: 640px) {
  .hero__banner { aspect-ratio: 414 / 769; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide.is-active { transition: none; }
  .hero__dot::before, .hero__controls { transition: none; }
}
