/* --------------------------------------------------
   RESET & BASE
-------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0054a6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* --------------------------------------------------
   LAYOUT GERAL & HEADER
-------------------------------------------------- */
header {
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffffcc;
  backdrop-filter: blur(8px);
}

.top-bar {
  font-size: 0.85rem;
  background: #0b2340;
  color: #f5f5f5;
  padding: 0.4rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #f5f5f5;
  text-decoration: none;
}

.top-bar span {
  margin-right: 1rem;
}

.nav-wrapper {
  padding: 0.8rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid #0054a6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0054a6;
  font-size: 1.1rem;
  background: #ffffff;
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo-text-sub {
  font-size: 0.8rem;
  color: #666;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  align-items: center;
}

/* --------------------------------------------------
   BOTÕES
-------------------------------------------------- */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: #0054a6;
  color: #fff;
}

.img-radius {
  border-radius: 18px;
  width: 100%;
  height: auto;
}

/* Quando img-radius está dentro de card, usa altura fixa */
.card .img-radius {
  height: 250px;
  object-fit: cover;
  margin-top: 1rem;
}

.div-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  img {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 700px;
    border-radius: 18px;
  }
}

.div-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 1rem;
  margin: 0 1.5rem;
}

.div-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.div-flex-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  img {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 450px;
    border-radius: 18px;
    object-fit: fill;
  }
}

.img-cover-corte {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: 80% 75%;
  border-radius: 18px;
}

.img-corte-2 {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  object-fit: fill;
  border-radius: 18px;
  img {
    width: auto;
    max-width: 200px;
    height: auto;
    max-height: 300px;
    border-radius: 18px;
    object-fit: contain;
  }
}

.btn-primary:hover {
  background: #003f7c;
}

.btn-secondary {
  background: #f3f5f9;
  color: #0054a6;
}

.btn-secondary:hover {
  background: #e4e8f2;
}

.btn-ghost {
  background: transparent;
  color: #0054a6;
}

.btn-ghost:hover {
  background: #f3f5f9;
}

/* --------------------------------------------------
   SEÇÕES & CONTAINERS
-------------------------------------------------- */
main {
  padding: 0;
}

.section {
  padding: 3.5rem 4%;
}

.section.alt {
  background: #f7f9fc;
}

.section-narrow {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: #0054a6;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.section-intro {
  max-width: 800px;
  color: #555;
  margin-bottom: 2rem;
  font-size: 0.98rem;
}

/* --------------------------------------------------
   HERO (usado em todas as páginas)
-------------------------------------------------- */
.hero {
  padding: 3.5rem 4% 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #0054a6;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 0.75rem;
}

.hero-highlight {
  color: #0054a6;
}

.hero-text {
  font-size: 0.98rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #f0f4ff;
  color: #0054a6;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-meta {
  font-size: 0.82rem;
  color: #777;
  margin-top: 1rem;
}

/* --------------------------------------------------
   PLACEHOLDERS DE IMAGEM
-------------------------------------------------- */
.image-placeholder {
  border-radius: 18px;
  border: 2px dashed #c6d3e6;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #7a869c;
  background: #fbfdff;
}

.image-placeholder.small {
  min-height: 120px;
  padding: 1rem;
}

/* Mosaico de imagens - sem gap, como um quadrado único */
.image-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 1.7rem;
  border-radius: 12px;
  overflow: hidden;
}

.image-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.3s ease;
  aspect-ratio: 4 / 3;
}

.image-mosaic img:hover {
  transform: scale(1.02);
  z-index: 1;
  position: relative;
}

/* Layout responsivo do mosaico - Desktop/Tablet (3 colunas) */
@media (min-width: 768px) {
  .image-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Cantos: 1 (superior esquerdo), 3 (superior direito), 4 (inferior esquerdo), 6 (inferior direito) */
  .image-mosaic img:nth-child(1) {
    border-top-left-radius: 12px;
  }

  .image-mosaic img:nth-child(3) {
    border-top-right-radius: 12px;
  }

  .image-mosaic img:nth-child(4) {
    border-bottom-left-radius: 12px;
  }

  .image-mosaic img:nth-child(6) {
    border-bottom-right-radius: 12px;
  }
}

@media (min-width: 1024px) {
  .image-mosaic img {
    aspect-ratio: 4 / 3;
  }
}

/* Mobile (2 colunas) */
@media (max-width: 767px) {
  .image-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-mosaic img {
    aspect-ratio: 1 / 1;
  }

  /* Cantos: 1 (superior esquerdo), 2 (superior direito), 5 (inferior esquerdo), 6 (inferior direito) */
  .image-mosaic img:nth-child(1) {
    border-top-left-radius: 12px;
  }

  .image-mosaic img:nth-child(2) {
    border-top-right-radius: 12px;
  }

  .image-mosaic img:nth-child(5) {
    border-bottom-left-radius: 12px;
  }

  .image-mosaic img:nth-child(6) {
    border-bottom-right-radius: 12px;
  }
}

/* Ajuste para imagens dentro de image-placeholder quando tem múltiplas */
.image-placeholder:has(img) {
  border: none;
  background: transparent;
  padding: 0;
  min-height: auto;
}

/* --------------------------------------------------
   CARDS & GRIDS
-------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: 18px;
  border: 1px solid #e0e4ee;
  padding: 1.4rem 1.5rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(2, 29, 73, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.card-tag {
  font-size: 0.75rem;
  color: #0054a6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: #555;
  flex-grow: 0;
}

.card ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
}

/* Imagens nos cards - mesmo tamanho e alinhadas */
.card img,
.card .img-radius {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  margin-top: auto;
  flex-shrink: 0;
}

.card .img-radius {
  margin-top: auto;
}

/* Container de imagem também precisa seguir o flex */
.card > div {
  margin-top: auto;
  flex-shrink: 0;
}

/* --------------------------------------------------
   LAYOUTS DE COLUNA
-------------------------------------------------- */
.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* --------------------------------------------------
   LISTAS ESPECIAIS
-------------------------------------------------- */
.list-check {
  list-style: none;
  padding-left: 0;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
}

.list-check li {
  margin-bottom: 0.35rem;
}

.list-check li::before {
  content: "✔";
  color: #1a7b3b;
  font-size: 0.8rem;
  margin-right: 0.4rem;
}

/* Pills (chips) */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  border-radius: 999px;
  border: 1px solid #dde3f1;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  background: #fff;
}

/* --------------------------------------------------
   ETAPAS / TIMELINE
-------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.step {
  display: flex;
  gap: 0.8rem;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #0054a6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.step p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

/* Timeline usada em cases */
.step-timeline {
  border-left: 2px solid #dde3f1;
  padding-left: 1.2rem;
  margin-left: 0.3rem;
}

.timeline-item {
  margin-bottom: 1.2rem;
}

.timeline-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.timeline-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.15rem;
}

.timeline-item p {
  font-size: 0.86rem;
  margin: 0.1rem 0 0.3rem;
  color: #555;
}

/* --------------------------------------------------
   DOWNLOADS
-------------------------------------------------- */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

.download-section-title {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.downloads-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-item {
  border-radius: 14px;
  border: 1px solid #e0e4ee;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  background: #fff;
}

.download-item-main {
  flex: 1;
}

.download-name {
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.download-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.2rem;
}

.download-desc {
  font-size: 0.86rem;
  color: #555;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-end;
  justify-content: center;
}

.file-tag {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #dde3f1;
  color: #555;
  background: #f7f9fc;
}

/* --------------------------------------------------
   CONTATO & FORMULÁRIOS
-------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-card {
  border-radius: 18px;
  border: 1px solid #e0e4ee;
  padding: 1.5rem 1.6rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(2, 29, 73, 0.04);
}

.contact-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.contact-card-tag {
  font-size: 0.75rem;
  color: #0054a6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.4rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: #555;
}

/* Formulário genérico */
form {
  margin-top: 0.8rem;
}

.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
  color: #00407a;
}

.form-section-sub {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.6rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.form-grid-1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.form-field label {
  font-weight: 600;
}

.form-field span.help {
  font-size: 0.75rem;
  color: #777;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #d0d7e6;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0054a6;
  box-shadow: 0 0 0 1px rgba(0, 84, 166, 0.15);
}

/* Checkbox / radio grupos */
.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.84rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-check input {
  margin: 0;
}

.form-footer {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.form-consent {
  font-size: 0.78rem;
  color: #666;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 420px;
}

.form-consent input {
  margin-top: 0.15rem;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  border-top: 1px solid #e4e7f0;
  padding: 2.5rem 4% 1.5rem;
  background: #fafbfe;
  font-size: 0.85rem;
  color: #555;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto 1.4rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* --------------------------------------------------
   RESPONSIVIDADE
-------------------------------------------------- */
@media (max-width: 900px) {
  .hero,
  .layout-2col,
  .contact-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.3rem;
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

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

  .section {
    padding: 2.7rem 5%;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
