/* TechRas — folha de estilo única
   Paleta inspirada nas cores do cabeamento estruturado (padrão T568B). */

:root {
  --paper: #f4f6f7;
  --surface: #ffffff;
  --ink: #12263a;
  --steel: #52637a;
  --line: #d5dce2;
  --orange: #e8741c;
  --green: #2c8a57;
  --blue: #2c63ad;
  --brown: #7b5034;
  --focus: #2c63ad;

  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 12px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

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

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

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-stretch: 112%; font-weight: 750; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--steel); max-width: 54ch; }
.muted { color: var(--steel); }
.small { font-size: 0.92rem; }

/* ---------- Faixa de cabo (assinatura visual) ---------- */
.cable {
  display: flex; height: 5px; width: 100%;
}
.cable span { flex: 1; }
.cable span:nth-child(1) { background: var(--orange); }
.cable span:nth-child(2) { background: var(--green); }
.cable span:nth-child(3) { background: var(--blue); }
.cable span:nth-child(4) { background: var(--brown); }

/* ---------- Cabeçalho ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-stretch: 125%; font-weight: 850; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand-name b { font-weight: 850; color: var(--orange); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}

.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.98rem;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav .nav-cta a { background: var(--ink); color: #fff; margin-left: 8px; border-radius: var(--radius-s); box-shadow: none; }
.nav .nav-cta a:hover { background: var(--blue); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 12px; }
  .nav .nav-cta a { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-s); border: 2px solid var(--ink);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #fff;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-wa { background: var(--green); border-color: var(--green); }
.btn-wa:hover { background: #22704a; border-color: #22704a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #e9eef3; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .muted, .section-ink .lead { color: #b6c3d1; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* O bloco RAS é o elemento memorável do site */
.ras { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.ras-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ras-row:last-child { border-bottom: 0; }
.ras-letter {
  font-stretch: 125%; font-weight: 900; font-size: 4.2rem; line-height: 0.9; text-align: center;
  padding-bottom: 8px; border-bottom: 6px solid currentColor;
}
.ras-row:nth-child(1) .ras-letter { color: var(--orange); }
.ras-row:nth-child(2) .ras-letter { color: var(--green); }
.ras-row:nth-child(3) .ras-letter { color: var(--blue); }
.ras-row h3 { margin-bottom: 2px; }
.ras-row p { margin: 0; color: var(--steel); font-size: 0.98rem; }
.ras-foot { padding: 12px 22px; background: var(--paper); font-size: 0.9rem; color: var(--steel); }
@media (max-width: 480px) {
  .ras-row { grid-template-columns: 64px 1fr; padding: 16px; gap: 14px; }
  .ras-letter { font-size: 3rem; border-bottom-width: 5px; }
}

/* ---------- Duas frentes ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.split > div { padding: clamp(24px, 4vw, 44px); }
.split > div + div { border-left: 1px solid var(--line); }
.split .tag { display: inline-block; font-size: 0.85rem; font-weight: 650; color: var(--steel); margin-bottom: 10px; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Listas de serviço ---------- */
.service { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service-side h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.service-side .stripe { width: 56px; height: 5px; margin-bottom: 16px; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 8px; } }

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; max-width: 64ch; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg) translateY(-3px);
}
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
@media (max-width: 640px) { .cols-2 { grid-template-columns: 1fr; } }

/* ---------- Passos (sequência real) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--line); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; font-stretch: 125%; font-weight: 900; font-size: 2.4rem; line-height: 1; margin-bottom: 10px; color: var(--orange);
}
.section-ink .steps li { border-top-color: #2b4560; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Agenda de atendimento ---------- */
.hours { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.hours-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row dt { font-weight: 700; }
.hours-row dd { margin: 0; color: var(--steel); }
@media (max-width: 560px) { .hours-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Preço do Diagnóstico ---------- */
.price-box { border: 2px solid var(--ink); border-radius: var(--radius-m); background: var(--surface); padding: clamp(24px, 4vw, 36px); }
.price { font-stretch: 125%; font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; margin: 6px 0 8px; }
.price small { font-size: 1rem; font-weight: 600; font-stretch: 100%; color: var(--steel); }

.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* Relatório semáforo */
.signal { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.signal li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 0.4em; }
.dot.g { background: var(--green); }
.dot.y { background: #d9a400; }
.dot.r { background: #c8372d; }

/* ---------- BookInk ---------- */
.bk-hero { background: var(--ink); color: #e9eef3; padding: clamp(56px, 9vw, 112px) 0; }
.bk-hero h1 { color: #fff; max-width: 15ch; }
.bk-hero .lead { color: #b6c3d1; }
.bk-badge { display: inline-block; border: 1px solid #3a5674; color: #cfdae6; border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; margin-bottom: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.features > div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.features p { margin: 0; color: var(--steel); font-size: 0.98rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--orange); }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-size: 2.6rem; }
.plan .checks { margin-top: 12px; flex: 1; }
.plan .btn { margin-top: 12px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Sobre ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--surface); }
.facts > div { padding: 22px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts strong { display: block; font-stretch: 125%; font-weight: 850; font-size: 1.15rem; margin-bottom: 4px; }
.facts span { color: var(--steel); font-size: 0.95rem; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Formulário ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 650; }
.field .hint { font-size: 0.88rem; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #b9c4cf; border-radius: var(--radius-s); padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(44, 99, 173, 0.35); border-color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #b9c4cf; border-radius: 999px; padding: 7px 14px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.choice input { accent-color: var(--ink); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.form-error { color: #b0291f; font-weight: 600; margin: 0; }
.form-note { font-size: 0.9rem; color: var(--steel); margin: 0; }

/* ---------- Texto longo (privacidade) ---------- */
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; max-width: 66ch; }
.prose li { margin-bottom: 0.4em; }

/* ---------- CTA final ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #b6c3d1; padding: 48px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #e9eef3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { color: #fff; font-size: 1rem; font-stretch: 100%; margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-brand { color: #fff; font-stretch: 125%; font-weight: 850; font-size: 1.3rem; margin-bottom: 8px; }
.foot-base { border-top: 1px solid #2b4560; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; align-content: center; }

/* ---------- Utilitários (sem estilos inline, compatível com a CSP) ---------- */
.m0 { margin: 0; }
.mt-16 { margin-top: 16px; }
.mt-28 { margin-top: 28px; }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.stripe-orange { background: var(--orange); }
.stripe-green { background: var(--green); }
.stripe-blue { background: var(--blue); }
.facts.facts-stack { grid-template-columns: 1fr; }
.facts.facts-stack > div + div { border-left: 0; border-top: 1px solid var(--line); }
