/* ---------- Hero ---------- */
.hero {
  padding: 30px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 20px;
}

.tipos-trabalho {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-bottom: 32px;
}

.tipos-trabalho li {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  color: #DCDBD6;
  padding: 6px 16px;
  border: 1px solid rgba(7, 163, 77, 0.4);
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-mosaic {
  position: relative;
  width: 100%;
  aspect-ratio: 19 / 20;
}

.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero-mosaic-cta {
  display: none;
}

@media (min-width: 861px) {
  .hero-mosaic-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #07a34d;
  }
}

@media (hover: hover) {
  .hero-mosaic-cta:hover {
    color: #0bc65f;
  }
}

/* ---------- Prova / faixa de instituições ---------- */
.faixa-instituicoes {
  padding: 15px 0;
  background: #E8E6DD;
  border-top: 1px solid rgba(180, 178, 168, 0.13);
  border-bottom: 1px solid rgba(180, 178, 168, 0.13);
}

.faixa-instituicoes .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.faixa-instituicoes span {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  color: #141412;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .faixa-instituicoes span:hover {
    color: #018329;
  }
}

@media (max-width: 640px) {
  .faixa-instituicoes .container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .faixa-instituicoes .container::-webkit-scrollbar {
    display: none;
  }

  .faixa-instituicoes span {
    flex-shrink: 0;
  }
}

/* ---------- Serviços / como funciona ---------- */
.como-funciona {
  padding: 120px 0;
  background: #282A2F;
}

.como-funciona .eyebrow {
  color: #959284;
}

.como-funciona .intro,
.como-funciona h3 {
  color: #F2F2F2;
}

.como-funciona .intro {
  max-width: 60ch;
  margin-bottom: 48px;
}

.etapas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.etapa .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid rgba(7, 163, 77, 0.5);
  border-radius: 50%;
  color: #07a34d;
}

.etapa h3 {
  margin-bottom: 10px;
}

.etapa p {
  color: #B4B2A8;
  font-size: 0.95rem;
}

/* ---------- Grade de cases ---------- */
.cases {
  padding: 120px 0;
  background: #1D1D1F;
}

.cases-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 28px;
  flex-wrap: wrap;
}

.grade-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-case {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #282A2F;
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 0.3s ease;
}

@media (hover: hover) {
  .card-case:hover {
    box-shadow: 0 0 0 1px rgba(7, 163, 77, 0.5),
                0 16px 32px rgba(0, 0, 0, 0.4);
  }
}

.card-case img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

@media (hover: hover) {
  .card-case:hover img {
    transform: scale(1.05);
    opacity: 1;
  }
}

.card-case .info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 10%, rgba(0,0,0,0.55) 55%, transparent);
  color: #DCDBD6;
}

.card-case .info .eyebrow {
  display: block;
  color: #959284;
  margin-bottom: 6px;
}

.card-case .info h3 {
  color: #DCDBD6;
  font-size: 1.15rem;
  line-height: 1.25;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: #282A2F;
  color: #DCDBD6;
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid rgba(180, 178, 168, 0.13);
}

.cta-final h2 {
  color: #DCDBD6;
  max-width: 22ch;
  margin: 0 auto 24px;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-mosaic { order: -1; margin-bottom: 8px; }
  .etapas, .grade-cases { grid-template-columns: 1fr; }
}
