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

:root {
  --azul: #1a4fb4;
  --azul-escuro: #0d2c66;
  --vermelho: #c62026;
  --prata: #e8eaee;
  --texto: #1c2230;
  --texto-suave: #5a6272;
  --fundo: #f7f8fa;
  --branco: #ffffff;
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

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

/* ===== Botões ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--vermelho), #a3181d);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(198, 32, 38, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(198, 32, 38, 0.6);
}

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

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

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ===== Header ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--branco);
  box-shadow: 0 2px 12px rgba(13, 44, 102, 0.08);
}

.topbar__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand__logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand__text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  color: var(--azul-escuro);
}

.brand__text strong {
  color: var(--vermelho);
}

.nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--texto-suave);
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--vermelho);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav a:hover {
  color: var(--azul-escuro);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--azul-escuro);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 5%;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(26, 79, 180, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(198, 32, 38, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #eef1f6 100%);
  z-index: -1;
}

.hero__content {
  max-width: 640px;
}

.eyebrow, .section-eyebrow {
  display: inline-block;
  color: var(--vermelho);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--azul-escuro);
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--vermelho);
}

.hero__lead {
  color: var(--texto-suave);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__badge {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  filter: drop-shadow(0 20px 40px rgba(13, 44, 102, 0.25));
}

/* ===== Seções gerais ===== */

section {
  padding: clamp(60px, 8vw, 110px) 5%;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--azul-escuro);
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

/* ===== Serviços ===== */

.servicos {
  max-width: 1200px;
  margin: 0 auto;
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-servico {
  background: var(--branco);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: 0 8px 24px -12px rgba(13, 44, 102, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-servico:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -14px rgba(13, 44, 102, 0.25);
}

.card-servico__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--azul), var(--azul-escuro));
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.card-servico h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--texto);
}

.card-servico p {
  color: var(--texto-suave);
  font-size: 0.95rem;
}

/* ===== Por que a MG ===== */

.porque {
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul));
  color: #fff;
}

.porque__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
}

.porque .section-eyebrow {
  color: #ffd9da;
}

.porque .section-title {
  color: #fff;
}

.porque__text p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.porque__lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.porque__lista li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.porque__lista i {
  color: var(--vermelho);
  background: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.porque__badge {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

/* ===== Contato ===== */

.contato {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contato__lead {
  color: var(--texto-suave);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contato__alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contato__alt a {
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 0.95rem;
}

.contato__alt a:hover {
  color: var(--azul);
}

.contato__alt i {
  margin-right: 0.4rem;
}

/* ===== Rodapé ===== */

.rodape {
  background: var(--azul-escuro);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 5%;
}

.rodape__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.rodape__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.rodape__brand img {
  height: 34px;
  width: auto;
  background: #fff;
  padding: 5px 8px;
  border-radius: 8px;
}

.rodape__copy {
  font-size: 0.85rem;
}

.footer-credit {
  font-size: 0.8rem;
  opacity: 0.75;
}

.footer-credit a {
  color: #fff;
  font-weight: 600;
}

/* ===== FAB WhatsApp ===== */

.fab-whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.6);
  z-index: 90;
  transition: transform 0.2s ease;
}

.fab-whatsapp:hover {
  transform: scale(1.08);
}

/* ===== Responsivo ===== */

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--branco);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 24px -12px rgba(13, 44, 102, 0.2);
    transition: max-height 0.3s ease;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .nav--aberto {
    max-height: 240px;
  }

  .hamburger {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .hero__badge {
    display: none;
  }

  .servicos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .porque__badge {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .servicos__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }
}
