/* ===== Morada Soluções Financeiras e Projetos ===== */

:root {
  --azul-rodape: #004b9b;
  --branco: #ffffff;
  --fonte-titulo: "Encode Sans Expanded", Arial, Helvetica, sans-serif;
  --fonte-texto: "Montserrat", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--fonte-texto);
  font-weight: 400;
  color: rgba(0, 0, 0, 0.87);
  background: var(--branco);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-inline: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Capa ---------- */
.hero {
  position: relative;
  min-height: 1093px;
  padding-top: 446px;
  padding-bottom: 80px;
  background: #2f2f2f url("assets/bg-desktop.jpg") no-repeat center center / cover;
  color: var(--branco);
  text-align: center;
}

.hero__title {
  max-width: 609px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 35px;
  line-height: 1.4;
  color: var(--branco);
}

.hero__subtitle {
  max-width: 500px;
  margin-top: 36px;
  font-family: var(--fonte-texto);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--branco);
}

.hero__instagram {
  display: block;
  width: 313px;
  max-width: 100%;
  margin-top: 36px;
}

.hero__instagram img,
.whatsapp img {
  transition: transform 0.5s ease-in-out;
}
.hero__instagram:hover img,
.whatsapp:hover img {
  transform: scale(1.03);
}

/* ---------- Vídeo + WhatsApp ---------- */
.content {
  background: var(--branco);
  padding-top: 90px;
  padding-bottom: 90px;
}

.video {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 534;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.whatsapp {
  display: block;
  width: 546px;
  max-width: 100%;
  margin-top: 60px;
  animation: rotate-loop 2s infinite ease-in-out;
  animation-delay: 1s;
}

@keyframes rotate-loop {
  0%, 85% { transform: rotate(0deg); }
  90%     { transform: rotate(-4deg); }
  95%     { transform: rotate(4deg); }
  100%    { transform: rotate(0deg); }
}

/* ---------- Rodapé ---------- */
.footer {
  background: var(--azul-rodape);
  color: var(--branco);
  min-height: 134px;
  display: flex;
  align-items: center;
  text-align: center;
  padding-block: 24px;
}

.footer p {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------- Animações de entrada ---------- */
.anim {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}
.anim--slide-top  { animation-name: slide-top;  animation-duration: 1s; }
.anim--slide-left { animation-name: slide-left; animation-duration: 1.2s; }
.anim--fade       { animation-name: fade;       animation-duration: 1.4s; }
.anim--delay-1 { animation-delay: 0.15s; }
.anim--delay-2 { animation-delay: 0.35s; }

@keyframes slide-top  { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes slide-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fade       { from { opacity: 0; } to { opacity: 1; } }

/* O card do WhatsApp usa a animação de entrada e depois o balanço contínuo */
.whatsapp.anim {
  animation: slide-left 1.2s ease-out 0.35s forwards, rotate-loop 2s ease-in-out 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .anim, .whatsapp.anim { animation: none; opacity: 1; }
  .hero__instagram img, .whatsapp img { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .hero {
    min-height: 987px;
    padding-top: 440px;
    padding-bottom: 60px;
    background-image: url("assets/bg-mobile.jpg");
    background-position: 52% 50%;
  }
  .hero__title {
    font-size: 29px;
    max-width: 360px;
  }
  .hero__subtitle {
    font-size: 16px;
    max-width: 360px;
    margin-top: 28px;
  }
  .hero__instagram {
    width: 300px;
    margin-top: 32px;
  }
  .content {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .whatsapp {
    margin-top: 48px;
  }
}
