/* DMRA Consultoria — estilos do site (index, privacidade, termos) */

:root {
  --paper: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #14232C;
  --text: #2E3C45;
  --muted: #5B6870;
  --line: #E3DED4;
  --line-strong: #CFC8BB;
  --accent: #0F5C5E;
  --accent-hover: #0B4849;
  --accent-soft: #E2EEEC;
  --night: #10202A;
  --night-raise: #162A35;
  --night-line: #27414D;
  --on-night: #EEF3F1;
  --on-night-muted: #AEBDC1;
  --accent-on-night: #86CBC2;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 44, .05), 0 12px 32px -16px rgba(20, 35, 44, .18);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

svg { display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 8px; color: #fff; }

/* ---------- Topo ---------- */

.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand__name span { font-weight: 500; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(20, 35, 44, .06); color: var(--ink); }
.nav a.nav__cta { background: var(--ink); color: #fff; margin-left: 6px; }
.nav a.nav__cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 720px) {
  .nav a:not(.nav__cta) { display: none; }
}

/* ---------- Botões e rótulos ---------- */

.eyebrow {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.6;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; flex: none; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  margin-top: calc(.8em - 1px);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 112px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(65% 75% at 88% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(65% 75% at 88% 0%, #000 0%, transparent 72%);
  opacity: .7;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px); align-items: end;
}
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(46px, 7.4vw, 92px); font-weight: 800;
  letter-spacing: -0.045em; line-height: .98;
}
.hero h1 span { display: block; }
.hero h1 .h1-soft { color: var(--accent); }

.lead {
  margin-top: 28px; max-width: 34em;
  font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--text);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 480px) {
  .actions .btn { flex: 1 1 auto; padding-inline: 20px; }
}

.summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 28px 10px; box-shadow: var(--shadow);
}
.summary__title {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); padding: 18px 0 6px;
}
.summary dl { margin: 0; }
.summary dl div {
  display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 14px;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.summary dt { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.5; }
.summary dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }
@media (max-width: 440px) {
  .summary { padding-inline: 20px; }
  .summary dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Seções ---------- */

.section { padding-block: clamp(72px, 10vw, 120px); }
.section__head { max-width: 700px; margin-bottom: clamp(36px, 5vw, 56px); }
.section h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.032em; font-weight: 800; }
.section__lead { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* Serviços */
.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
@media (max-width: 780px) { .services { grid-template-columns: 1fr; } }

.service {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color .2s, box-shadow .2s;
}
.service:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.service__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 6px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 21px; }
.tags { list-style: none; margin: auto 0 0; padding: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}

/* Como trabalhamos (faixa escura) */
.section--night { background: var(--night); color: var(--on-night-muted); }
.section--night h2, .section--night h3 { color: var(--on-night); }
.section--night .eyebrow { color: var(--accent-on-night); }
.section--night .section__lead { color: var(--on-night-muted); }

.flow {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden;
}
.flow li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 24px; color: var(--on-night); font-weight: 600; line-height: 1.5;
}
.flow li + li { border-left: 1px solid var(--night-line); }
.flow__n {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--accent-on-night); color: var(--accent-on-night);
  font-size: 13px; font-weight: 700;
}
@media (max-width: 780px) {
  .flow { grid-template-columns: 1fr; }
  .flow li + li { border-left: 0; border-top: 1px solid var(--night-line); }
}

.principles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 680px) { .principles { grid-template-columns: 1fr; } }
.principle {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; align-items: start; align-content: start;
  background: var(--night-raise); border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: 26px 28px;
}
.principle__icon {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(134, 203, 194, .1); color: var(--accent-on-night);
}
.principle__icon svg { width: 22px; height: 22px; }
.principle h3 { font-size: 18px; margin: 2px 0 6px; }
.principle p { font-size: 16px; line-height: 1.6; }
@media (max-width: 440px) {
  .principle { grid-template-columns: 1fr; padding: 24px 22px; }
  .principle__icon { grid-row: auto; margin-bottom: 16px; }
}

.night-link { margin-top: 36px; }
.night-link a { color: var(--on-night); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.night-link a:hover { color: var(--accent-on-night); }
.night-link svg { width: 18px; height: 18px; }

/* Contato */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
}
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; align-items: start; } }
.contact p:not(.eyebrow) { margin-top: 16px; color: var(--muted); max-width: 32em; }
.contact__mail {
  display: block; text-decoration: none;
  font-size: clamp(17px, 2vw, 22px); font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 12px; padding: 18px 24px;
  overflow-wrap: anywhere;
  transition: background-color .2s, color .2s;
}
.contact__mail:hover { background: var(--accent); color: #fff; }
.contact__mail small {
  display: block; margin-bottom: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .75;
}
@media (max-width: 440px) { .contact__mail { padding: 16px 18px; } }

/* ---------- Rodapé ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: 15px; color: var(--muted); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
}
.footer__id { color: var(--text); font-weight: 600; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__nav a { color: var(--text); font-weight: 600; text-decoration: none; }
.footer__nav a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Páginas de texto (privacidade, termos) ---------- */

.doc { max-width: 760px; margin-inline: auto; padding: clamp(48px, 8vw, 88px) var(--gutter) clamp(64px, 9vw, 112px); }
.doc__head { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 12px; }
.doc h1 { font-size: clamp(36px, 5.4vw, 54px); font-weight: 800; letter-spacing: -0.038em; line-height: 1.05; }
.doc .doc__meta { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.doc .eyebrow { margin-bottom: 18px; }
.doc__meta a { font-weight: 600; }
.doc h2 { font-size: 21px; letter-spacing: -0.015em; margin: 44px 0 12px; scroll-margin-top: 24px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--ink); }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 22px 26px 12px; margin: 32px 0 8px;
}
.callout__title { font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.doc .lang-en { margin-top: 72px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc .lang-en h2:first-child { margin-top: 36px; font-size: 26px; }
