/* ==========================================================================
   Maciel Pinto — Performance & Operações Digitais
   Design system baseado no Manual de Marca V1.0 (24/10/2026)
   Unidades: REM (tipografia/estrutura) · EM (padding interno) · PX (bordas)
   ========================================================================== */

/* ---------- Fontes (self-hosted, sem pedidos a terceiros) ---------- */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Cor (manual p. 8–9, 22) */
  --brand-charcoal: #20272D;
  --brand-crimson: #B5090B;
  --brand-crimson-hover: #85080A;
  --brand-silver: #A8AAAD;          /* apenas decorativo — nunca texto */
  --white: #FFFFFF;
  --text-primary: #28343D;
  --text-secondary: #4A555F;
  --text-muted: #58636D;
  --surface: #F6F7F8;
  --border: #D6DADD;
  --focus: #2465B0;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C5CBD0;
  --success: #1E6B45;

  /* Tipografia */
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --fs-h1: 2.25rem;  --lh-h1: 1.10;
  --fs-h2: 1.875rem; --lh-h2: 1.18;
  --fs-h3: 1.5rem;   --lh-h3: 1.25;
  --fs-h4: 1.25rem;  --lh-h4: 1.30;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Espaçamento (manual p. 23) */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem;

  /* Layout */
  --container-max: 1140px;
  --gutter: 16px;
  --page-pad: 16px;
  --radius-button: 8px;
  --radius-card: 12px;
  --header-h: 4.25rem;
  --section-y: var(--space-16);
}

@media (min-width: 768px) {
  :root {
    --fs-h1: 2.75rem; --fs-h2: 2.25rem; --fs-h3: 1.75rem; --fs-h4: 1.375rem; --fs-lead: 1.125rem;
    --gutter: 20px; --page-pad: 24px; --section-y: var(--space-20);
  }
}
@media (min-width: 1024px) {
  :root {
    --fs-h1: 3.5rem; --fs-h2: 2.625rem; --fs-h3: 2rem; --fs-h4: 1.5rem; --fs-lead: 1.25rem;
    --gutter: 24px; --page-pad: 40px; --header-h: 5rem; --section-y: var(--space-24);
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--text-primary);
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-crimson); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-crimson-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brand-crimson); color: var(--white); }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--font-display); font-weight: 600; color: var(--brand-charcoal); letter-spacing: 0; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3, h4 { font-family: var(--font-body); font-weight: 600; color: var(--brand-charcoal); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
p { max-width: 68ch; }
.prose li, .legal li { max-width: 68ch; }
strong { font-weight: 600; }

.lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.5; color: var(--text-secondary); }
.small, small { font-size: var(--fs-small); line-height: 1.5; }
.muted { color: var(--text-muted); }
.accent { color: var(--brand-crimson); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-crimson); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--brand-charcoal); color: var(--white); padding: .75em 1.25em; border-radius: var(--radius-button);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); color: var(--white); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--page-pad)); margin-inline: auto; padding-inline: var(--page-pad); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--brand-charcoal); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .lead { color: var(--on-dark-muted); }
/* Vermelho sobre carvão não cumpre AA para texto: o rótulo fica claro e o vermelho passa para a linha decorativa */
.section--dark .eyebrow { color: var(--on-dark-muted); }
.section--dark .eyebrow::before { background: var(--brand-crimson); height: 2px; }
.section--tight { padding-block: var(--space-12); }

.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-12); max-width: 46rem; }
.section-head--split { max-width: none; }
@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--space-12); }
}

.grid { display: grid; gap: var(--gutter); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

.ornament { display: flex; align-items: center; gap: .75rem; color: var(--brand-crimson); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.ornament__diamond { width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); flex: none; }

/* ---------- Botões (manual p. 17) ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .875em 1.5em; border-radius: var(--radius-button);
  border: 1px solid var(--brand-crimson); background: var(--brand-crimson); color: var(--white);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.25; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button:hover { background: var(--brand-crimson-hover); border-color: var(--brand-crimson-hover); color: var(--white); }
.button:active { transform: translateY(1px); }
.button:disabled, .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.button--secondary { background: var(--white); color: var(--brand-charcoal); border-color: var(--brand-charcoal); }
.button--secondary:hover { background: var(--brand-charcoal); color: var(--white); border-color: var(--brand-charcoal); }
.button--on-dark { background: transparent; color: var(--white); border-color: var(--white); }
.button--on-dark:hover { background: var(--white); color: var(--brand-charcoal); border-color: var(--white); }
.button--small { min-height: 40px; padding: .6em 1.1em; font-size: .9375rem; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.button svg { width: 1.1em; height: 1.1em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(8px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 1.25rem; width: auto; }   /* espaço reservado do logótipo (versão sem descriptor, ≥160px) */
@media (min-width: 1024px) { .brand img { height: 1.375rem; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .5em .9em;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-button);
  font-weight: 600; color: var(--brand-charcoal); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before { top: 0; } .nav-toggle__bars span { top: 5px; } .nav-toggle__bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav__list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.site-nav__link {
  display: block; padding: .9rem 0; color: var(--text-primary); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.site-nav__link:hover { color: var(--brand-crimson); }
.site-nav__link[aria-current="page"] { color: var(--brand-crimson); }
.site-nav__cta { margin-top: var(--space-6); }

/* Mobile: menu em painel */
@media (max-width: 1023px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); padding: var(--space-4) var(--page-pad) var(--space-8);
    overflow-y: auto; border-top: 1px solid var(--border);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav__cta .button { width: 100%; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: var(--space-8); }
  .site-nav__list { flex-direction: row; gap: var(--space-6); }
  .site-nav__link { padding: .5rem 0; border-bottom: 2px solid transparent; font-size: .9375rem; }
  .site-nav__link[aria-current="page"] { border-bottom-color: var(--brand-crimson); color: var(--brand-charcoal); }
  .site-nav__cta { margin-top: 0; }
}
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-12) var(--section-y); }
.hero__grid { display: grid; gap: var(--space-12); align-items: center; }
.hero h1 .accent { display: block; color: var(--brand-crimson); }
.hero h1 + .lead { margin-top: var(--space-6); }
.hero .button-row { margin-top: var(--space-8); }
.hero__visual { border-radius: var(--radius-card); overflow: hidden; background: var(--brand-charcoal); aspect-ratio: 5 / 4; }
.hero__visual svg { width: 100%; height: 100%; }
@media (min-width: 1024px) {
  .hero { padding-block: var(--space-20) var(--space-24); }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); }
}

.page-hero { padding-block: var(--space-12); border-bottom: 1px solid var(--border); background: var(--surface); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: var(--space-6); max-width: 46rem; }
@media (min-width: 1024px) { .page-hero { padding-block: var(--space-20) var(--space-16); } }

.breadcrumb { margin-bottom: var(--space-6); font-size: var(--fs-small); color: var(--text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5em; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: var(--brand-silver); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current] { color: var(--text-primary); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 1em;
  padding: 1.5em; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.card h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.card p { color: var(--text-secondary); }
.card__icon { width: 2.5rem; height: 2.5rem; color: var(--brand-charcoal); }
.card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card__icon .accent-stroke { stroke: var(--brand-crimson); }
.card--link { text-decoration: none; color: inherit; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card--link:hover { border-color: var(--brand-charcoal); box-shadow: 0 8px 24px rgba(32,39,45,.08); color: inherit; }
.card--link .link-arrow { margin-top: auto; color: var(--brand-crimson); }

.card--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.card--dark h3 { color: var(--on-dark); }
.card--dark p { color: var(--on-dark-muted); }

.number { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--brand-crimson); line-height: 1; }

/* Lista de serviços (homepage) */
.service-list { border-top: 1px solid var(--border); margin: 0; padding: 0; list-style: none; }
.service-list__item { border-bottom: 1px solid var(--border); }
.service-list__link {
  display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-2) var(--space-4); padding: var(--space-6) 0;
  text-decoration: none; color: inherit;
}
.service-list__link h3 { font-size: var(--fs-h4); line-height: var(--lh-h4); transition: color .18s ease; }
.service-list__link p { grid-column: 2; color: var(--text-secondary); }
.service-list__link .link-arrow { grid-column: 2; justify-self: start; color: var(--brand-crimson); font-size: var(--fs-small); }
.service-list__link:hover h3 { color: var(--brand-crimson); }
@media (min-width: 1024px) {
  .service-list__link { grid-template-columns: 4rem 5fr 6fr auto; align-items: baseline; gap: var(--space-8); padding: var(--space-8) 0; }
  .service-list__link p, .service-list__link .link-arrow { grid-column: auto; }
}

/* Diferenciais */
.feature { display: grid; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.18); }
.feature h3 { font-size: 1.125rem; line-height: 1.35; color: var(--on-dark); }
.feature p { color: var(--on-dark-muted); font-size: .9375rem; }
.feature__mark { width: 8px; height: 8px; background: var(--brand-crimson); transform: rotate(45deg); }

/* Passos / metodologia */
.steps { display: grid; gap: var(--gutter); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 1.5em; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); }
.step__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--brand-crimson); margin-bottom: .5em; }
.step h3 { font-size: 1.125rem; line-height: 1.35; }
.step p { margin-top: .5em; color: var(--text-secondary); font-size: .9375rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps--6 { grid-template-columns: repeat(6, 1fr); gap: var(--space-3); }
  .steps--6 .step { padding: 1.25em 1em; }
  .steps--3 { grid-template-columns: repeat(3, 1fr); }
}

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.25rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--border); }
.timeline__item { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-6); padding-bottom: var(--space-12); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--white); border: 1px solid var(--brand-crimson); color: var(--brand-crimson);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.timeline__body h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.timeline__body > * + * { margin-top: var(--space-4); }
.timeline__meta { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
@media (min-width: 768px) { .timeline__meta { grid-template-columns: 1fr 1fr; } }
.meta-box { padding: 1em 1.25em; background: var(--surface); border-radius: var(--radius-button); }
.meta-box dt { font-size: var(--fs-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-crimson); }
.meta-box dd { margin-top: .35em; color: var(--text-secondary); font-size: .9375rem; }

/* Serviço detalhado */
.service { padding-block: var(--space-16); border-bottom: 1px solid var(--border); }
.service:last-of-type { border-bottom: 0; }
.service__head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.service__head h2 { font-size: var(--fs-h2); }
.service__grid { display: grid; gap: var(--gutter); }
@media (min-width: 768px) { .service__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .service__layout { display: grid; grid-template-columns: 4fr 8fr; gap: var(--space-16); }
  .service__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; margin-bottom: 0; }
}
.panel { padding: 1.5em; border-radius: var(--radius-card); background: var(--surface); }
.panel h3 { font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-crimson); margin-bottom: .75em; }
.panel--white { background: var(--white); border: 1px solid var(--border); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.check-list li { position: relative; padding-left: 1.5em; color: var(--text-secondary); }
.check-list li::before {
  content: ""; position: absolute; left: .15em; top: .62em; width: 7px; height: 7px; background: var(--brand-crimson); transform: rotate(45deg);
}
.section--dark .check-list li { color: var(--on-dark-muted); }

/* Sobre */
.about-grid { display: grid; gap: var(--space-12); }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 7fr; gap: var(--space-16); align-items: start; } }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-card); background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__placeholder { width: 30%; opacity: .5; }
@media (min-width: 1024px) { .portrait { position: sticky; top: calc(var(--header-h) + 2rem); } }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tag { padding: .4em .85em; border: 1px solid var(--border); border-radius: 999px; font-size: var(--fs-small); font-weight: 500; color: var(--text-secondary); background: var(--white); }
.prose > * + * { margin-top: var(--space-4); }
.prose > h2, .prose > h3 { margin-top: var(--space-12); }
.prose > h2 + *, .prose > h3 + * { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose p, .prose li { color: var(--text-secondary); }

/* CTA final */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; gap: var(--space-8); align-items: center; }
.cta-band h2 { max-width: 22ch; }
.cta-band p { margin-top: var(--space-4); }
@media (min-width: 1024px) { .cta-band__inner { grid-template-columns: 8fr 4fr; } .cta-band .button-row { justify-content: flex-end; } }

/* ---------- Formulário (manual p. 18) ---------- */
.contact-grid { display: grid; gap: var(--space-12); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: var(--space-16); } }
.form { display: grid; gap: var(--space-6); }
.form__row { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; color: var(--brand-charcoal); }
.field .optional { font-weight: 400; color: var(--text-muted); }
.field__hint { font-size: var(--fs-small); color: var(--text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: .75em 1em; font-size: 1rem; line-height: 1.4;
  background: var(--white); color: var(--text-primary);
  border: 1px solid var(--border); border-bottom: 2px solid var(--text-muted); border-radius: var(--radius-button) var(--radius-button) 2px 2px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); border-bottom-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.textarea { min-height: 9rem; resize: vertical; }
.select {
  appearance: none; padding-right: 2.5em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2320272D' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; background-size: 12px 8px;
}
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--brand-crimson); border-bottom-color: var(--brand-crimson); }
.field__error { font-size: var(--fs-small); font-weight: 600; color: var(--brand-crimson); }
.field__error:empty { display: none; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: 1em 1.25em; background: var(--surface); border-radius: var(--radius-button); }
.consent input { width: 1.375rem; height: 1.375rem; margin: .1rem 0 0; accent-color: var(--brand-crimson); cursor: pointer; }
.consent label { font-size: .9375rem; color: var(--text-secondary); font-weight: 400; cursor: pointer; }
.consent .field__error { grid-column: 2; }
.consent.is-invalid { outline: 1px solid var(--brand-crimson); }

.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 1em 1.25em; border-radius: var(--radius-button); font-weight: 500; }
.form-status:empty { display: none; }
.form-status--success { background: #E8F3ED; color: var(--success); border-left: 3px solid var(--success); }
.form-status--error { background: #FBEAEA; color: var(--brand-crimson-hover); border-left: 3px solid var(--brand-crimson); }
.form__note { font-size: var(--fs-small); color: var(--text-muted); }

.contact-aside { display: grid; gap: var(--gutter); align-content: start; }
.contact-aside .panel p + p { margin-top: .5em; }

/* ---------- Legal ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-family: var(--font-body); font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 600; }
.legal .updated { font-size: var(--fs-small); color: var(--text-muted); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .75em; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.legal th { color: var(--brand-charcoal); font-weight: 600; background: var(--surface); }
.table-wrap { overflow-x: auto; }
.todo { background: #FFF3BF; color: #5C4600; padding: 0 .25em; border-radius: 3px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #1A1F24; border-top: 1px solid rgba(255,255,255,.08); color: var(--on-dark-muted); padding-block: var(--space-16) var(--space-8); font-size: .9375rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-12); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 5fr 2fr 2fr 3fr; gap: var(--space-8); } }
.footer-brand img { height: 3.5rem; width: auto; }  /* com descriptor: ≥240px de largura */
.footer-brand p { margin-top: var(--space-6); max-width: 32ch; }
.footer-title { font-size: var(--fs-small); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-silver); margin-bottom: var(--space-4); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-small); color: var(--on-dark-muted);
}
.footer-bottom .button-link { background: none; border: 0; padding: 0; color: var(--on-dark); font-size: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Banner de consentimento (só ativo quando há analytics configurado) ---------- */
.consent-banner {
  position: fixed; left: var(--page-pad); right: var(--page-pad); bottom: var(--page-pad); z-index: 90;
  max-width: 34rem; margin-left: auto; padding: 1.25em 1.5em; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 12px 40px rgba(32,39,45,.18);
}
.consent-banner h2 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; }
.consent-banner p { margin-top: .5em; font-size: .9375rem; color: var(--text-secondary); }
.consent-banner .button-row { margin-top: 1em; }
.consent-banner .button { flex: 1 1 auto; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; align-content: center; }
.not-found .number { font-size: 4rem; }

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band, .consent-banner, .skip-link { display: none !important; }
  body { color: #000; }
  a { color: #000; }
}

/* ---------- Utilitários (sem estilos inline: exigência da CSP) ---------- */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
