/* ================================================
   MELHORIAS v2.1 - Dra. Luísa Bastos
   ================================================ */

/* ================================================
   HERO — Botões de mesmo tamanho
   ================================================ */
.hero-botoes .btn {
  flex: 1 1 auto;
  justify-content: center;
  max-width: 280px;
}

/* ================================================
   SEÇÃO STATS (Números)
   ================================================ */
.stats-section {
  background: var(--gradiente-primario, linear-gradient(135deg, #a67b69, #8b6355));
  padding: 3rem 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.stat-numero-wrapper {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.15rem;
  line-height: 1;
}

.stat-numero {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.stat-sufixo {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.9;
  line-height: 1;
}

.stat-label {
  font-family: "Lato", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .stat-numero {
    font-size: 2.2rem;
  }

  .stat-sufixo {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: 2rem 0;
  }

  .stat-numero {
    font-size: 1.8rem;
  }
}

/* ================================================
   SEÇÃO CURSOS
   ================================================ */
.cursos-section {
  padding: 5rem 0;
  background: var(--cor-fundo, #f9f5f2);
}

.cursos-section h2 {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cor-texto, #4e423d);
  margin-bottom: 0.75rem;
}

.cursos-subtitulo {
  text-align: center;
  color: var(--cor-cinza-escuro, #666);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Card do curso */
.curso-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--cor-primaria, #a67b69);
}

.curso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(166, 123, 105, 0.18);
}

.curso-icone {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--cor-primaria, #a67b69), #8b6355);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.curso-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: "Lato", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.curso-badge--presencial {
  background: rgba(166, 123, 105, 0.12);
  color: #8b6355;
}

.curso-badge--online {
  background: rgba(41, 128, 185, 0.12);
  color: #2471a3;
}

.curso-titulo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cor-texto, #4e423d);
  line-height: 1.3;
  margin: 0;
}

.curso-descricao {
  font-family: "Lato", sans-serif;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--cor-cinza-escuro, #666);
  flex-grow: 1;
  margin: 0;
}

.curso-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  width: 100%;
}

.curso-meta span {
  font-family: "Lato", sans-serif;
  font-size: 0.82rem;
  color: var(--cor-primaria, #a67b69);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-lista-espera,
.btn-inscricao {
  margin-top: 0.5rem;
  width: 100%;
  background: var(--gradiente-primario, linear-gradient(135deg, #a67b69, #8b6355));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-lista-espera:hover,
.btn-inscricao:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-lista-espera:focus-visible,
.btn-inscricao:focus-visible {
  outline: 3px solid var(--cor-destaque, #ff7f32);
  outline-offset: 2px;
}

/* ================================================
   MODAL LISTA DE ESPERA
   ================================================ */
.modal-espera {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-espera[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.modal-conteudo {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  animation: modalEntrar 0.3s ease;
}

@keyframes modalEntrar {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-fechar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--cor-cinza-escuro, #999);
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.modal-fechar:hover { color: var(--cor-texto, #4e423d); }

.modal-icone {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--cor-primaria, #a67b69), #8b6355);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.modal-conteudo h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cor-texto, #4e423d);
  margin: 0;
}

.modal-curso-nome {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cor-primaria, #a67b69);
  margin: 0;
}

.modal-info {
  font-family: "Lato", sans-serif;
  font-size: 0.9rem;
  color: var(--cor-cinza-escuro, #777);
  margin: 0 0 0.5rem;
}

.modal-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-campo input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #e0d5d0;
  border-radius: 8px;
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  color: var(--cor-texto, #4e423d);
  background: #faf7f5;
  transition: border-color 0.2s ease;
  outline: none;
}

.modal-campo input:focus {
  border-color: var(--cor-primaria, #a67b69);
  background: #fff;
}

.btn-modal-enviar {
  width: 100%;
  background: linear-gradient(135deg, var(--cor-destaque, #ff7f32), #e66a28);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-modal-enviar:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Responsivo cursos */
@media (max-width: 900px) {
  .cursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cursos-section {
    padding: 3.5rem 0;
  }

  .cursos-grid {
    grid-template-columns: 1fr;
  }

  .modal-conteudo {
    padding: 2rem 1.5rem;
  }
}

/* ================================================
   BOTÃO SCROLL TO TOP
   ================================================ */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--cor-primaria, #a67b69);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(166, 123, 105, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 999;
  pointer-events: none;
}

.scroll-to-top.visivel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: var(--cor-destaque, #ff7f32);
  transform: translateY(-3px);
}

.scroll-to-top:focus-visible {
  outline: 3px solid var(--cor-destaque, #ff7f32);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 90px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ================================================
   SEÇÃO CONTATO — REDESIGN
   ================================================ */

/* Fundo bege da seção, alinhado com o restante da página */
.contato {
  background: var(--cor-fundo, #f9f5f2) !important;
  padding: 5rem 0;
}

/* Título com barra decorativa abaixo */
.contato h2 {
  position: relative;
  display: block;
  text-align: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.contato h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: var(--cor-destaque, #ff7f32);
  border-radius: 2px;
}

/* Subtítulo */
.contato > .container > p {
  text-align: center;
  margin-bottom: 3rem !important;
  font-size: 1rem;
}

/* Card do formulário — branco com borda superior e sombra refinada */
.contato-form {
  background: #fff !important;
  border-top: 4px solid var(--cor-primaria, #a67b69) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
  padding: 2.25rem 2rem !important;
}

/* Labels mais elegantes */
.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cor-primaria, #a67b69) !important;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Campos com fundo levemente bege e foco com borda lateral laranja */
.form-group input,
.form-group textarea,
.form-group select {
  background: #faf7f5 !important;
  border: 1.5px solid #e0d5d0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.97rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: #fff !important;
  border-color: var(--cor-primaria, #a67b69) !important;
  box-shadow: 0 0 0 3px rgba(166, 123, 105, 0.12) !important;
}

/* Sidebar de contato direto — gradiente que combina com a paleta */
.contato-info {
  background: linear-gradient(160deg, #a67b69, #8b6355) !important;
  border-radius: 16px !important;
  padding: 2rem 1.75rem !important;
  box-shadow: 0 6px 28px rgba(139, 99, 85, 0.3) !important;
  color: #fff;
}

.contato-info h3 {
  color: #fff !important;
  font-size: 1.15rem;
  margin-bottom: 1.75rem !important;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* Remove o fundo branco e borda arredondada que styles.css coloca no item */
.contato-item {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0.85rem 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contato-item:last-child {
  border-bottom: none;
  margin-bottom: 0 !important;
}

.contato-item i {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.1rem;
  margin-top: 2px;
}

.contato-item strong {
  color: #fff !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contato-item a {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contato-item a:hover {
  color: #fff !important;
}

/* ================================================
   SEÇÃO SOBRE — FORMAS GEOMÉTRICAS ANIMADAS
   ================================================ */

/* A section precisa de position relative para conter as shapes */
.sobre {
  position: relative;
  overflow: hidden;
}

/* Container das formas — cobre toda a section, sem interferir nos cliques */
.sobre-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Garante que o conteúdo fica acima das formas */
.sobre .container {
  position: relative;
  z-index: 1;
}

/* Base de todas as formas */
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.13;
  transform: translateZ(0); /* promove para layer GPU sem overhead do will-change */
}

/* Forma 1 — círculo grande, canto superior esquerdo */
.shape-1 {
  width: 420px;
  height: 420px;
  background: #6b4a3c;
  top: -120px;
  left: -100px;
  animation: flutuar1 22s ease-in-out infinite;
}

/* Forma 2 — círculo médio, canto inferior direito */
.shape-2 {
  width: 300px;
  height: 300px;
  background: #c9a090;
  bottom: -80px;
  right: -60px;
  opacity: 0.15;
  animation: flutuar2 18s ease-in-out infinite;
}

/* Forma 3 — círculo pequeno, centro direita */
.shape-3 {
  width: 180px;
  height: 180px;
  background: #fff;
  top: 40%;
  right: 8%;
  opacity: 0.07;
  animation: flutuar3 25s ease-in-out infinite;
}

/* Forma 4 — elipse horizontal, meio inferior */
.shape-4 {
  width: 260px;
  height: 140px;
  background: #6b4a3c;
  bottom: 10%;
  left: 30%;
  opacity: 0.10;
  animation: flutuar4 20s ease-in-out infinite;
}

/* Forma 5 — círculo pequeno, topo centro */
.shape-5 {
  width: 120px;
  height: 120px;
  background: #c9a090;
  top: 15%;
  left: 42%;
  opacity: 0.10;
  animation: flutuar1 28s ease-in-out infinite reverse;
}

/* Keyframes — apenas translate, 100% compositor (zero layout/paint) */
@keyframes flutuar1 {
  0%   { transform: translate3d(0px,    0px,  0); }
  25%  { transform: translate3d(18px,  -22px, 0); }
  50%  { transform: translate3d(8px,    30px, 0); }
  75%  { transform: translate3d(-20px,  12px, 0); }
  100% { transform: translate3d(0px,    0px,  0); }
}

@keyframes flutuar2 {
  0%   { transform: translate3d(0px,   0px,  0); }
  30%  { transform: translate3d(-24px, 16px, 0); }
  60%  { transform: translate3d(14px, -20px, 0); }
  100% { transform: translate3d(0px,   0px,  0); }
}

@keyframes flutuar3 {
  0%   { transform: translate3d(0px,   0px,  0); }
  33%  { transform: translate3d(-16px, 20px, 0); }
  66%  { transform: translate3d(22px, -14px, 0); }
  100% { transform: translate3d(0px,   0px,  0); }
}

@keyframes flutuar4 {
  0%   { transform: translate3d(0px,   0px,  0); }
  40%  { transform: translate3d(20px,  14px, 0); }
  80%  { transform: translate3d(-12px,-18px, 0); }
  100% { transform: translate3d(0px,   0px,  0); }
}

/* Reduz movimento em dispositivos que preferem menos animação */
@media (prefers-reduced-motion: reduce) {
  .shape { animation: none; }
}

/* ================================================
   ANIMAÇÃO DOS NÚMEROS (Stats Counter)
   ================================================ */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-item.animado .stat-numero {
  animation: countUp 0.5s ease forwards;
}
