/* Layout: página única escura. A abertura traz as folhas de um livro aberto
   em luz dourada; o resto da página fica quieto, em cartões petróleo. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #06141a;
  --bg-raised: #091b22;
  --card: #0d232b;
  --card-high: #14323c;
  --line: #1d3d47;
  --fg: #eff6f5;
  --muted: #a3bbc0;
  --gold: #f4b942;
  --orange: #ff9350;
  --teal: #3fb8a9;

  --sans: "Archivo", "Segoe UI", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.nb { white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 8px; background: var(--gold); color: var(--bg); }
.skip:focus { top: 12px; }

/* ---------- topo ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(6 20 26 / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(29 61 71 / 0.6);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.1875rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand:hover { color: inherit; }
.brand img { display: block; border-radius: 8px; }
.nav { display: flex; gap: 32px; font-size: 1rem; }
.nav a { padding-block: 8px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }
.menu { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 24px;
  border: 1px solid #34606d;
  border-radius: 12px;
  background: rgb(13 35 43 / 0.85);
  color: var(--fg);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--gold); color: var(--fg); }
.btn.solid { border-color: transparent; background: var(--gold); color: #1c1200; }
.btn.solid:hover { background: #ffcd66; color: #1c1200; }
.btn.small { min-height: 42px; padding: 8px 18px; border-radius: 10px; }

/* ---------- abertura ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(46rem 26rem at 50% 104%, rgb(255 147 80 / 0.3), transparent 70%),
    radial-gradient(60rem 34rem at 8% 70%, rgb(63 184 169 / 0.13), transparent 70%),
    radial-gradient(60rem 34rem at 92% 70%, rgb(63 184 169 / 0.13), transparent 70%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("paginas.svg") center bottom / cover no-repeat;
  opacity: 0.62;
  /* apaga as linhas atrás do texto */
  -webkit-mask-image: radial-gradient(44rem 19rem at 50% 40%, rgb(0 0 0 / 0.1) 45%, #000 100%);
  mask-image: radial-gradient(44rem 19rem at 50% 40%, rgb(0 0 0 / 0.1) 45%, #000 100%);
}
.hero .wrap { display: grid; justify-items: center; padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); }
.hero h1 {
  max-width: 15em;
  font-size: clamp(2.35rem, 5.9vw, 4.6rem);
  font-weight: 680;
  font-stretch: 106%;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero h1 span {
  color: var(--gold);
  background: linear-gradient(95deg, #ffd27a, var(--gold) 40%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { max-width: 37em; margin-top: 24px; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.6; color: #c3d5d8; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 860px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 22px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(9 27 34 / 0.97);
}
.facts div { display: flex; flex-direction: column-reverse; gap: 2px; padding-inline: 12px; }
.facts dt { font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.facts dd { font-size: 1.375rem; font-weight: 650; line-height: 1.3; }

/* faixa de temas */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-raised); }
.ticker div { display: flex; width: max-content; animation: slide 46s linear infinite; }
.ticker:hover div { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; }
.ticker li { display: flex; align-items: center; padding: 20px 0; font-size: 1.0625rem; font-weight: 500; color: #c3d5d8; white-space: nowrap; }
.ticker li::before { content: ""; width: 7px; height: 7px; margin: 0 18px 0 34px; border-radius: 50%; background: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.raised { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 660;
  font-stretch: 104%;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.head { display: grid; gap: 14px; justify-items: center; max-width: 42rem; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.head p { font-size: 1.125rem; color: var(--muted); text-wrap: balance; }

.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

/* sobre + cartão da empresa */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27.5rem); gap: 40px 72px; align-items: center; }
.about-text { display: grid; gap: 20px; }
.about-text p { max-width: 62ch; color: #c3d5d8; }
.company { padding: 28px 28px 20px; background: linear-gradient(200deg, #17404a, var(--card) 42%); border-color: #2a5562; }
.company-head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; }
.company-head img { border-radius: 11px; }
.company-head h3 { font-size: 1.25rem; line-height: 1.25; }
.company-head p { font-size: 1rem; line-height: 1.4; color: var(--muted); }
.data div { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: 0 12px; padding-block: 9px; border-top: 1px solid #234854; font-size: 1rem; line-height: 1.45; }
.data dt { color: var(--muted); }
.data dd { font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* áreas de atuação */
.areas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.area { grid-column: span 2; display: flex; flex-direction: column; gap: 22px; padding: 26px; transition: border-color 0.2s; }
.area:hover { border-color: #3a6977; }
.area.wide { grid-column: span 3; flex-direction: row-reverse; align-items: center; justify-content: space-between; }
.area.wide > div { flex: 1 1 0; min-width: 0; }
.area h3, .pillar h3, .step h3 { font-size: 1.3125rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
.area p, .pillar p, .step p { margin-top: 8px; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.art { flex: none; display: block; width: 224px; height: 140px; }
.area:not(.wide) .art { margin-left: -10px; }
.area.wide .art { width: 44%; max-width: 224px; }
.art .b { fill: var(--card-high); stroke: #3a6977; stroke-width: 1.5; }
.art .d { fill: var(--bg); }
.art .m { fill: #3a6977; }
.art .g { fill: var(--gold); }
.art .o { fill: var(--orange); }
.art .t { fill: var(--teal); }
.art .s { fill: none; stroke: #3a6977; stroke-width: 1.5; }
.art .sg { fill: none; stroke: var(--gold); stroke-width: 2; }

/* como trabalhamos */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.step { position: relative; padding-top: 34px; counter-increment: s; }
.step::before { content: ""; position: absolute; top: 6px; left: 0; right: -32px; height: 2px; background: var(--line); }
.step:last-child::before { right: 0; background: linear-gradient(90deg, var(--line), transparent); }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px var(--bg-raised); }

/* pilares */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 26px 24px; }
.pillar svg { display: block; width: 34px; height: 34px; margin-bottom: 18px; fill: none; stroke: var(--gold); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* contato */
.cta {
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 44px);
  border: 1px solid #2a5562;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(38rem 20rem at 50% 118%, rgb(255 147 80 / 0.3), transparent 72%),
    radial-gradient(34rem 22rem at 0% 0%, rgb(63 184 169 / 0.2), transparent 70%),
    var(--card);
}
.cta > p { max-width: 36em; margin: 16px auto 0; font-size: 1.125rem; color: #c3d5d8; text-wrap: balance; }
.cta dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 20px 32px; margin-top: clamp(32px, 5vw, 56px); padding-top: 26px; border-top: 1px solid #2a5562; text-align: left; }
.cta dt { font-size: 1rem; color: var(--muted); }
.cta dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-raised); font-size: 1rem; line-height: 1.6; padding-block: 56px 28px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: 36px 40px; }
.foot p, .foot address { max-width: 27em; margin-top: 16px; font-style: normal; color: var(--muted); }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav h2 { margin-bottom: 4px; font-size: 1rem; font-weight: 650; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--fg); }
.foot .copy { grid-column: 1 / -1; max-width: none; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- páginas legais ---------- */
.legal { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.legal article { max-width: 68ch; margin-inline: auto; }
.legal h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 680; font-stretch: 104%; line-height: 1.08; letter-spacing: -0.025em; }
.legal .date { margin-top: 12px; color: var(--muted); }
.legal h2 { margin-top: 2em; font-size: 1.375rem; font-weight: 650; line-height: 1.25; }
.legal article > p:not(.date), .legal article > ul { margin-top: 0.9em; color: #cfdee0; }
.legal article > ul { display: grid; gap: 0.4em; padding-left: 1.2em; list-style: disc; }
.legal strong { color: var(--fg); }

/* ---------- telas menores ---------- */
@media (max-width: 980px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .area, .area.wide { grid-column: span 3; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .area.wide > div { flex: none; }
  .area .art, .area.wide .art { width: 224px; max-width: 100%; }
  .area:last-child { grid-column: 1 / -1; }
  .pillars, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::before { right: 0; }
  .foot .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .wrap > div { grid-column: 1 / -1; }
  .cta dl { grid-template-columns: minmax(0, 1fr); justify-content: start; text-align: center; gap: 16px; }
}
@media (max-width: 820px) {
  .nav, .top .btn { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { display: flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid #34606d; border-radius: 10px; font-weight: 600; cursor: pointer; list-style: none; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { border-color: var(--gold); }
  .menu div { position: absolute; right: 0; top: calc(100% + 10px); width: min(260px, calc(100vw - 32px)); display: grid; padding: 8px 0; border: 1px solid #34606d; border-radius: 14px; background: var(--card); }
  .menu div a { padding: 12px 20px; font-weight: 500; text-decoration: none; }
}
@media (max-width: 620px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .facts dd { font-size: 1.25rem; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .areas, .pillars, .steps { grid-template-columns: minmax(0, 1fr); }
  .area, .area.wide, .area:last-child { grid-column: auto; }
  .steps { gap: 0; }
  .step { padding: 0 0 28px 34px; }
  .step::before, .step:nth-child(2)::before { top: 8px; bottom: -8px; left: 6px; right: auto; width: 2px; height: auto; }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .step::after { top: 6px; }
  .company { padding: 22px 20px; }
  .data div { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot nav:nth-of-type(2) { grid-column: 1 / -1; order: 1; }
  .foot .copy { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker div { animation: none; }
  .btn, .area { transition: none; }
}
