/* Praeda Technologies - landing page
   Tipografia: Geist (variável, self-hosted). Cores: extraídas dos logos da marca
   (#1c4c5e petróleo, #a37e4e dourado). Raio único de 4px em toda a página. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* tema claro */
  --bg: #f4f5f5;
  --surface: #ffffff;
  --surface-2: #eceeee;
  --fg: #10262f;
  --muted: #4d636b;
  --brand: #1c4c5e;
  --accent: #7d5f38;        /* dourado escurecido: contraste AA sobre fundo claro */
  --accent-solid: #a37e4e;  /* dourado da marca, usado como superfície */
  --on-accent: #10262f;
  --line: rgba(16, 38, 47, .14);
  --shadow: 0 1px 2px rgba(16, 38, 47, .05), 0 12px 32px rgba(16, 38, 47, .07);
  --r: 4px;
  --nav-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1f27;
    --surface: #12303c;
    --surface-2: #0f2833;
    --fg: #eaf0f1;
    --muted: #a2b6bd;
    --brand: #cba272;
    --accent: #cba272;
    --accent-solid: #c9a06a;
    --on-accent: #0c1f27;
    --line: rgba(255, 255, 255, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
h1 { font-size: clamp(2.05rem, 4.1vw, 3.3rem); letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.015em; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 2rem); } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--fg);
  padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--r);
}
.skip:focus { left: 1rem; top: 1rem; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- navegação ---------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  height: 100%;
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
  display: flex; align-items: center; gap: 2rem;
}
@media (max-width: 640px) { .nav-in { width: calc(100% - 2rem); gap: 1rem; } }

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 600; font-size: 1.22rem; letter-spacing: -.03em;
}
.brand img { width: 36px; height: 36px; }

.nav-links { margin-left: auto; display: flex; gap: 1.6rem; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s ease; }
.nav-links a:hover { color: var(--fg); }

.lang {
  font-size: .85rem; font-weight: 500; letter-spacing: .06em;
  text-decoration: none; color: var(--muted);
  padding: .35rem .5rem; border: 1px solid var(--line); border-radius: var(--r);
  transition: color .2s ease, border-color .2s ease;
}
.lang:hover { color: var(--fg); border-color: var(--fg); }

/* ponytail: sem menu hambúrguer. No mobile a nav guarda marca + CTA;
   a página é curta o bastante para rolar. Adicionar drawer se crescer. */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .brand { margin-right: auto; }
  .lang { margin-left: auto; }
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: .98rem;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }

.btn-primary { background: var(--accent-solid); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-solid) 88%, var(--fg)); }

.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }

@media (max-width: 480px) {
  .nav .btn-sm span, .nav .btn-sm { font-size: .85rem; padding: .5rem .8rem; }
}

/* ---------- ícones (Phosphor, aplicados como máscara para herdar a cor) ---------- */

.ico {
  display: inline-block; flex: none;
  width: 1.15em; height: 1.15em;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.ico-lg { width: 30px; height: 30px; color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero-in {
  width: min(1180px, 100% - 3rem); margin-inline: auto;
  display: grid; grid-template-columns: 1.28fr .72fr; align-items: center; gap: clamp(2rem, 4vw, 4rem);
  min-height: min(500px, 58dvh);
}
.hero h1 { text-wrap: balance; }
.lead {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 44ch;
}
.cta-row { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.eyebrow {
  margin-bottom: 1rem;
  font-size: .82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent);
}
.cta-note { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); max-width: 48ch; }

/* faixa de prova ao pé do hero */
.stats {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding-top: clamp(2rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.stats div { display: flex; flex-direction: column; gap: .35rem; }
.stats dt { font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; color: var(--accent); }
.stats dd { margin: 0; font-size: .9rem; color: var(--muted); max-width: 26ch; }

.stats-note { margin-top: 1.8rem; font-size: .9rem; color: var(--muted); max-width: 80ch; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}

.hero-art { display: grid; place-items: center; }
.crest {
  position: relative;
  width: min(100%, 320px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
}
/* no escuro o disco separa o brasão do fundo; no claro o próprio medalhão já contrasta */
@media (prefers-color-scheme: dark) {
  .crest { background: var(--surface); box-shadow: var(--shadow); }
}
.crest::before {
  content: ""; position: absolute; inset: -7%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-solid) 45%, transparent);
}
.crest img { width: 78%; height: auto; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; justify-self: start; }
  .crest { width: 190px; }
}

/* ---------- seções ---------- */

.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }

.sec-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.sec-head-wide { max-width: 72ch; }
.sec-head h2 { text-wrap: balance; }
.sec-head p { margin-top: 1rem; color: var(--muted); }

/* nota de rodapé de seção: atribuição, ressalva, contexto */
.note { font-size: .92rem; color: var(--muted); }
.sec-head .note { margin-top: 1rem; }

/* ---------- prova: setor, problema e decisão técnica ---------- */

.work {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.work article { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.work h3 { color: var(--accent); margin-bottom: .6rem; }
.work p { color: var(--muted); font-size: .97rem; }
.work .why { margin-top: .9rem; font-size: .92rem; }
.work .why strong { color: var(--fg); font-weight: 500; }

.work-foot { margin-top: 1.6rem; font-size: .92rem; color: var(--muted); max-width: 76ch; }
.work-foot + .work-foot { margin-top: .7rem; }

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; }
}

/* ---------- serviços: duas colunas assimétricas ---------- */

.svc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.25rem; }
.svc-card {
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}
/* variação visual: a primeira célula carrega o brasão da marca em marca d'água */
.svc-a {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent-solid) 12%, transparent), transparent 55%),
    var(--surface);
}
.svc-a::after {
  content: ""; position: absolute; right: -70px; bottom: -70px;
  width: 240px; height: 240px; opacity: .07;
  background: url("assets/logo/praeda.svg") center / contain no-repeat;
  pointer-events: none;
}
.svc-card h3 { margin: 1.1rem 0 .7rem; }
.svc-card > p { color: var(--muted); }

.ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.4rem; font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-solid);
}

@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }

/* bloco destacado dentro de uma seção, separado por hairline */
.band {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line);
}
.band .sec-head { margin-bottom: clamp(2rem, 3vw, 2.6rem); }

/* qualificação reversa: filtra lead errado e sustenta o posicionamento */
.disqualify { margin-top: 2rem; font-size: .92rem; color: var(--muted); max-width: 72ch; }

/* ---------- processo: trilha com hairline ---------- */

.track {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  border-top: 1px solid var(--line);
}
.track li { padding-top: 2rem; position: relative; }
.track li::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 46px; height: 2px; background: var(--accent-solid);
}
.track h3 { margin-bottom: .7rem; }
.track p { color: var(--muted); font-size: .98rem; max-width: 34ch; }

.track-foot {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-weight: 500; color: var(--fg);
}

@media (max-width: 860px) {
  .track { grid-template-columns: 1fr; gap: 0; }
  .track li { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
  .track li:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- perguntas frequentes: details nativo ---------- */

.faq { max-width: 76ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 1.15rem 0; cursor: pointer; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--muted); padding-bottom: 1.3rem; max-width: 66ch; font-size: .97rem; }

/* ---------- página interna: texto corrido ---------- */

.prose { max-width: 76ch; }
.prose h3 { margin: 2.4rem 0 .8rem; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose .ticks { margin-top: 1rem; }
.prose .ticks li { color: var(--muted); }

/* chamada para página interna, ao pé de uma seção */
.more {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .97rem; font-weight: 500; color: var(--accent);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.more .ico { width: .95em; height: .95em; }

/* ---------- quem somos ---------- */

.about {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about-photo { margin: 0; }
.about-photo img {
  width: 100%; border-radius: var(--r);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  box-shadow: var(--shadow);
}
.about-copy h2 { margin-bottom: 1.4rem; }
/* objeção de fornecedor único, respondida no mesmo bloco */
.risk { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.risk h3 { margin-bottom: .8rem; }
.risk .ticks { margin: 1.2rem 0; }
.risk .ticks li { color: var(--muted); }
.about-copy p { color: var(--muted); max-width: 56ch; }
.about-copy p + p { margin-top: 1rem; }
.sig {
  margin-top: 2rem !important; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.sig strong { color: var(--fg); font-weight: 600; }
.sig span { color: var(--muted); font-size: .95rem; }
.sig a {
  margin-top: .6rem; font-size: .92rem; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  align-self: flex-start;
}

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 3 / 2; object-position: 50% 18%; max-height: 380px; }
}

/* ---------- contato: bloco estreito, sem mapa e sem lista de endereço ---------- */

.contact { max-width: 62ch; }
.contact h2 { margin-bottom: 1.2rem; }
.contact > p { color: var(--muted); }
.contact .cta-row { margin-top: 2rem; }
.contact .cta-note { margin-top: 1.4rem; }
.contact .note { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ---------- rodapé ---------- */

.foot { padding: 3rem 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.foot-logo { width: 104px; height: auto; }
.foot-meta { color: var(--muted); font-size: .9rem; }
.foot-copy { margin-left: auto; color: var(--muted); font-size: .9rem; }

.dark-only { display: none; }
@media (prefers-color-scheme: dark) {
  .light-only { display: none; }
  .dark-only { display: block; }
}

@media (max-width: 640px) {
  .foot-copy { margin-left: 0; }
}

/* ---------- motion ---------- */

/* o estado inicial só existe quando há JS para revelar o conteúdo depois */
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.svc-card.reveal:nth-child(2), .track li.reveal:nth-child(2) { transition-delay: .08s; }
.track li.reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}
