/* ==========================================================================
   SPTECH — Liderança pedagógica
   Depende de styles.css e course.css (hero, breadcrumb, facts).
   ========================================================================== */

.team-photo { position: relative; width: 100%; }
.team-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px 46% 24px 24px; box-shadow: var(--shadow); }
.team-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -6%; bottom: -8%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 0 100% 0 0;
  background: var(--yellow);
}
.team-photo::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5%; top: -7%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal);
}

/* Princípios */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 5vw, 48px); }
.principle {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.principle__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px 16px 16px 4px; background: var(--c); color: #fff; }
.principle__ico svg { width: 26px; height: 26px; }
.principle h3 { margin-top: 18px; font-family: var(--font-display); font-size: 1.2rem; }
.principle p { margin-top: 8px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }

/* Depoimentos */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.voice {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.voice:nth-child(2) { background: var(--navy); color: rgba(255, 255, 255, 0.75); }
.voice blockquote {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.voice blockquote::before { content: "“"; display: block; height: 0.55em; color: var(--pink); font-size: 3em; line-height: 1; }
.voice:nth-child(2) blockquote { color: #fff; }
.voice:nth-child(2) blockquote::before { color: var(--yellow); }
.voice figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; font-size: 0.92rem; }
.voice figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.voice figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); }
.voice:nth-child(2) figcaption strong { color: #fff; }
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } }

.statement { position: relative; margin-top: 16px; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); }
.statement img { display: block; width: 100%; height: auto; min-height: 260px; max-height: 460px; object-fit: cover; opacity: 0.6; }
.statement p {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(22px, 4vw, 40px);
  background: linear-gradient(0deg, rgba(20, 28, 47, 0.92), transparent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.statement p span { color: var(--yellow); }

/* Diretório de professores */
.dir-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.dir-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.dir-filters button b { padding: 1px 7px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 0.78rem; }
.dir-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.dir-filters button[aria-pressed="true"] b { background: rgba(255, 255, 255, 0.15); color: #fff; }

.people-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.people-dir li[hidden] { display: none; }
.pcard {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}
.pcard__photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 22px 22px 22px 4px; background: var(--bg-soft); }
.pcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.pcard__more {
  position: absolute;
  right: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.25s var(--ease);
}
.pcard__more svg { width: 14px; height: 14px; }
button.pcard:hover .pcard__photo img, button.pcard:focus-visible .pcard__photo img { transform: scale(1.05); }
button.pcard:hover .pcard__more, button.pcard:focus-visible .pcard__more { opacity: 1; transform: none; }
.pcard strong { display: block; margin-top: 12px; color: var(--ink); font-family: var(--font-display); font-size: 1rem; line-height: 1.25; }
.pcard span.role { display: block; margin-top: 4px; color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
@media (hover: none) { .pcard__more { opacity: 1; transform: none; } }
@media (max-width: 520px) { .people-dir { grid-template-columns: 1fr 1fr; gap: 14px; } }

/* Painel de biografia */
.bio-dialog {
  width: min(880px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(20, 28, 47, 0.6);
}
.bio-dialog::backdrop { background: rgba(20, 28, 47, 0.55); backdrop-filter: blur(4px); }
.bio-dialog[open] { animation: pop 0.3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.bio { display: grid; grid-template-columns: 300px 1fr; }
.bio__photo { position: relative; background: var(--bg-soft); }
.bio__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.bio__body { position: relative; padding: clamp(28px, 4vw, 40px); overflow-y: auto; max-height: calc(100dvh - 48px); }
.bio__body h2 { padding-right: 40px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; }
.bio__role { margin-top: 8px; color: var(--pink); font-weight: 700; }
.bio__text { display: grid; gap: 12px; margin-top: 18px; font-size: 1rem; line-height: 1.65; }
.bio__close {
  position: absolute;
  right: 16px; top: 16px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
}
.bio__close svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .bio { grid-template-columns: 1fr; }
  .bio__photo img { min-height: 0; height: 260px; object-position: center 22%; }
  .bio__body { max-height: none; }
  .bio-dialog { overflow-y: auto; }
}
