/* =========================================
   who-we-are.css — section Quem Somos
   (fix definitivo: elimina “linha/halo branco” nos cards do accordion)
   ========================================= */

.who-we-are {
  padding: clamp(12px, 2vw, 24px) 0;
}

.who-we-are__surface {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  isolation: isolate;

  background: #0b0f18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 90px rgba(11, 18, 32, 0.28);
}

/* lights: white top-left + salmon bottom-right */
.who-we-are__surface::before,
.who-we-are__surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.who-we-are__surface::before {
  background:
    radial-gradient(900px 600px at 12% 10%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(900px 650px at 92% 92%, rgba(255, 106, 138, 0.18), transparent 60%);
  opacity: 1;
}

.who-we-are__surface::after {
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.who-we-are__inner {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}

/* =========================
   LEFT: accordion
   ========================= */
.who-acc {
  display: grid;
  gap: 14px;
}

/* FIX: backdrop-filter não fica no container (causa “bleeding/linha branca” em alguns browsers)
   — ele fica numa camada interna (pseudo) totalmente clipada. */
.who-acc__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);

  isolation: isolate;
  background-clip: padding-box;
  transform: translateZ(0);
  backface-visibility: hidden;

  /* remove qualquer “efeito lateral” */
  border-left: 0 !important;
}

/* camada “glass” clipada (evita a linha branca) */
.who-acc__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  border-radius: inherit;

  /* glass base */
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  /* força clipping perfeito em browsers chatos */
  clip-path: inset(0 round 16px);

  /* micro ajuste para evitar “seam” claro */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* conteúdo acima do pseudo */
.who-acc__btn,
.who-acc__panel {
  position: relative;
  z-index: 1;
}

/* FIX “linha rosa”: remove outline global aqui e aplica foco premium no botão */
.who-we-are :focus-visible {
  outline: none;
}

.who-acc__btn:focus-visible {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.22);
  border-radius: 16px;
}

.who-acc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 34px;
  align-items: center;
  gap: 12px;

  padding: 18px 18px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;

  -webkit-tap-highlight-color: transparent;
}

.who-acc__btn:hover,
.who-acc__btn:active {
  background: transparent; /* evita qualquer “flash” */
}

.who-acc__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transform: translateZ(0);
  backface-visibility: hidden;
}

.who-acc__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.95;
}

.who-acc__title {
  font-weight: 750;
  letter-spacing: -0.01em;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.who-acc__chev {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);

  transform: translateZ(0);
  backface-visibility: hidden;
}

.who-acc__chev svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  transition: transform 260ms var(--ease, ease);
}

/* accordion panel (animated by max-height) */
.who-acc__panel {
  padding: 0 18px 16px;
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 520ms var(--ease, ease),
    opacity 420ms var(--ease, ease),
    transform 420ms var(--ease, ease);
}

.who-acc__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

/* OPEN state: gradient background + content appears */
.who-acc__item.is-open {
  border-color: rgba(255, 255, 255, 0.16);
}

.who-acc__item.is-open::before {
  background: var(--g-brand);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.who-acc__item.is-open .who-acc__icon {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.who-acc__item.is-open .who-acc__icon img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.who-acc__item.is-open .who-acc__title {
  color: #fff;
}

.who-acc__item.is-open .who-acc__panel {
  opacity: 1;
  transform: translateY(0);
}

.who-acc__item.is-open .who-acc__chev svg {
  transform: rotate(180deg);
}

/* =========================
   RIGHT: content
   ========================= */
.who-content__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.who-content__kickerIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
}

.who-content__kickerIcon svg {
  width: 18px;
  height: 18px;
}

.who-content__kickerText {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.who-content__title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #fff;
}

.who-content__titleBreak {
  display: inline-block;
}

.who-content__desc {
  margin: 0;
  max-width: 90ch;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.who-content__divider {
  height: 1px;
  margin: 22px 0 18px;
  background: rgba(255, 255, 255, 0.12);
}

/* stats */
.who-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.who-stat__value {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.who-stat__label {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
}

/* responsive */
@media (max-width: 980px) {
  .who-we-are__inner {
    grid-template-columns: 1fr;
  }

  .who-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .who-we-are__surface {
    border-radius: 22px;
  }

  .who-acc__btn {
    grid-template-columns: 40px 1fr 32px;
    padding: 16px 16px;
  }

  .who-acc__icon {
    width: 40px;
    height: 40px;
  }

  .who-stats {
    grid-template-columns: 1fr;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .who-acc__panel,
  .who-acc__chev svg {
    transition: none !important;
  }
}
