/* ===========================================================================
   PÁGINAS ESTÁTICAS — contato, privacidade e 404.
   Vivem fora do bundle React (não há router no projeto), então trazem o
   próprio CSS. Os tokens abaixo são cópia fiel do @theme de src/index.css:
   ao mexer lá, espelhe aqui.
   =========================================================================== */

:root {
  --navy: #071a3d;
  --navy-deep: #04122b;
  --navy-soft: #0d2a5c;
  --blue: #175cff;
  --blue-bright: #4a82ff;
  --orange: #ff6500;
  --orange-deep: #d95500;
  --ink: #101010;
  --ink-soft: #1c1c1c;
  --paper: #f7f6f2;
  --paper-deep: #eceae3;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  color-scheme: light;
}
@media (min-width: 64rem) { :root { --header-h: 88px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell { width: min(100% - 2.5rem, 78rem); margin-inline: auto; }
@media (min-width: 48rem) { .shell { width: min(100% - 4rem, 78rem); } }

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
}
.skip:focus {
  left: 1rem; top: 1rem; background: var(--ink); color: #fff;
  padding: .75rem 1rem; border-radius: 4px; text-decoration: none;
}

/* ---------------------------------------------------------------- MARCA -- */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; }
.logo-word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.045em;
  line-height: 1; font-size: 1.375rem; color: var(--navy);
  display: inline-flex; align-items: baseline; white-space: nowrap;
}
@media (min-width: 40rem) { .logo-word { font-size: 1.5rem; } }
.logo-word svg {
  height: .705em; width: .438em; margin-inline: .035em;
  display: inline-block; transform: translateY(.005em);
}
.logo-sub {
  font-family: var(--font-mono); font-size: .5rem; letter-spacing: .42em;
  margin-top: .28em; padding-left: .15em; color: var(--ink); opacity: .62;
}
.on-dark .logo-word { color: #fff; }
.on-dark .logo-sub { color: #fff; }

/* -------------------------------------------------------------- BOTÕES --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 500; font-size: .9375rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  padding: .85rem 1.5rem; border-radius: 4px;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn svg { width: .7em; height: .7em; }
.btn-sm { padding: .6rem 1.1rem; font-size: .875rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--blue); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover, .btn-accent:focus-visible { background: var(--orange-deep); }
.btn-ghost { border-color: rgba(16,16,16,.22); color: var(--ink); background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--ink); background: rgba(16,16,16,.04); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.on-dark .btn-ghost:hover, .on-dark .btn-ghost:focus-visible { background: rgba(255,255,255,.08); }

/* ------------------------------------------------------------- CABEÇALHO - */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: var(--header-h);
}
.nav-desktop { display: none; }
@media (min-width: 64rem) { .nav-desktop { display: block; } }
.nav-desktop ul { display: flex; align-items: center; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  position: relative; display: inline-block; padding: .5rem 0;
  font-size: .9375rem; color: rgba(16,16,16,.7); text-decoration: none;
  transition: color .3s var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a[aria-current] { color: var(--ink); }
.nav-desktop a[aria-current]::before {
  content: ''; position: absolute; left: -.875rem; top: 50%;
  width: 4px; height: 4px; background: var(--blue); transform: translateY(-50%);
}
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-actions .btn { display: none; }
@media (min-width: 40rem) { .header-actions .btn { display: inline-flex; } }

.burger {
  position: relative; z-index: 60; display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-right: -.5rem;
  background: none; border: 0; cursor: pointer;
}
@media (min-width: 64rem) { .burger { display: none; } }
.burger span { position: relative; display: block; width: 26px; height: 13px; }
.burger span i {
  position: absolute; left: 0; display: block; height: 2px; background: var(--ink);
  transition: all .5s var(--ease);
}
.burger span i:nth-child(1) { top: 0; width: 100%; }
.burger span i:nth-child(2) { top: 11px; width: 66%; }
[data-menu-open] .burger span i { background: #fff; }
[data-menu-open] .burger span i:nth-child(1) { top: 6px; transform: rotate(45deg); }
[data-menu-open] .burger span i:nth-child(2) { top: 6px; width: 100%; transform: rotate(-45deg); }

/* --------------------------------------------------------- MENU MOBILE --- */
.menu-mobile {
  position: fixed; inset: 0; z-index: 40; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2.5rem;
}
.menu-mobile[hidden] { display: none; }
@media (min-width: 64rem) { .menu-mobile { display: none !important; } }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile li { border-bottom: 1px solid rgba(255,255,255,.12); }
.menu-mobile li a {
  display: flex; align-items: baseline; gap: 1rem; padding: 1.25rem 0;
  text-decoration: none; color: #fff;
}
.menu-mobile .idx { font-family: var(--font-mono); font-size: .7rem; color: var(--blue-bright); }
.menu-mobile .lbl { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; letter-spacing: -.02em; }
.menu-foot { display: flex; flex-direction: column; gap: 1.25rem; }
.menu-foot p { margin: 0; font-family: var(--font-mono); font-size: .75rem; color: rgba(255,255,255,.45); }

/* -------------------------------------------------------------- RODAPÉ --- */
.site-footer { background: var(--navy); color: #fff; padding: 4.5rem 0 2.5rem; margin-top: 5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3.5rem; } }
.site-footer .tag { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; max-width: 22ch; margin: 0 0 1.5rem; }
.site-footer address, .site-footer p.small { font-style: normal; font-family: var(--font-mono); font-size: .75rem; line-height: 1.9; color: rgba(255,255,255,.65); margin: 0; }
.site-footer .lbl { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9375rem; transition: color .3s var(--ease); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-mono); font-size: .75rem; color: rgba(255,255,255,.62);
}
@media (min-width: 40rem) { .footer-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.footer-bottom p { margin: .15rem 0; }
.footer-bottom a { font-size: .75rem; }

/* ------------------------------------------------------------ CONTEÚDO --- */
.page-head { padding: 4rem 0 2.5rem; }
.page-head .eyebrow { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); margin: 0 0 .75rem; }
.page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 1rem; color: var(--navy); }
.page-head .sub { margin: 0; max-width: 52ch; color: rgba(16,16,16,.7); font-size: 1.0625rem; }

.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy); margin: 2.75rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: rgba(16,16,16,.75); }
.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--blue); }
.prose { max-width: 46rem; }
.callout { border-left: 3px solid var(--orange); background: #fff; padding: 1rem 1.25rem; border-radius: 0 4px 4px 0; margin: 0 0 2.5rem; }
.callout p { margin: 0; }

/* ------------------------------------------------------------ FORMULÁRIO - */
.cols { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 64rem) { .cols { grid-template-columns: 1.15fr .85fr; gap: 4.5rem; } }
form.contato { display: flex; flex-direction: column; gap: 1.1rem; }
.row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 38rem) { .row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: .8125rem; font-weight: 500; color: rgba(16,16,16,.72); margin-bottom: .4rem; }
label .req { color: var(--orange-deep); }
input, select, textarea {
  width: 100%; font: inherit; font-size: .9375rem; color: var(--ink); background: #fff;
  border: 1px solid rgba(16,16,16,.16); border-radius: 4px; padding: .7rem .85rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
textarea { min-height: 8.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,92,255,.14);
}
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .8125rem; color: rgba(16,16,16,.72); }
.consent input { width: auto; flex: none; margin-top: .3rem; }
.consent label { margin: 0; font-weight: 400; }
button[type='submit'] { align-self: flex-start; }
button[type='submit']:disabled { opacity: .6; cursor: progress; }
.status { display: none; font-size: .875rem; border-radius: 4px; padding: .85rem 1rem; }
.status.ok { display: block; background: #e9f7ef; border: 1px solid #bfe6cf; color: #1b6b3f; }
.status.err { display: block; background: #fdecec; border: 1px solid #f5c6c6; color: #8c2020; }

aside .block { margin-bottom: 2rem; }
aside .lbl { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(16,16,16,.55); margin: 0 0 .4rem; }
aside p, aside address { margin: 0; font-style: normal; color: rgba(16,16,16,.8); font-size: .9375rem; }
aside a { color: var(--blue); text-decoration: none; }
aside a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ 404 -- */
.err-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem 0; }
.err-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 14vw, 7rem); line-height: 1; color: var(--orange); margin: 0; }
.err-page h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); margin: .5rem 0; color: var(--navy); }
.err-page p.lead { color: rgba(16,16,16,.7); margin: 0 0 2rem; }
.err-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
