/* ==========================================================================
   Digitask. Sistema de design v2 · "Neo-Brutalismo Quente / Editorial Bold"
   Paleta da marca: coral · preto-quente · creme · pêssego
   Tipografia: Archivo (display, bi-peso como o logótipo) + Hanken Grotesk (corpo)
   Fontes carregadas no <head> de cada pagina (preconnect + link), nao por @import.
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  --ink: #1c1917;
  --coral: #ef4d38;
  --coral-dk: #d23a26;
  --coral-texto: #b3301c;   /* 5,89:1 sobre creme, 6,16:1 sobre papel, 4,62:1 sobre pessego */
  /* Mesmo coral, nome proprio para o verificador estatico distinguir das ocorrencias proibidas.
     Usa-se em icones SVG (nao textuais, minimo 3:1), texto grande (24px ou mais, ou 18,7px ou
     mais a negrito, minimo 3:1) e ligacoes sobre o rodape escuro, onde o par coral/ink mede
     4,82:1 no DOM, acima do minimo de 4,5:1 independentemente do tamanho do texto. */
  /* O mesmo coral, com nome proprio: so para decoracao, marca e texto grande
     (acima de 24px, ou 18,7px a negrito), onde bastam 3:1. Para texto pequeno
     usa-se --coral-texto, que passa os 4,5:1. Nao acrescentar usos sem medir. */
  --coral-decor: var(--coral);
  --cream: #fff7ed;
  --peach: #fed7aa;
  --peach-dk: #fdba74;
  --paper: #fffdfa;
  --line: #1c1917;
  --muted-ink: #57534e;
  --success: #15803d;
  --danger: #b91c1c;
  /* Verde do WhatsApp, so no botao flutuante. Com a tinta por cima mede 8,8:1. */
  --whatsapp: #25d366;
  /* Quanto o botao flutuante sobe enquanto o banner de cookies esta aberto (o main.js mede). */
  --wa-desvio: 0px;

  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --bw: 2.5px;                 /* border width */
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --shadow-coral: 6px 6px 0 var(--coral);
}

/* O cabecalho e sticky (ver .site-header mais abaixo). Sem isto, o elemento focado por teclado e
   as ancoras ficam por baixo dele: criterio 2.4.11 do WCAG 2.2. */
html { scroll-padding-top: 96px; }
@media (max-width: 760px) { html { scroll-padding-top: 88px; } }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Textura de grão subtil (autoria humana, anti-template) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }

/* overflow-wrap protege palavras longas em maiusculas ("ADMINISTRATIVO", "COMPLICACOES"),
   que a 375px sao mais largas do que o container e transbordavam para fora do ecra. */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.5rem); font-weight: 900; }   /* 37px a 390, 72px a 1440 */
h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); font-weight: 900; }    /* 28px a 390, 48px a 1440 */
h3 { font-size: 1.4rem; letter-spacing: -.01em; }
p { color: var(--muted-ink); }

::selection { background: var(--coral); color: var(--cream); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section--paper { background: var(--paper); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.section--peach { background: var(--peach); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.section--ink { background: var(--ink); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--cream); }
.section--ink p { color: #d6cfc6; }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 800;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--peach); border: var(--bw) solid var(--ink);
  padding: 6px 12px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.section-head { max-width: 760px; margin: 0 auto 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 18px; font-size: 1.15rem; color: var(--muted-ink); }
.lead { font-size: 1.25rem; color: var(--ink); font-weight: 500; line-height: 1.5; }

/* Marcador coral / pêssego sobre palavras-chave */
.mark { background: linear-gradient(transparent 55%, var(--peach) 55%); padding: 0 .05em; }
/* Utilitario generico para texto corrido (nao usado hoje), por isso assume-se tamanho de corpo:
   abaixo do minimo de 24px para texto grande. */
.mark-coral { color: var(--coral-texto); }
/* Unico uso atual e na palavra "backoffice" do h1 da home, clamp(2rem,7vw,5.4rem): nunca abaixo
   de 32px, sempre texto grande. */
.u-coral { color: var(--coral-decor); }

/* ---- Logótipo bi-peso ---- */
.brand {
  font-family: var(--font-display); font-weight: 900; font-size: 1.7rem;
  letter-spacing: -.03em; color: var(--ink); text-transform: uppercase;
  display: inline-flex; align-items: baseline; line-height: 1;
}
.brand .thin { font-weight: 200; }
/* 27,2px (1,7rem): texto grande. */
.brand .tld { font-weight: 900; color: var(--coral-decor); }
.brand .dot { color: var(--coral-decor); }
/* 30,4px (1,9rem): texto grande, e sobre o rodape escuro o par coral/ink ja mede 4,82:1. */
.site-footer .brand { color: var(--cream); font-size: 1.9rem; }
.site-footer .brand .tld { color: var(--coral-decor); }
.site-footer .brand .dot { color: var(--coral-decor); }

/* ---- Botões (hard shadow + mechanical press) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .02em;
  padding: 15px 28px; border: var(--bw) solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm); min-height: 52px;
  /* sem nowrap: os CTA longos ("Agendar reuniao gratuita", "Ver o processo de
     contratacao") sao mais largos do que o botao a 375px e transbordavam. */
  white-space: normal; text-align: center; overflow-wrap: break-word;
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: var(--coral); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { color: var(--cream); }
.btn-light { background: var(--paper); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; min-height: 58px; }
.btn svg { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 4px 4px 0 var(--coral); }
.btn-ghost:hover { color: var(--cream); box-shadow: 6px 6px 0 var(--coral); }

/* ---- Header / Nav ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: var(--bw) solid var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 700; font-size: .98rem; padding: 8px 14px; border: 2.5px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.nav-links a:hover { background: var(--peach); }
.nav-links a.active { border-color: var(--ink); background: var(--peach); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: var(--paper); border: var(--bw) solid var(--ink); width: 50px; height: 50px; cursor: pointer; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.nav-toggle svg { width: 24px; height: 24px; color: var(--ink); }

/* ---- Marquee ---- */
.marquee { background: var(--coral); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); overflow: hidden; padding: 14px 0; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; color: var(--ink); padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; }
.marquee__track span::after { content: "✦"; color: var(--cream); font-size: .9rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Hero ---- */
.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .blk { display: block; }
.hero .lead { margin-bottom: 32px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; background: var(--paper); border: var(--bw) solid var(--ink); padding: 8px 14px; box-shadow: var(--shadow-sm); }
.chip svg { width: 16px; height: 16px; color: var(--coral-decor); }

/* Cartão de tarefas do hero */
.hero-card { background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg); padding: 26px; position: relative; }
.hero-card .sticker { position: absolute; top: -18px; right: -14px; }
.hero-card h3 { margin-bottom: 4px; }
.hero-card .muted-line { font-size: .9rem; color: var(--muted-ink); margin-bottom: 16px; font-weight: 600; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 2px solid var(--ink); }
.task-row:first-of-type { border-top: none; }
.task-check { width: 26px; height: 26px; background: var(--coral); border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink); }
.task-check svg { width: 14px; height: 14px; }
.task-row span { font-weight: 700; font-size: .96rem; }
/* 13,3px a negrito sobre o cartao claro: 3,57:1, abaixo do minimo de 18,7px a negrito. */
.task-row small { margin-left: auto; font-weight: 800; font-family: var(--font-display); color: var(--coral-texto); }

/* Sticker rodado */
.sticker { display: inline-block; background: var(--ink); color: var(--cream); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; padding: 9px 14px; border: 2.5px solid var(--ink); transform: rotate(-4deg); box-shadow: var(--shadow-sm); }
.sticker.coral { background: var(--coral); color: var(--ink); }
.sticker.peach { background: var(--peach); color: var(--ink); }

/* ---- Cards / Bento ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento .card { margin: 0; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--paper); border: var(--bw) solid var(--ink); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.card.flat:hover { transform: none; box-shadow: var(--shadow-sm); }
.card .ico { width: 54px; height: 54px; background: var(--peach); border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--ink); }
.card .ico svg { width: 28px; height: 28px; }
.card.accent { background: var(--coral); }
.card.accent .ico { background: var(--cream); }
.card.accent p { color: var(--ink); }
.card.accent ul li { color: var(--ink); }
.card.ink { background: var(--ink); }
.card.ink h3 { color: var(--cream); }
.card.ink p { color: #d6cfc6; }
.card.ink .ico { background: var(--coral); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { position: relative; padding-left: 24px; font-size: .95rem; color: var(--ink); margin-bottom: 9px; font-weight: 500; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; background: var(--coral); border: 1.5px solid var(--ink); }
.card-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; margin-top: 18px; border-bottom: 2.5px solid var(--coral); padding-bottom: 2px; }
.card-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---- Steps (editorial numbered) ---- */
.steps { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); background: var(--paper); }
.step { padding: 36px 30px; border-right: var(--bw) solid var(--ink); }
.step:last-child { border-right: none; }
/* 67,2px: texto grande. */
.step .num { font-family: var(--font-display); font-weight: 900; font-size: 4.2rem; line-height: 1; color: var(--coral-decor); -webkit-text-stroke: 2px var(--ink); margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .98rem; }

/* ---- Split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stat { border: var(--bw) solid var(--ink); background: var(--paper); padding: 16px 22px; box-shadow: var(--shadow-sm); }
.stat .n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; line-height: 1; color: var(--ink); }
.stat .l { font-size: .85rem; color: var(--muted-ink); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.check-list { list-style: none; }
.check-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 2px solid var(--ink); font-weight: 500; }
.check-list li:first-child { border-top: none; }
.check-list li svg { width: 24px; height: 24px; color: var(--coral-decor); flex-shrink: 0; }
/* A check-list traz o seu proprio visto em SVG. Sem isto, os li dentro de .card
   apanham tambem o quadrado coral de .card ul li::before e ficam dois marcadores. */
.card .check-list li::before { content: none; }
.card .check-list li { padding-left: 0; }
.check-list strong { color: var(--ink); }

/* ---- Fluxo de processo numerado (paginas de projeto chave-na-mao) ---- */
.flow { list-style: none; max-width: 780px; margin: 0 auto; }
.flow li { display: flex; gap: 18px; padding: 18px 0; border-top: 2px solid var(--ink); align-items: flex-start; }
.flow li:first-child { border-top: none; }
.flow__n { width: 40px; height: 40px; flex-shrink: 0; background: var(--coral); border: 2.5px solid var(--ink); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.flow__b h3 { font-size: 1.15rem; margin-bottom: 3px; }
.flow__b p { font-size: .98rem; }

/* ---- Cartoes de projeto chave-na-mao (destaque na home e nos precos) ---- */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.promo { background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; position: relative; }
.promo h3 { margin-bottom: 6px; }
.promo .promo-out { color: var(--muted-ink); font-weight: 600; margin-bottom: 14px; }
.promo .price { margin: 4px 0 16px; }
.promo .btn { margin-top: auto; }
@media (max-width: 720px) { .promo-grid { grid-template-columns: 1fr; } }

/* ---- Trustbar / ecosystem ---- */
.eco-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }
.eco-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: var(--bw) solid var(--ink); padding: 12px 20px; font-weight: 800; box-shadow: var(--shadow-sm); text-transform: uppercase; font-family: var(--font-display); letter-spacing: -.01em; }
.eco-pill small { color: var(--muted-ink); font-weight: 600; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.eco-pill.is-self { background: var(--coral); }
.eco-pill.is-self small { color: var(--ink); }
.trust-label { text-align: center; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); font-weight: 800; }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-card { background: var(--paper); border: var(--bw) solid var(--ink); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; }
.price-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.price-card.featured { background: var(--coral); position: relative; box-shadow: var(--shadow); }
.price-card .ribbon { position: absolute; top: -16px; left: 22px; }
.price-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.price-card .price { font-family: var(--font-display); font-size: 3rem; font-weight: 900; line-height: 1; margin: 14px 0 2px; letter-spacing: -.03em; }
.price-card .price small { font-size: 1rem; font-weight: 600; color: var(--muted-ink); }
.price-card.featured .price small { color: var(--ink); }
.price-card .per { font-size: .9rem; color: var(--muted-ink); margin-bottom: 20px; font-weight: 600; }
.price-card.featured .per { color: var(--ink); }
.price-card ul { list-style: none; margin: 8px 0 24px; flex-grow: 1; }
.price-card ul li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: .95rem; font-weight: 500; }
.price-card ul li svg { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; color: var(--ink); }
.price-card .btn { width: 100%; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; border: var(--bw) solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
table.cmp th, table.cmp td { padding: 16px 20px; text-align: left; border-bottom: 2px solid var(--ink); font-size: .97rem; }
table.cmp th { background: var(--ink); color: var(--cream); font-weight: 800; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
table.cmp td { font-weight: 500; }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp tr.hl td { background: var(--peach); }
table.cmp .num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: 800; }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--paper); border: var(--bw) solid var(--ink); margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 24px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q svg { width: 26px; height: 26px; color: var(--coral-decor); flex-shrink: 0; transition: transform .25s ease; }
.faq-item[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; color: var(--muted-ink); font-size: 1rem; font-weight: 500; }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; font-size: 1.2rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
/* 14,4px a negrito sobre o formulario claro: 3,57:1, abaixo do minimo de 18,7px a negrito. */
.field label .req { color: var(--coral-texto); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: 13px 15px; border: var(--bw) solid var(--ink); background: var(--paper); color: var(--ink); width: 100%; min-height: 50px; font-weight: 500; transition: box-shadow .12s ease, transform .12s ease; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: var(--shadow-sm); transform: translate(-1px,-1px); }
.field .help { font-size: .85rem; color: var(--muted-ink); font-weight: 500; }
.form-note { font-size: .85rem; color: var(--muted-ink); margin-top: 8px; font-weight: 600; }
/* Estado de erro. So depois de uma tentativa de envio (a classe .was-validated e
   posta pelo main.js), para nao pintar de vermelho campos ainda por preencher. */
.was-validated .field input:invalid,
.was-validated .field select:invalid,
.was-validated .field textarea:invalid { border-color: var(--coral); background: #fff5f3; }
.was-validated .field input:invalid:focus,
.was-validated .field select:invalid:focus,
.was-validated .field textarea:invalid:focus { box-shadow: 3px 3px 0 var(--coral); }
.was-validated input[type="checkbox"]:invalid { outline: 3px solid var(--coral); outline-offset: 2px; }
.form-error { display: none; background: #fff5f3; border: var(--bw) solid var(--coral); color: var(--ink); padding: 14px 16px; font-weight: 700; font-size: .95rem; margin-bottom: 18px; }
.form-error.show { display: block; }
.form-success { display: none; background: #dcfce7; border: var(--bw) solid var(--ink); color: var(--ink); padding: 16px 18px; font-weight: 800; margin-bottom: 18px; box-shadow: var(--shadow-sm); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-info .info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .info-row .ico { width: 50px; height: 50px; background: var(--peach); border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .info-row .ico svg { width: 22px; height: 22px; }
.contact-info .info-row h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 2px; }
.contact-info .info-row p, .contact-info .info-row a { font-size: .98rem; color: var(--muted-ink); font-weight: 500; }
.card-form { background: var(--paper); border: var(--bw) solid var(--ink); padding: 32px; box-shadow: var(--shadow); }

/* ---- Prose ---- */
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; font-size: 1.1rem; color: var(--ink); font-weight: 500; line-height: 1.6; }
.prose h2 { margin: 40px 0 16px; }

/* ---- Tags ---- */
.tag { display: inline-block; font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border: 2px solid var(--ink); background: var(--coral); color: var(--ink); margin-left: 8px; vertical-align: middle; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #d6cfc6; padding: 64px 0 28px; border-top: var(--bw) solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-about { font-size: .96rem; color: #a8a29e; max-width: 32ch; margin-top: 14px; font-weight: 500; }
/* Contactos diretos no rodape: presentes nas 43 paginas, nao so na de contacto. */
.footer-contact { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { margin: 0; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; color: var(--cream); font-weight: 700; font-size: .98rem; }
/* 15,7px, mas sobre o rodape escuro: o par coral/ink mede 4,82:1 no DOM, ja cumpre. */
.footer-contact a:hover { color: var(--coral-decor); }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--coral-decor); }
.footer-contact .fc-note { color: #a8a29e; font-size: .85rem; font-weight: 500; margin-top: 2px; }

/* ---- Quem está do outro lado (sobre.html) ---- */
.promotor { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.promotor__foto { border: var(--bw) solid var(--ink); box-shadow: var(--shadow); background: var(--peach); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.promotor__foto img { width: 100%; height: 100%; object-fit: cover; }
.promotor__mono { font-family: var(--font-display); font-weight: 900; font-size: 4.4rem; color: var(--ink); letter-spacing: -.03em; }
.promotor__tel { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.05; color: var(--ink); text-align: center; letter-spacing: -.02em; }
.promotor__tel:hover { color: var(--coral-texto); }
.promotor__nome { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: 4px; }
/* 13,6px a negrito sobre creme: 3,42:1, abaixo do minimo de 18,7px a negrito para texto grande. */
.promotor__papel { color: var(--coral-texto); font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; margin-bottom: 18px; }
.promotor p { margin-bottom: 14px; }
.promotor__assinatura { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 760px) {
  .promotor { grid-template-columns: 1fr; gap: 26px; }
  .promotor__foto { max-width: 220px; }
}
/* O rodape usa <h3> nas colunas (partial e nas 47 paginas). Cobrem-se as duas hipoteses: sem
   isto os h3 caiam na regra global color:var(--ink) sobre fundo var(--ink), 1:1, invisiveis. */
.site-footer h3, .site-footer h5 { color: var(--cream); font-family: var(--font-display); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a { color: #d6cfc6; font-size: .96rem; font-weight: 500; }
/* Sobre o rodape escuro o par coral/ink mede 4,82:1 no DOM, ja cumpre, seja qual for o tamanho. */
.site-footer a:hover { color: var(--coral-decor); }
.footer-bottom { border-top: 2px solid #44403c; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: #a8a29e; font-weight: 600; }
.site-footer .foot-legal { color: #a8a29e; }
/* Identificacao do prestador (DL 7/2004): tem de estar acessivel em todas as paginas.
   Era #78716c sobre --ink, 3,65:1, e e o texto que a lei obriga a mostrar.
   #cfc7be sobre #1c1917 da 10,2:1. */
.footer-legal { margin-top: 14px; font-size: .8rem; line-height: 1.6; color: #cfc7be; font-style: normal; font-weight: 500; }
.site-footer .footer-legal a { color: #cfc7be; font-size: inherit; font-weight: 500; text-decoration: underline; }
/* Sobre o rodape escuro o par coral/ink mede 4,82:1 no DOM, ja cumpre. */
.site-footer .footer-legal a:hover { color: var(--coral-decor); }

/* ---- Assinatura de endosso do ecossistema (partilhada pelas 3 marcas) ---- */
.eco-endorse { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding: 26px 0; margin-bottom: 6px; border-top: 2px solid #44403c; text-align: center; font-size: .9rem; }
.eco-endorse__label { color: #a8a29e; font-weight: 600; }
.eco-endorse__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.eco-endorse__brands a { color: #d6cfc6; }
.eco-endorse__brands a:hover { color: var(--cream); }
.eco-endorse__brands .is-current { color: var(--cream); }
/* Sobre o rodape escuro o par coral/ink mede 4,82:1 no DOM, ja cumpre. Nota: hoje esta regra e
   ofuscada por .site-footer a (mesma especificidade, vem depois), que pinta este link de
   #d6cfc6; mantido em coral-mantido para o dia em que essa sobreposicao for corrigida. */
.eco-endorse__more { color: var(--coral-decor); font-weight: 700; white-space: nowrap; }
.eco-endorse__more:hover { text-decoration: underline; }
/* Cor da extensao .pt por marca (contexto claro) */
.eco-tld--inc { color: #2F7FD0; }
.eco-tld--net { color: #00897B; }
.eco-tld--dig { color: #EF4D38; }
/* Variante mais clara para fundo escuro (rodape) */
.eco-endorse .eco-tld--inc { color: #4B9AE8; }
.eco-endorse .eco-tld--net { color: #2BC0AA; }
.eco-endorse .eco-tld--dig { color: #FF6A54; }
/* Cartao da propria marca na seccao de ecossistema */
.card.is-self { border-style: dashed; }

/* ---- Reveal ---- */
/* Sem JavaScript, o conteudo fica visivel. A animacao so existe quando o script
   confirma que correu. Antes disto, 8 dos 13 cartoes da home nasciam invisiveis. */
.js-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { max-width: 480px; }
  .bento .card { grid-column: span 3 !important; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: var(--bw) solid var(--ink); }
  .step:last-child { border-bottom: none; }
}
/* Nav colapsa para hamburguer ja em tablet (<=1024px). Acima de 760px a nav
   inline (7 links + CTA) nao cabia e, com white-space:nowrap, provocava scroll
   horizontal no header. Passar o breakpoint da nav para 1024px resolve. */
@media (max-width: 1024px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 14px 16px 22px; border-bottom: var(--bw) solid var(--ink); transform: translateY(-130%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  .nav-links.open { transform: translateY(0); visibility: visible; transition: transform .28s ease, visibility 0s; }
  /* display:block e obrigatorio: em inline, o padding e a borda verticais pintam
     mas nao aumentam a altura da linha, e os itens do menu sobrepunham-se. */
  .nav-links a { display: block; padding: 15px; }
  .nav-links li.nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  body { font-size: 16px; }
  .bento, .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .bento .card { grid-column: span 6 !important; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Simulador (quiz de triagem)
   ========================================================================== */
.sim-wrap { max-width: 760px; margin: 0 auto; }
.sim { background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg); padding: 0; }
.sim-progress { height: 14px; background: var(--cream); border-bottom: var(--bw) solid var(--ink); position: relative; }
.sim-progress__bar { height: 100%; width: 0; background: var(--coral); transition: width .35s ease; }
.sim-body { padding: 34px 34px 28px; }
/* 12,8px a negrito, sobre papel: 3,57:1, abaixo do minimo de 18,7px a negrito para texto grande. */
.sim-count { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; color: var(--coral-texto); margin-bottom: 12px; }
.sim-step { display: none; border: none; padding: 0; }
.sim-step.is-active { display: block; animation: simIn .3s ease; }
@keyframes simIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sim-step legend { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.05; margin-bottom: 6px; color: var(--ink); }
.sim-hint { color: var(--muted-ink); font-weight: 600; font-size: .95rem; margin-bottom: 22px; }
.sim-options { display: grid; gap: 12px; }
.sim-options.two { grid-template-columns: 1fr 1fr; }
.sim-opt { display: flex; align-items: center; gap: 13px; text-align: left; width: 100%; font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; color: var(--ink); background: var(--paper); border: var(--bw) solid var(--ink); padding: 16px 18px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .1s ease, box-shadow .1s ease, background .12s ease; }
.sim-opt:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.sim-opt[aria-pressed="true"] { background: var(--coral); }
.sim-opt .box { width: 26px; height: 26px; border: 2.5px solid var(--ink); background: var(--cream); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.sim-opt[aria-pressed="true"] .box { background: var(--ink); }
.sim-opt .box svg { width: 15px; height: 15px; color: var(--cream); opacity: 0; }
.sim-opt[aria-pressed="true"] .box svg { opacity: 1; }
.sim-opt small { display: block; font-weight: 500; color: var(--muted-ink); font-size: .85rem; margin-top: 2px; }

/* ---- Ecrã de resultado: o que acontece a seguir ---- */
.sim-next-up { border-top: 2px solid #44403c; margin-top: 22px; padding-top: 18px; }
/* 13,1px a negrito (na pratica 16px, porque .sim-result__body h4 tem a mesma especificidade e
   vem depois): em qualquer dos casos abaixo do minimo de 18,7px a negrito para texto grande. */
.sim-next-up h4 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: .82rem; letter-spacing: .09em; color: var(--coral-texto); margin-bottom: 8px; }
/* Era #d6cfc6, cor de fundo escuro aplicada em cartao claro (1,52:1). */
.sim-next-up p { color: var(--muted-ink); font-size: .95rem; margin: 0; }
/* Era #a8a29e sobre papel (2,48:1). */
.sim-alt { text-align: center; font-size: .87rem; color: var(--muted-ink); margin-top: 14px; font-weight: 500; }
/* Era #d6cfc6 (1,52:1). */
.sim-alt a { color: var(--coral-texto); text-decoration: underline; }
.sim-alt a:hover { color: var(--coral-texto); }
.sim-callback { background: var(--success); color: #fff; border: var(--bw) solid var(--ink); padding: 14px 16px; font-weight: 700; font-size: .95rem; margin: 0; }
.sim-callback a { color: #fff; text-decoration: underline; }
.sim-callback--falhou { background: var(--danger); color: #fff; }
/* Enquanto o pedido esta no ar nao se mostra verde de confirmacao: ainda nao ha nada
   confirmado. Fundo neutro ate a resposta chegar. */
.sim-callback--espera { background: var(--peach); color: var(--ink); }
.sim-opt[aria-pressed="true"] small { color: var(--ink); }

.sim-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sim-fields .field.full { grid-column: 1 / -1; }
.sim-nav { display: flex; justify-content: space-between; gap: 12px; padding: 0 34px 32px; }
.sim-nav .spacer { flex: 1; }
.sim-back { background: transparent; border: var(--bw) solid var(--ink); }

/* Resultado */
.sim-result { display: none; }
.sim-result.show { display: block; animation: simIn .4s ease; }
.sim-result__head { background: var(--ink); color: var(--cream); padding: 30px 34px; border-bottom: var(--bw) solid var(--ink); }
.sim-result__head .sticker { margin-bottom: 14px; }
.sim-result__head h3 { color: var(--cream); font-size: clamp(1.6rem,4vw,2.4rem); }
/* 54,4px sobre o cabecalho escuro: texto grande, e o par coral/ink mede 4,82:1 no DOM. */
.sim-result__price { font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--coral-decor); margin-top: 10px; letter-spacing: -.03em; }
.sim-result__price small { font-size: 1.1rem; color: var(--cream); font-weight: 600; }
.sim-result__body { padding: 30px 34px 34px; }
/* Era coral sobre papel (3,57:1). */
.sim-result__body h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; margin-bottom: 14px; color: var(--ink); }
.sim-result__list { list-style: none; margin-bottom: 26px; }
.sim-result__list li { display: flex; gap: 12px; padding: 11px 0; border-top: 2px solid var(--ink); font-weight: 600; }
.sim-result__list li:first-child { border-top: none; }
.sim-result__list li svg { width: 22px; height: 22px; color: var(--coral-decor); flex-shrink: 0; }
.sim-result__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.sim-sent { font-size: .9rem; color: var(--muted-ink); font-weight: 600; margin-top: 16px; }

@media (max-width: 600px) {
  .sim-body { padding: 26px 20px 22px; }
  .sim-nav { padding: 0 20px 26px; }
  .sim-options.two, .sim-fields { grid-template-columns: 1fr; }
  .sim-result__head, .sim-result__body { padding-left: 22px; padding-right: 22px; }
}

/* ==========================================================================
   Blog e artigos
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease; }
.post-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow); }
.post-card__top { padding: 16px 18px; border-bottom: var(--bw) solid var(--ink); background: var(--peach); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.post-card__top .tag { margin: 0; }
.post-card__top small { font-weight: 700; font-size: .82rem; color: var(--ink); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card__body h3 { font-size: 1.25rem; line-height: 1.1; margin-bottom: 10px; }
.post-card__body p { font-size: .96rem; flex-grow: 1; }
.post-card__body .card-link { margin-top: 16px; }

.article { max-width: 760px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 6px; font-weight: 700; font-size: .9rem; color: var(--muted-ink); }
.article-meta .tag { margin: 0; }
.article h1 { margin: 8px 0 10px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.tldr { background: var(--peach); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm); padding: 22px 24px; margin: 28px 0; }
.tldr strong { font-family: var(--font-display); text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; display: block; margin-bottom: 8px; }
.tldr p { color: var(--ink); font-weight: 600; font-size: 1.02rem; margin: 0; }

.article-body { font-size: 1.1rem; line-height: 1.7; }
.article-body h2 { margin: 40px 0 14px; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.article-body h3 { margin: 28px 0 10px; font-size: 1.3rem; }
.article-body p { color: var(--ink); margin-bottom: 18px; font-weight: 400; }
/* 17,6px a negrito no ecra largo e 16,8px no estreito (.article-body baixa para 1.05rem a
   760px): em qualquer dos casos abaixo do minimo de 18,7px a negrito para texto grande. */
.article-body a { color: var(--coral-texto); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* A regra acima foi pensada para fundo claro. Em fundo escuro dava 2,80:1 e no botao
   primario 1,72:1, porque pintava tambem o rotulo. Estas duas devolvem o contraste. */
.article-body .cta-box a { color: var(--cream); }
.article-body a.btn { color: var(--ink); text-decoration: none; }
.article-body a.btn-ink { color: var(--cream); }
.article-body ul, .article-body ol { margin: 0 0 18px 0; padding-left: 4px; list-style: none; }
.article-body ul li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; background: var(--coral); border: 1.5px solid var(--ink); }
.article-body ol { counter-reset: li; }
.article-body ol li { position: relative; padding-left: 38px; margin-bottom: 14px; counter-increment: li; }
.article-body ol li::before { content: counter(li); position: absolute; left: 0; top: 0; width: 26px; height: 26px; background: var(--ink); color: var(--cream); font-family: var(--font-display); font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.article-body blockquote { border-left: 5px solid var(--coral); background: var(--paper); border-top: 2.5px solid var(--ink); border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); padding: 18px 22px; margin: 24px 0; font-weight: 600; box-shadow: var(--shadow-sm); }
.article-body strong { font-weight: 800; }
.cta-box { background: var(--ink); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 30px; margin: 40px 0; text-align: center; }
.cta-box h3 { color: var(--cream); margin-bottom: 12px; }
.cta-box p { color: #d6cfc6; margin-bottom: 20px; }
.article-foot { margin-top: 44px; padding-top: 24px; border-top: var(--bw) solid var(--ink); display: flex; align-items: center; gap: 14px; }
.article-foot .avatar { width: 52px; height: 52px; background: var(--coral); border: var(--bw) solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; flex-shrink: 0; }
.article-foot p { margin: 0; font-size: .94rem; }
.article-foot strong { font-family: var(--font-display); text-transform: uppercase; }

@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } .article-body { font-size: 1.05rem; } }

/* ==========================================================================
   Banner de cookies
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000;
  max-width: 760px; margin: 0 auto;
  background: var(--ink); color: var(--cream);
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg);
  padding: 20px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  animation: cookieIn .35s ease;
}
@keyframes cookieIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner p { color: #d6cfc6; font-size: .94rem; font-weight: 500; margin: 0; flex: 1 1 320px; line-height: 1.5; }
/* Sobre o banner escuro (fundo var(--ink)) o par coral/ink mede 4,82:1 no DOM, ja cumpre. */
.cookie-banner p a { color: var(--coral-decor); font-weight: 700; text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { min-height: 46px; padding: 11px 20px; font-size: .92rem; }
.cookie-banner .btn-reject { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 3px 3px 0 var(--coral); }
.cookie-banner .btn-reject:hover { color: var(--cream); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 18px; }
  /* Em coluna, o flex-basis de 320px do <p> tornava-se altura reservada,
     criando um vazio enorme. Repor para auto ajusta a altura ao conteudo. */
  .cookie-banner p { flex-basis: auto; }
  .cookie-banner .cookie-actions .btn { flex: 1; }
}

/* ==========================================================================
   Skip link (acessibilidade)
   ========================================================================== */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10001;
  background: var(--ink); color: var(--cream); padding: 12px 18px;
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm);
}
.skip-link:focus { left: 10px; top: 10px; color: var(--cream); }

/* ==========================================================================
   Artigos relacionados (fim do post)
   ========================================================================== */
.related { border-top: var(--bw) solid var(--ink); margin-top: 48px; padding-top: 36px; }
.related h2 { font-size: 1.5rem; margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.related-grid a { display: block; background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm); padding: 18px 20px; transition: transform .12s ease, box-shadow .12s ease; }
.related-grid a:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); color: var(--ink); }
.related-grid .tag { margin: 0 0 8px; }
.related-grid h3 { font-size: 1.1rem; line-height: 1.15; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

/* ---- Informacao legal ---- */
.legal-dl { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 0; }
.legal-dl dt { font-weight: 800; padding: 12px 0; border-top: 2px solid var(--line); }
.legal-dl dd { padding: 12px 0; border-top: 2px solid var(--line); margin: 0; }
.legal-dl dt:first-of-type, .legal-dl dd:first-of-type { border-top: none; }
@media (max-width: 560px) { .legal-dl { grid-template-columns: 1fr; }
  .legal-dl dd { padding-top: 0; border-top: none; } }

/* ==========================================================================
   Botao flutuante do WhatsApp (todas as paginas, vem do partials/footer.html)
   ========================================================================== */
/* Tem de se ler como WhatsApp a primeira vista: circulo verde com o logotipo branco, que e o
   que toda a gente conhece. A borda de tinta e a sombra dura sao as do resto do site, e a borda
   da ao circulo o contraste de contorno que o verde sozinho nao tem sobre o creme. Em ecras
   largos leva uma etiqueta a dizer o que faz. Fica abaixo do banner de cookies (9000) e o
   main.js sobe-o enquanto o banner esta aberto, para nao ficarem um por cima do outro. */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + var(--wa-desvio)); z-index: 8000;
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); transition: bottom .2s ease;
}
.wa-float__icone {
  width: 62px; height: 62px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--whatsapp); border: var(--bw) solid var(--ink); border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .1s ease;
}
.wa-float__icone svg { width: 34px; height: 34px; fill: #fff; }
.wa-float__txt {
  background: var(--paper); color: var(--ink);
  border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 9px 14px; font-family: var(--font-body); font-weight: 800; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  transition: transform .1s ease, box-shadow .1s ease;
}
.wa-float:hover { color: var(--ink); }
.wa-float:hover .wa-float__icone, .wa-float:hover .wa-float__txt { transform: translate(-2px, -2px); }
.wa-float:hover .wa-float__icone { box-shadow: var(--shadow); }
.wa-float:active .wa-float__icone, .wa-float:active .wa-float__txt { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
/* O botao tapa o canto inferior direito: sem esta folga, a ultima linha do rodape
   ficava por baixo dele no fim da pagina. */
.site-footer { padding-bottom: 104px; }
/* Com o menu movel aberto, o botao nao compete com os links. */
body:has(.nav-links.open) .wa-float { display: none; }
@media (max-width: 760px) {
  /* Em telemovel fica so o circulo; o texto continua la para leitores de ecra, e e ele que da
     o nome ao link. O raio no proprio link faz o anel de foco seguir o circulo. */
  .wa-float { right: 16px; bottom: calc(16px + var(--wa-desvio)); border-radius: 50%; }
  .wa-float__icone { width: 60px; height: 60px; }
  .wa-float__txt { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; box-shadow: none; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media print { .wa-float { display: none; } }
