/* Kourian — estilos partilhados (index.html + privacidade.html)
   Tokens de marca: ver build-kourian-site.md / Brand.dc.html */
:root {
  --abismo: #082231;
  --petroleo: #0F3A4F;
  --indigo: #2B3A86;
  --menta: #3DDBB0;
  --menta-hover: #74ECCB;
  --menta-profunda: #0B7A66;
  --link-hover: #08594B;
  --tinta: #0B1B26;
  --ardosia: #4B5F6E;
  --linha: #D5DFE5;
  --nevoa: #EEF3F5;
  --branco: #FFFFFF;
  --on-dark: #B9CDD8;
  --on-dark-2: #8FAAB8;
  --on-dark-3: #C2D5DF;
  --line-dark: #3E6478;
  --line-dark-2: #2A4C5F;
  --icon-bg: #E1F7F0;
  --input-border: #A9BAC5;
  --consent: #34495A;

  --f-head: 'Sora', sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --section-y: clamp(72px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--branco);
  color: var(--tinta);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--menta-profunda); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--menta); outline-offset: 2px; }
/* Em fundo claro, o anel menta não tem contraste suficiente: usar menta profunda */
.on-light a:focus-visible, .on-light button:focus-visible { outline-color: var(--menta-profunda); }
input:focus, textarea:focus { outline: 2px solid var(--menta-profunda); outline-offset: 1px; }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--menta-profunda); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--menta); color: var(--abismo); padding: 10px 16px;
  border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font: 500 13px var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--menta-profunda);
}
.dark .eyebrow { color: var(--menta); }
.h2 {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.02em;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--ardosia); }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 16px 26px; border-radius: 12px;
  background: var(--menta); color: var(--abismo);
  font: 600 17px var(--f-body); text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--menta-hover); color: var(--abismo); }
.btn-sm { min-height: 44px; padding: 12px 18px; border-radius: 10px; font-size: 15px; }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 52px; padding: 16px 22px;
  border-radius: 12px; border: 1px solid var(--line-dark-2);
  color: var(--branco); text-decoration: none; font-weight: 500; font-size: 17px;
  transition: background-color .15s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--branco); }
.btn-outline {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 13px 20px; border: 1.5px solid var(--petroleo); border-radius: 12px;
  color: var(--petroleo); text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background-color .15s ease;
}
.btn-outline:hover { background: var(--nevoa); color: var(--petroleo); }

/* ---------- Navegação ---------- */
.site-header { background: var(--abismo); color: var(--branco); position: relative; overflow: hidden; }
.nav {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--branco); }
.brand:hover { color: var(--branco); }
.brand-word { font-family: var(--f-head); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.nav-links { display: none; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--on-dark); text-decoration: none; }
.nav-links a:hover { color: var(--branco); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: none; }
@media (min-width: 881px) { .nav-cta { display: inline-flex; } }
/* 6 links: mostrados a partir de 1024px; entre 1024 e 1199px mais compactos para caberem numa só linha */
@media (min-width: 1024px) { .nav-links { display: flex; gap: 18px; font-size: 14px; } }
@media (min-width: 1200px) { .nav-links { gap: 28px; font-size: 15px; } }

.lang { display: flex; border: 1px solid var(--line-dark-2); border-radius: 999px; padding: 3px; }
.lang button {
  min-width: 44px; min-height: 36px; border: 0; border-radius: 999px;
  background: transparent; color: var(--on-dark);
  font: 600 13px var(--f-mono); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--branco); color: var(--abismo); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
@media (min-width: 881px) { .hero { padding: 56px 24px 104px; gap: 56px; } }
.hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.025em; color: var(--branco);
}
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--on-dark); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero-note { font-size: 14px; color: var(--on-dark-2); }
.hero-art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.venn { width: 100%; max-width: 500px; height: auto; }
.venn-label { font: 600 20px var(--f-head); }
.venn-mid { font: 500 13px var(--f-mono); letter-spacing: 0.06em; }

/* ---------- Secções ---------- */
.section { padding: var(--section-y) 24px; background: var(--branco); }
.section > .wrap { display: flex; flex-direction: column; gap: 48px; }

/* Serviços */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 380px; min-width: 0; border: 1px solid var(--linha); border-radius: 20px;
  padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px;
}
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-family: var(--f-head); font-weight: 600; font-size: 26px; line-height: 1.25; }
.card p { font-size: 17px; line-height: 1.6; color: var(--ardosia); }
.card-link {
  margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 16px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; align-self: flex-start;
}
.diff {
  background: var(--nevoa); border-radius: 20px; padding: clamp(28px, 4vw, 40px);
  display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center;
}
.diff svg { flex-shrink: 0; }
.diff-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.diff h3 { font-family: var(--f-head); font-weight: 600; font-size: 21px; }
.diff p { font-size: 16px; line-height: 1.6; color: var(--ardosia); }

/* Soluções / Agentes */
.section-sol { background: var(--nevoa); }
.sol-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px) { .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sol-grid .card { background: var(--branco); padding: clamp(24px, 4vw, 40px); }

/* Produtos (fundo branco para alternar com Soluções) */
.section-prod { background: var(--branco); }

/* Como trabalhamos */
.section-how { background: var(--petroleo); color: var(--branco); }
.section-how > .wrap { gap: 56px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.steps li {
  flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px;
  border-top: 2px solid var(--line-dark); padding-top: 24px;
}
.steps li:first-child { border-top-color: var(--menta); }
.step-num { font: 500 15px var(--f-mono); color: var(--menta); }
.steps h3 { font-family: var(--f-head); font-weight: 600; font-size: 24px; }
.steps p { font-size: 16px; line-height: 1.6; color: var(--on-dark-3); }
.how-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.how-foot span { font-size: 15px; color: var(--on-dark-3); }

/* Porquê */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.section > .wrap.split { flex-direction: row; gap: 56px; }
.split-head { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.points { flex: 2 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 40px 32px; }
.point { flex: 1 1 250px; min-width: 0; display: flex; gap: 16px; }
.point-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--nevoa);
  display: flex; align-items: center; justify-content: center;
}
.point-body { display: flex; flex-direction: column; gap: 6px; }
.point h3 { font-family: var(--f-head); font-weight: 600; font-size: 18px; }
.point p { font-size: 16px; line-height: 1.6; color: var(--ardosia); }

/* Faixa CTA */
.band-wrap { padding: 0 24px var(--section-y); background: var(--branco); }
.band {
  max-width: 1200px; margin: 0 auto; background: var(--abismo); color: var(--branco);
  border-radius: 20px; padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.band-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.band h2 {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2; letter-spacing: -0.02em;
}
.band p { font-size: 17px; line-height: 1.6; color: var(--on-dark); }

/* Contacto */
.section-contact { border-top: 1px solid var(--linha); }
.contact-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-mail { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.contact-mail span, .contact-book span { font-size: 14px; color: var(--ardosia); }
.contact-mail a { font-family: var(--f-head); font-weight: 600; font-size: 20px; text-decoration: none; overflow-wrap: anywhere; }
.contact-book { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.contact-form-col { flex: 1 1 460px; min-width: 0; }

.form {
  display: flex; flex-direction: column; gap: 20px; background: var(--branco);
  border: 1px solid var(--linha); border-radius: 16px; padding: clamp(24px, 4vw, 40px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 500; font-size: 15px; }
.field input, .field textarea {
  font: 400 16px var(--f-body); color: var(--tinta); background: var(--branco);
  padding: 13px 14px; border: 1px solid var(--input-border); border-radius: 10px;
  min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field textarea::placeholder { color: #5E7180; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--menta-profunda); }
.consent label { font-size: 14px; line-height: 1.55; color: var(--consent); }
.form .btn { align-self: stretch; justify-content: center; padding: 16px 24px; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.form-foot { font-size: 13px; color: var(--ardosia); }
.form-error {
  font-size: 14px; line-height: 1.5; color: #8A1C1C; background: #FDF0F0;
  border: 1px solid #F1C9C9; border-radius: 10px; padding: 10px 14px;
}
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success {
  display: flex; flex-direction: column; gap: 14px; background: var(--icon-bg);
  border-radius: 16px; padding: 40px;
}
.success h3 { font-family: var(--f-head); font-weight: 600; font-size: 24px; }
.success p { font-size: 16px; line-height: 1.6; color: var(--consent); }
.success:focus { outline: none; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--abismo); color: var(--on-dark); padding: 48px 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-brand .brand-word { font-size: 19px; color: var(--branco); }
.foot-brand > span { font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; align-items: center; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--branco); }

/* ---------- Página de privacidade ---------- */
.legal { padding: var(--section-y) 24px; }
.legal .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.legal h1 {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1; letter-spacing: -0.02em;
}
.legal p { font-size: 17px; line-height: 1.7; color: var(--tinta); }
.legal .muted { color: var(--ardosia); font-size: 15px; }
.legal article { display: flex; flex-direction: column; gap: 14px; }
.legal article[hidden] { display: none; }
.legal h2 { font-family: var(--f-head); font-weight: 600; font-size: 22px; line-height: 1.3; margin-top: 18px; }
.legal h3 { font-family: var(--f-head); font-weight: 600; font-size: 18px; line-height: 1.35; margin-top: 6px; }
.legal ul { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.7; }
.legal li + li { margin-top: 4px; }
.legal mark { background: #FFF1B8; color: var(--tinta); padding: 0 4px; border-radius: 4px; }

/* ---------- Guias (/guias) ---------- */
.lang a {
  min-width: 44px; min-height: 36px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; color: var(--on-dark); text-decoration: none; font: 600 13px var(--f-mono);
}
.lang a:hover { color: var(--branco); }
.lang a[aria-current="true"] { background: var(--branco); color: var(--abismo); }
.nav-links a[aria-current="page"] { color: var(--branco); text-decoration: underline; text-underline-offset: 6px; }
.guia { padding: clamp(48px, 7vw, 88px) 24px var(--section-y); }
.guia .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.migalhas { font-size: 14px; color: var(--ardosia); display: flex; gap: 8px; flex-wrap: wrap; }
.guia-artigo { display: flex; flex-direction: column; gap: 16px; }
.guia-artigo h1 {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15; letter-spacing: -0.02em; color: var(--tinta);
}
.guia-artigo h1 + p { font-size: 19px; color: var(--tinta); }
.guia-artigo h2 { font-family: var(--f-head); font-weight: 600; font-size: 25px; line-height: 1.3; margin-top: 22px; }
.guia-artigo h3 { font-family: var(--f-head); font-weight: 600; font-size: 19px; line-height: 1.35; margin-top: 8px; }
.guia-artigo p, .guia-artigo li { font-size: 17px; line-height: 1.75; color: var(--tinta); }
.guia-artigo ul, .guia-artigo ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.guia-artigo code { font: 500 15px var(--f-mono); background: var(--nevoa); padding: 1px 6px; border-radius: 6px; }
.guia-nota {
  font-size: 15px !important; color: var(--ardosia) !important; border-left: 3px solid var(--linha);
  padding-left: 14px; margin-top: 8px;
}
.guia-rel {
  border: 1px solid var(--linha); border-radius: 20px; padding: clamp(24px, 4vw, 36px);
  display: flex; flex-direction: column; gap: 10px; background: var(--nevoa);
}
.guia-rel h2 { font-family: var(--f-head); font-weight: 600; font-size: 22px; }
.guia-rel p { font-size: 16px; line-height: 1.6; color: var(--ardosia); }
.guia-card-t { font-family: var(--f-head); font-weight: 600; font-size: 24px; line-height: 1.3; }
.guia-card-t a { color: var(--tinta); text-decoration: none; }
.guia-card-t a:hover { color: var(--menta-profunda); text-decoration: underline; }
.guia-mais h2 { font-family: var(--f-head); font-weight: 600; font-size: 21px; }
