/* =========================================================
   PROXONE · IA e Automação para Negócios
   Folha de estilo única do site (sem dependências externas)
   ========================================================= */

:root {
  /* Cores da marca (extraídas do logotipo) */
  --navy-900: #08121f;
  --navy-800: #0c192a;
  --navy-700: #13233a;
  --navy-600: #1d3150;
  --gold-500: #bc9b3e;
  --gold-400: #d1b260;
  --gold-700: #7d6420;
  --teal-500: #388682;
  --teal-400: #4fa7a1;
  --teal-700: #276663;
  --cream-100: #f7f5ef;
  --cream-200: #f1eee5;
  --cream-300: #e6e1d3;

  /* Papéis */
  --bg: #ffffff;
  --bg-soft: var(--cream-100);
  --text: #16202e;
  --text-muted: #4c5768;
  --text-on-dark: #f1eee5;
  --text-on-dark-muted: #b9c1cd;
  --line: #e2ddd0;
  --line-dark: rgba(241, 238, 229, 0.12);
  --link: var(--teal-700);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(12, 25, 42, 0.06), 0 8px 24px rgba(12, 25, 42, 0.06);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--teal-500); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; color: inherit; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--gold-500); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Marca ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-on-dark); text-decoration: none;
}
.brand:hover { color: var(--text-on-dark); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.08em; }
.brand__name b { color: var(--gold-500); font-weight: 800; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 25, 42, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-on-dark-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-on-dark); background: rgba(241, 238, 229, 0.06); }
.nav .btn { margin-left: 8px; }
.nav a.btn--gold, .nav a.btn--gold:hover, .nav a.btn--gold[aria-current="page"] { color: var(--navy-900); }
.nav a.btn--gold { background: var(--gold-500); border-radius: 999px; font-weight: 700; padding: 10px 18px; }
.nav a.btn--gold:hover { background: var(--gold-400); }

@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn { margin-left: 0; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.98rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-400); color: var(--navy-900); }
.btn--ghost { border-color: rgba(241, 238, 229, 0.35); color: var(--text-on-dark); }
.btn--ghost:hover { border-color: var(--text-on-dark); color: var(--text-on-dark); }
.btn--navy { background: var(--navy-800); color: var(--text-on-dark); }
.btn--navy:hover { background: var(--navy-600); color: var(--text-on-dark); }
.btn--sm { padding: 10px 16px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(56, 134, 130, 0.22), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(188, 155, 62, 0.14), transparent 60%),
              var(--navy-800);
  color: var(--text-on-dark);
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 104px);
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__x {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: min(520px, 55vw); height: auto; opacity: 0.5; pointer-events: none;
}
@media (max-width: 820px) { .hero__x { opacity: 0.18; right: -120px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--gold-700); }

.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-on-dark-muted); max-width: 640px; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.highlights {
  list-style: none; margin: 48px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line-dark);
  display: grid; gap: 20px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  font-size: 0.93rem; color: var(--text-on-dark-muted);
}
.highlights li { position: relative; padding-left: 18px; }
.highlights li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); }
.highlights strong { display: block; color: var(--text-on-dark); font-size: 0.98rem; margin-bottom: 2px; }
.highlights a { color: var(--gold-400); white-space: nowrap; }
.highlights a:hover { color: var(--gold-500); }

/* ---------- Seções ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-800); color: var(--text-on-dark); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p:not(.eyebrow) { color: var(--text-muted); font-size: 1.08rem; }
.section--dark .section__head p:not(.eyebrow) { color: var(--text-on-dark-muted); }

.grid { display: grid; gap: 20px; }
.grid--2x2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 18px; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }
.note { margin: 28px 0 0; color: var(--text-muted); font-size: 0.98rem; }

.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-400);
}
.icon svg { width: 24px; height: 24px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-900); color: var(--text-on-dark-muted); padding: 56px 0 32px; font-size: 0.93rem; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-tagline { margin: 14px 0 0; }
.footer-grid h4 { color: var(--text-on-dark); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 8px; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }

/* ---------- Páginas legais ---------- */
.page-hero { background: var(--navy-800); color: var(--text-on-dark); padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--text-on-dark-muted); max-width: 720px; margin: 0; }
.page-hero .meta { margin-top: 18px; font-size: 0.9rem; color: var(--gold-400); }

.breadcrumb { font-size: 0.85rem; margin-bottom: 14px; color: var(--text-on-dark-muted); }
.breadcrumb a { color: var(--text-on-dark-muted); }
.breadcrumb a:hover { color: var(--text-on-dark); }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 96px); }
.legal--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .legal { grid-template-columns: minmax(0, 1fr); } }

.toc { position: sticky; top: 92px; align-self: start; font-size: 0.9rem; }
.toc details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.toc summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; float: right; color: var(--text-muted); }
.toc details[open] summary::after { content: "–"; }
.toc ol { margin: 0; padding: 0 18px 16px 36px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 960px) { .toc { position: static; } }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2.4em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--gold-700); }
.prose strong { color: var(--navy-800); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.94rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); font-weight: 700; color: var(--navy-800); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-wrap table { margin: 0; min-width: 560px; }

.callout {
  border-left: 4px solid var(--gold-500); background: var(--bg-soft);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.4em;
}
.callout p:last-child { margin-bottom: 0; }
.callout--teal { border-left-color: var(--teal-500); }

.id-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 1.4em; background: #fff; }
.id-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.id-card dt { color: var(--text-muted); }
.id-card dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .id-card dl { grid-template-columns: 1fr; gap: 0; } .id-card dd { margin-bottom: 8px; } }

.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list > li { counter-increment: s; position: relative; padding: 4px 0 14px 52px; margin: 0; }
.steps-list > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-800); color: var(--gold-400); font-weight: 800;
}

.back-top { display: inline-block; margin-top: 2em; font-size: 0.9rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--gold-500); line-height: 1; margin-bottom: 8px; }

/* ---------- Impressão ---------- */
@media print {
  .site-header, .site-footer, .toc, .skip-link, .back-top { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 16px; }
  .page-hero h1, .page-hero p, .page-hero .meta { color: #000; }
  .legal { display: block; padding: 0; }
  body { font-size: 12pt; }
  a { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
a[href^="https://wa.me"] { white-space: nowrap; }
