/* Espaço Ana Souza — estilos do site. Cores e fontes da identidade da empresa (ver SITE.md). */

/* Fontes locais (licença OFL em fonts/) */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Great Vibes';
  src: url('../fonts/great-vibes.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tiradas da placa do Espaço */
  --roxo: #6c3499;
  --roxo-escuro: #4f2273;
  --roxo-claro: #f2ebf8;
  --laranja: #e5733f;
  --laranja-texto: #b04a17;
  --azul: #35b3c8;
  --rosa: #e9508c;
  --verde: #9bc53d;
  --amarelo: #f5c524;
  --whatsapp: #128c4a;
  --whatsapp-escuro: #0e6f3a;

  --cor-fundo: #fbf8f4;
  --cor-fundo-alt: var(--roxo-claro);
  --cor-texto: #2a2230;
  --cor-texto-2: #5d5466;

  --fonte-texto: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fonte-titulo: var(--fonte-texto);
  --fonte-marca: 'Great Vibes', 'Brush Script MT', cursive;
  --raio: 18px;
  --raio-grande: 28px;
  --largura: 1120px;
  --sombra: 0 10px 30px rgb(79 34 115 / 0.12);
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cor-texto);
  background: var(--cor-fundo);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--roxo-escuro);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.65rem, 4.5vw, 2.4rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--roxo);
}
:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 3px;
  border-radius: 6px;
}
.container {
  width: min(100% - 2.5rem, var(--largura));
  margin-inline: auto;
}
.pular {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--roxo);
  color: #fff;
  border-radius: 10px;
}
.pular:focus {
  left: 0.5rem;
}

/* Botões */
.botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--roxo);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.2s, transform 0.2s;
}
.botao:hover {
  background: var(--roxo-escuro);
  transform: translateY(-2px);
}
.botao--whatsapp {
  background: var(--whatsapp);
}
.botao--whatsapp:hover {
  background: var(--whatsapp-escuro);
}
.botao--contorno {
  background: transparent;
  border-color: var(--roxo);
  color: var(--roxo);
}
.botao--contorno:hover {
  background: var(--roxo);
  color: #fff;
}
.botao--claro {
  background: #fff;
  color: var(--roxo-escuro);
}
.botao--claro:hover {
  background: var(--amarelo);
}
.icone {
  width: 1.3em;
  height: 1.3em;
  fill: currentColor;
  flex: none;
}

/* Sobretítulo com pontinhos coloridos (as peças da logo) */
.sobretitulo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--laranja-texto);
}
.sobretitulo::before {
  content: '';
  width: 34px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--azul) 0 25%, var(--rosa) 25% 50%, var(--amarelo) 50% 75%, var(--verde) 75%);
}

/* Topo */
.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(251 248 244 / 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece4f2;
}
.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.marca img {
  height: 54px;
  width: auto;
}
.marca__texto {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.marca__nome {
  font-family: var(--fonte-marca);
  font-size: 2rem;
  color: var(--roxo);
}
.marca__sub {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--laranja-texto);
}
.menu-botao {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: var(--roxo-escuro);
  border: 2px solid var(--roxo-claro);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.menu-botao__barras,
.menu-botao__barras::before,
.menu-botao__barras::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.menu-botao__barras {
  position: relative;
}
.menu-botao__barras::before,
.menu-botao__barras::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu-botao__barras::before {
  top: -6px;
}
.menu-botao__barras::after {
  top: 6px;
}
.menu {
  display: none;
  position: absolute;
  inset: 72px 0 auto;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  background: var(--cor-fundo);
  border-bottom: 1px solid #ece4f2;
  box-shadow: 0 12px 20px rgb(0 0 0 / 0.06);
}
.menu.aberto {
  display: flex;
}
.menu a:not(.botao) {
  padding: 0.75rem 0;
  color: var(--cor-texto);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #efe8f4;
}
.menu a:not(.botao):hover {
  color: var(--roxo);
}
.menu__whatsapp {
  margin-top: 1rem;
}

/* Chamada principal */
.hero {
  position: relative;
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--roxo-claro);
  z-index: -1;
}
.hero__grade {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}
.hero__sub {
  max-width: 34rem;
  font-size: 1.2rem;
  color: var(--cor-texto-2);
}
.hero .botoes {
  margin-top: 1.5rem;
}
.hero__foto {
  position: relative;
  max-width: 520px;
  justify-self: center;
}
.hero__foto img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--raio-grande);
  border: 6px solid #fff;
  box-shadow: var(--sombra);
}
/* Pecinhas coloridas, como as da árvore da logo */
.peca {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transform: rotate(-12deg);
}
.peca--azul {
  background: var(--azul);
  top: -12px;
  left: 12%;
}
.peca--amarela {
  background: var(--amarelo);
  right: -14px;
  top: 30%;
  transform: rotate(18deg);
  border-radius: 50%;
}
.peca--rosa {
  background: var(--rosa);
  bottom: -14px;
  left: -10px;
  width: 26px;
  height: 26px;
}

/* Seções */
.secao {
  padding: 4rem 0;
}
.secao--alt {
  background: var(--cor-fundo-alt);
}
.cabecalho {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}
.cabecalho p:last-child {
  color: var(--cor-texto-2);
}

/* Sobre */
.sobre {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.sobre__foto img {
  border-radius: var(--raio-grande);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--sombra);
}
.sobre__foto {
  position: relative;
  max-width: 480px;
}
.sobre__foto::after {
  content: '';
  position: absolute;
  inset: auto -14px -14px auto;
  width: 60%;
  height: 60%;
  border-radius: var(--raio-grande);
  background: var(--laranja);
  opacity: 0.2;
  z-index: -1;
}
.texto-editavel {
  font-size: 1.1rem;
}

/* Aulas */
.cartoes {
  display: grid;
  gap: 1.25rem;
}
.cartao {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  border-top: 6px solid var(--roxo);
}
.cartao p {
  margin: 0;
  color: var(--cor-texto-2);
}
.cartao--laranja {
  border-top-color: var(--laranja);
}
.cartao--azul {
  border-top-color: var(--azul);
}
.cartao--foto img {
  width: 100%;
  margin: -0.25rem 0 1.1rem;
  border-radius: 12px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* Olhar psicopedagógico */
.psico {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.psico__texto {
  padding: 2rem 1.5rem;
  border-radius: var(--raio-grande);
  background: #fff;
  border: 2px dashed #d8c5e8;
}
.psico__foto img {
  width: 100%;
  border-radius: var(--raio-grande);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Galeria do espaço */
.galeria {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.galeria figure {
  margin: 0;
  background: #fff;
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
}
.galeria img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.galeria figcaption {
  padding: 0.85rem 1rem 1rem;
  font-weight: 700;
  color: var(--roxo-escuro);
  font-size: 0.98rem;
}

/* Mentoria */
.mentoria {
  background: var(--roxo-escuro);
  color: #f6effb;
}
.mentoria h2 {
  color: #fff;
}
.mentoria .sobretitulo {
  color: #ffc9a8;
}
.mentoria__grade {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.mentoria__foto img {
  width: 100%;
  border-radius: var(--raio-grande);
  aspect-ratio: 675 / 385;
  object-fit: cover;
  border: 6px solid rgb(255 255 255 / 0.12);
}
.mentoria .texto-editavel {
  margin-bottom: 1.5rem;
}

/* Como chegar */
.chegar {
  display: grid;
  gap: 2rem;
}
.dados {
  display: grid;
  gap: 1.1rem;
  margin: 0 0 1.75rem;
}
.dados dt {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--laranja-texto);
}
.dados dd {
  margin: 0.15rem 0 0;
  font-size: 1.08rem;
}
.dados a {
  font-weight: 700;
}
.chegar__mapa iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--raio-grande);
  box-shadow: var(--sombra);
  background: var(--roxo-claro);
}

/* Cards de produto/serviço: some quando o nome fica vazio no painel (docs/MODELOS.md) */
.item:has(.item__nome:empty) {
  display: none;
}

/* Texto longo (privacidade) */
.texto-longo {
  max-width: 46rem;
}

/* Rodapé */
.rodape {
  padding: 3rem 0 6.5rem;
  background: #2a1a38;
  color: #d9cde3;
  font-size: 0.97rem;
}
.rodape a {
  color: #fff;
  margin-right: 1rem;
}
.rodape__grade {
  display: grid;
  gap: 1.5rem;
}
.rodape__marca {
  font-family: var(--fonte-marca);
  font-size: 2.2rem;
  line-height: 1;
  color: #fff;
}
.rodape__marca span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--fonte-texto);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffb48d;
}
.rodape__fim {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.rodape__fim p {
  margin: 0 0 0.4rem;
}

/* WhatsApp fixo */
.whatsapp-fixo {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.25);
}
.whatsapp-fixo svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.whatsapp-fixo:hover {
  background: var(--whatsapp-escuro);
}

/* Celular pequeno */
@media (max-width: 380px) {
  .marca__nome {
    font-size: 1.7rem;
  }
  .marca img {
    height: 46px;
  }
  .botao {
    width: 100%;
  }
}

/* Tablet */
@media (min-width: 640px) {
  .cartoes {
    grid-template-columns: repeat(2, 1fr);
  }
  .cartao--foto {
    grid-column: span 2;
  }
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Computador */
@media (min-width: 900px) {
  .menu-botao {
    display: none;
  }
  .menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .menu a:not(.botao) {
    padding: 0.25rem 0;
    border: 0;
  }
  .menu__whatsapp {
    margin-top: 0;
    min-height: 42px;
    padding: 0.55rem 1.1rem;
  }
  .hero {
    padding: 4.5rem 0 5.5rem;
  }
  .hero::before {
    width: 620px;
    height: 620px;
    right: -160px;
    top: -140px;
  }
  .hero__grade {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
  .secao {
    padding: 5.5rem 0;
  }
  .sobre {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
  .cartoes {
    grid-template-columns: repeat(3, 1fr);
  }
  .cartao--foto {
    grid-column: auto;
  }
  .psico {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
  .psico__texto {
    padding: 2.75rem;
  }
  .galeria {
    grid-template-columns: repeat(4, 1fr);
  }
  .mentoria__grade {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .chegar {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 3.5rem;
  }
  .chegar__mapa iframe {
    height: 440px;
  }
  .rodape {
    padding-bottom: 3rem;
  }
  .rodape__grade {
    grid-template-columns: 1.3fr 1fr;
  }
  .rodape__fim {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .botao {
    transition: none;
  }
  .botao:hover {
    transform: none;
  }
}
