/* DRT Informática — estilos (mobile first, sem fontes externas) */

:root {
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #55627a;
  --line: #e2e7ee;
  --bg: #ffffff;
  --surface: #f4f6f9;
  --brand: #1747a6;
  --brand-soft: #e8eefb;
  --wa: #0d7a3a;          /* verde com contraste AA para texto branco */
  --wa-hover: #0a6330;
  --placeholder-bg: #fff3c4;
  --placeholder-ink: #6b4e00;

  --radius: 12px;
  --radius-sm: 8px;
  --gutter: 20px;
  --maxw: 1140px;
  --header-h: 64px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 88px; /* espaço para o botão fixo do celular não cobrir conteúdo */
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.75rem, 6vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.15rem); font-weight: 720; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
img, svg { display: block; max-width: 100%; }

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

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }

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

.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9d2de; }
.btn-ghost:hover { border-color: var(--ink); }

.show-xs { display: inline; }
.hide-xs { display: none; }
@media (min-width: 480px) { .show-xs { display: none; } .hide-xs { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--ink); color: #fff; font: 700 .8rem/1 var(--mono); letter-spacing: .04em;
}
.brand-name { font-weight: 700; font-size: 1.05rem; }
.header-nav { display: none; }
@media (min-width: 960px) {
  .header-nav { display: flex; gap: 26px; }
  .header-nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550; }
  .header-nav a:hover { color: var(--brand); }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font: 600 .8rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 7px 12px; border-radius: 999px;
}
@media (max-width: 420px) { .eyebrow { font-size: .7rem; letter-spacing: .03em; } }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-actions .btn { flex: 1 1 100%; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }

.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink-2); font-weight: 550; }
.trust .ico { color: var(--brand); }
@media (min-width: 560px) { .trust { grid-template-columns: 1fr 1fr; column-gap: 20px; } }

.hero-media { margin: 0; }
.hero-illustration { width: 100%; height: auto; aspect-ratio: 640 / 560; }
.il-bg { fill: var(--surface); }
.il-grid path { stroke: #e3e8f0; stroke-width: 1; fill: none; }
.il-bench { fill: #d6dde7; }
.il-line { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.il-fill { fill: #fff; }
.il-screen { fill: var(--ink); }
.il-accent { fill: #5b8def; }
.il-soft { fill: #3a4b66; }
.il-ok { fill: #22b35e; }
.il-ok-ring { fill: none; stroke: #22b35e; stroke-width: 3; }
.il-ok-check { fill: none; stroke: #22b35e; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.il-chip { fill: var(--ink); }

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-head { max-width: 680px; margin-bottom: 36px; }
.kicker { font: 600 .8rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.section-cta { margin-top: 32px; }

/* Serviços */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.card:hover { border-color: #c7d3e6; }
.card-ico { width: 32px; height: 32px; color: var(--brand); margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.also { margin-top: 24px; color: var(--ink-2); font-size: .98rem; }

/* Como funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.steps li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid #d9e0ea; }
.steps li:last-child { border-bottom: 1px solid #d9e0ea; }
.step-n { font: 700 .95rem/1.6 var(--mono); color: var(--brand); min-width: 2.2em; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .steps li:nth-last-child(2) { border-bottom: 1px solid #d9e0ea; }
}
.note { margin-top: 28px; padding: 14px 18px; border-left: 3px solid var(--brand); background: #fff; color: var(--ink-2); font-size: .95rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Diferenciais */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(4, 1fr); gap: 32px 28px; } }
.features li { display: flex; gap: 14px; }
.features .ico { width: 24px; height: 24px; color: var(--brand); margin-top: 2px; }
.features h3 { margin-bottom: 4px; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }
.independent { margin-top: 40px; font-size: .9rem; color: var(--muted); }

/* Local */
.local-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .local-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.info { margin: 24px 0 28px; display: grid; gap: 16px; }
.info dt { font: 600 .78rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info dd { margin: 0; font-weight: 550; }
.map-box {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1.5px dashed #b9c4d3; background: #fff;
  display: grid; place-content: center; gap: 8px; text-align: center; padding: 20px;
}
.map-hint { color: var(--muted); font-size: .9rem; }
.map-box { justify-items: center; }
.map-pin { width: 40px; height: 40px; color: var(--brand); }
.map-title { font-weight: 650; margin: 0; }
.map-box iframe { width: 100%; height: 100%; }

/* Placeholders — destacados para não passarem despercebidos antes da publicação */
.placeholder {
  display: inline-block; background: var(--placeholder-bg); color: var(--placeholder-ink);
  font: 600 .85rem/1.4 var(--mono); padding: 2px 8px; border-radius: 6px;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 620; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; max-width: 62ch; }

/* CTA final */
.final-cta { background: var(--ink); color: #fff; padding: 64px 0; }
.final-inner { text-align: center; max-width: 720px; }
.final-cta p { color: #c9d3e3; font-size: 1.1rem; margin-bottom: 28px; }

/* Rodapé */
.site-footer { background: #0a1322; color: #c9d3e3; padding: 48px 0 20px; font-size: .95rem; }
.site-footer p { margin: 0 0 10px; }
.site-footer strong { color: #fff; font-weight: 600; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1.3fr 1fr; } }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-link { color: #fff; text-underline-offset: 3px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.small { font-size: .85rem; color: #97a4b9; }
.footer-bottom { border-top: 1px solid #1f2b3e; margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #97a4b9; }
.site-footer .placeholder { background: #3b3417; color: #ffe08a; }

/* Botão fixo no celular */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  transition: transform .2s ease, visibility .2s;
}
.mobile-bar.is-idle { transform: translateY(110%); visibility: hidden; }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Banner de consentimento (inativo por padrão) */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 96px; z-index: 60;
  max-width: 560px; margin: 0 auto; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 8px 30px rgba(15,27,45,.12); font-size: .92rem;
}
.consent[hidden] { display: none; }
.consent p { margin-bottom: 14px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (min-width: 768px) { .consent { bottom: 20px; } }

/* Página de texto (Política de Privacidade) */
.prose { padding: 48px 0 72px; }
.prose h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }
