/* ==========================================================================
   MARCA — FERNANDA PALOMARES | SEGURO FINANCEIRO
   Recria o linkbio antigo (WordPress/Elementor): hero em foto com o título
   em arte na metade direita e filete branco embaixo; 4 cards em arte numa
   coluna sobre fundo bege (arte horizontal no desktop, vertical no celular).
   ========================================================================== */

/* ---- Hero -------------------------------------------------------------
   Desktop: 819px de altura (com o filete branco de 5px), conteúdo numa
   caixa de 1140px dividida em duas colunas; o título ocupa a da direita.  */
.hero {
  min-height: 819px;
  padding: 30px 10px;
  border-bottom: 5px solid #ffffff;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.hero__bg {
  inset: 0;                       /* mesmo recorte da foto do original */
  background:
    var(--hero-img) center / cover no-repeat,
    var(--hero-base);
}
.hero__inner {
  width: 100%;
  max-width: 1140px;
  display: flex;
  justify-content: flex-end;
}
.hero__title {
  width: calc((100% - 20px) / 2);
  padding: 10px;
  line-height: 0;
}
.hero__logo {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ---- Cards em arte, uma coluna, sobre o fundo bege --------------------- */
.page {
  max-width: none;
  padding: 60px 10px;
  background: var(--bg) url("../assets/fundo-cards.webp") center / cover no-repeat;
}
.cards {
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}
.card {
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}
.card picture { display: block; }
.card img { height: auto; }
.card:hover img { transform: none; }        /* arte com texto: sem zoom */
.card.is-visible:hover,
.card:hover {
  transform: translateY(-10px);             /* igual ao hover do original */
  box-shadow: none;
}
.card.is-visible:active,
.card:active { transform: translateY(-4px); }

/* ---- Tablet: foto vertical, título no topo ----------------------------- */
@media (max-width: 1024px) {
  .hero {
    min-height: 1161px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  .hero__bg {
    background:
      var(--hero-img-mobile) center bottom / cover no-repeat,
      var(--hero-base);
  }
  .hero__inner { justify-content: center; }
  .hero__title {
    width: 100%;
    text-align: center;
  }
  .hero__logo { width: 71%; margin: 0 auto; }
}

/* ---- Celular ----------------------------------------------------------- */
@media (max-width: 767px) {
  .hero { min-height: 669px; padding-bottom: 30px; }
  .hero__logo { width: 77%; max-width: none; }
}
@media (max-width: 560px) {
  .hero__bg {                     /* vence a regra do núcleo para o celular */
    background:
      var(--hero-img-mobile) center bottom / cover no-repeat,
      var(--hero-base);
  }
  .cards { margin-top: 0; }
  .hero__logo { width: 77%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover, .card.is-visible:hover { transform: none; }
}
