/* ERP-Sinc — erpsinc.pt */

:root {
  --brand: #0b6bcb;
  --brand-strong: #0856a6;
  --brand-soft: #e8f1fc;
  --accent-2: #f2a48c;          /* toldo da ilustração, versão suave para o logótipo */
  --accent: #e05d3a;            /* laranja do toldo */
  --teal: #78cbd9;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-elev: #ffffff;
  --fg: #12202f;
  --fg-soft: #4e5d6c;
  --fg-mute: #6b7886;
  --line: #e3e8ee;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .06);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1160px;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4493f8;
    --brand-strong: #6aa9fa;
    --brand-soft: #132338;
    --accent-2: #f2a48c;
    --accent: #f07a58;
    --bg: #0d1117;
    --bg-soft: #131a23;
    --bg-elev: #161d27;
    --fg: #e6edf3;
    --fg-soft: #a4afbb;
    --fg-mute: #8792a0;
    --line: #26303c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #4493f8;
  --brand-strong: #6aa9fa;
  --brand-soft: #132338;
  --accent-2: #f2a48c;
  --accent: #f07a58;
  --bg: #0d1117;
  --bg-soft: #131a23;
  --bg-elev: #161d27;
  --fg: #e6edf3;
  --fg-soft: #a4afbb;
  --fg-mute: #8792a0;
  --line: #26303c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
picture > source { display: none; }   /* senão o <source> vira item de grelha/flex (ex: hero) */
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.3em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--bg-elev); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: .45em 1em; font-size: .9rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 750; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-tag { font-size: .72rem; color: var(--fg-mute); }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--fg-soft); text-decoration: none; font-weight: 550; font-size: .95rem;
}
.site-nav ul a:hover { color: var(--fg); background: var(--bg-soft); }
.site-nav ul a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elev); color: var(--fg-soft); cursor: pointer;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: inline; }
}

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg-elev); color: var(--fg); cursor: pointer;
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; font-size: 1rem; }
  .nav-actions { justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; max-width: none; }
.section-head.split h2 { margin: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--fg-soft); }
.muted { color: var(--fg-mute); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--teal) 35%, transparent), transparent);
  z-index: -1; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero h1 .hl { color: var(--brand); }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .92rem; color: var(--fg-mute); }
.hero-meta span::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 6px; }
.hero-art { width: 100%; max-width: min(100%, 520px); margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(16, 32, 48, .12)); }
.hero-photo {
  max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: none;
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(16, 32, 48, .06), 0 24px 48px -12px rgba(16, 32, 48, .25);
}

/* ---------- feature grid ---------- */
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.feature {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .15s, transform .15s;
}
.feature:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); }
.feature .ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.feature .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.02rem; margin-bottom: .35em; }
.feature p { margin: 0; color: var(--fg-soft); font-size: .94rem; }

/* ---------- info cards ---------- */
.info-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.2rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card .num { font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: calc(var(--radius) + 6px); padding: 44px 32px; text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, #0a4f97 100%); color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 560px; margin-inline: auto; }
.cta-band .btn-primary { background: #fff; color: #0a4f97; }
.cta-band .btn-primary:hover { background: #eaf2fd; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-band .hero-actions { justify-content: center; }

/* CTA com fotografia de fundo (texto à esquerda sobre gradiente da marca) */
.cta-photo { position: relative; isolation: isolate; overflow: hidden; text-align: left; padding: 64px 48px; }
.cta-photo .cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 40%; z-index: -2; }
.cta-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #0a4f97 0%, rgba(11, 107, 203, .94) 34%, rgba(11, 107, 203, .45) 62%, rgba(11, 107, 203, .08) 100%);
}
.cta-photo .cta-content { max-width: 460px; }
.cta-photo p { margin-inline: 0; }
.cta-photo .hero-actions { justify-content: flex-start; }
.cta-band p.call-note { margin: 12px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 760px) {
  .cta-photo { padding: 44px 24px; }
  .cta-photo::before { background: linear-gradient(180deg, rgba(10, 79, 151, .95) 0%, rgba(11, 107, 203, .86) 100%); }
}

/* ---------- page header ---------- */
.page-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-hero h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: .3em; }
.page-hero .lead { max-width: 720px; margin: 0; }
.breadcrumb { font-size: .88rem; color: var(--fg-mute); margin-bottom: 14px; }
.breadcrumb a { color: var(--fg-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--fg-soft); }

/* ---------- prose (artigos/páginas) ---------- */
.prose { max-width: 760px; }
.prose.wide { max-width: none; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose em { color: var(--fg-soft); }
.prose figure { margin: 28px 0; }
.prose figcaption, .shot figcaption { font-size: .88rem; color: var(--fg-mute); margin-top: 10px; text-align: center; }
.shot img { border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot a.zoom { display: block; cursor: zoom-in; }
.post-meta { color: var(--fg-mute); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 650; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-decoration: none; }

.video { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.callout {
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); background: var(--brand-soft);
  border-radius: var(--radius); padding: 20px 22px; margin: 0 0 28px;
}
.callout h2, .callout h3 { margin-top: 0; font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }
.callout .hero-actions { margin-top: 14px; }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 650; white-space: nowrap; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-soft) 60%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
td code, .prose code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }

/* ---------- manual (passos) ---------- */
.manual-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .manual-layout { grid-template-columns: 230px 1fr; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .93rem; }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-mute); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--fg-soft); text-decoration: none; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
@media (max-width: 999px) { .toc { position: static; } }
.step { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; margin-bottom: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; margin-right: 10px; vertical-align: middle;
}
.step h2 { display: flex; align-items: center; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.legend li { display: flex; gap: 10px; align-items: baseline; }
.legend b { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 20px; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 16 / 7; object-fit: cover; object-position: top left; width: 100%; }

/* ---------- implementações ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--fg-soft); cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .count { opacity: .7; font-weight: 500; margin-left: 4px; }
.client-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); list-style: none; margin: 0; padding: 0; }
.client {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.client:hover { color: var(--fg); border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.client-top { display: flex; align-items: center; gap: 12px; }
.client-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-weight: 750; color: #fff; background: var(--c, var(--brand));
}
.client h3 { font-size: 1.05rem; margin: 0; }
.client .url { font-size: .86rem; color: var(--brand); word-break: break-all; }
.client-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pill { font-size: .74rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-soft); background: var(--bg-soft); }
.pill.p-woocommerce { color: #7f54b3; border-color: color-mix(in srgb, #7f54b3 35%, var(--line)); }
.pill.p-prestashop { color: #df0067; border-color: color-mix(in srgb, #df0067 35%, var(--line)); }
.pill.p-cs-cart { color: #0aa6d6; border-color: color-mix(in srgb, #0aa6d6 35%, var(--line)); }
.client[hidden] { display: none; }
.client-grid li[hidden] { display: none; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 24px; }
.stats div { font-size: .9rem; color: var(--fg-mute); }
.stats strong { display: block; font-size: 1.8rem; color: var(--fg); letter-spacing: -.02em; }

/* ---------- blog ---------- */
.post-list { display: grid; gap: 20px; }
@media (min-width: 820px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s;
}
.post-card:hover { color: var(--fg); border-color: var(--brand); transform: translateY(-2px); }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.post-card .thumb.contain img { object-fit: contain; width: 96px; height: 96px; }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.12rem; }
.post-card p { margin: 0; color: var(--fg-soft); font-size: .94rem; }
.post-card .date { font-size: .82rem; color: var(--fg-mute); margin-top: auto; padding-top: 8px; }

.filters a.chip { text-decoration: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; font-size: .92rem; }

/* ---------- contactos ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card address { font-style: normal; }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item svg { width: 22px; height: 22px; flex: none; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.contact-item .label { font-size: .8rem; color: var(--fg-mute); text-transform: uppercase; letter-spacing: .06em; }
.contact-item a { font-weight: 600; text-decoration: none; }
small.call-note { display: block; font-size: .78rem; color: var(--fg-mute); line-height: 1.4; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 550; }
.alert-ok { background: color-mix(in srgb, #1a9b5b 14%, var(--bg)); border: 1px solid color-mix(in srgb, #1a9b5b 45%, var(--line)); }
.alert-err { background: color-mix(in srgb, #d23c3c 12%, var(--bg)); border: 1px solid color-mix(in srgb, #d23c3c 45%, var(--line)); }
.form-note { font-size: .85rem; color: var(--fg-mute); margin: 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; border-top: 1px solid var(--line); background: var(--bg-soft); padding-top: 56px; font-size: .94rem; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: var(--fg-soft); max-width: 300px; margin-top: 14px; }
.footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-mute); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .site-footer address a { color: var(--fg-soft); text-decoration: none; }
.footer-links a:hover, .site-footer address a:hover { color: var(--brand); }
.site-footer address { font-style: normal; color: var(--fg-soft); line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--fg-mute); font-size: .86rem; }
.footer-bottom a { color: var(--fg-mute); text-decoration: none; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 10, 16, .82); }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-sm); background: #fff; margin: 0 auto; }
.lightbox-caption { color: #fff; text-align: center; margin: 10px 0 0; font-size: .92rem; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: #fff; color: #111; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }
.notfound .code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.04em; }

/* ---------- impressão ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .cta-band, .hero-actions, .filters, .toc, .lightbox { display: none !important; }
  .section, .page-hero { padding: 16px 0; background: none; border: 0; }
  body { color: #000; background: #fff; }
  a { color: inherit; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
