/* Seção 4 · Áreas de cuidado (prefixo ar) — a flor de cristal no centro, as áreas como pétalas */
.ar {
  --ar-c: min(38rem, 40vw);           /* largura da coluna da flor (desktop) */
  --ar-rx: 0deg; --ar-ry: 0deg; --ar-rz: 0deg; --ar-tx: 0px; --ar-ty: 0px;
  --ar-hx: 50%; --ar-hy: 55%;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: var(--s-respiro) var(--a-margem);
  background: var(--a-nevoa);
  color: var(--a-tinta);
}
.ar-fio { display: none; }
.ar-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ar-malha {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(48% 42% at 6% 8% in oklab, color-mix(in oklab, var(--a-verde-agua) 48%, var(--a-nevoa)), transparent 100%),
    radial-gradient(40% 46% at 96% 26% in oklab, color-mix(in oklab, var(--a-lilas) 52%, var(--a-nevoa)), transparent 100%),
    radial-gradient(36% 30% at 50% 58% in oklab, color-mix(in oklab, var(--a-malva) 26%, var(--a-nevoa)), transparent 100%),
    radial-gradient(44% 40% at 12% 94% in oklab, color-mix(in oklab, var(--a-lilas) 40%, var(--a-nevoa)), transparent 100%),
    radial-gradient(46% 40% at 92% 96% in oklab, color-mix(in oklab, var(--a-verde-agua) 44%, var(--a-nevoa)), transparent 100%),
    var(--a-nevoa);
}
.ar-grao {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: var(--s-grao);
}
.ar-dentro { max-width: var(--s-largura); margin: 0 auto; }

/* ---------- cabeça ---------- */
.ar-cabeca { text-align: center; max-width: 46rem; margin: 0 auto; }
.ar-rotulo {
  margin: 0 0 var(--a-e3);
  display: inline-flex;
  align-items: center;
  gap: .9em;
  font-size: var(--a-t-rotulo);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a-malva-texto);
}
.ar-rotulo::before, .ar-rotulo::after { content: ""; width: 2.2em; height: 1px; background: currentColor; }
.ar-titulo {
  margin: 0;
  font-family: var(--a-f-titulo);
  font-weight: 400;
  font-size: var(--s-t-secao);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.ar-forte { font-weight: 900; }
.ar-apoio {
  margin: var(--a-e3) auto 0;
  max-width: 32em;
  font-size: var(--s-t-apoio);
  line-height: 1.6;
  color: var(--a-tinta-suave);
  text-wrap: pretty;
}

/* ---------- palco ---------- */
.ar-palco { position: relative; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.ar-flor { position: relative; margin: 0 auto; width: min(80vw, 26rem); z-index: 0; }
.ar-flor img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  transform: perspective(70rem) translate(var(--ar-tx), var(--ar-ty)) rotateX(var(--ar-rx)) rotateY(var(--ar-ry)) rotate(var(--ar-rz));
  transform-origin: 50% 70%;
  transition: transform 1.3s var(--a-lento);
  filter: drop-shadow(0 1.6rem 2rem color-mix(in oklab, var(--a-cristal) 16%, transparent));
}
.ar-halo {
  position: absolute;
  left: var(--ar-hx);
  top: var(--ar-hy);
  width: 120%;
  aspect-ratio: 1.6;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side in oklab, color-mix(in oklab, #fff 70%, var(--a-cristal-claro)), color-mix(in oklab, var(--a-cristal-claro) 14%, transparent) 55%, transparent);
  opacity: .8;
  transition: left 1.3s var(--a-lento), top 1.3s var(--a-lento);
  pointer-events: none;
}

.ar-lista { list-style: none; margin: 0; padding: 0; }
.ar-h { margin: 0; font: inherit; }
.ar-botao {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 1.15rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ar-marca {
  flex: none;
  width: 1.15rem;
  height: 1.9rem;
  opacity: .55;
  transform: rotate(var(--ar-ang, 0deg)) scale(.9);
  transition: opacity .6s var(--a-lento), transform .9s var(--a-lento), filter .6s;
}
.ar-nomes { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; flex: 1; }
.ar-num {
  font-family: var(--a-f-titulo);
  font-weight: 900;
  font-size: .9375rem;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--a-cristal);
}
.ar-nome {
  font-family: var(--a-f-titulo);
  font-weight: 400;
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem);
  line-height: 1.1;
  color: var(--a-tinta-suave);
  transition: color .5s;
}
.ar-sub {
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a-malva-texto);
}
.ar-on .ar-nome, .ar-botao:hover .ar-nome { color: var(--a-tinta); }
.ar-on .ar-marca { opacity: 1; transform: rotate(var(--ar-ang, 0deg)) scale(1.2); filter: drop-shadow(0 0 .5rem color-mix(in oklab, var(--a-cristal-claro) 60%, transparent)); }

.ar-lamina {
  margin: 0;
  font-family: var(--a-f-titulo);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.1rem + .8vw, 1.75rem);
  line-height: 1.24;
  color: var(--a-tinta);
  text-wrap: balance;
}
.ar-texto {
  margin: .9rem 0 0;
  font-size: var(--s-t-corpo);
  line-height: 1.65;
  color: var(--a-tinta-suave);
  text-wrap: pretty;
}
.ar-fala {
  margin: 1rem 0 0;
  font-family: var(--a-f-titulo);
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--a-cristal);
}

/* ---------- fecho ---------- */
.ar-fecho { display: flex; justify-content: center; margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
@media (min-width: 1000px) { .js .ar-fecho { margin-top: 2rem; } }

/* ---------- lista que abre (celular, tablet e sem JS) ---------- */
@media (max-width: 999.98px) {
  .ar-flor { width: min(88vw, 30rem); margin-bottom: 1.25rem; }
  .ar-malha {
    background:
      radial-gradient(90% 26% at 0% 6% in oklab, color-mix(in oklab, var(--a-verde-agua) 46%, var(--a-nevoa)), transparent 100%),
      radial-gradient(80% 20% at 100% 30% in oklab, color-mix(in oklab, var(--a-lilas) 46%, var(--a-nevoa)), transparent 100%),
      radial-gradient(90% 22% at 0% 70% in oklab, color-mix(in oklab, var(--a-lilas) 34%, var(--a-nevoa)), transparent 100%),
      radial-gradient(90% 22% at 100% 96% in oklab, color-mix(in oklab, var(--a-verde-agua) 42%, var(--a-nevoa)), transparent 100%),
      var(--a-nevoa);
  }
  .ar-sub { letter-spacing: .08em; }
  .ar-lista { max-width: 40rem; margin: 0 auto; border-top: 1px solid var(--s-linha); }
  .ar-area { border-bottom: 1px solid var(--s-linha); }
  .ar-marca { --ar-ang: 0deg; }
  .ar-seta { position: relative; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--s-linha); }
  .ar-seta::before, .ar-seta::after { content: ""; position: absolute; left: 50%; top: 50%; width: .8rem; height: 1.5px; background: var(--a-cristal); translate: -50% -50%; transition: rotate .5s var(--a-lento); }
  .ar-seta::after { rotate: 90deg; }
  .ar-on .ar-seta::after { rotate: 0deg; }
  .ar-painel-in { position: relative; padding: .25rem 0 1.6rem 2.15rem; }
  .js .ar-painel-in::before { content: ""; position: absolute; left: .56rem; top: 0; bottom: 1.6rem; width: 1px; background: linear-gradient(var(--a-cristal-claro), color-mix(in oklab, var(--a-cristal-claro) 0%, transparent)); transform: scaleY(0); transform-origin: top; transition: transform .9s var(--a-lento) .1s; }
  .js .ar-on .ar-painel-in::before { transform: scaleY(1); }
  .js .ar-on .ar-marca { transform: rotate(180deg) scale(1.2); }
  .js .ar-painel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--a-lento), visibility 0s .6s; }
  .js .ar-painel > .ar-painel-in { overflow: hidden; min-height: 0; transition: padding .6s var(--a-lento); }
  .js .ar-area:not(.ar-on) .ar-painel-in { padding-top: 0; padding-bottom: 0; }
  .js .ar-on .ar-painel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s var(--a-lento), visibility 0s; }
  html:not(.js) .ar-seta { display: none; }
}

/* ---------- pétalas em volta da flor (desktop) ---------- */
@media (min-width: 1000px) {
  html:not(.js) .ar-lista { max-width: 40rem; margin: 0 auto; }
  html:not(.js) .ar-painel-in { padding: 0 0 1.5rem 2.15rem; }
  .ar-seta { display: none; }

  .js .ar-palco {
    --ar-fh: calc(var(--ar-c) * 1.1 * .54);  /* altura da flor */
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--ar-c) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(max(8.25rem, calc(var(--ar-fh) / 3)), auto)) auto;
    column-gap: 1.5rem;
  }
  .js .ar-lista, .js .ar-area { display: contents; }
  .js .ar-flor { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: calc(var(--ar-c) * 1.1); margin: 0 0 0 calc(var(--ar-c) * -.05); }
  .js .ar-h { position: relative; z-index: 1; align-self: center; }
  .js .ar-area:nth-child(-n+3) > .ar-h { grid-column: 1; }
  .js .ar-area:nth-child(n+4) > .ar-h { grid-column: 3; }
  .js .ar-area:nth-child(1) > .ar-h, .js .ar-area:nth-child(4) > .ar-h { grid-row: 1; }
  .js .ar-area:nth-child(2) > .ar-h, .js .ar-area:nth-child(5) > .ar-h { grid-row: 2; }
  .js .ar-area:nth-child(3) > .ar-h, .js .ar-area:nth-child(6) > .ar-h { grid-row: 3; }
  /* arco: as pontas se aproximam da flor */
  .js .ar-area:nth-child(1) > .ar-h, .js .ar-area:nth-child(3) > .ar-h { translate: 1.5rem 0; }
  .js .ar-area:nth-child(4) > .ar-h, .js .ar-area:nth-child(6) > .ar-h { translate: -1.5rem 0; }
  .js .ar-area:nth-child(2) > .ar-h { translate: -2.5rem 0; }
  .js .ar-area:nth-child(5) > .ar-h { translate: 2.5rem 0; }
  .js .ar-area:nth-child(-n+3) .ar-botao { flex-direction: row-reverse; text-align: right; }
  .js .ar-area:nth-child(-n+3) .ar-nomes { align-items: flex-end; }
  .js .ar-area:nth-child(1) { --ar-ang: 115deg; }
  .js .ar-area:nth-child(2) { --ar-ang: 90deg; }
  .js .ar-area:nth-child(3) { --ar-ang: 65deg; }
  .js .ar-area:nth-child(4) { --ar-ang: -115deg; }
  .js .ar-area:nth-child(5) { --ar-ang: -90deg; }
  .js .ar-area:nth-child(6) { --ar-ang: -65deg; }

  /* o texto da área aberta: todas na mesma célula, debaixo da flor (sem pulo de altura) */
  .js .ar-painel {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
    align-self: center;
    width: min(40rem, 100%);
    margin-top: clamp(1.5rem, .5rem + 2vw, 2.5rem);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .45s var(--a-lento), transform .8s var(--a-lento), visibility 0s .45s;
  }
  .js .ar-on > .ar-painel { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--a-lento) .2s, transform 1s var(--a-lento) .2s, visibility 0s; }
  .js .ar-lamina { font-size: clamp(1.6rem, 1.1rem + 1vw, 2.1rem); }
  .js .ar-texto { margin-top: 1.1rem; }

  /* fio de luz entre a área aberta e a flor */
  .js .ar-fio { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
  .ar-fio path { fill: none; stroke: var(--a-cristal-claro); stroke-width: 1.2; stroke-linecap: round; opacity: .7; transition: stroke-dashoffset 1.1s var(--a-lento) .1s; }

  /* gesto: a flor inclina na direção da área aberta */
  .ar-palco[data-ar-ativo="0"] { --ar-ry: -22deg; --ar-rx: 12deg; --ar-rz: -8deg; --ar-tx: -1rem; --ar-ty: -1rem; --ar-hx: 30%; --ar-hy: 38%; }
  .ar-palco[data-ar-ativo="1"] { --ar-ry: -26deg; --ar-rx: 2deg;  --ar-rz: -5deg; --ar-tx: -1.2rem; --ar-hx: 26%; --ar-hy: 55%; }
  .ar-palco[data-ar-ativo="2"] { --ar-ry: -22deg; --ar-rx: -10deg; --ar-rz: 6deg; --ar-tx: -1rem; --ar-ty: .8rem; --ar-hx: 30%; --ar-hy: 72%; }
  .ar-palco[data-ar-ativo="3"] { --ar-ry: 22deg; --ar-rx: 12deg; --ar-rz: 8deg; --ar-tx: 1rem; --ar-ty: -1rem; --ar-hx: 70%; --ar-hy: 38%; }
  .ar-palco[data-ar-ativo="4"] { --ar-ry: 26deg; --ar-rx: 2deg;  --ar-rz: 5deg; --ar-tx: 1.2rem; --ar-hx: 74%; --ar-hy: 55%; }
  .ar-palco[data-ar-ativo="5"] { --ar-ry: 22deg; --ar-rx: -10deg; --ar-rz: -6deg; --ar-tx: 1rem; --ar-ty: .8rem; --ar-hx: 70%; --ar-hy: 72%; }
  .ar-halo { width: 70%; aspect-ratio: 1.3; opacity: 1; background: radial-gradient(closest-side in oklab, color-mix(in oklab, #fff 55%, var(--a-cristal-claro)), color-mix(in oklab, var(--a-cristal-claro) 22%, transparent) 50%, transparent); }

  /* filete da área aberta, nascendo do lado da flor */
  .js .ar-nome { position: relative; }
  .js .ar-nome::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.18em; height: 1px; background: var(--a-cristal); transform: scaleX(0); transform-origin: var(--ar-orig, left); transition: transform .9s var(--a-lento); }
  .js .ar-area:nth-child(-n+3) { --ar-orig: right; }
  .js .ar-on .ar-nome::after { transform: scaleX(1); }
  .js .ar-on .ar-nome { color: var(--a-tinta); }
}

/* no celular a flor só gira de leve para o lado da área aberta */
@media (max-width: 999.98px) {
  .ar-palco[data-ar-ativo="0"], .ar-palco[data-ar-ativo="2"], .ar-palco[data-ar-ativo="4"] { --ar-ry: -12deg; --ar-rz: -3deg; --ar-hx: 42%; }
  .ar-palco[data-ar-ativo="1"], .ar-palco[data-ar-ativo="3"], .ar-palco[data-ar-ativo="5"] { --ar-ry: 12deg; --ar-rz: 3deg; --ar-hx: 58%; }
}

@media (prefers-reduced-motion: reduce) {
  .ar-flor img, .ar-halo, .ar-marca, .ar-painel, .ar-seta::before, .ar-seta::after, .ar-nome::after, .ar-painel-in::before { transition: none !important; }
}
