/* =========================================================
   Liliana Vilaça - v4 - home.css
   Secções exclusivas da home (design v3). Carregado só na home.
   ========================================================= */

/* ---------- Botões da home ---------- */
.btn {
  display: inline-block;
  background: var(--amarelo);
  color: var(--navy);
  font-family: var(--fonte);
  font-size: 14px;
  font-weight: 400;
  border: none;
  border-radius: 5px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all .3s ease;
  text-align: center;
}
.btn:hover { background: var(--amarelo-hover); color: #fff; }

.btn-badge {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 5px;
  display: inline-block;
  background: var(--amarelo);
  color: var(--navy);
  font-weight: 600;
  transition: all .3s ease;
}
.btn-badge:hover { transform: scale(1.05); }

.btn-simular {
  font-size: 15px;
  font-weight: 800;
  border-radius: 7px;
  padding: 12px 28px;
  letter-spacing: .3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 964px;
  padding-bottom: 195px;
  margin-bottom: -219px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-fundo { display: none; }
.hero[data-hero-background="atual"] .hero-fundo--atual,
.hero[data-hero-background="pedra"] .hero-fundo--pedra { display: block; }

.hero-inner { display: flex; gap: 20px; align-items: flex-start; }
.hero-col-img { flex: 1 1 46%; margin-left: 30px; padding-top: 50px; }
.hero-foto {
  display: block;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}
.hero-photo-actions {
  width: min(100%, 540px);
  margin: -8px auto 0;
  padding: 17px 18px 15px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(2, 54, 73, .3);
  border-radius: 12px;
  background: rgba(15, 30, 37, .82);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.hero-photo-buttons { display: grid; grid-template-columns: 1.15fr .9fr; gap: 10px; }
.hero-photo-cta {
  min-height: 48px;
  padding: 11px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .25px;
  line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.hero-photo-cta:hover { transform: translateY(-2px); }
.hero-photo-cta--primary {
  color: var(--navy);
  background: var(--amarelo);
  border: 1px solid var(--amarelo);
  box-shadow: 0 6px 16px rgba(255, 191, 2, .28);
}
.hero-photo-cta--primary:hover { background: var(--amarelo-claro); }
.hero-photo-cta--whatsapp {
  color: #fff;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.7);
}
.hero-photo-cta--whatsapp:hover { background: rgba(255,255,255,.12); }
.hero-photo-benefits {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.hero-photo-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #eef4f6;
  font-size: 11.5px;
  white-space: nowrap;
}
.hero-photo-benefits svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--amarelo); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}
.hero-col-conteudo {
  flex: 1 1 54%;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-titulo {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 55px;
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,.74);
  padding-right: 50px;
}
.hero-titulo span { display: block; }

/* cartão simulador */
.simulador {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0,0,0,.25);
  padding: 30px 34px 34px;
  margin-top: 28px;
}
.simulador h2 { font-size: 22px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 4px; }
.simulador .sub { font-size: 13px; color: var(--texto); text-align: center; margin-bottom: 22px; }
.sim-campo { margin-bottom: 16px; }
.sim-campo label { display: block; font-size: 14px; font-weight: 600; color: var(--label); margin-bottom: 6px; }
.sim-campo input, .sim-campo select {
  width: 100%;
  border: 1px solid var(--borda-2);
  border-radius: 6px;
  padding: 11px 12px;
  font-family: var(--fonte);
  font-size: 14px;
  color: var(--texto);
  background: #fff;
}
.sim-campo input:focus, .sim-campo select:focus { outline: 2px solid var(--amarelo); border-color: transparent; }
.sim-linha { display: flex; gap: 12px; }
.sim-linha .sim-campo { flex: 1; }
.simulador .btn { display: block; width: 100%; font-weight: 800; font-family: var(--fonte-btn); font-size: 16px; padding: 14px; margin-top: 6px; text-decoration: none; text-align: center; }
.simulador .nota { font-size: 11px; color: var(--meta); text-align: center; margin-top: 14px; line-height: 1.5; }

.sim-resultado {
  background: var(--navy);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 6px 0 18px;
  text-align: center;
}
.sim-resultado__label { display: block; font-size: 12.5px; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.sim-resultado__valor { font-size: 34px; font-weight: 800; color: var(--amarelo); line-height: 1.1; }
.sim-resultado__resumo { font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 6px; }
.sim-resultado__linhas { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); display: grid; gap: 6px; }
.sim-resultado__linha { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,.85); }
.sim-resultado__linha strong { color: #fff; }

/* ---------- Cartões tipos de crédito ---------- */
.tipos { position: relative; z-index: 5; }
.tipos-inner { display: flex; gap: 10px; }
.tipo-card {
  flex: 1;
  background: #fff;
  border: 2px solid var(--borda);
  border-radius: 6px;
  padding: 34px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color .3s ease, border-radius .3s ease, box-shadow .3s ease;
}
.tipo-card:hover { border-color: var(--amarelo); border-radius: 25px; box-shadow: 0 12px 30px rgba(2,54,73,.10); }
.tipo-card .icone { color: var(--amarelo); margin-bottom: 13px; }
.tipo-card .icone svg { width: 50px; height: 50px; }
.tipo-card h3 { font-size: 28px; font-weight: 600; color: var(--navy); margin-bottom: 10px; line-height: 1.2; }
.tipo-card p { font-size: 14px; color: var(--texto); margin-bottom: 22px; flex-grow: 1; }

/* ---------- Avaliações ---------- */
.avaliacoes { padding: 50px 0; text-align: center; }
.avaliacoes-intro { max-width: 640px; margin: 0 auto 24px; }
.avaliacoes-intro h2 { font-size: 40px; font-weight: 700; line-height: 1.09; color: var(--navy); margin-top: 18px; margin-bottom: 12px; }
.avaliacoes-intro p { font-size: 16px; color: var(--texto-2); }
.avaliacoes-header { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.avaliacoes-header .nota-google { display: flex; align-items: center; gap: 10px; }
.avaliacoes-header .valor { font-size: 42px; font-weight: 700; color: var(--navy); line-height: 1; }
.estrelas { display: flex; gap: 3px; color: var(--amarelo); }
.estrelas svg { width: 20px; height: 20px; }
.avaliacoes-header .base { font-size: 14px; color: var(--texto-2); }
.avaliacoes-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.aval-card { background: #fff; border: 1px solid var(--borda-2); border-radius: 10px; padding: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.06); flex: 1 1 260px; max-width: 320px; text-align: left; }
.aval-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aval-topo .nome { font-size: 14px; font-weight: 700; color: #333; }
.aval-topo .data { font-size: 12px; color: var(--meta); }
.aval-card .estrelas svg { width: 15px; height: 15px; }
.aval-card p { font-size: 14px; color: var(--texto-2); margin-top: 10px; line-height: 1.55; }

/* ---------- Vantagens ---------- */
.vantagens { margin-top: 30px; text-align: center; }
.vantagens h2 { font-size: 40px; font-weight: 700; line-height: 1.09; color: var(--navy); margin-top: 18px; }
.vantagens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 10px; padding: 0 50px; margin-top: 40px; }
.vant-card { border: 1px solid var(--borda); border-radius: 5px; padding: 30px 20px 26px; display: flex; flex-direction: column; align-items: center; background: #fff; }
.vant-card .icone { width: 25%; margin-bottom: 14px; }
.vant-card h3 { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.15; }
.vant-divisor { width: 50px; border-bottom: 4px solid var(--amarelo); margin: 15px auto; }
.vant-card p { font-size: 16px; color: var(--navy); line-height: 1.5; }

/* ---------- Soluções ---------- */
.solucoes { margin-top: 50px; }
.solucoes-dark {
  background: var(--bege-dourado);
  background-position: center;
  background-size: cover;
  border-radius: 5px;
  min-height: 520px;
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: background-color .25s ease, background-image .25s ease;
}
html[data-hero-background="atual"] .solucoes-dark {
  background-color: #55524D;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 4px 4px;
}
html[data-hero-background="pedra"] .solucoes-dark { background-image: linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.08)), url('https://res.cloudinary.com/dxrk58emm/image/upload/f_auto,q_auto/v1787989033/liliana-vilaca/hero-pedra-escura.png'); }
.solucoes-texto { flex: 1 1 55%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 60px 60px 150px; }
.solucoes-texto h2 { font-size: 52px; font-weight: 700; color: #fff; line-height: 1.05; }
.solucoes-texto p { font-size: 16px; color: #fff; line-height: 1.35; padding-top: 18px; max-width: 500px; }
.solucoes-figura { flex: 1 1 45%; align-self: stretch; display: flex; justify-content: center; }
.solucoes-figura img { display: block; width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center; border-radius: 0 5px 5px 0; }
.solucoes-cards {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(2,54,73,.16);
  width: calc(100% - 80px);
  margin: -120px auto 0;
  position: relative;
  z-index: 2;
  padding: 60px 24px 50px;
  display: flex;
  justify-content: flex-start;
  gap: 20px 15px;
  flex-wrap: wrap;
}
.sol-card {
  flex: 1 1 calc(33.333% - 15px);
  max-width: calc(33.333% - 10px);
  min-width: 250px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--borda);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sol-card .sol-img { width: 100%; aspect-ratio: 353 / 122; background: #F1F3F4; display: flex; align-items: center; justify-content: center; }
.sol-card .sol-img svg { height: 72%; width: auto; }
.sol-corpo { padding: 20px 16px; display: flex; flex-direction: column; flex-grow: 1; }
.sol-corpo h3 { font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 10px; }
.sol-corpo p { font-size: 15px; color: var(--texto); line-height: 1.4; margin-bottom: 16px; flex-grow: 1; }
.sol-corpo .btn-badge { align-self: flex-start; }

/* ---------- Blog ---------- */
.blog { margin-top: 40px; text-align: center; }
.blog h2 { font-size: 40px; font-weight: 700; line-height: 1.09; color: var(--navy); margin-top: 18px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 20px; text-align: left; }
.post-card { background: #fff; border: 1px solid var(--borda-2); border-radius: 5px; padding: 20px 10px; }
.post-img {
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bege-dourado);
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background-color .25s ease, background-image .25s ease;
}
.post-img svg { width: 64px; height: 64px; }
/* Com fotografia, a imagem cobre o cartão; a textura por baixo fica só a
   segurar o espaço enquanto ela carrega. */
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-hero-background] .post-img { color: var(--amarelo); }
html[data-hero-background="atual"] .post-img {
  background-color: #55524D;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 4px 4px;
}
html[data-hero-background="pedra"] .post-img { background-image: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.05)), url('https://res.cloudinary.com/dxrk58emm/image/upload/f_auto,q_auto/v1787989033/liliana-vilaca/hero-pedra-escura.png'); }
.post-card h3 { padding: 10px 0; }
.post-card h3 a { font-size: 18px; font-weight: 700; color: #333; line-height: 1.28; transition: color .2s ease; }
.post-card h3 a:hover { color: var(--amarelo); }
.post-meta { display: flex; gap: 14px; font-size: 13px; color: var(--meta); align-items: center; }
.post-meta span { display: flex; align-items: center; gap: 5px; }
.post-meta svg { width: 13px; height: 13px; }
.post-sep { border-bottom: 2px solid var(--borda-2); margin: 15px 0; }
.post-card .excerto { font-size: 15px; color: var(--texto-2); text-align: justify; line-height: 1.5; }
.blog-paginacao { margin-top: 25px; display: flex; justify-content: center; gap: 10px; }
.blog-paginacao a { background: var(--amarelo); color: var(--navy); font-size: 14px; padding: 8px 20px; border-radius: 3px; transition: transform .2s ease; }
.blog-paginacao a:hover { transform: translateY(-2px); }
/* A frase acima do botão do Instagram (o botão em si está no base.css, porque
   também é usado na página do blog). */
.blog-instagram {
  margin: 22px auto 14px;
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--texto-2);
}

/* ---------- Parceiros ---------- */
.parceiros { margin-top: 40px; text-align: center; overflow: hidden; }
.parceiros h2 { font-size: 40px; font-weight: 700; line-height: 1.09; color: var(--navy); margin-top: 18px; margin-bottom: 30px; }
.parceiros--barra {
  margin-top: 34px;
  position: relative;
  z-index: 3;
}
.marquee {
  overflow: hidden;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
  padding: 16px 0;
}
.marquee-faixa {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-grupo { display: flex; align-items: center; flex-shrink: 0; }
.logo-parceiro {
  width: 196px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 28px;
}
.logo-parceiro img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* O Montepio leva uma nota por baixo do logotipo, a pedido da cliente. É o único
   item da esteira com texto: o logotipo encolhe para a nota caber sem fazer
   crescer a barra e desalinhar os outros. */
.logo-parceiro--nota {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 232px;
  padding: 0 20px;
}
.logo-parceiro--nota img { max-height: 40px; }
.logo-parceiro--nota span {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--meta);
  text-align: center;
  letter-spacing: .01em;
}
.logo-parceiro--grande { padding: 0 12px; }
.logo-parceiro--grande img { max-width: 148%; max-height: 148%; }
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-faixa { animation: none; }
}

/* ---------- Contactos ---------- */
.contactos-wrap { position: relative; z-index: 2; }
.contactos { margin-top: 90px; display: flex; gap: 0; }
.contactos-info { flex: 1 1 50%; }
.contactos-info h2 { font-size: 40px; font-weight: 700; line-height: 1.09; color: var(--navy); margin-top: 16px; }
.contactos-info .sub { font-size: 20px; line-height: 1.3; color: var(--texto-2); margin-top: 14px; max-width: 480px; }
.contacto-item { display: flex; align-items: flex-start; gap: 15px; margin-top: 34px; }
.contacto-item .icone { color: var(--azul-claro); flex-shrink: 0; }
.contacto-item .icone svg { width: 34px; height: 34px; }
.contacto-item h3 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--navy); max-width: 330px; }
.contacto-item h3 a { color: inherit; }
.contactos-form-wrap { flex: 1 1 50%; position: relative; padding-top: 33px; }
.forma-elipse { position: absolute; top: -40px; right: -30px; width: 150px; height: 150px; border-radius: 50%; background: var(--amarelo); z-index: 0; }
.forma-pontos { position: absolute; top: -10px; left: -14px; z-index: 2; color: var(--navy); }
.form-card { position: relative; z-index: 1; background: #fff; border-radius: 15px; box-shadow: 0 10px 34px rgba(0,0,0,.22); padding: 25px 40px 40px; }
.form-campo { margin-bottom: 20px; }
.form-campo label { display: block; font-size: 15px; font-weight: 600; color: var(--label); margin-bottom: 6px; }
.form-campo input, .form-campo textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--borda-2);
  border-radius: 6px;
  padding: 12px;
  font-family: var(--fonte);
  font-size: 14px;
  color: var(--texto);
  resize: vertical;
}
.form-campo input:focus, .form-campo textarea:focus { outline: 2px solid var(--amarelo); border-color: transparent; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--label); margin-bottom: 12px; line-height: 1.4; }
.form-check input { margin-top: 2px; }
.form-card .btn { width: 100%; font-family: var(--fonte-btn); font-weight: 800; font-size: 15px; padding: 13px; }
.form-feedback { margin-top: 12px; font-size: 13.5px; line-height: 1.5; }
.form-feedback.is-ok { color: var(--ok); }
.form-feedback.is-err { color: var(--bad); }

/* ---------- Sobreposição do rodapé (só na home) ---------- */
body.home .footer { margin-top: -350px; }
body.home .footer-shape svg { height: 380px; }

/* =========================================================
   Responsivo da home
   ========================================================= */
@media (max-width: 1200px) {
  .solucoes-texto h2 { font-size: 48px; }
  .solucoes-texto p { padding: 18px 0 0; }
}
@media (max-width: 1024px) {
  .hero { min-height: 0; padding-bottom: 150px; margin-bottom: -130px; }
  .hero-inner { flex-direction: column; align-items: center; }
  .hero-col-conteudo { order: 1; padding-top: 40px; width: 100%; }
  .hero-col-img { order: 2; display: block; width: 100%; margin-left: 0; padding-top: 30px; }
  .hero-col-img .hero-foto { max-width: 340px; }
  .hero-col-img .hero-photo-actions { max-width: 520px; }
  .hero-titulo { font-size: 34px; line-height: 44px; padding-right: 0; }

  .tipos-inner { flex-direction: column; }
  .tipo-card h3 { font-size: 26px; }

  .vantagens-grid { grid-template-columns: repeat(2, 1fr); padding: 0 10px; }

  .solucoes-dark { min-height: 0; flex-direction: column; padding-top: 60px; }
  .solucoes-texto { padding: 0 30px 120px; }
  .solucoes-texto h2 { padding-left: 0; font-size: 40px; }
  .solucoes-texto p { padding: 14px 0 0; }
  .solucoes-figura { display: none; }
  .solucoes-cards { width: calc(100% - 30px); margin-top: -60px; }

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

  .contactos { flex-direction: column; gap: 40px; }
  .forma-elipse { right: 0; }

  body.home .footer { margin-top: -230px; }
  body.home .footer-shape svg { height: 290px; }
}
@media (max-width: 767px) {
  .hero-titulo { font-size: 28px; line-height: 38px; }
  .simulador { padding: 24px 20px 26px; }
  .hero-col-img { padding-top: 24px; }
  .hero-col-img .hero-foto { max-width: 300px; }
  .hero-col-img .hero-photo-actions { width: calc(100% - 20px); margin-top: -6px; padding: 14px 13px; }
  .hero-photo-buttons { grid-template-columns: 1fr; }
  .hero-photo-cta { min-height: 44px; }
  .hero-photo-benefits { justify-content: center; gap: 8px 14px; }

  .aval-card { flex: 1 1 100%; max-width: 420px; }
  .vantagens-grid { grid-template-columns: 1fr; }
  .vantagens h2, .blog h2, .parceiros h2, .contactos-info h2 { font-size: 31px; }

  .parceiros--barra { margin-top: 22px; }
  .logo-parceiro { width: 156px; height: 56px; padding: 0 20px; }
  /* No telemóvel a caixa encolhe e a nota partia em duas linhas, que não cabiam
     nos 56px. Dá-se-lhe mais largura e um logotipo mais pequeno. */
  .logo-parceiro--nota { width: 210px; padding: 0 14px; gap: 3px; }
  .logo-parceiro--nota img { max-height: 28px; }
  .logo-parceiro--nota span { font-size: 9.5px; }

  .solucoes-texto h2 { font-size: 32px; }
  .sol-card { width: 100%; max-width: 353px; }
  .solucoes-cards { width: calc(100% - 20px); padding: 40px 14px; justify-content: center; }

  .blog-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 20px 28px; }

  body.home .footer { margin-top: -150px; }
  body.home .footer-shape svg { height: 210px; }
}
