/* TWS — site novo (2026). Cores tiradas do logótipo. */
:root {
  --navy: #1d3156;
  --navy-2: #142443;
  --navy-3: #0d1a33;
  --red: #e1262c;
  --red-2: #b81d22;
  --ink: #1b2436;
  --muted: #5b6577;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 36, 67, .08);
  --max: 1160px;
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy-2); }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sec { padding: 88px 0; }
.sec.soft { background: var(--bg-soft); }
.kicker {
  font: 700 .78rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 2px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .kicker::before { display: none; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 700 .95rem/1 var(--head); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.topo .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.topo .logo img { height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a {
  font: 600 .95rem/1 var(--head); color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: 8px;
}
.menu a:hover { color: var(--red); }
.menu a.ativo { color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.menu .btn { margin-left: 10px; padding: 12px 20px; color: #fff; }
.menu .btn:hover { color: #fff; }
.hamb { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.hamb span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }
@media (max-width: 920px) {
  .hamb { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .menu.aberto { display: flex; }
  .menu a { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .menu a.ativo { box-shadow: none; color: var(--red); }
  .menu .btn { margin: 14px 0 0; border-bottom: 0; }
}

/* ---------- herói ---------- */
.heroi {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(225,38,44,.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
}
.heroi::after {   /* a "onda" vermelha do logótipo */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -120px; height: 220px;
  border-top: 6px solid var(--red); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .9;
  transform: rotate(-2deg);
}
.heroi .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-top: 90px; padding-bottom: 130px; }
.heroi h1 { color: #fff; }
.heroi h1 em { font-style: normal; color: #ff6a6e; }
.heroi .lead { color: #c9d3e6; }
.heroi .kicker { color: #ff8a8d; }
.heroi .kicker::before { background: #ff8a8d; }
.heroi-ilustr { filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }
.heroi-pequeno .wrap { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 110px; }
.heroi-pequeno .lead { max-width: 760px; }
@media (max-width: 920px) {
  .heroi .wrap { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 110px; gap: 30px; }
}

/* ---------- cartões ---------- */
.grelha { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.cartao {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.cartao p { color: var(--muted); }
.cartao .mais { margin-top: auto; font: 700 .92rem/1 var(--head); color: var(--red); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.cartao .mais:hover { gap: 12px; }
a.cartao { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.cartao:hover { transform: translateY(-4px); border-color: #cdd5e3; box-shadow: 0 18px 40px rgba(20,36,67,.12); }
.icone {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #fff;
}
.icone svg { width: 28px; height: 28px; }
.icone.verm { background: linear-gradient(140deg, var(--red), var(--red-2)); }
.etiqueta {
  display: inline-block; font: 700 .72rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase;
  background: #fde8e8; color: var(--red-2); padding: 6px 10px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start;
}

/* ---------- listas ---------- */
.lista { list-style: none; padding: 0; margin: 0 0 1em; }
.lista li { position: relative; padding: 0 0 12px 32px; }
.lista li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- passos ---------- */
.passos { counter-reset: p; }
.passo { position: relative; padding-top: 58px; }
.passo::before {
  counter-increment: p; content: counter(p, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font: 800 2.4rem/1 var(--head); color: var(--red);
}
.passo p { color: var(--muted); }

/* ---------- duas colunas ---------- */
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.duas > *, .grelha > * { min-width: 0; }
.duas.inv > :first-child { order: 2; }
@media (max-width: 920px) { .duas { grid-template-columns: 1fr; gap: 34px; } .duas.inv > :first-child { order: 0; } }

/* ---------- serviços (página de consultoria/contabilidade) ---------- */
.servico { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.servico:last-child { border-bottom: 0; }
.servico .icone { margin: 0; }
.servico h3 { margin-bottom: .35em; }
.servico p { color: var(--muted); margin: 0; }

/* ---------- faixa de destaque ---------- */
.faixa {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 22px;
  padding: 50px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden;
}
.faixa::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 6px solid rgba(225,38,44,.6); }
.faixa h2 { color: #fff; margin-bottom: .3em; }
.faixa p { color: #c9d3e6; margin: 0; }
.faixa > * { position: relative; z-index: 1; }
@media (max-width: 760px) { .faixa { grid-template-columns: 1fr; padding: 34px 24px; } }

/* ---------- números ---------- */
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.numeros div { border-left: 3px solid var(--red); padding-left: 16px; }
.numeros strong { display: block; font: 800 2.1rem/1.1 var(--head); color: var(--navy-2); }
.numeros span { color: var(--muted); font-size: .95rem; }
@media (max-width: 560px) { .numeros { grid-template-columns: 1fr; } }

/* ---------- parceiro ---------- */
.parceiro { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.parceiro .selo {
  font: 700 .78rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: #ef7d00; padding: 8px 12px; border-radius: 8px;
}
.banner-parceiro { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- caixa discreta (ie-Fatura) ---------- */
.discreto {
  border: 1px dashed #c6cfde; border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 18px;
  align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff;
}
.discreto p { margin: 0; color: var(--muted); }
.discreto strong { color: var(--ink); }

/* ---------- contactos ---------- */
.contactos { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 920px) { .contactos { grid-template-columns: 1fr; } }
.dado { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin-bottom: 22px; }
.dado .icone { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.dado .icone svg { width: 22px; height: 22px; }
.dado small { display: block; color: var(--muted); font-size: .85rem; }
.dado a { text-decoration: none; font-weight: 600; }
.mapa { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 10px; }
form.contacto { display: grid; gap: 16px; }
form.contacto .linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { form.contacto .linha2 { grid-template-columns: 1fr; } }
form.contacto label { font: 600 .9rem/1.3 var(--head); color: var(--navy-2); display: grid; gap: 6px; }
form.contacto input, form.contacto select, form.contacto textarea {
  font: 400 1rem/1.4 var(--body); padding: 13px 14px; border: 1px solid #cdd4e1; border-radius: 10px; width: 100%; background: #fff; color: var(--ink);
}
form.contacto input:focus, form.contacto select:focus, form.contacto textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
form.contacto .nota { font-size: .85rem; color: var(--muted); margin: 0; }
.chk { display: flex !important; grid-template-columns: none !important; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; font-family: var(--body) !important; color: var(--muted) !important; }
.chk input { width: auto !important; margin-top: 4px; }

/* ---------- texto longo (privacidade) ---------- */
.texto { max-width: 820px; }
.texto h2 { font-size: 1.35rem; margin-top: 1.6em; }
.texto p, .texto li { color: #3a4456; }
.aviso-preencher { background: #fff4d6; border: 1px solid #f1d27a; padding: 2px 6px; border-radius: 4px; }

/* ---------- rodapé ---------- */
.rodape { background: var(--navy-3); color: #aab6cc; font-size: .95rem; padding: 64px 0 28px; }
.rodape a { color: #dbe3f1; text-decoration: none; }
.rodape a:hover { color: #fff; text-decoration: underline; }
.rodape .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 920px) { .rodape .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rodape .cols { grid-template-columns: 1fr; } }
.rodape h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin-bottom: 8px; }
.rodape .logo-rod { width: 190px; margin-bottom: 16px; }
.rodape .fino { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; gap: 14px 24px; flex-wrap: wrap; justify-content: space-between; font-size: .85rem; }
.rodape .lr { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.25); padding: 8px 12px; border-radius: 8px; margin-top: 6px; }
.rodape .outras { margin-top: 18px; font-size: .88rem; color: #8c99b2; }

/* ---------- animação suave ---------- */
.rev { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rev.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rev { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* selo "+25 anos" no herói */
.selo-anos { margin: 28px 0 0; color: #c9d3e6; font-size: 1rem; display: inline-flex; align-items: center; }
.selo-anos::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(225,38,44,.25); margin-right: 14px; }
.selo-anos strong { font: 800 1.15rem/1 var(--head); color: #fff; margin-right: .35em; }

/* linha do tempo (Sobre nós) */
.cronologia { list-style: none; padding: 0; margin: 46px auto 0; max-width: 820px; position: relative; }
.cronologia::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px; background: #d5dbe7; }
.cronologia li { display: grid; grid-template-columns: 76px 1fr; gap: 40px; position: relative; padding-bottom: 28px; }
.cronologia li::before { content: ""; position: absolute; left: 86px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.cronologia li.hoje::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px rgba(225,38,44,.2); }
.cronologia .ano { font: 800 1.15rem/1.2 var(--head); color: var(--navy-2); text-align: right; }
.cronologia li.hoje .ano { color: var(--red); }
.cronologia h3 { margin-bottom: .25em; }
.cronologia p { color: var(--muted); margin: 0; }
@media (max-width: 560px) {
  .cronologia::before { left: 6px; }
  .cronologia li { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; }
  .cronologia li::before { left: 0; }
  .cronologia .ano { text-align: left; }
}
.tag-so, .tag-parc { display: inline-block; font: 700 .7rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; margin: 0 6px 8px 0; }
.tag-so { background: #e6eaf2; color: var(--navy); }
.tag-parc { background: var(--red); color: #fff; }
.cronologia li.parc::before { border-color: var(--red); }
.nota-discreta { margin: 22px 0 0; padding-top: 18px; border-top: 1px dashed #cdd4e1; color: var(--muted); font-size: .92rem; }
.tag-gest { display: inline-block; font: 700 .7rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; margin: 0 6px 8px 0; background: var(--navy); color: #fff; }
.cronologia li.gest::before { background: var(--navy); }

/* destaque "os seus dados não vão para a IA" */
.destaque-dados { margin-top: 28px; display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: center; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); padding: 26px 30px; border-left: 6px solid var(--red); }
.destaque-dados .icone { margin: 0; background: var(--red); }
.destaque-dados h3 { color: #fff; margin-bottom: .3em; font-size: 1.3rem; }
.destaque-dados p { color: #c9d3e6; margin: 0; }
@media (max-width: 560px) { .destaque-dados { grid-template-columns: 1fr; } }
