:root {
  --rosa: #ec4882;
  --rosa-claro: #fdf2f6;
  --azul: #204080;
  --azul-claro: #e8f0fa;
  --amarelo: #f5c842;
  --amarelo-claro: #fff9e6;
  --teal: #008c8c;
  --texto: #2d2d2d;
  --texto-suave: #5a5a5a;
  --branco: #ffffff;
  --sombra: 0 8px 32px rgba(32, 64, 128, 0.1);
  --raio: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--texto);
  line-height: 1.65;
  background: var(--branco);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32, 64, 128, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--azul);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4a9fd4, var(--amarelo), var(--rosa));
  border-radius: 8px;
  clip-path: polygon(50% 0%, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--rosa);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 130, 0.35);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--branco);
}

.btn-primario {
  background: var(--rosa);
  color: var(--branco);
}

.btn-outline {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
}

.btn-outline:hover {
  background: var(--azul-claro);
  box-shadow: none;
  transform: none;
}

/* Hero */
.hero {
  padding: 7rem 0 4rem;
  background: linear-gradient(160deg, var(--rosa-claro) 0%, var(--azul-claro) 55%, var(--amarelo-claro) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--branco);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: var(--sombra);
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--azul);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--rosa);
}

.hero-texto {
  font-size: 1.1rem;
  color: var(--texto-suave);
  margin-bottom: 1.8rem;
  max-width: 480px;
}

.hero-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-foto {
  position: relative;
}

.hero-foto img {
  border-radius: 24px;
  box-shadow: var(--sombra);
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
}

.hero-foto::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80%;
  height: 80%;
  background: var(--amarelo);
  border-radius: 24px;
  z-index: -1;
  opacity: 0.4;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--texto-suave);
  font-size: 1.05rem;
}

.section-alt {
  background: var(--rosa-claro);
}

/* Sobre */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.sobre-grid img {
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

.sobre-texto h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 1rem;
}

.sobre-texto p {
  color: var(--texto-suave);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.destaque-box {
  background: var(--branco);
  border-left: 4px solid var(--rosa);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--raio) var(--raio) 0;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--azul);
}

/* Cards ajuda */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--branco);
  padding: 1.8rem;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-icone {
  width: 48px;
  height: 48px;
  background: var(--azul-claro);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--texto-suave);
}

/* Psicopedagogia */
.psico-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.psico-texto p {
  color: var(--texto-suave);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.psico-lista {
  list-style: none;
  margin-top: 1.5rem;
}

.psico-lista li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: var(--texto);
  font-weight: 600;
}

.psico-lista li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

.psico-img img {
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

/* Como funciona */
.passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: passo;
}

.passo {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  position: relative;
}

.passo-num {
  width: 48px;
  height: 48px;
  background: var(--rosa);
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.passo h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 0.5rem;
}

.passo p {
  font-size: 0.92rem;
  color: var(--texto-suave);
}

/* Galeria */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.galeria-item {
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 4/3;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galeria-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Contato */
.contato {
  background: linear-gradient(135deg, var(--azul) 0%, #2a5298 100%);
  color: var(--branco);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contato h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contato > .container > p,
.contato-texto {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contato-itens {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contato-item-icone {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contato-item strong {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.2rem;
}

.contato-item a {
  color: var(--branco);
  font-weight: 700;
}

.contato-item a:hover {
  text-decoration: underline;
}

.contato-foto img {
  border-radius: var(--raio);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Footer */
.footer {
  background: #1a3058;
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer strong {
  color: var(--branco);
}

/* Mobile */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--azul);
}

@media (max-width: 900px) {
  .hero-grid,
  .sobre-grid,
  .psico-grid,
  .contato-grid {
    grid-template-columns: 1fr;
  }

  .hero-foto {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

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

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

  .galeria-item:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .nav.aberto {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--branco);
    padding: 1.5rem;
    box-shadow: var(--sombra);
  }

  .hero {
    padding-top: 6rem;
  }

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

  .galeria-item:first-child {
    grid-column: span 1;
  }
}
