:root {
  --azul: #1a4c8f;
  --cinza: #f5f6fa;
  --texto: #222;
  --accent: #0f63c8;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--texto);
  background: #fff;
  line-height: 1.6;
}

/* ============================== */
/* TOPBAR                        */
/* ============================== */

.topbar {
  background: linear-gradient(90deg, var(--azul), var(--accent));
  color: #fff;
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.08);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================== */
/* HERO                          */
/* ============================== */

.hero {
  padding: 3rem 1rem;
  background: linear-gradient(180deg, rgba(26, 76, 143, 0.06), transparent 70%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: center;
  padding: 2rem 1rem;
}

.hero-logo {
  flex: 0 0 220px;
}

.logo-hero {
  height: 190px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-content h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: var(--azul);
}

.hero-content .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333;
  max-width: 720px;
  margin: 0 auto;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

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

nav ul li {
  width: auto;
}

.item {
  max-width: 100%;
  overflow-wrap: break-word;
}


/* HERO – Ajustes Responsivos */
@media (max-width: 480px) {
  nav a {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 600px) {
  .hero-container {
    padding: 1rem;
    text-align: center;
  }

  .hero-content {
    width: 100%;
  }
}


@media (max-width: 900px) {
  .hero-logo {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    width: 100%;
  }
}


@media (max-width: 840px) {
  .hero-container {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .logo-hero {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .logo-hero {
    height: 110px;
  }
}

/* ============================== */
/* MAIN                          */
/* ============================== */

main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

section.card {
  background: var(--cinza);
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

h2 {
  color: var(--azul);
  margin-bottom: 0.6rem;
}

p {
  color: #333;
}

section.card p {
  margin: 0.8rem 0 1.2rem 0;
}

/* Grid de serviços */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.grid .item {
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  min-height: 120px;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.6rem;
}

.step {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.step .num {
  display: inline-block;
  background: var(--azul);
  color: #fff;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ============================== */
/* CLIENTES                      */
/* ============================== */

.clients {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.8rem 0;
}

.client-box {
  min-width: 180px;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  text-align: center;
  color: var(--azul);
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s ease;  /* animação suave */
}


.client-box:hover {
  transform: scale(1.06);
  background: #fff;    /* mantém branco */
  color: var(--azul);  /* mantém cor original */
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}


/* ============================== */
/* FORMULÁRIO DE CONTATO        */
/* ============================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1rem;
  align-items: start;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

form label {
  font-weight: 500;
  color: var(--azul);
  font-size: 0.95rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fff;
  transition: all 0.2s ease;
}

form input:focus,
form textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 2px rgba(26, 76, 143, 0.15);
  outline: none;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  background-color: var(--azul);
  color: #fff;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.1s ease;
}

form button:hover {
  background-color: var(--accent);
}

form button:active {
  transform: scale(0.98);
}

/* Redes sociais */

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.socials a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

/* ============================== */
/* FOOTER                        */
/* ============================== */

footer {
  background: var(--azul);
  color: #fff;
  padding: 1.2rem 1rem;
  text-align: center;
  margin-top: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
