/* Tokens de design: cores, sombras, raios e fontes base do tema claro. */
:root {
  --bg: #f4f6fa;
  --bg-alt: #edf1f6;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-ghost: #fbfcfe;
  --text: #14233b;
  --muted: #5f6f84;
  --line: #d8e0ea;
  --line-strong: rgba(20, 35, 59, 0.18);
  --navy: #173961;
  --navy-strong: #112b49;
  --gold: #9d7a35;
  --success: #1f8f63;
  --warning: #af7d12;
  --danger: #b94d4d;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 14px 34px rgba(17, 32, 58, 0.08);
  --shadow-soft: 0 10px 22px rgba(17, 32, 58, 0.05);
  --max-width: 1120px;
  --font-body: "Aptos", "Segoe UI", "Calibri", "Trebuchet MS", sans-serif;
  --font-heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --page-gutter: 18px;
}

/* Indica ao navegador que o tema padrão é claro (inputs nativos, etc.). */
body {
  color-scheme: light;
}

/* Reset simples para cálculo de largura/altura mais previsível. */
* {
  box-sizing: border-box;
}

/* Rolagem suave entre âncoras da página. */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Base visual da página (tipografia, cor de texto e fundo geral). */
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--safe-bottom);
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(23, 57, 97, 0.08), transparent 70%),
    radial-gradient(700px 420px at 0% 12%, rgba(157, 122, 53, 0.06), transparent 72%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 38%, var(--bg-alt) 100%);
}

/* Links herdam cor do contexto para manter consistência visual. */
a {
  color: inherit;
  text-decoration: none;
}

/* Container central usado em header e conteúdo principal. */
.wrap {
  width: min(var(--max-width), calc(100vw - (var(--page-gutter) * 2) - var(--safe-left) - var(--safe-right)));
  margin: 0 auto;
}

/* Barra superior fixa com leve transparência. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: var(--safe-top);
  border-bottom: 1px solid rgba(20, 35, 59, 0.08);
  background: rgba(247, 249, 252, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Estrutura interna do cabeçalho: marca, navegação e botão de tema. */
.siteHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  padding: 12px 0;
}

/* Bloco da marca (ícone + texto). */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Ícone geométrico da marca (feito só com CSS). */
.brandMark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(20, 35, 59, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 251, 0.95));
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), var(--shadow-soft);
  flex: 0 0 auto;
}

.brandMark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 7px;
  border: 2px solid rgba(23, 57, 97, 0.85);
}

.brandMark::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 19px;
  height: 2px;
  background: rgba(157, 122, 53, 0.85);
}

.brandText {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brandText strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--navy-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brandText small {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navegação principal (desktop). */
.siteNav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.siteNav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.93rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.siteNav a:hover,
.siteNav a:focus-visible {
  color: var(--navy-strong);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 35, 59, 0.08);
}

.headerActions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Botão para alternar entre tema claro e escuro. */
.themeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(20, 35, 59, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-strong);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(17, 32, 58, 0.06);
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.themeToggle:hover,
.themeToggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(20, 35, 59, 0.22);
  box-shadow: 0 8px 18px rgba(17, 32, 58, 0.1);
}

.themeToggleLabel {
  white-space: nowrap;
}

.menuToggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(20, 35, 59, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-strong);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(17, 32, 58, 0.06);
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.menuToggle:hover,
.menuToggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(20, 35, 59, 0.22);
  box-shadow: 0 8px 18px rgba(17, 32, 58, 0.1);
}

.menuToggleBars {
  display: grid;
  gap: 4px;
}

.menuToggleBars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 140ms ease, opacity 140ms ease;
}

.siteHeader[data-menu-open="true"] .menuToggle {
  border-color: rgba(23, 57, 97, 0.2);
  background: rgba(23, 57, 97, 0.06);
}

.siteHeader[data-menu-open="true"] .menuToggleBars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.siteHeader[data-menu-open="true"] .menuToggleBars span:nth-child(2) {
  opacity: 0;
}

.siteHeader[data-menu-open="true"] .menuToggleBars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Espaçamento padrão entre seções. */
.section {
  padding: 28px 0 24px;
}

/* Evita que títulos fiquem escondidos atrás do header sticky ao navegar por âncoras. */
.section[id] {
  scroll-margin-top: calc(96px + var(--safe-top));
}

/* Área hero de abertura da página. */
.hero {
  min-height: calc(86vh - 78px);
  min-height: calc(86svh - 78px);
  display: flex;
  align-items: center;
  padding: 24px 0 12px;
}

@supports (height: 100dvh) {
  .hero {
    min-height: calc(86dvh - 78px);
  }
}

/* Card principal do hero com destaque visual. */
.heroPanel {
  width: 100%;
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(23, 57, 97, 0.04), rgba(23, 57, 97, 0) 35%),
    linear-gradient(180deg, #ffffff, #fbfcff);
  padding: clamp(24px, 4vw, 52px);
  box-shadow: 0 24px 48px rgba(17, 32, 58, 0.09);
}

/* Elementos decorativos no hero (faixa lateral e halo circular). */
.heroPanel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(23, 57, 97, 0.95) 100%);
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
}

.heroPanel::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: min(30vw, 280px);
  height: min(30vw, 280px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(23, 57, 97, 0.08), transparent 64%),
    radial-gradient(circle at 65% 65%, rgba(157, 122, 53, 0.08), transparent 68%);
  pointer-events: none;
}

/* Coloca conteúdo acima dos elementos decorativos do hero. */
.heroPanel > * {
  position: relative;
  z-index: 1;
}

/* Rótulos pequenos de seção (eyebrow). */
.eyebrow,
.sectionEyebrow {
  margin: 0 0 12px;
  color: rgba(23, 57, 97, 0.92);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Título principal da página. */
h1 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy-strong);
  max-width: 14ch;
}

/* Texto de apoio do hero. */
.heroSub {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
}

/* Linhas de botões (hero e contato). */
.ctaRow,
.contactActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Botão base reutilizado em toda a página. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 11px 14px;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: #ffffff;
  color: var(--navy-strong);
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease;
}

.btn,
.themeToggle,
.menuToggle,
.siteNav a {
  touch-action: manipulation;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(20, 35, 59, 0.2);
  box-shadow: 0 8px 18px rgba(17, 32, 58, 0.08);
}

/* Variações de botões: primário e secundário. */
.btnPrimary {
  background: linear-gradient(180deg, var(--navy), var(--navy-strong));
  border-color: rgba(17, 43, 73, 0.9);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 57, 97, 0.18);
}

.btnPrimary:hover,
.btnPrimary:focus-visible {
  background: linear-gradient(180deg, #1b436f, #143252);
  border-color: #143252;
}

.btnGhost {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(20, 35, 59, 0.14);
}

/* Dica complementar do hero e link de rolagem. */
.heroHint {
  margin: 18px 0 0;
  border-left: 3px solid rgba(157, 122, 53, 0.9);
  padding-left: 12px;
  color: var(--muted);
  font-weight: 700;
  max-width: 70ch;
}

.scrollHint {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.scrollHint:hover,
.scrollHint:focus-visible {
  color: var(--navy-strong);
}

.scrollHintIcon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(20, 35, 59, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-strong);
  box-shadow: var(--shadow-soft);
}

/* Cabeçalho das seções (título + nota lateral). */
.sectionTitle {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.sectionTitle h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy-strong);
}

.sectionNote {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: right;
}

/* Grade de cards de serviços. */
.serviceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Card de serviço individual. */
.serviceCard {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, var(--surface-ghost));
  padding: 18px 16px;
  min-height: 150px;
  box-shadow: 0 8px 18px rgba(17, 32, 58, 0.04);
  transition: opacity 180ms ease, transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.serviceCard:hover,
.serviceCard:focus-within {
  transform: translateY(-2px);
  border-color: rgba(23, 57, 97, 0.18);
  box-shadow: 0 12px 24px rgba(17, 32, 58, 0.07);
}

.serviceCard h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--navy-strong);
}

.serviceCard p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Layout em duas colunas (onde estamos / fluxo). */
.splitGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Painéis genéricos reutilizados (cards maiores). */
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.panelSoft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.panel h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy-strong);
}

/* Utilitários de texto e listas. */
.muted {
  color: var(--muted);
}

.introCopy {
  margin: 0;
  font-weight: 600;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 600;
}

.list li + li {
  margin-top: 6px;
}

.listOrdered {
  padding-left: 20px;
}

/* Variação visual do painel de contato. */
.panelContact {
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(23, 57, 97, 0.05), transparent 70%),
    linear-gradient(180deg, #ffffff, #fafcff);
  border-color: rgba(157, 122, 53, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(157, 122, 53, 0.06),
    var(--shadow);
}

/* Estruturas do formulário (grades e campos). */
form {
  margin-top: 12px;
}

.formGrid {
  display: grid;
  gap: 12px;
}

.formGrid2 {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy-strong);
}

/* Campos de formulário (inputs, selects e textarea). */
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 12px;
  outline: none;
  font: inherit;
  font-size: 16px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

/* Estilo visual do select para ficar consistente entre navegadores. */
select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(20, 35, 59, 0.6) 50%),
    linear-gradient(135deg, rgba(20, 35, 59, 0.6) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

select:required:invalid {
  color: rgba(95, 111, 132, 0.9);
}

select option {
  color: #14233b;
  background: #ffffff;
}

select option[disabled] {
  color: #7a889b;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

/* Estados do formulário: placeholders, foco e textos auxiliares. */
input::placeholder,
textarea::placeholder {
  color: rgba(95, 111, 132, 0.8);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: rgba(23, 57, 97, 0.45);
  box-shadow: 0 0 0 4px rgba(23, 57, 97, 0.1);
}

.fieldHint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.status {
  margin: 4px 0 0;
  min-height: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

/* Rodapé e toast (mensagens temporárias no topo). */
.siteFooter {
  margin-top: 20px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(20, 35, 59, 0.08);
}

.siteFooter p {
  margin: 0;
}

.siteFooter p + p {
  margin-top: 4px;
}

.footerInstagramCta {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(20, 35, 59, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footerInstagramCta p {
  flex: 1 1 340px;
  font-weight: 600;
}

.footerInstagramCta .btn {
  flex: 0 1 auto;
  white-space: nowrap;
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--safe-top) + 12px);
  transform: translateX(-50%) translateY(-18px);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  max-width: min(620px, calc(100vw - 24px - var(--safe-left) - var(--safe-right)));
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 43, 73, 0.97);
  color: #f8fbff;
  padding: 10px 12px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(17, 32, 58, 0.22);
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[data-type="success"] {
  border-color: rgba(31, 143, 99, 0.45);
}

.toast[data-type="warning"] {
  border-color: rgba(175, 125, 18, 0.45);
}

.toast[data-type="danger"] {
  border-color: rgba(185, 77, 77, 0.45);
}

/* Blocos preparados para futura prova social (logos). */
.sectionFuture {
  padding-bottom: 0;
}

.logosGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.logoPlaceholder {
  min-height: 64px;
  border-radius: 10px;
  border: 1px dashed rgba(20, 35, 59, 0.2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
}

/* Remove outline padrão e mantém foco estilizado pelos componentes. */
:focus-visible {
  outline: 0;
}

/* Tema escuro: redefine tokens e sobrescreve componentes principais. */
body[data-theme="dark"] {
  --bg: #07101d;
  --bg-alt: #050b15;
  --surface: #0e1828;
  --surface-soft: #111f33;
  --surface-ghost: #121f31;
  --text: #e8eef9;
  --muted: #acb8cc;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(157, 122, 53, 0.3);
  --navy: #2c5f9b;
  --navy-strong: #214a7a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(44, 95, 155, 0.18), transparent 68%),
    radial-gradient(760px 420px at 0% 14%, rgba(157, 122, 53, 0.12), transparent 72%),
    linear-gradient(180deg, #08111f 0%, var(--bg) 40%, var(--bg-alt) 100%);
}

body[data-theme="dark"] .topbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 13, 23, 0.82);
}

body[data-theme="dark"] .brandMark {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(20, 31, 48, 0.95), rgba(12, 20, 33, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), var(--shadow-soft);
}

body[data-theme="dark"] .brandMark::before {
  border-color: rgba(255, 255, 255, 0.86);
}

body[data-theme="dark"] .brandMark::after {
  background: rgba(157, 122, 53, 0.95);
}

body[data-theme="dark"] .brandText strong {
  color: var(--text);
}

body[data-theme="dark"] .siteNav a:hover,
body[data-theme="dark"] .siteNav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .themeToggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .themeToggle:hover,
body[data-theme="dark"] .themeToggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .menuToggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .menuToggle:hover,
body[data-theme="dark"] .menuToggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .siteHeader[data-menu-open="true"] .menuToggle {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .heroPanel {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(44, 95, 155, 0.08), rgba(44, 95, 155, 0) 35%),
    linear-gradient(180deg, rgba(15, 26, 42, 0.96), rgba(11, 19, 31, 0.96));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] h1,
body[data-theme="dark"] .sectionTitle h2,
body[data-theme="dark"] .panel h3,
body[data-theme="dark"] .serviceCard h3,
body[data-theme="dark"] .field label {
  color: #f0f5ff;
}

body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .sectionEyebrow {
  color: rgba(255, 255, 255, 0.88);
}

body[data-theme="dark"] .scrollHintIcon {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: none;
}

body[data-theme="dark"] .btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

body[data-theme="dark"] .btn:hover,
body[data-theme="dark"] .btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .btnPrimary {
  background: linear-gradient(180deg, #2c5f9b, #214a7a);
  border-color: rgba(44, 95, 155, 0.8);
  color: #ffffff;
}

body[data-theme="dark"] .btnPrimary:hover,
body[data-theme="dark"] .btnPrimary:focus-visible {
  background: linear-gradient(180deg, #366ba8, #285686);
  border-color: rgba(54, 107, 168, 0.9);
}

body[data-theme="dark"] .serviceCard {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(20, 32, 51, 0.94), rgba(15, 25, 40, 0.94));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

body[data-theme="dark"] .serviceCard:hover,
body[data-theme="dark"] .serviceCard:focus-within {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(14, 24, 40, 0.96);
  box-shadow: var(--shadow);
}

body[data-theme="dark"] .panelSoft {
  background: linear-gradient(180deg, rgba(17, 31, 51, 0.97), rgba(13, 24, 40, 0.97));
}

body[data-theme="dark"] .panelContact {
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(44, 95, 155, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(14, 24, 40, 0.97), rgba(11, 20, 33, 0.97));
  border-color: rgba(190, 160, 96, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(190, 160, 96, 0.08),
    var(--shadow);
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
  color: rgba(172, 184, 204, 0.8);
}

body[data-theme="dark"] select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(232, 238, 249, 0.7) 50%),
    linear-gradient(135deg, rgba(232, 238, 249, 0.7) 50%, transparent 50%);
}

body[data-theme="dark"] select option {
  color: #e8eef9;
  background: #0f1b2c;
}

body[data-theme="dark"] input:focus-visible,
body[data-theme="dark"] select:focus-visible,
body[data-theme="dark"] textarea:focus-visible {
  border-color: rgba(44, 95, 155, 0.8);
  box-shadow: 0 0 0 4px rgba(44, 95, 155, 0.18);
}

body[data-theme="dark"] .siteFooter {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .footerInstagramCta {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
}

body[data-theme="dark"] .toast {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(10, 17, 29, 0.98);
  color: #f2f7ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .logoPlaceholder {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

/* Responsividade: tablet (reduz grade de serviços). */
@media (max-width: 980px) {
  .serviceGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsividade: tablet/mobile (simplifica header e grids). */
@media (max-width: 900px) {
  .siteHeader {
    align-items: center;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .headerActions {
    margin-left: auto;
  }

  .siteNav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 2;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(20, 35, 59, 0.08);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    box-shadow: 0 18px 34px rgba(17, 32, 58, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  }

  .siteHeader[data-menu-open="true"] .siteNav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .siteNav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(20, 35, 59, 0.06);
    background: rgba(255, 255, 255, 0.72);
  }

  .themeToggle {
    margin-left: 0;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .menuToggle {
    display: inline-flex;
  }

  .section[id] {
    scroll-margin-top: calc(102px + var(--safe-top));
  }

  body[data-theme="dark"] .siteNav {
    border-color: rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(180deg, rgba(12, 20, 33, 0.98), rgba(8, 14, 24, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  }

  body[data-theme="dark"] .siteNav a {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
  }

  body[data-theme="dark"] .siteNav a:hover,
  body[data-theme="dark"] .siteNav a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  h1 {
    max-width: none;
    font-size: clamp(36px, 10vw, 56px);
  }

  .heroPanel::after {
    width: 180px;
    height: 180px;
    right: 12px;
    top: 16px;
  }

  .sectionTitle {
    align-items: flex-start;
    flex-direction: column;
  }

  .sectionNote {
    text-align: left;
  }

  .splitGrid,
  .formGrid2 {
    grid-template-columns: 1fr;
  }

  .logosGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsividade: mobile (layout compacto e botões empilhados). */
@media (max-width: 640px) {
  .wrap {
    width: min(var(--max-width), calc(100vw - 20px - var(--safe-left) - var(--safe-right)));
  }

  .brandText small {
    display: none;
  }

  .brandText strong {
    font-size: 0.95rem;
    line-height: 1.12;
  }

  .headerActions {
    gap: 6px;
  }

  .themeToggle {
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .menuToggle {
    width: 38px;
    height: 38px;
  }

  .heroPanel,
  .panel {
    padding: 16px;
    border-radius: 12px;
  }

  .heroPanel::before {
    width: 3px;
  }

  .heroPanel::after {
    display: none;
  }

  .serviceGrid {
    grid-template-columns: 1fr;
  }

  body[data-mobile-card-reveal="active"] .serviceCard {
    transition:
      opacity 300ms ease,
      transform 300ms ease,
      box-shadow 120ms ease,
      border-color 120ms ease;
  }

  body[data-mobile-card-reveal="active"] .serviceCard.is-reveal-pending {
    opacity: 0;
    transform: translateY(18px);
  }

  .btn {
    width: 100%;
  }

  .contactActions .btn {
    width: auto;
    flex: 1 1 180px;
  }
}

/* Acessibilidade: desativa animações/transições para quem prefere menos movimento. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
