:root {
  --bg: #fdfcf7;
  --surface: #ffffff;
  --ink: #2f3a4a;
  --muted: #5f6c7d;
  --line: #ece5d8;
  --blue: #4aa3df;
  --blue-dark: #2f7fb5;
  --blue-soft: #e3f1fb;
  --yellow: #f7c948;
  --yellow-soft: #fdf3d3;
  --pink: #f2999e;
  --pink-soft: #fce9ea;
  --deep: #1d4c6b;
  --deep-line: #2e6489;
  --deep-muted: #a9c6da;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 700;
}

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

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

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--blue-dark);
}

.center { text-align: center; }

.section-title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 2.2rem;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 247, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  height: 3rem;
  width: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(74, 163, 223, 0.35);
}

.brand-text strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.05rem;
  line-height: 1.2;
}

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

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

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

.nav a:not(.btn):hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-solid {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 12px 26px rgba(74, 163, 223, 0.35);
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(74, 163, 223, 0.45);
}

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

.btn-ghost:hover { background: var(--yellow-soft); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

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

.bubble-1 { top: 8%; left: 6%; height: 7rem; width: 7rem; background: var(--blue-soft); }
.bubble-2 { top: 55%; left: 12%; height: 2.4rem; width: 2.4rem; background: var(--yellow); opacity: 0.55; }
.bubble-3 { top: 12%; right: 9%; height: 4.5rem; width: 4.5rem; background: var(--pink-soft); }
.bubble-4 { bottom: 12%; right: 14%; height: 2rem; width: 2rem; background: var(--pink); opacity: 0.5; }
.bubble-5 { bottom: -3rem; left: 45%; height: 9rem; width: 9rem; background: var(--yellow-soft); }

.hero-in {
  position: relative;
  max-width: 46rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  line-height: 1.05;
  color: var(--deep);
}

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

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

/* ---------- Chips ---------- */

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.chip small {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.chip strong { font-weight: 800; }

.chip-blue { background: var(--blue-soft); color: var(--blue-dark); }
.chip-yellow { background: var(--yellow-soft); color: #8a6d10; }
.chip-pink { background: var(--pink-soft); color: #b0555b; }

/* ---------- Sobre ---------- */

.section { padding: 3.5rem 0; }

.panel {
  max-width: 52rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  padding: 2.5rem 2.75rem;
  box-shadow: 0 16px 38px rgba(47, 58, 74, 0.07);
}

.panel h2 {
  margin: 0 0 1.25rem;
  font-size: 2.1rem;
  color: var(--deep);
}

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

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

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

.esp { padding-top: 1rem; }

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

@media (min-width: 900px) {
  .esp-grid { grid-template-columns: repeat(3, 1fr); }
}

.esp-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(47, 58, 74, 0.06);
}

.esp-band {
  display: grid;
  place-items: center;
  padding: 1.4rem 0;
}

.band-blue { background: var(--blue-soft); }
.band-yellow { background: var(--yellow-soft); }
.band-pink { background: var(--pink-soft); }

.esp-ico {
  display: grid;
  place-items: center;
  height: 3.4rem;
  width: 3.4rem;
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.6rem;
  box-shadow: 0 8px 18px rgba(47, 58, 74, 0.12);
}

.esp-card h3 {
  margin: 1.25rem 1.75rem 0.5rem;
  font-size: 1.35rem;
  color: var(--deep);
}

.list {
  margin: 0 0 1.6rem;
  padding: 0 1.75rem 0 3rem;
  font-size: 0.9rem;
  line-height: 2;
  color: var(--muted);
}

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

.dados {
  background: var(--deep);
  color: #f2f8fc;
  padding: 3.5rem 0;
}

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

.dados-grid {
  display: grid;
  gap: 1.4rem;
  border-top: 1px solid var(--deep-line);
  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: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--deep-muted);
}

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

/* ---------- Missão ---------- */

.missao { padding: 4rem 0; }

.missao-card {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  border-radius: 2.5rem;
  padding: 3rem 2.5rem;
  background: linear-gradient(135deg, var(--blue-soft), var(--yellow-soft) 55%, var(--pink-soft));
  box-shadow: 0 18px 44px rgba(47, 58, 74, 0.08);
}

.missao-card p:not(.eyebrow) {
  margin: 0 0 1.1rem;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--deep);
}

.missao-card p:last-child { margin-bottom: 0; }

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

.contato { padding-top: 0.5rem; }

.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: grid;
  justify-items: center;
  gap: 0.25rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--surface);
  padding: 1.75rem 1.25rem;
  box-shadow: 0 14px 34px rgba(47, 58, 74, 0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}

a.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(47, 58, 74, 0.12);
}

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

.tile > span:not(.tile-ico) {
  font-size: 0.9rem;
  font-weight: 800;
}

.tile-ico {
  margin-bottom: 0.6rem;
  height: 2.9rem;
  width: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
}

.ico-blue { background: var(--blue-soft); color: var(--blue-dark); }
.ico-yellow { background: var(--yellow-soft); color: #8a6d10; }
.ico-pink { background: var(--pink-soft); color: #b0555b; }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 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: "Baloo 2", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 0.6rem;
}

.footer-data {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--muted);
}

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

.footer-links a {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.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(29, 76, 107, 0.72);
  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: 1.6rem;
  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.8rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--muted);
}

.modal-box h2 {
  margin: 0;
  padding-right: 2rem;
  font-size: 1.7rem;
  color: var(--deep);
}

.modal-box h4 {
  margin: 1.5rem 0 0.25rem;
  font-family: "Baloo 2", sans-serif;
  font-size: 1rem;
  color: var(--deep);
}

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

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

.nf {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.25rem;
}

.nf-code {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.nf h1 {
  margin: 0.5rem 0 0;
  font-size: 1.6rem;
  color: var(--deep);
}

.nf p {
  margin: 0.75rem auto 2rem;
  max-width: 26rem;
  color: var(--muted);
}
