:root {
  --cor-principal: #5c2e65;
  --cor-secundaria: #f9dcff;
  --cor-terciaria: #a0d6c1;
  --cor-texto: #2b2330;
  --cor-fundo: #ffffff;
  --altura-topo: 5rem;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--cor-texto);
  background-color: var(--cor-fundo);
  line-height: 1.6;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--cor-principal)
}

a {
  text-decoration: none;
}

section {
  padding: 5rem max(1.5rem, calc((100% - 1100px) / 2));
  scroll-margin-top: var(--altura-topo)
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* ========== TOPO (MENU FIXO) ========== */

.topo {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--altura-topo);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  background: var(--cor-principal);
}

.logo img {
  width: clamp(2.5rem, 8vw, 4rem);
  height: clamp(2.5rem, 8vw, 4rem);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.topo nav {
  display: flex;
  gap: 1.5rem;
}

.topo nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.topo nav a:hover {
  color: var(--cor-terciaria);
}

/* ========== HERO (primeira dobra) ========== */
.hero {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: calc(100vh - var(--altura-topo));
  min-height: calc(100svh - var(--altura-topo));
  /* corrige a altura em celulares */

  background-color: var(--cor-principal);
  /* aparece se a imagem demorar ou falhar */
  background-image:
    linear-gradient(rgba(92, 46, 101, 0.6), rgba(92, 46, 101, 0.6)),
    url("../assets/studio-geral.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero p {
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  max-width: 460px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Botão do hero em verde, para contrastar com o fundo roxo */
.hero .botao {
  background: #fff;
  color: var(--cor-principal);
}

.hero .botao:hover {
  background: var(--cor-terciaria);
  color: var(--cor-principal);
}

/* ========== BOTÃO ========== */
.botao {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--cor-principal);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s;
}


.botao:hover {
  background: #47224e;
  transform: translateY(2px);
}

/* ========== SOBRE NÓS ========== */
#sobre {
  background: #fff;
  overflow-x: clip;
  /* evita barra de rolagem lateral durante as animações */
}

.destaque {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.destaque.invertido .destaque-imagem {
  order: 2;
  /* foto passa para a direita no computador */
}

.destaque-imagem {
  margin: 0;
  min-height: 340px;
  overflow: hidden;
  background: var(--cor-terciaria);
  /* aparece enquanto a foto não existe */
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(92, 46, 101, 0.18);
}

.destaque-imagem img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.destaque-frase {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cor-principal);
}

/* Marca-texto verde sob as palavras de destaque */
.destaque-frase mark {
  padding: 0 0.1em;
  color: inherit;
  background: linear-gradient(transparent 60%, var(--cor-terciaria) 60%);
}

.sobre-textos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.sobre-bloco {
  padding: 2rem;
  background: var(--cor-secundaria);
  border-radius: 20px;
  border-bottom: 5px solid var(--cor-terciaria);
}

.sobre-bloco h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

/* ========== ANIMAÇÃO AO ROLAR ========== */
/* Só esconde os elementos se o JavaScript estiver ativo (classe .js) */
.js .revelar {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .revelar-esquerda {
  transform: translateX(-60px);
}

.js .revelar-direita {
  transform: translateX(60px);
}

.js .revelar-cima {
  transform: translateY(40px);
}

.js .revelar.atraso {
  transition-delay: 0.2s;
}

.js .revelar.visivel {
  opacity: 1;
  transform: none;
}

/* Respeita quem desativa animações no sistema */
@media (prefers-reduced-motion: reduce) {
  .js .revelar {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== HORÁRIOS ========== */
#horarios {
  background: #faf5fb;
}

.tabela-container {
  overflow-x: auto;
  /* permite rolar a tabela no celular */
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(92, 46, 101, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 480px;
}

th,
td {
  padding: 1rem 1.25rem;
  text-align: left;
}

thead th {
  background: var(--cor-principal);
  color: #fff;
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: #faf5fb;
}

tbody th {
  color: var(--cor-principal);
}

.grade-horarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.grade-horarios h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.grade-horarios small {
  font-weight: 400;
  color: var(--cor-texto);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.chips li {
  padding: 0.4rem 1rem;
  background: var(--cor-terciaria);
  color: var(--cor-principal);
  font-weight: 600;
  border-radius: 999px;
}

/* Texto visível só para leitores de tela e Google */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ========== BENEFÍCIOS (ESTUDOS) ========== */
#beneficios {
  background: #fff;
}

.estudos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.estudo {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.75rem;
  background: #fff;
  border: 2px solid var(--cor-secundaria);
  border-radius: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.estudo:hover {
  border-color: var(--cor-terciaria);
  box-shadow: 0 10px 24px rgba(92, 46, 101, 0.12);
}

.estudo-numero {
  align-self: flex-start;
  padding: 0.6rem 1.1rem;
  background: var(--cor-principal);
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  border-radius: 14px;
}

.estudo-numero small {
  font-weight: 400;
  color: var(--cor-terciaria);
}

.estudo h3 {
  font-size: 1.15rem;
}

.ressalva {
  padding: 0.75rem 1rem;
  background: var(--cor-secundaria);
  border-left: 4px solid var(--cor-principal);
  border-radius: 8px;
  font-size: 0.88rem;
}

.referencia {
  margin-top: auto;
  /* empurra a fonte para o final do cartão */
  font-size: 0.82rem;
  color: #5b5062;
}

.referencia a {
  display: inline-block;
  margin-left: 0.25rem;
  color: var(--cor-principal);
  font-weight: 600;
  text-decoration: underline;
}

.aviso {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: #5b5062;
}

/* ========== PLACEHOLDER DE IMAGEM ========== */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: var(--cor-terciaria);
  color: var(--cor-principal);
  font-weight: 500;
}


/* ========== RODAPÉ ========== */
footer {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--cor-principal);
  color: #fff;
  font-size: 0.9rem;
}

/* ========== BOTÃO HAMBÚRGUER (escondido no desktop) ========== */
.botao-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.botao-menu span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ========== CONTATO ========== */
#contato {
  background: #faf5fb;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contato-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  background: var(--cor-secundaria);
  border-radius: 20px;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  list-style: none;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(92, 46, 101, 0.1);
}

.contato-info a {
  color: var(--cor-texto);
  transition: color 0.4s;
}

.contato-info a:hover {
  color: var(--cor-terciaria)
}

.contato-info strong {
  display: block;
  color: var(--cor-principal);
}

/* ========== WHATSAPP FLUTUANTE ========== */
.whatsapp-flutuante {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.whatsapp-flutuante:hover {
  transform: scale(1.1);
}

.whatsapp-flutuante svg {
  width: 34px;
  height: 34px;
}

/* ========== RESPONSIVO (celulares e tablets) ========== */
@media (max-width: 800px) {
  .destaque {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .destaque.invertido .destaque-imagem {
    order: 0;
    /* no celular a foto fica sempre em cima */
  }

  .destaque-imagem,
  .destaque-imagem img {
    min-height: 240px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
  }

  .estudos {
    grid-template-columns: 1fr;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-imagem {
    height: 260px;
  }

  .topo nav {
    gap: 0.9rem;
  }

  .topo nav a {
    font-size: 0.8rem;
  }

  .contato-grid {
    grid-template-columns: 1fr;
  }
}