/* ==========================================================================
   COMPONENTES — peças reutilizáveis, independentes da seção onde aparecem.
   ========================================================================== */

/* ---------- Títulos de seção ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  text-transform: uppercase;
}

.section-lead {
  font-size: 18px;
  color: var(--color-ink-soft);
}

.eyebrow--on-dark {
  color: var(--color-accent-on-dark);
}

.section-lead--on-dark {
  color: var(--color-on-dark-soft);
}

/* ---------- Ícone ---------- */
/* Ícones do Font Awesome (<i class="fa-... icon">) */
.icon {
  flex-shrink: 0;
  width: 1.2em;
  font-size: 1.25em;
  line-height: 1;
  text-align: center;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Brilho que atravessa o botão no hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn .icon {
  transition: transform 0.25s ease;
}

.btn:hover .icon {
  transform: rotate(-10deg) scale(1.12);
}

/* Pulso de atenção nos botões principais */
.btn--pulse {
  animation: pulse-whatsapp 2.4s ease-out infinite;
}

.btn--pulse-light {
  animation: pulse-light 2.4s ease-out infinite;
}

@keyframes pulse-whatsapp {
  0%   { box-shadow: 0 0 0 0 rgba(14, 122, 64, 0.6); }
  70%  { box-shadow: 0 0 0 16px rgba(14, 122, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 122, 64, 0); }
}

@keyframes pulse-light {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.btn--whatsapp,
.btn--whatsapp:hover {
  background: var(--color-whatsapp);
  color: var(--color-on-dark);
}

.btn--primary,
.btn--primary:hover {
  background: var(--color-brand);
  color: var(--color-on-dark);
}

.btn--primary {
  min-height: 54px;
  padding-inline: 26px;
  font-size: 17px;
}

.btn--light,
.btn--light:hover {
  background: var(--color-surface);
  color: var(--color-whatsapp-text);
}

.btn--light::after {
  background: linear-gradient(110deg, transparent 30%, rgba(14, 122, 64, 0.12) 50%, transparent 70%);
}

.btn--lg {
  min-height: 58px;
  padding: 10px 28px;
  font-size: 18px;
}

.btn--xl {
  min-height: 64px;
  padding: 10px 34px;
  font-size: clamp(18px, 2.4vw, 21px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

/* ---------- Selo e etiqueta ---------- */
.badge {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-brand);
  color: var(--color-on-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-tint);
  color: var(--color-brand-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Lista com checks ---------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 500;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-list .icon {
  color: var(--color-check);
}

/* ---------- Número de destaque ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 56px);
  line-height: 1;
}

.stat__label {
  font-size: 16px;
  font-weight: 500;
}

/* ---------- Cartão de curso ---------- */
.course-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 22px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand);
  box-shadow: 0 10px 24px rgba(26, 20, 19, 0.1);
  color: var(--color-ink);
}

.course-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.course-card__text {
  flex-grow: 1;
  font-size: 15.5px;
  color: var(--color-ink-soft);
}

.course-card__cta {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-whatsapp-text);
}

/* ---------- Cartão de foto ---------- */
.photo-card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.photo-card__img--top { object-position: center 30%; }
.photo-card__img--bottom { object-position: center 70%; }

.photo-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px 18px;
}

.photo-card figcaption strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
}

.photo-card figcaption span {
  font-size: 15.5px;
  color: var(--color-ink-soft);
}

/* ---------- Chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.chip-row__label {
  font-size: 16px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 14px;
  border: 1px solid #DDD5D1;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Passo a passo ---------- */
.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 4px solid var(--color-brand);
}

.step__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 60px;
  line-height: 0.9;
  color: var(--color-brand);
}

.step__title {
  font-size: 21px;
  font-weight: 700;
}

.step__text {
  color: var(--color-ink-soft);
}

/* ---------- Perguntas frequentes (details/summary nativo) ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  padding-inline: 22px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 64px;
  padding-block: 12px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 28px;
  line-height: 1;
  color: var(--color-brand);
  transition: transform 0.15s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding-bottom: 22px;
  color: var(--color-ink-soft);
}

/* ---------- Números do corpo docente ---------- */
.proof-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border: 1px solid var(--color-line-on-dark);
  border-radius: var(--radius-lg);
  color: var(--color-on-dark-soft);
}

.proof-strip__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--color-accent-on-dark);
}

/* ---------- Cartão de professor ---------- */
/* .teacher-card inclina (3D), .teacher-card__inner gira (frente/verso) */
.teacher-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-scale: 1;
  --card-radius: 14px;
  position: relative;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  touch-action: pan-x pan-y;
  -webkit-tap-highlight-color: transparent;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(var(--tilt-scale));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.teacher-card.is-tilting {
  --tilt-scale: 1.02;
  transition: transform 0.15s ease-out;
}

.teacher-card.is-pressed {
  --tilt-scale: 0.985;
}

.teacher-card__inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.25, 1);
}

.teacher-card.is-flipped .teacher-card__inner {
  transform: rotateY(180deg);
}

.teacher-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--color-dark-raised);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow:
    inset 0 0 0 1px var(--color-line-on-dark),
    0 10px 30px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.5s ease;
}

/* Luz vermelha suave: brilho na borda e de baixo para cima */
.teacher-card__face::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(120% 60% at 50% 115%, rgba(181, 18, 27, 0.45), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 138, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.teacher-card:hover .teacher-card__face,
.teacher-card.is-tilting .teacher-card__face {
  box-shadow:
    inset 0 0 0 1px var(--color-line-on-dark),
    0 18px 44px rgba(181, 18, 27, 0.22);
}

.teacher-card:hover .teacher-card__face::after,
.teacher-card.is-tilting .teacher-card__face::after,
.teacher-card:focus-within .teacher-card__face::after {
  opacity: 1;
}

/* Frente */
.teacher-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.teacher-card:hover .teacher-card__photo,
.teacher-card.is-tilting .teacher-card__photo {
  transform: scale(1.04);
}

.teacher-card__front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(14, 10, 9, 0.95) 0%, rgba(14, 10, 9, 0.6) 26%, rgba(14, 10, 9, 0) 52%);
  pointer-events: none;
}

.teacher-card__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px 20px;
}

.teacher-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--color-on-dark);
  text-wrap: balance;
}

.teacher-card__name::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.teacher-card:hover .teacher-card__name::before,
.teacher-card.is-tilting .teacher-card__name::before {
  width: 56px;
}

/* Verso */
.teacher-card__back {
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 22px 20px;
  background:
    radial-gradient(140% 70% at 100% 0%, rgba(181, 18, 27, 0.28), transparent 60%),
    linear-gradient(165deg, var(--color-dark-raised) 0%, var(--color-darker) 100%);
  transform: rotateY(180deg);
}

.teacher-card__back-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line-on-dark);
}

.teacher-card__avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 0 0 2px var(--color-dark), 0 0 0 4px var(--color-brand);
}

.teacher-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-on-dark);
}

.teacher-card__back-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  color: var(--color-on-dark);
}

.teacher-card__bio {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.teacher-card__bio p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-on-dark-soft);
}

/* Botão: texto + círculo com ícone */
.teacher-card__action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-on-dark);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.teacher-card__action-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-brand);
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(181, 18, 27, 0.4);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

.teacher-card__action:hover .teacher-card__action-icon,
.teacher-card:hover .teacher-card__front .teacher-card__action-icon {
  transform: translateX(4px);
}

.teacher-card__action--back {
  flex-direction: row-reverse;
}

.teacher-card__action--back .teacher-card__action-icon {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.teacher-card__action--back:hover .teacher-card__action-icon {
  transform: rotate(-90deg);
  background: var(--color-brand);
  box-shadow: none;
}

.teacher-card__action:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: var(--radius-pill);
}

@media (max-width: 640px) {
  .teacher-card__name {
    font-size: 27px;
  }

  .teacher-card__back {
    gap: 14px;
    padding: 20px 18px 16px;
  }

  .teacher-card__bio p {
    font-size: 14px;
  }
}

/* ---------- Painel de chamada (dentro de seção) ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md) 40px;
  padding: 40px clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--color-brand);
  color: var(--color-on-dark);
}

.cta-panel__chevron {
  position: absolute;
  top: 0;
  right: 22%;
  width: 180px;
  height: 100%;
  background: var(--color-brand-dark);
  clip-path: polygon(62% 0, 100% 0, 38% 50%, 100% 100%, 62% 100%, 0 50%);
}

.cta-panel__text,
.cta-panel .btn {
  position: relative;
}

.cta-panel__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 360px;
  min-width: 0;
  font-size: 18px;
}

.cta-panel__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  text-transform: uppercase;
}
