/* ==========================================================================
   Crescer e Saber — Escola Montessori
   Identidade visual 2027: terracota + azul, tipografia Montserrat
   ========================================================================== */

:root {
  /* Paleta (medida na logo) */
  --terracota: #cc5a35;
  --terracota-escuro: #c44220;
  --terracota-texto: #b04526; /* terracota com contraste AA sobre branco/creme */
  --terracota-botao: #b84a2a;
  --azul: #015174;
  --azul-escuro: #013f5b;
  --ardosia: #4c636b;
  --cinza-quente: #b6b4a8;
  --texto: #414852;
  --creme: #fcfbf7;
  --branco: #fff;
  --painel: #cbdce3;

  --raio: 12px;
  --raio-grande: 20px;
  --sombra: 0 4px 18px rgba(1, 81, 116, 0.12);
  --largura: 1140px;
  --altura-header: 88px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--altura-header) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
blockquote,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
}

.bg-azul :focus-visible,
.bg-terracota :focus-visible,
.bg-terracota-escuro :focus-visible,
.rodape :focus-visible {
  outline-color: #fff;
}

.container {
  width: min(var(--largura), 100% - 2.5rem);
  margin-inline: auto;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--azul);
  color: #fff;
  border-radius: 0 0 var(--raio) var(--raio);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn--terracota {
  background: var(--terracota-botao);
  color: #fff;
}
.btn--terracota:hover {
  background: #9d3d21;
}

.btn--azul {
  background: var(--azul);
  color: #fff;
}
.btn--azul:hover {
  background: var(--azul-escuro);
}

.btn--branco {
  background: #fff;
  color: var(--azul);
  border-color: var(--azul);
}
.btn--branco:hover {
  background: var(--creme);
}

.btn--sm {
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
}

.cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--altura-header);
}

.header__logo img {
  height: 76px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav__lista {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav__lista a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--terracota-texto);
  text-decoration: none;
}

.nav__lista a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav__lista a:hover::after,
.nav__lista a.ativo::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(1, 81, 116, 0.35);
  border-radius: 10px;
  background: transparent;
  color: var(--azul);
  cursor: pointer;
}

.menu-btn__barras,
.menu-btn__barras::before,
.menu-btn__barras::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-btn__barras {
  position: relative;
}
.menu-btn__barras::before,
.menu-btn__barras::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn__barras::before {
  top: -7px;
}
.menu-btn__barras::after {
  top: 7px;
}

.menu-btn[aria-expanded="true"] .menu-btn__barras {
  background: transparent;
}
.menu-btn[aria-expanded="true"] .menu-btn__barras::before {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__barras::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Seções (base) ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--terracota-texto);
}

.section-lead {
  max-width: 64ch;
  margin: 1rem auto 3rem;
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.bg-azul {
  background: var(--azul);
  color: #fff;
}
.bg-azul .section-title {
  color: #fff;
}

.bg-terracota {
  background: var(--terracota);
  color: #fff;
}

.bg-terracota-escuro {
  background: var(--terracota-escuro);
  color: #fff;
}
.bg-terracota-escuro .section-title {
  color: #fff;
}

.bg-branco {
  background: #fff;
}

.card {
  background: #fff;
  border-radius: var(--raio);
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero blockquote {
  margin-top: 1.75rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

.hero cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.95;
}

.hero__botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero__imagem img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 65% center;
  border-radius: var(--raio-grande);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Sobre ---------- */
.info-card {
  padding: 1.75rem;
  border: 1px solid rgba(1, 81, 116, 0.26);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.info-card:hover {
  border-color: var(--azul);
  box-shadow: 0 0 12px rgba(1, 81, 116, 0.26);
}

.info-card .icon {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--terracota);
}

.info-card h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.info-card p {
  font-size: 0.92rem;
}

/* ---------- Metodologia ---------- */
.metodo {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.metodo__imagem img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--raio-grande);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.metodo__texto {
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.metodo__texto h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

/* Traço terracota: liga o texto à paleta da logo */
.metodo__texto h3::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: 1rem;
  border-radius: 2px;
  background: var(--terracota);
}

.metodo__texto p + p {
  margin-top: 1.25rem;
}

.metodo__texto strong {
  font-weight: 700;
}

.painel {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--painel);
  border-radius: var(--raio-grande);
  color: var(--texto);
}

.painel h3 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
}

.painel .card {
  padding: 1.4rem 1.5rem;
  box-shadow: var(--sombra);
}

.painel .card h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.painel .card p {
  font-size: 0.9rem;
}

/* ---------- Líderes ---------- */
.lider {
  padding: 1.5rem;
  border: 1px solid rgba(65, 72, 82, 0.08);
  box-shadow: var(--sombra);
}

.lider h3 {
  margin-bottom: 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--terracota-texto);
}

.lider p {
  font-size: 0.9rem;
}

#lideres .section-title {
  color: var(--azul);
}

/* ---------- Programas ---------- */
.programa {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cor, var(--terracota));
  --cor: var(--terracota);
}

.programa--materna {
  --cor: var(--azul);
}

.programa img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.programa__corpo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  font-size: 0.93rem;
}

.programa__cabecalho {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.programa__cabecalho .icon {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--cor);
}

.programa__cabecalho h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.programa__cabecalho span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ardosia);
}

/* ---------- Atividades ---------- */
.atividade {
  padding: 1.5rem 1.6rem;
  color: var(--texto);
}

.atividade h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--terracota-texto);
}

.atividade p {
  font-size: 0.9rem;
}

.outras {
  margin-top: 3.5rem;
  text-align: center;
}

.outras h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.chips li {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: #fff;
  color: var(--terracota-texto);
  font-weight: 600;
  font-size: 0.95rem;
}

.fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 760px;
  margin: 3rem auto 0;
}

.fotos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--raio-grande);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Equipe ---------- */
.profissional {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(1, 81, 116, 0.26);
  box-shadow: var(--sombra);
}

.profissional__topo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profissional__icone {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(204, 90, 53, 0.12);
  color: var(--terracota);
}

.profissional__icone .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.profissional__topo h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.profissional__topo span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ardosia);
}

.profissional h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--azul);
}

.profissional .registro {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--ardosia);
}

.profissional p {
  margin-top: 0.75rem;
  font-size: 0.93rem;
}

.profissional strong {
  display: block;
  margin: 1.1rem 0 0.5rem;
  font-size: 0.9rem;
}

.checks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
}

.checks li + li {
  margin-top: 0.35rem;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--terracota-texto);
}

.fechamento {
  max-width: 62ch;
  margin: 3rem auto 0;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--azul);
}

/* ---------- Depoimentos ---------- */
.carrossel {
  position: relative;
}

.carrossel__trilho {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 0.25rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--cinza-quente) transparent;
}

.carrossel__item {
  flex: 0 0 min(340px, 82%);
  scroll-snap-align: start;
}

.carrossel__item img {
  width: 100%;
  border-radius: var(--raio);
  border: 1px solid rgba(65, 72, 82, 0.12);
  box-shadow: var(--sombra);
}

.carrossel__controles {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.carrossel__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--azul);
  border-radius: 50%;
  background: #fff;
  color: var(--azul);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.carrossel__btn:hover {
  background: var(--azul);
  color: #fff;
}

/* ---------- Contato ---------- */
.contato {
  padding: clamp(1.75rem, 4vw, 3.5rem);
  box-shadow: var(--sombra);
}

.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.contato__lista {
  display: grid;
  gap: 1rem;
}

.contato__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(65, 72, 82, 0.1);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

a.contato__item:hover {
  border-color: var(--azul);
  transform: translateY(-2px);
}

.contato__item .icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--azul);
}

.contato__item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.contato__item span {
  display: block;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.contato__imagem img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--raio-grande);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- Rodapé ---------- */
.rodape {
  padding: 1.5rem 0;
  background: var(--azul);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Animação de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visivel {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1060px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.5rem;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav.aberto {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__lista {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__lista a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    font-size: 1rem;
  }

  .nav__lista a::after {
    display: none;
  }

  .nav .btn {
    margin-top: 1.1rem;
  }
}

@media (max-width: 860px) {
  .hero__grid,
  .metodo,
  .contato__grid {
    grid-template-columns: 1fr;
  }

  .hero__imagem {
    max-width: 560px;
  }

  .metodo__imagem {
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  .metodo__texto {
    max-width: 60ch;
    margin-inline: auto;
  }

  .contato__imagem {
    max-width: 480px;
  }

  .cta .btn {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  :root {
    --altura-header: 76px;
  }

  .header__logo img {
    height: 64px;
  }

  .hero__botoes .btn {
    width: 100%;
  }

  .metodo__imagem {
    max-width: none;
  }

  .metodo__texto {
    font-size: 1rem;
    line-height: 1.7;
  }

  .fotos {
    gap: 0.75rem;
  }
}

/* Telas bem pequenas: e-mail e cartão de contato mais compactos */
@media (max-width: 420px) {
  .contato {
    padding: 1.25rem 1rem;
  }
  .contato__item {
    gap: 0.75rem;
    padding: 1rem;
  }
  .contato__item span {
    font-size: 0.82rem;
  }
}
