/* ==========================================================================
   Liliana Vilaça - Créditos e Seguros (v4)
   content.css - estilos de conteúdo das páginas interiores.
   Tokens, topbar, header e rodapé vêm do base.css (design v3).
   As variáveis do v2 (--gold, --ink, etc.) são remapeadas no base.css
   para a paleta navy + amarelo, por isso o conteúdo recolore sozinho.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* Utilitários de texto */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.eyebrow--ondark { color: #D8BE8C; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--text-soft); font-size: 17px; }
.section-head--left { text-align: left; margin-left: 0; }

/* ---------- Secções ---------- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink-deep); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--text-on-dark-soft); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary {
  background: var(--grad-gold);
  color: var(--ink-black);
  text-transform: uppercase;
  font-size: 14px;
}
.btn--primary:hover { color: var(--ink-black); }
.btn--dark {
  background: var(--ink);
  color: #EFE6D2;
}
.btn--dark:hover { color: var(--white); }
.btn--outline {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: transparent;
}
.btn--outline:hover { background: var(--gold-pale); color: var(--gold-deep); }
.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}
.btn--outline-light:hover { border-color: var(--white); color: var(--white); }
.btn--lg { padding: 17px 36px; font-size: 15px; }
.btn--block { width: 100%; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(177, 152, 115, 0.28), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(177, 152, 115, 0.16), transparent 55%),
    var(--ink-deep);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 88px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { font-size: 18px; color: var(--text-on-dark-soft); max-width: 520px; }
.hero__reg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-on-dark-soft);
  border: 1px solid rgba(216, 190, 140, 0.35);
  border-radius: 100px;
  padding: 7px 14px;
  margin-bottom: 22px;
}
.hero__reg svg { width: 14px; height: 14px; color: #D8BE8C; flex-shrink: 0; }
.hero__reg a { color: #D8BE8C; text-decoration: underline; text-underline-offset: 3px; }
.hero .btn-group { margin-top: 30px; }
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-on-dark-soft);
}
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points svg { width: 15px; height: 15px; color: #D8BE8C; }

/* Retrato / placeholder de fotografia */
.hero__media { position: relative; }
.portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 430px;
  margin-left: auto;
  background:
    radial-gradient(340px 300px at 75% 20%, rgba(237, 220, 150, 0.4), transparent 60%),
    linear-gradient(160deg, #5A5344 0%, #3D382E 70%);
  border: 1px solid rgba(216, 190, 140, 0.3);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.portrait__monogram {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.portrait__note {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 235, 226, 0.55);
  white-space: nowrap;
}
.portrait--photo picture,
.portrait--photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  left: -8px;
  bottom: 26px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}
.hero__badge svg { width: 26px; height: 26px; color: var(--gold-deep); flex-shrink: 0; }
.hero__badge small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--text-soft); }

/* ---------- Banda de simuladores (home) ---------- */
.simband {
  background: var(--grad-gold);
  padding: 62px 0 70px;
}
.simband h2 { font-size: 30px; color: var(--ink-black); text-align: center; margin-bottom: 8px; }
.simband > .container > p { text-align: center; color: rgba(44, 41, 33, 0.75); margin-bottom: 36px; font-size: 16.5px; }
.simband__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sim-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(96, 74, 34, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease;
}
.sim-card:hover { transform: translateY(-5px); }
.sim-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.sim-card__icon svg { width: 30px; height: 30px; color: var(--gold-deep); }
.sim-card h3 { font-size: 21px; margin-bottom: 2px; }
.sim-card p { font-size: 14px; color: var(--text-soft); margin-bottom: 16px; }
.sim-card .btn { margin-top: auto; }

/* ---------- Grelha de vantagens (cartões centrados estilo referência) ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit {
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.55);
  border-radius: var(--r-md);
  padding: 40px 28px 34px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(177, 152, 115, 0.5);
}
.benefit__icon {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--grad-gold);
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
}
.benefit__icon svg { width: 56px; height: 56px; color: var(--white); }
.benefit h3 { font-size: 19px; }
.benefit h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-gold);
  margin: 14px auto 0;
}
.benefit p { font-size: 14.5px; color: var(--text-soft); margin: 14px 0 0; }

/* ---------- Cards de soluções ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution {
  position: relative;
  border-radius: var(--r-lg);
  padding: 34px 28px 28px;
  background:
    radial-gradient(360px 220px at 110% -20%, rgba(237, 220, 150, 0.16), transparent 60%),
    linear-gradient(155deg, #55503F 0%, var(--ink-deep) 75%);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.solution:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.solution__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(237, 220, 150, 0.14);
  border: 1px solid rgba(216, 190, 140, 0.4);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.solution__icon svg { width: 26px; height: 26px; color: #E3C98F; }
.solution h3 { color: var(--white); font-size: 21px; }
.solution p { font-size: 14.5px; color: var(--text-on-dark-soft); flex-grow: 1; }
.solution .btn { align-self: flex-start; margin-top: 18px; }
.solution--gold {
  background: var(--grad-gold);
  color: var(--ink-black);
}
.solution--gold h3 { color: var(--ink-black); }
.solution--gold p { color: rgba(44, 41, 33, 0.75); }
.solution--gold .solution__icon { background: rgba(255, 255, 255, 0.4); border-color: rgba(140, 111, 69, 0.4); }
.solution--gold .solution__icon svg { color: var(--ink-black); }

/* ---------- Passos (como funciona) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: passo; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.55);
  border-radius: var(--r-lg);
  padding: 58px 24px 26px;
}
.step::before {
  counter-increment: passo;
  content: counter(passo, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.step h3 { font-size: 18px; }
.step p { font-size: 14px; color: var(--text-soft); margin: 0; }

/* ---------- Testemunhos (formato das avaliações Google) ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 34px;
}
.grating__score {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.grating__meta { display: flex; flex-direction: column; gap: 4px; }
.grating__meta .gstars svg { width: 20px; height: 20px; }
.grating__meta > span:last-child { font-size: 13.5px; color: var(--text-soft); }
.gstars { display: inline-flex; gap: 2px; }
.gstars svg { width: 17px; height: 17px; fill: #FBBC04; }
.gcard {
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.55);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gcard__head { display: flex; align-items: center; gap: 12px; }
.gcard__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  flex-shrink: 0;
}
.gcard__id { flex: 1; min-width: 0; line-height: 1.3; }
.gcard__id strong { display: block; font-family: var(--font-head); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.gcard__glogo { width: 20px; height: 20px; flex-shrink: 0; }
.gcard__rating { display: flex; align-items: center; gap: 10px; }
.gcard__when { font-size: 12.5px; color: var(--text-soft); }
.gcard blockquote { margin: 0; font-size: 14.5px; color: var(--text); flex-grow: 1; }
.greviews-cta { text-align: center; margin-top: 30px; }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.55);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  position: relative;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fotografia de destaque no topo do artigo, à largura do corpo do texto. */
.article-figura {
  margin: 0 auto 34px;
  max-width: 760px;   /* a mesma coluna do texto (.article), para não parecer desalinhada */
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-figura img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card__tag { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 8px; }
.post-card h3 { font-size: 19px; }
.post-card h3 a { color: inherit; }
.post-card p { font-size: 14px; color: var(--text-soft); flex-grow: 1; }
.post-card .arrow-link { margin-top: 10px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-deep);
}
.arrow-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Bancos ---------- */
.banks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bank-chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.7);
  border-radius: 100px;
  padding: 10px 20px;
}
.banks-note { text-align: center; font-size: 12.5px; color: var(--text-soft); margin-top: 18px; }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  background:
    radial-gradient(500px 260px at 90% -30%, rgba(237, 220, 150, 0.25), transparent 60%),
    var(--ink-deep);
  color: var(--text-on-dark);
  text-align: center;
  padding: 64px 34px;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: 32px; }
.cta-band p { max-width: 560px; margin: 0 auto 26px; color: var(--text-on-dark-soft); }
.cta-band .btn-group { justify-content: center; }
.eyebrow--center { display: block; text-align: center; }

/* ---------- Página: hero interno ---------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(177, 152, 115, 0.35), transparent 60%),
    var(--ink-deep);
  color: var(--text-on-dark);
  padding: 66px 0 70px;
}
.page-hero--compact { padding: 48px 0 52px; }
/* Fundo texturado (escolha da cliente: pedra), coerente com a home */
html[data-hero-background="pedra"] .hero,
html[data-hero-background="pedra"] .page-hero,
html[data-hero-background="pedra"] .cta-band {
  background-image: linear-gradient(rgba(0, 0, 0, .16), rgba(0, 0, 0, .16)), url('https://res.cloudinary.com/dxrk58emm/image/upload/f_auto,q_auto/v1787989033/liliana-vilaca/hero-pedra-escura.png');
  background-size: cover;
  background-position: center;
}
.page-hero .crumbs {
  font-size: 13px;
  color: var(--text-on-dark-soft);
  margin-bottom: 16px;
}
.page-hero .crumbs a { color: #D8BE8C; }
.page-hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 42px;
  max-width: 820px;
  margin-bottom: 14px;
}
.page-hero .lead { font-size: 17.5px; color: var(--text-on-dark-soft); max-width: 680px; }
.page-hero .btn-group { margin-top: 26px; }

/* ---------- Landing produto: split hero ---------- */
.product-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.product-hero__panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(216, 190, 140, 0.3);
  border-radius: var(--r-lg);
  padding: 26px;
}
.product-hero__panel h2 { color: var(--white); font-size: 19px; margin-bottom: 14px; }
.product-hero__panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.product-hero__panel li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-on-dark-soft); }
.product-hero__panel li svg { width: 17px; height: 17px; color: #D8BE8C; flex-shrink: 0; margin-top: 2px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; }
.checklist svg { width: 19px; height: 19px; color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }

/* ---------- Split de conteúdo ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(300px 240px at 70% 25%, rgba(237, 220, 150, 0.35), transparent 60%),
    linear-gradient(160deg, #5A5344 0%, #3D382E 75%);
  display: grid;
  /* A linha tem de ter altura própria, senão o height:100% da imagem resolve
     contra uma linha automática e a foto sai por fora da caixa. O minmax(0,...)
     é o que faz a diferença: sem ele, o mínimo automático da grelha é a altura
     da imagem e a linha estica na mesma. */
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  border: 1px solid rgba(177, 152, 115, 0.35);
}
.split__media svg { width: 72px; height: 72px; color: rgba(227, 201, 143, 0.8); }
/* Com fotografia, ela ocupa a caixa toda e o gradiente por baixo fica só a
   segurar o espaço enquanto carrega. */
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Recorte com fundo transparente: a figura tem de caber inteira e o gradiente da
   caixa faz de fundo, ao contrário das fotos normais, que cortam para preencher.
   Não se mexe no alinhamento da grelha: com align-content:end a linha perde a
   altura fixa que o aspect-ratio lhe dá e a figura sai por fora da caixa. Faz-se
   tudo pelo object-fit. */
.split__media--recorte img { object-fit: contain; object-position: bottom center; padding: 20px 20px 0; }
.split__media--foto { background: none; padding: 0; aspect-ratio: 625 / 784; max-width: 420px; margin: 0 auto; }
.split__media--foto img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.6);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid rgba(209, 206, 202, 0.5); }
.faq .faq__body { padding: 16px 22px 20px; font-size: 14.5px; color: var(--text-soft); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Formulários ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(177, 152, 115, 0.22);
}
.field textarea { min-height: 110px; resize: vertical; }
.field--error input { border-color: var(--bad); }
.field .hint { font-size: 12px; color: var(--text-soft); margin-top: 5px; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-soft);
}
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold-deep); flex-shrink: 0; }
.form-note { font-size: 12.5px; color: var(--text-soft); margin-top: 12px; }
.form-feedback { display: none; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 14px; }
.form-feedback.is-ok { display: block; background: #EDF3EA; color: var(--ok); }
.form-feedback.is-err { display: block; background: #F7E9E4; color: var(--bad); }

/* Painel de contacto (form + dados) */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: start;
}
.contact-panel {
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.55);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.contact-info { display: grid; gap: 14px; }
.info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.55);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.info-item svg { width: 22px; height: 22px; color: var(--gold-deep); flex-shrink: 0; margin-top: 2px; }
.info-item strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.info-item a, .info-item span { font-size: 15px; }

/* ---------- Simuladores ---------- */
.sim-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}
.sim-panel {
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.55);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.sim-panel h2 { font-size: 20px; margin-bottom: 20px; }
.sim-fields { display: grid; gap: 18px; }
.sim-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}
.sim-field output {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-deep);
  font-weight: 700;
  white-space: nowrap;
}
.sim-field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--r-sm);
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
}
.sim-field input[type="number"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(177, 152, 115, 0.22);
}
input[type="range"] {
  width: 100%;
  height: 6px;
  margin-top: 12px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--amarelo) 0%, var(--amarelo) var(--fill, 50%), #E4E1DC var(--fill, 50%), #E4E1DC 100%);
  border-radius: 100px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-gold);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(56, 52, 41, 0.35);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amarelo);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(56, 52, 41, 0.35);
}
.sim-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-toggle label {
  flex: 1;
  min-width: 130px;
  border: 1px solid var(--stone);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.sim-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sim-toggle input:checked + label,
.sim-toggle label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #EFE6D2;
}
.sim-results {
  background:
    radial-gradient(420px 240px at 100% -20%, rgba(237, 220, 150, 0.2), transparent 60%),
    var(--ink-deep);
  border-radius: var(--r-lg);
  padding: 32px;
  color: var(--text-on-dark);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.sim-results h2 { color: var(--white); font-size: 18px; margin-bottom: 22px; }
.result-main { margin-bottom: 22px; }
.result-main .label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-dark-soft); }
.result-main .value {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.result-main .value small { font-size: 22px; }
.result-rows { display: grid; gap: 0; margin-bottom: 6px; }
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(239, 235, 226, 0.14);
  font-size: 14px;
}
.result-row:last-child { border-bottom: none; }
.result-row span { color: var(--text-on-dark-soft); }
.result-row strong { color: var(--white); font-family: var(--font-head); white-space: nowrap; }
.result-note { font-size: 12px; color: rgba(201, 195, 182, 0.85); margin: 14px 0 0; }
.sim-results .btn { margin-top: 20px; }
.result-flag {
  display: inline-block;
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  margin-top: 10px;
}
.result-flag--ok { background: rgba(110, 160, 110, 0.22); color: #A9D2A9; }
.result-flag--warn { background: rgba(220, 165, 80, 0.2); color: #EBCB8F; }
.result-flag--bad { background: rgba(200, 105, 75, 0.22); color: #E8A28C; }

/* Medidor da taxa de esforço */
.gauge { height: 10px; border-radius: 100px; background: rgba(239, 235, 226, 0.16); overflow: hidden; margin-top: 16px; }
.gauge__fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: var(--grad-gold);
  transition: width 0.35s ease;
}

/* Tabela (IMT, Euribor) */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.data th {
  background: var(--ink);
  color: #EFE6D2;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}
table.data td { padding: 11px 16px; border-bottom: 1px solid rgba(209, 206, 202, 0.4); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) td { background: var(--cream); }

/* Cartões Euribor */
.rate-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rate-card {
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.55);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
}
.rate-card .period { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.rate-card .rate {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.rate-card .desc { font-size: 13px; color: var(--text-soft); }

/* ---------- Quem sou: credenciais ---------- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cred {
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.55);
  border-radius: var(--r-lg);
  padding: 26px;
  text-align: center;
}
.cred svg { width: 30px; height: 30px; color: var(--gold-deep); margin: 0 auto 12px; }
.cred strong { display: block; font-family: var(--font-head); font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.cred span { font-size: 13.5px; color: var(--text-soft); }

/* ---------- Artigos ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article h2 { font-size: 26px; margin-top: 1.6em; }
.article h3 { font-size: 20px; margin-top: 1.4em; }
.article p, .article li { font-size: 16.5px; line-height: 1.75; }
.article .article-meta { font-size: 13.5px; color: var(--text-soft); margin-bottom: 26px; }
.article blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}

/* ---------- Página de links ---------- */
.links-page {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.link-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid rgba(209, 206, 202, 0.6);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.link-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold); color: var(--ink); }
.link-tile svg { width: 22px; height: 22px; color: var(--gold-deep); flex-shrink: 0; }
.link-tile small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--text-soft); }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.42s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.49s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.56s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .container { max-width: 1024px; }
  .hero h1 { font-size: 42px; }
  .benefits, .solutions, .posts, .testimonials, .rate-cards, .creds { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .simband__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

}

@media (max-width: 767px) {
  .section { padding: 60px 0; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 60px; gap: 36px; }
  .hero h1 { font-size: 34px; }
  .portrait { margin: 0 auto; max-width: 340px; }
  .hero__badge { left: 8px; bottom: 16px; }
  .section-head h2 { font-size: 27px; }
  .simband__grid { grid-template-columns: 1fr; }
  .benefits, .solutions, .posts, .testimonials, .steps, .rate-cards, .creds { grid-template-columns: 1fr; }
  .split, .contact-wrap, .sim-layout, .product-hero__inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 30px; }
  .cta-band { padding: 46px 22px; }
  .cta-band h2 { font-size: 26px; }
  .sim-results { position: static; }
  .result-main .value { font-size: 38px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================================
   Sobreposição do rodapé nas páginas interiores
   (mesmo efeito da home: o último bloco flutua sobre o fundo escuro)
   ========================================================= */
body.pg-overlap main > .section:last-child {
  position: relative;
  z-index: 2;
  background: transparent;
  padding-bottom: 0;
}
body.pg-overlap main > .section:last-child .contact-panel {
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}
body.pg-overlap .footer { margin-top: -300px; }
body.pg-overlap .footer-shape svg { height: 350px; }

@media (max-width: 1024px) {
  body.pg-overlap .footer { margin-top: -220px; }
  body.pg-overlap .footer-shape svg { height: 280px; }
}
@media (max-width: 767px) {
  body.pg-overlap .footer { margin-top: -150px; }
  body.pg-overlap .footer-shape svg { height: 210px; }
}
