/**
 * Components - Buttons and Links
 * Extracted from Figma InDoctors design system
 */

/**
 * Navigation Link
 */
.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  color: var(--white);
  letter-spacing: 0.08px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
  border-color: var(--grey-80);
}

/**
 * Button Primary
 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background-color: var(--primary);
  border: none;
  border-radius: 32px;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  line-height: 1.2;
  color: var(--grey-10);
  letter-spacing: 0.08px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181, 242, 199, 0.3);
  text-decoration: none;
  color: var(--grey-10);
}

.btn-primary:active {
  transform: translateY(0);
}

/**
 * Button CTA Nav
 */
.btn-cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 2px 18px 2px 2px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 32px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.btn-cta-nav:hover {
  background-color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.btn-cta-nav-icon {
  position: relative;
  width: 104px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--grey-10);
  border-radius: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Ícone que cresce e preenche o círculo de verde */
.btn-cta-nav-play-bg {
  position: absolute;
  color: var(--white);
  transition: transform 0.35s ease, color 0.35s ease;
  transform-origin: center;
}

.btn-cta-nav:hover .btn-cta-nav-play-bg {
  color: var(--primary);
  transform: scale(22);
}

/* Ícone estático preto que aparece no hover */
.btn-cta-nav-play-fg {
  position: absolute;
  color: transparent;
  z-index: 2;
  transition: color 0.15s ease 0.1s;
}

.btn-cta-nav:hover .btn-cta-nav-play-fg {
  color: var(--grey-10);
}

.btn-cta-nav-text {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-regular);
  color: var(--white);
  letter-spacing: 0.08px;
  white-space: nowrap;
  text-transform: capitalize;
}

/**
 * Button Outline Buy
 */
.btn-outline-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 2px solid var(--grey-90);
  border-radius: 32px;
  background-color: transparent;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  color: var(--grey-10);
  letter-spacing: 0.09px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline-buy:hover {
  transform: translateY(-2px);
  color: var(--white);
  background-color: var(--grey-10);
  border-color: var(--grey-10);
  text-decoration: none;
}

/**
 * Link Contact
 */
.link-contato {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.link-contato-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--grey-10);
}

.link-contato-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--grey-100);
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  color: var(--grey-10);
  letter-spacing: 0.11px;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.link-contato:hover .link-contato-text {
  border-bottom-color: var(--grey-10);
}

/**
 * Link (Generic)
 */
.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  border-bottom: 2px solid;
  background-color: transparent;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.09px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

/* Link Light variant (on dark backgrounds) */
.link-light {
  color: var(--white);
  border-color: var(--grey-50);
}

.link-light:hover {
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

/* Link Dark variant (on light backgrounds) */
.link-dark {
  color: var(--grey-10);
  border-color: var(--grey-100);
}

.link-dark:hover {
  border-color: var(--grey-10);
  color: var(--grey-10);
  text-decoration: none;
}

/**
 * Utility: Link with icon
 */
.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/**
 * Botões de compra — variante curso (full-width, texto text-lg)
 */
.btn-compra-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 32px;
  color: var(--grey-10);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-compra-primary:hover {
  background-color: var(--primary-100);
  border-color: var(--primary-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181, 242, 199, 0.3);
  color: var(--grey-10);
  text-decoration: none;
}

.btn-compra-primary:active {
  transform: translateY(0);
}

.btn-compra-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background-color: transparent;
  border: 2px solid var(--grey-90);
  border-radius: 32px;
  color: var(--grey-10);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-compra-outline:hover {
  background-color: var(--grey-10);
  border-color: var(--grey-10);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-compra-outline:active {
  transform: translateY(0);
}

/**
 * Card Curso
 */
.card-curso {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background-color: var(--white);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-curso:hover {
  transform: translateY(-6px);
}

/* Link invisível que cobre o card todo para área clicável */
.card-curso__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
}

.card-curso__image {
  aspect-ratio: 416 / 234;
  background-color: var(--grey-10);
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  transition: border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-curso:hover .card-curso__image {
  border-radius: 24px;
}

.card-curso__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background-color: var(--white);
  border-radius: 6px;
  color: var(--grey-10);
  letter-spacing: 0.08px;
  transition: border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  left: 16px;
  top: 16px;
}

.card-curso:hover .card-curso__discount {
  border-radius: 0;
}

.card-curso__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 12px 0;
  flex-shrink: 0;
  width: 100%;
}

.card-curso__title {
  color: var(--grey-10);
  letter-spacing: 0.17px;
  margin-bottom: 0;
}

.card-curso__desc {
  color: var(--grey-80);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.08px;
  margin-bottom: 0;
}

.card-curso__footer {
  padding: 24px 12px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.card-curso__footer .btn-outline-buy {
  width: 100%;
}


/* ── Pagination ──────────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 140px;
}

.pagination__items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination__item .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 48px;
  border-radius: 50px;
  border: 1px solid var(--grey-100);
  color: var(--grey-10);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

@media (max-width: 768px) {
  .pagination__item .page-numbers {
    width: 72px;
    height: 32px;
  }
}

.pagination__item .page-numbers.current {
  background-color: var(--grey-10);
  border-color: var(--grey-10);
  color: var(--white);
}

.pagination__item .page-numbers:hover:not(.current) {
  background-color: var(--grey-10);
  border-color: var(--grey-10);
  color: var(--white);
}

/* ── FAQ ─────────────────────────────────────────────────────── */

.faq__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.faq__title {
  color: var(--white);
  margin-bottom: 0;
}

.faq__list {
  width: 100%;
}

.faq-item {
  border-bottom: 2px dashed var(--grey-40);
}

.faq-item__header {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 32px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-item__question {
  flex: 1;
  color: var(--white);
  margin: 0;
}

.faq-item__icon {
  width: clamp(20px, 2.2vw, 32px);
  height: clamp(20px, 2.2vw, 32px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item__icon {
  color: var(--white);
}

.faq--light .faq-item__icon {
  color: var(--grey-10);
}

.faq-item__icon svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-item__icon svg {
  transform: rotate(90deg);
}

.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-item__body {
  grid-template-rows: 1fr;
}

.faq-item__body-inner {
  overflow: hidden;
}

.faq-item__answer {
  color: var(--white);
  margin: 0;
  padding-bottom: 32px;
}

/* Variante light — fundo branco, textos escuros */
.faq--light {
  background-color: var(--white);
  padding: 140px 0;
}

.faq--light .faq__title {
  color: var(--grey-10);
}

.faq--light .faq-item {
  border-color: var(--grey-100);
}

.faq--light .faq-item__question {
  color: var(--grey-10);
}

.faq--light .faq-item__answer {
  color: var(--grey-10);
}