/* ===========================================================================
   Elaine Loureiro — folha de estilo única do site.
   Organizada em blocos: 1) variáveis  2) base  3) cabeçalho  4) componentes
   5) seções  6) rodapé  7) responsivo (media queries no fim do arquivo).
   =========================================================================== */

/* --- 1. VARIÁVEIS ---------------------------------------------------------
   Mude as cores AQUI e o site inteiro acompanha.                            */
:root {
  --cor-creme: #f8f3ec;        /* fundo do cabeçalho e das faixas claras */
  --cor-fundo: #fffdfa;        /* fundo geral da página */
  --cor-texto: #1b1b1b;
  --cor-texto-suave: #4a4744;
  --cor-titulo: #a7a6a5;       /* cinza dos títulos de seção */
  --cor-destaque: #f1e4d0;     /* bege dos botões */
  --cor-destaque-forte: #f5d8ad;
  --cor-borda: #d9d2c7;

  --fonte-titulo: "Playfair Display", Georgia, serif;
  --fonte-texto: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --largura-max: 900px;        /* largura do conteúdo de texto */
  --largura-max-larga: 1200px; /* largura da galeria / grades */
  --altura-cabecalho: 72px;
}

/* --- 2. BASE -------------------------------------------------------------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.sem-rolagem { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Título de seção (o cinza sublinhado, como "Sobre mim"). */
.titulo-secao {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.15;
  color: var(--cor-titulo);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;
  margin-bottom: 1.5rem;
}

.texto { text-align: justify; color: var(--cor-texto-suave); margin-bottom: 1.5rem; }

/* Faixa: usada para dar respiro entre as seções. */
.faixa { padding: 4rem 1.25rem; }
.faixa--creme { background-color: var(--cor-creme); }
.faixa__interno { width: 100%; max-width: var(--largura-max); margin: 0 auto; }
.faixa__interno--largo { max-width: var(--largura-max-larga); }

/* Linha divisória fina entre seções. */
.divisor {
  width: 80%;
  height: 1px;
  margin: 0 auto;
  border: 0;
  background-color: var(--cor-borda);
}

/* --- 3. CABEÇALHO --------------------------------------------------------- */
.cabecalho {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  height: var(--altura-cabecalho);
  display: flex;
  align-items: center;
  background-color: var(--cor-creme);
  border-bottom: 1px solid var(--cor-borda);
}

.cabecalho__nav { width: 100%; }

.cabecalho__lista {
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  width: 100%;
  padding: 0 1rem;
}

.cabecalho__lista a {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #171718;
  padding: 0.5rem 0;
  transition: 0.3s;
}

.cabecalho__lista a:hover,
.cabecalho__lista a.ativo { font-weight: 600; }

/* Botão hambúrguer (aparece só no celular). */
.cabecalho__botao {
  display: none;
  width: 50px;
  height: 50px;
  margin-left: auto;
  margin-right: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 30;
}

.cabecalho__botao span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px auto;
  background-color: #171718;
  transition: 0.25s;
}

/* Com o menu aberto, o cabeçalho some e sobe acima do overlay,
   deixando só o "X" branco à mostra. */
body.menu-aberto .cabecalho {
  z-index: 30;
  background-color: transparent;
  border-bottom-color: transparent;
}

.cabecalho__botao.aberto span { background-color: #fff; }
.cabecalho__botao.aberto span:nth-child(1) { transform: translateY(8px) rotate(-45deg); }
.cabecalho__botao.aberto span:nth-child(2) { width: 0; }
.cabecalho__botao.aberto span:nth-child(3) { transform: translateY(-8px) rotate(45deg); }

/* Menu que cobre a tela no celular. */
.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 20;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: 0.4s;
}

.menu-mobile.aberto { height: 100vh; visibility: visible; }

.menu-mobile ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  list-style: none;
}

.menu-mobile a {
  display: block;
  width: 100%;
  padding: 1rem 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.25rem;
  color: #fff;
  transition: 0.3s;
}

.menu-mobile a:hover { font-size: 1.4rem; }

/* --- 4. COMPONENTES ------------------------------------------------------- */

/* Botão bege padrão (usado no corpo das páginas). */
.botao {
  display: inline-block;
  font-size: 1.125rem;
  text-align: center;
  color: var(--cor-texto);
  background: var(--cor-destaque);
  border: 1px solid rgba(37, 37, 37, 0.6);
  border-radius: 5px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 2rem;
  transition: 0.4s;
}

.botao:hover { background: var(--cor-destaque-forte); }
.botao--largo { display: block; width: 100%; }

/* Botão translúcido sobre a foto de capa. */
.botao--vidro {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0.9rem 3rem;
  font-size: 1.25rem;
}

.botao--vidro:hover { color: #242424; background: rgba(221, 220, 220, 0.7); }

/* Cartão simples com imagem + texto. */
.cartao {
  background: #fff;
  border: 1px solid var(--cor-borda);
  border-radius: 6px;
  overflow: hidden;
}

.cartao img { width: 100%; height: 220px; object-fit: cover; }
.cartao__corpo { padding: 1.25rem 1.5rem 1.75rem; }

.cartao__titulo {
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.cartao__corpo p { color: var(--cor-texto-suave); font-size: 0.95rem; text-align: justify; }

/* Grade genérica de colunas responsivas. */
.grade { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grade--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grade--2 { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }

@media (max-width: 520px) {
  .grade--2 { grid-template-columns: 1fr; }
}

/* --- 5. SEÇÕES ------------------------------------------------------------ */

/* 5.1 Capa (hero) com troca automática de fotos. */
.capa {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--altura-cabecalho));
  min-height: 460px;
  overflow: hidden;
}

.capa__slides { position: absolute; inset: 0; }

.capa__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.capa__slides img.ativo { opacity: 1; }

.capa__conteudo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  padding: 0 1rem;
  /* Escurece a foto para o texto branco ficar legível sobre qualquer imagem. */
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.4));
}

.capa__monograma { width: 90px; }

.capa__titulo {
  font-family: var(--fonte-titulo);
  font-weight: 400;
  font-size: clamp(2.25rem, 8vw, 4.4rem);
  letter-spacing: 2px;
  color: #f5f5f5;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.capa__seta {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 30px;
  color: #fff;
  transform: translateX(-50%);
  animation: pular 1.5s infinite ease-in-out;
}

@keyframes pular {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-10px); }
}

/* Cabeçalho menor das páginas internas (no lugar da capa). */
.capa-interna {
  padding: 3.5rem 1.25rem 2rem;
  text-align: center;
  background-color: var(--cor-creme);
  border-bottom: 1px solid var(--cor-borda);
}

.capa-interna .titulo-secao { margin-bottom: 0.5rem; }
.capa-interna p { color: var(--cor-texto-suave); max-width: 640px; margin: 0 auto; }

/* 5.2 Lista de diferenciais ("Foco no aluno:", etc.). */
.diferenciais { list-style: none; display: grid; gap: 1.5rem; margin: 2rem 0; }
.diferenciais strong { display: block; font-family: var(--fonte-titulo); font-size: 1.25rem; font-weight: 500; }
.diferenciais span { color: var(--cor-texto-suave); }

/* 5.3 Sobre: retrato ao lado do texto. */
.sobre-duplo { display: grid; gap: 2.5rem; grid-template-columns: 0.8fr 1.2fr; align-items: start; }
.sobre-duplo img { width: 100%; border-radius: 6px; }

/* 5.4 Depoimentos. */
.depoimento {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--cor-borda);
  border-radius: 6px;
  padding: 1.5rem;
}

.depoimento img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.depoimento__nome { font-family: var(--fonte-titulo); font-size: 1.25rem; margin-bottom: 0.35rem; }
.depoimento blockquote { color: var(--cor-texto-suave); font-style: italic; }

/* 5.5 Vídeos: mantém a proporção 16:9. */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; border: 1px solid var(--cor-borda); }
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  transition: 0.3s;
}

.video__play:hover { background: rgba(0, 0, 0, 0.4); }

/* 5.6 Galeria + lightbox. */
.galeria { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.galeria button { padding: 0; border: 0; background: none; cursor: pointer; }
.galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; transition: 0.4s; }
.galeria img:hover { transform: scale(1.03); opacity: 0.9; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox.aberto { display: flex; }
.lightbox img { max-width: 92vw; max-height: 85vh; object-fit: contain; }

.lightbox__fechar {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

/* --- 6. CONTATOS E RODAPÉ ------------------------------------------------- */
.contatos { text-align: center; }
.contatos address { font-style: normal; color: var(--cor-texto-suave); margin-bottom: 2rem; }

.contatos__links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; list-style: none; }
.contatos__links a { display: inline-block; border-bottom: 1px solid var(--cor-borda); padding-bottom: 2px; transition: 0.3s; }
.contatos__links a:hover { border-color: var(--cor-texto); }

.rodape {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--cor-texto-suave);
  background-color: var(--cor-creme);
  border-top: 1px solid var(--cor-borda);
}

/* --- 7. RESPONSIVO -------------------------------------------------------- */
@media (max-width: 820px) {
  .sobre-duplo { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .cabecalho__nav { display: none; }      /* esconde o menu horizontal */
  .cabecalho__botao { display: block; }   /* e mostra o hambúrguer */
  .cabecalho { justify-content: flex-end; }
  .faixa { padding: 3rem 1.25rem; }
  .texto { text-align: left; }
  .depoimento { flex-direction: column; }
}

/* Respeita quem prefere menos animação no sistema. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
