/* /clientes — seção "Pelo olhar de quem conhece bem o Agendor". Escopo .clientes-b-scope, prefixo cb-ol-. Carregada depois de clientesb.css. */
.clientes-b-scope .cb-ol { background: var(--cb-tinto); }
.clientes-b-scope .cb-ol-topo {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 32px;
}
.clientes-b-scope .cb-ol-topo .cb-h2 { margin: 0; max-width: 560px; }
.clientes-b-scope .cb-ol-topo .cb-sub { max-width: 460px; }
.clientes-b-scope .cb-ol-dica {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--cb-txt2);
}
.clientes-b-scope .cb-ol-dica::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6;
}

/* Galeria de olhares */
.clientes-b-scope .cb-ol-galeria {
  --cb-ol-cresce: 7;
  list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; height: 600px;
}
.clientes-b-scope .cb-ol-item {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 20px; overflow: hidden; background: var(--cb-navy);
  transition: flex-grow .45s cubic-bezier(.16, 1, .3, 1);
  isolation: isolate;
}
.clientes-b-scope .cb-ol-item[data-ativo="true"] { flex-grow: var(--cb-ol-cresce); }

/* Imagem: duotone azul quando fechado, cor real quando em foco */
.clientes-b-scope .cb-ol-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: -2;
  filter: grayscale(1) contrast(1.05) brightness(.85);
  transform: scale(1.06);
  transition: filter .5s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}
.clientes-b-scope .cb-ol-item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cb-azul); mix-blend-mode: multiply; opacity: .72;
  transition: opacity .5s ease;
}
.clientes-b-scope .cb-ol-item::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(27, 27, 51, .55) 0%, rgba(27, 27, 51, 0) 28%, rgba(27, 27, 51, .25) 45%, rgba(27, 27, 51, .94) 100%);
}
.clientes-b-scope .cb-ol-item[data-ativo="true"]::after {
  background:
    linear-gradient(90deg, rgba(27, 27, 51, .82) 0%, rgba(27, 27, 51, .45) 50%, rgba(27, 27, 51, 0) 85%),
    linear-gradient(180deg, rgba(27, 27, 51, .5) 0%, rgba(27, 27, 51, 0) 25%, rgba(27, 27, 51, .35) 50%, rgba(27, 27, 51, .95) 100%);
}
.clientes-b-scope .cb-ol-item:not([data-ativo="true"]):hover .cb-ol-img { filter: grayscale(.35) brightness(.9); }
.clientes-b-scope .cb-ol-item:not([data-ativo="true"]):hover::before { opacity: .45; }
.clientes-b-scope .cb-ol-item[data-ativo="true"] .cb-ol-img { filter: none; transform: scale(1); }
.clientes-b-scope .cb-ol-item[data-ativo="true"]::before { opacity: 0; }

/* Gatilho (área clicável do painel fechado) */
.clientes-b-scope .cb-ol-gatilho {
  all: unset; box-sizing: border-box; position: absolute; inset: 0; z-index: 2; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 22px 0;
  color: #fff; transition: opacity .25s ease;
}
.clientes-b-scope .cb-ol-gatilho:focus-visible { outline: 3px solid var(--cb-verde); outline-offset: -3px; border-radius: 20px; }
.clientes-b-scope .cb-ol-num {
  font-family: Rubik, "Rubik Fallback", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .04em;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.clientes-b-scope .cb-ol-rotulo {
  writing-mode: vertical-rl; transform: rotate(180deg); display: flex; gap: 10px; align-items: center; white-space: nowrap;
  font-size: 13px; color: rgba(255, 255, 255, .72);
}
.clientes-b-scope .cb-ol-rotulo b {
  font-family: Rubik, "Rubik Fallback", sans-serif; font-weight: 500; font-size: 17px; color: #fff;
}
.clientes-b-scope .cb-ol-mais {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--cb-navy);
  transition: transform .2s ease;
}
.clientes-b-scope .cb-ol-gatilho:hover .cb-ol-mais { transform: rotate(90deg); }
.clientes-b-scope .cb-ol-item[data-ativo="true"] .cb-ol-gatilho { opacity: 0; pointer-events: none; }

/* Painel aberto (sempre no DOM; largura mínima evita reflow do texto na animação) */
.clientes-b-scope .cb-ol-painel {
  position: absolute; inset: 0 auto 0 0; width: 100%; min-width: 600px; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; padding: 28px 36px 32px;
  color: #fff; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.clientes-b-scope .cb-ol-item[data-ativo="true"] .cb-ol-painel {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .45s ease .2s, transform .6s cubic-bezier(.16, 1, .3, 1) .2s;
}
.clientes-b-scope .cb-ol-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 528px; }
.clientes-b-scope .cb-ol-tag {
  font-size: 12px; padding: 6px 12px; border-radius: 999px; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.clientes-b-scope .cb-ol-cont { font-family: Rubik, "Rubik Fallback", sans-serif; font-size: 13px; color: rgba(255, 255, 255, .7); }
.clientes-b-scope .cb-ol-cont b { color: #fff; font-weight: 500; }
.clientes-b-scope .cb-ol-corpo { max-width: 528px; display: flex; flex-direction: column; gap: 18px; }
.clientes-b-scope .cb-ol-papel {
  margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-verde); font-weight: 500;
}
.clientes-b-scope .cb-ol-quote {
  margin: 0; font-family: Rubik, "Rubik Fallback", sans-serif; font-weight: 500; font-size: 30px; line-height: 1.2; color: #fff;
  text-wrap: balance;
}
.clientes-b-scope .cb-ol-enxerga {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.clientes-b-scope .cb-ol-enxerga svg { color: var(--cb-verde); flex: none; margin-top: 2px; }
.clientes-b-scope .cb-ol-enxerga p { margin: 0; font-size: 15px; line-height: 1.45; color: #fff; }
.clientes-b-scope .cb-ol-enxerga small {
  display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 2px;
}
.clientes-b-scope .cb-ol-rodape { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.clientes-b-scope .cb-ol-pessoa { display: flex; gap: 10px; align-items: center; font-style: normal; }
.clientes-b-scope .cb-ol-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--cb-verde); color: var(--cb-navy); font-size: 13px; font-weight: 600; overflow: hidden;
}
.clientes-b-scope .cb-ol-avatar img { width: 100%; height: 100%; object-fit: cover; }
.clientes-b-scope .cb-ol-pessoa-txt { display: flex; flex-direction: column; font-size: 12px; color: rgba(255, 255, 255, .72); }
.clientes-b-scope .cb-ol-pessoa-txt b { font-size: 14px; font-weight: 500; color: #fff; }
.clientes-b-scope .cb-ol-ler {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: var(--cb-navy); font-size: 13px; font-weight: 500; text-decoration: none;
  transition: gap .2s ease, background .2s ease;
}
.clientes-b-scope .cb-ol-ler:hover { gap: 12px; background: var(--cb-verde); }
.clientes-b-scope .cb-ol-ler:focus-visible { outline: 2px solid var(--cb-verde); outline-offset: 3px; }

/* Rodapé da seção */
.clientes-b-scope .cb-ol-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--cb-borda);
}
.clientes-b-scope .cb-ol-base p { margin: 0; font-size: 14px; color: var(--cb-txt2); }
.clientes-b-scope .cb-ol-base p b { color: #1b1b33; font-weight: 500; }
.clientes-b-scope .cb-ol-todos {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--cb-azul); text-decoration: none;
}
.clientes-b-scope .cb-ol-todos:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 991px) {
  .clientes-b-scope .cb-ol-topo { grid-template-columns: 1fr; gap: 16px; }
  .clientes-b-scope .cb-ol-galeria { --cb-ol-cresce: 10; height: 580px; gap: 8px; }
  .clientes-b-scope .cb-ol-painel { min-width: 440px; padding: 24px 26px 28px; }
  .clientes-b-scope .cb-ol-quote { font-size: 25px; }
  .clientes-b-scope .cb-ol-rotulo span { display: none; }
}

/* Mobile: acordeão vertical */
@media (max-width: 767px) {
  .clientes-b-scope .cb-ol-topo { margin-bottom: 24px; }
  .clientes-b-scope .cb-ol-galeria { flex-direction: column; height: auto; gap: 8px; }
  .clientes-b-scope .cb-ol-item { flex: none; height: 76px; border-radius: 16px; transition: height .45s cubic-bezier(.16, 1, .3, 1); }
  .clientes-b-scope .cb-ol-item[data-ativo="true"] { height: 540px; }
  .clientes-b-scope .cb-ol-item::after,
  .clientes-b-scope .cb-ol-item[data-ativo="true"]::after {
    background: linear-gradient(180deg, rgba(27, 27, 51, .55) 0%, rgba(27, 27, 51, .3) 25%, rgba(27, 27, 51, .92) 55%, rgba(27, 27, 51, .97) 100%);
  }
  .clientes-b-scope .cb-ol-gatilho { flex-direction: row; padding: 0 16px; gap: 12px; justify-content: flex-start; }
  .clientes-b-scope .cb-ol-rotulo { writing-mode: horizontal-tb; transform: none; flex-direction: column; align-items: flex-start; gap: 0; flex: 1; }
  .clientes-b-scope .cb-ol-rotulo b { font-size: 16px; }
  .clientes-b-scope .cb-ol-rotulo span { display: inline; font-size: 12px; }
  .clientes-b-scope .cb-ol-painel { min-width: 0; padding: 18px 18px 20px; }
  .clientes-b-scope .cb-ol-quote { font-size: 22px; }
  .clientes-b-scope .cb-ol-corpo { gap: 14px; }
  .clientes-b-scope .cb-ol-enxerga p { font-size: 14px; }
  .clientes-b-scope .cb-ol-rodape { flex-direction: column; align-items: flex-start; gap: 14px; }
  .clientes-b-scope .cb-ol-ler { width: 100%; justify-content: center; box-sizing: border-box; }
}

@media (prefers-reduced-motion: reduce) {
  .clientes-b-scope .cb-ol-item,
  .clientes-b-scope .cb-ol-img,
  .clientes-b-scope .cb-ol-item::before,
  .clientes-b-scope .cb-ol-painel,
  .clientes-b-scope .cb-ol-item[data-ativo="true"] .cb-ol-painel { transition: none !important; }
  .clientes-b-scope .cb-ol-img { transform: none; }
}
