/* Fator Cursos - Estilos Customizados
   Paleta: pinho #266161 (marca) · terra #b86a44 (ação) · areia #f5f0e8 (fundos) · neutros stone.
   As classes utilitárias vêm do tailwind.css (gerado por _build/tailwind.fatorcursos.config.js). */

:root {
  --color-primary: #266161;        /* pinho-600 */
  --color-primary-dark: #1f4f4f;   /* pinho-700 */
  --color-secondary: #173d3d;      /* pinho-800 */
  --color-accent: #b86a44;         /* terra-500 */
  --color-accent-dark: #9f5737;    /* terra-600 */
  --color-sand: #f5f0e8;           /* areia-100 */
  --radius: 0.5rem;
}

/* Tipografia: Montserrat nos títulos, Inter no texto */
body {
  font-family: 'Inter', sans-serif;
}
h1, h2, h3, .font-display {
  font-family: 'Montserrat', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

/* Palavra em destaque no título (o Tríade usa gradiente; aqui é terracota sólido) */
.gradient-text {
  color: var(--color-accent);
}

/* Título de seção: barra curta terracota acima do texto */
.titulo-secao {
  position: relative;
  padding-top: 0.9rem;
}
.titulo-secao::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 4px;
  border-radius: 9999px;
  background: var(--color-accent);
}
.titulo-secao.centro::before {
  left: 50%;
  transform: translateX(-50%);
}

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animação de entrada imediata */
.animate-fade-in {
  animation: fadeInUp 0.55s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header nav: sublinhado terracota */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  border-radius: 9999px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--color-primary-dark);
}

/* Course card hover effect (leve: sobe 4px e a borda fica pinho) */
.course-card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  border-color: #abcfcb;
  box-shadow: 0 18px 34px -18px rgba(23, 61, 61, 0.35);
}
.course-card:hover .course-img {
  transform: scale(1.06);
}
.course-img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category card hover effect */
.category-card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: #abcfcb;
  box-shadow: 0 18px 34px -18px rgba(23, 61, 61, 0.35);
}
.category-card:hover .cat-icon {
  transform: scale(1.08);
}
.cat-icon {
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.category-card:hover .cat-bg-decoration {
  opacity: 0.2;
}
.cat-bg-decoration {
  transition: opacity 0.3s ease;
}

/* Career card hover */
.career-card {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.career-card:hover {
  border-color: #abcfcb;
  box-shadow: 0 10px 25px -5px rgba(23, 61, 61, 0.2);
}

/* FAQ accordion */
.faq-answer {
  display: none;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-chevron {
  transition: transform 0.2s ease;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* Accordion (conteúdo programático) */
.accordion-content {
  display: none;
  overflow: hidden;
}
.accordion-content.open {
  display: block;
}
.accordion-chevron {
  transition: transform 0.2s ease;
}
.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

/* Mobile search bar slide-in */
.mobile-search-bar {
  display: none;
}
.mobile-search-bar.open {
  display: block;
}

/* Desktop search expanded */
.desktop-search-expanded {
  display: none;
}
.desktop-search-expanded.open {
  display: block;
}

/* Mobile menu */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: block;
}

/* Checkout steps */
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Payment tabs */
.payment-tab-content {
  display: none;
}
.payment-tab-content.active {
  display: block;
}

/* Course player sidebar */
.lesson-item.active {
  background: rgba(38, 97, 97, 0.12);
  border-left: 3px solid var(--color-primary);
  color: var(--color-primary-dark);
}

/* Sticky CTA bar (curso.html) - mobile only */
#sticky-cta-bar {
  display: none;
}
@media (max-width: 1023px) {
  #sticky-cta-bar.visible {
    display: flex;
  }
}

/* Blog category pills */
.blog-cat-btn.active {
  background: var(--color-primary);
  color: white;
}

/* Blog article prose (substitui @tailwindcss/typography) */
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1917;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1c1917;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose p {
  margin-bottom: 1rem;
  line-height: 1.8;
}
.prose ul, .prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.prose a {
  color: var(--color-accent-dark);
  font-weight: 500;
  text-decoration: underline;
}
.prose a:hover { color: #7d472d; }
.prose strong { color: #1c1917; }
.prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #57534e;
  font-style: italic;
}

/* Declaration status badges */
.badge-paid {
  background: #d1fae5;
  color: #065f46;
}
.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

/* Animated placeholder cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.placeholder-cursor::after {
  content: '|';
  animation: blink 1s infinite;
  color: #a8a29e;
  margin-left: 1px;
}

/* Exam radio */
.exam-option.selected {
  background: #f0fdf4;
  border-color: #22c55e;
}
.exam-option.correct {
  background: #f0fdf4;
  border-color: #22c55e;
}
.exam-option.wrong {
  background: #fef2f2;
  border-color: #ef4444;
}

/* Blur circles hero */
.blur-circle {
  border-radius: 9999px;
  filter: blur(60px);
  position: absolute;
  pointer-events: none;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge / pill label consistent styling */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

/* Tabela de salário dos posts de carreira (blog_ia_carreira.php) */
.prose table.salario-carreira { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: 0.95rem; }
.prose table.salario-carreira th, .prose table.salario-carreira td { border: 1px solid #e7e5e4; padding: 0.6rem 0.9rem; text-align: left; }
.prose table.salario-carreira th { background: #eef5f4; color: #1f4f4f; font-weight: 600; }
.prose table.salario-carreira tr:nth-child(even) td { background: #fafaf9; }

/* O JS compartilhado (javascript/algolia-search.js e main.js) grava cores do Tríade inline (teal).
   Enquanto ele não usar as variáveis acima, estas regras recolorem só esses trechos. */
[style*="color:#14b8a6"] { color: var(--color-primary) !important; }
[style*="color:#0d9488"] { color: var(--color-primary-dark) !important; }
[style*="background:#f0fdfa"],
[style*="background: rgb(240, 253, 250)"] { background: #eef5f4 !important; }
[style*="background: rgb(204, 251, 241)"] { background: #d5e7e5 !important; }
[style*="#14b8a6 0%,#0d9488 100%"] { background: var(--color-accent) !important; }
[style*="#0d9488 0%,#0f766e 100%"] { background: var(--color-primary) !important; }
