:root {
  --amarelo: #f2b705;
  --amarelo-escuro: #d9a404;
  --amarelo-claro: #fdf3d0;
  --azul: #2456a6;
  --azul-dados: #1c3f78;
  --verde: #2f9e5f;
  --vermelho: #e0533f;
  --tinta: #26241c;
  --bg: #fffdf5;
  --surface: #ffffff;
  --muted: #6b6455;
  --line: #efe6cd;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tinta);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Fredoka", "Hanken Grotesk", sans-serif;
  font-weight: 600;
}

section[id] { scroll-margin-top: 96px; }

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--azul);
}

.eyebrow-escuro { color: var(--tinta); }

.section-sub {
  margin: -0.75rem 0 2rem;
  color: var(--muted);
}

.break { word-break: break-all; }

.cor-amarelo { background: var(--amarelo); }
.cor-azul { background: var(--azul); }
.cor-verde { background: var(--verde); }
.cor-vermelho { background: var(--vermelho); }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--amarelo);
}

.header-in {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  height: 2.8rem;
  width: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--amarelo);
  color: var(--tinta);
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(242, 183, 5, 0.4);
}

.brand-text strong {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.nav a:not(.btn) {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.nav a:not(.btn):hover {
  color: var(--tinta);
  background: var(--amarelo-claro);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-amarelo {
  background: var(--amarelo);
  color: var(--tinta);
  box-shadow: 0 10px 22px rgba(242, 183, 5, 0.45);
}

.btn-amarelo:hover {
  background: var(--amarelo-escuro);
  transform: translateY(-2px);
}

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

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

/* ---------- Hero + pingos ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--amarelo-claro), var(--bg) 70%);
  border-bottom: 1px solid var(--line);
}

.hero-in {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pingo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.p1 { top: 12%; left: 6%; height: 3.4rem; width: 3.4rem; background: var(--amarelo); opacity: 0.9; }
.p2 { top: 34%; left: 13%; height: 1.1rem; width: 1.1rem; background: var(--azul); opacity: 0.85; }
.p3 { bottom: 20%; left: 8%; height: 2rem; width: 2rem; background: var(--vermelho); opacity: 0.75; }
.p4 { top: 16%; right: 8%; height: 2.4rem; width: 2.4rem; background: var(--azul); opacity: 0.8; }
.p5 { top: 42%; right: 14%; height: 1rem; width: 1rem; background: var(--verde); opacity: 0.85; }
.p6 { bottom: 26%; right: 6%; height: 3rem; width: 3rem; background: var(--amarelo); opacity: 0.85; }
.p7 { bottom: 10%; right: 24%; height: 0.8rem; width: 0.8rem; background: var(--vermelho); opacity: 0.7; }
.p8 { top: 8%; left: 32%; height: 0.9rem; width: 0.9rem; background: var(--verde); opacity: 0.7; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero-lead {
  max-width: 42rem;
  margin: 1.1rem auto 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

/* ---------- Cartela de cores (fatos) ---------- */

.cartela {
  margin-top: 3.25rem;
  display: grid;
  gap: 1rem;
  text-align: left;
}

@media (min-width: 640px) { .cartela { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cartela { grid-template-columns: repeat(4, 1fr); } }

.swatch {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(38, 36, 28, 0.07);
}

.swatch-cor {
  display: block;
  height: 2.4rem;
}

.swatch-info { padding: 1rem 1.1rem 1.15rem; }

.swatch-info small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.swatch-info span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

/* ---------- Seções ---------- */

.section { padding: 4rem 0; }

.section h2 {
  margin: 0 0 1.5rem;
  font-size: 2.1rem;
}

.sobre-in { max-width: 46rem; }

.sobre-in p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
}

.sobre-in p:last-child { margin-bottom: 0; }

/* ---------- Especialidades ---------- */

.especialidades { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.esp-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 640px) { .esp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .esp-grid { grid-template-columns: repeat(4, 1fr); } }

.esp-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--bg);
  overflow: hidden;
  padding-bottom: 1.4rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.esp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(38, 36, 28, 0.1);
}

.esp-top {
  display: grid;
  place-items: center;
  height: 4.2rem;
  margin-bottom: 1.1rem;
}

.esp-ico {
  height: 2.3rem;
  width: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--tinta);
  font-size: 1.05rem;
}

.esp-card h3 {
  margin: 0 1.3rem 0.5rem;
  font-size: 1.2rem;
}

.esp-card p {
  margin: 0 1.3rem;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- Missão (faixa amarela) ---------- */

.missao {
  background: var(--amarelo);
  color: var(--tinta);
  padding: 4rem 0;
  text-align: center;
}

.missao-texto {
  max-width: 44rem;
  margin: 0 auto;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1.55;
}

/* ---------- Dados oficiais ---------- */

.dados {
  background: var(--azul-dados);
  color: #f4f7fd;
  padding: 4rem 0;
}

.dados h2 {
  margin: 0 0 1.75rem;
  font-size: 2rem;
}

.dados-grid {
  display: grid;
  gap: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.75rem;
}

@media (min-width: 640px) { .dados-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dados-grid { grid-template-columns: repeat(3, 1fr); } }

.dado small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amarelo);
}

.dado span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Contato (tiles) ---------- */

.tiles {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  display: block;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 12px 26px rgba(38, 36, 28, 0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}

a.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(38, 36, 28, 0.12);
}

.tile-ico {
  height: 2.6rem;
  width: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.tile-ico.cor-amarelo { color: var(--tinta); }

.tile small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.tile > span:not(.tile-ico) {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--tinta);
  color: #d8d2c2;
  padding: 2.75rem 0;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.6fr 0.7fr; }
  .footer-links { justify-items: end; }
}

.footer-name {
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--amarelo);
  margin-bottom: 0.6rem;
}

.footer-data {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.9;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--amarelo);
}

.footer-links a:hover { text-decoration: underline; }

/* ---------- Modal (Política de Privacidade) ---------- */

.modal {
  visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 36, 28, 0.75);
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.modal:target {
  visibility: visible;
  opacity: 1;
}

.modal-bg { position: absolute; inset: 0; }

.modal-box {
  position: relative;
  max-height: 80vh;
  width: 100%;
  max-width: 48rem;
  overflow-y: auto;
  border-radius: 1rem;
  border-top: 6px solid var(--amarelo);
  background: var(--surface);
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  right: 1.1rem;
  top: 0.9rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
}

.modal-box h2 {
  margin: 0;
  padding-right: 2rem;
  font-size: 1.7rem;
}

.modal-box h4 {
  margin: 1.5rem 0 0.25rem;
  font-family: "Fredoka", sans-serif;
  font-size: 0.95rem;
}

.modal-box p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.pagina-404 {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--amarelo-claro), var(--bg) 70%);
  padding: 2rem 1.25rem;
}

.caixa-404 { position: relative; z-index: 1; }

.caixa-404 .brand-mark { margin: 0 auto 1.5rem; }

.codigo-404 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--amarelo);
  text-shadow: 0 4px 0 rgba(38, 36, 28, 0.12);
}

.caixa-404 h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.6rem;
}

.caixa-404 p {
  margin: 0 auto 1.75rem;
  max-width: 26rem;
  color: var(--muted);
}
