@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}

/* Marinho do favicon, dourado da marca, bege da referência Insight Estrutural. */
:root {
  --navy: #0c1420;
  --navy-2: #121d2d;
  --navy-3: #1a283b;
  --on-dark: #eceae3;
  --on-dark-2: #a9b3bd;
  --line-dark: rgba(236, 234, 227, 0.14);
  --gold: #af9b44;
  --gold-hi: #c9b45c;
  --gold-ink: #6e5c18;
  --blueprint: #8fc9dc;
  --paper: #f4f2ed;
  --card: #ffffff;
  --line: #e2ded4;
  --field: #8a9097;
  --ink: #141a21;
  --ink-2: #3a444f;
  --muted: #5d6670;
  --danger: #9a2f2a;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --header: 4.5rem;
  --content: 76rem;
  --reading: 42rem;
  --radius: 0.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--gold-hi); color: var(--navy); }

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

.site-header :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible,
.missing :focus-visible { outline-color: var(--gold-hi); }

.contact-band :focus-visible { outline-color: var(--navy); }

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1rem;
  font-weight: 600;
  z-index: 30;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--content), calc(100% - 2rem));
  margin-inline: auto;
}

.go {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  transition: transform 0.2s var(--ease);
}

/* Superfícies escuras com grade de prancheta. */
.hero,
.page-hero,
.section-dark,
.missing {
  color: var(--on-dark);
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(143, 201, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 201, 220, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(143, 201, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 201, 220, 0.025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 20, 32, 0.97);
  color: var(--on-dark);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--line-dark);
}

.header-bar {
  min-height: var(--header);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: var(--gold);
  text-decoration: none;
}

.logo .mark {
  display: block;
  height: 3rem;
  width: auto;
  flex: none;
}

.logo-word {
  display: grid;
  line-height: 1;
}

.logo-word b {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.logo-word small {
  margin-top: 0.3rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.42em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(236, 234, 227, 0.3);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-dark);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle:hover { border-color: var(--gold-hi); }

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.bars { position: relative; }
.bars::before,
.bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; }
.bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav {
  display: none;
  padding-bottom: 1rem;
}

.nav[data-open="true"] {
  display: grid;
  gap: 0.15rem;
  flex: 1 0 100%;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-dark);
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav a:not(.nav-cta):hover { color: var(--gold-hi); }

.nav a[aria-current="page"] { color: var(--gold-hi); }

.nav-cta {
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0 1.1rem;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.nav-cta:hover { background: var(--gold-hi); }

/* Tipografia de apoio */
.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-right: 0.65rem;
  vertical-align: middle;
  background: currentColor;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow,
.missing .eyebrow { color: var(--gold-hi); }

.lead {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero .lead,
.page-hero .lead { color: #d3d8dc; }

/* Botões */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.button,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button { background: var(--gold); color: var(--navy); }
.button:hover { background: var(--gold-hi); }
.button:hover .go,
a:hover > .go,
a:hover .go { transform: translateX(4px); }

.button-dark { background: var(--navy); color: var(--on-dark); }
.button-dark:hover { background: var(--navy-3); }

.button-ghost { border-color: rgba(20, 26, 33, 0.4); background: transparent; color: var(--ink); }
.button-ghost:hover { border-color: var(--ink); background: rgba(20, 26, 33, 0.04); }

.hero .button-ghost,
.missing .button-ghost {
  border-color: rgba(236, 234, 227, 0.4);
  color: var(--on-dark);
}
.hero .button-ghost:hover,
.missing .button-ghost:hover { border-color: var(--on-dark); background: rgba(236, 234, 227, 0.06); }

/* Hero da página inicial */
.hero {
  padding: clamp(2.5rem, 6vw, 4.75rem) 0 0;
  border-bottom: 1px solid var(--line-dark);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.55rem, 5.6vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: #f7f6f2;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-hi);
}

.hero-note {
  max-width: 38rem;
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(201, 180, 92, 0.55);
  color: var(--on-dark-2);
  font-size: 0.98rem;
}

.drawing { margin: 0; }

.elevation {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(18, 29, 45, 0.72);
  border-radius: var(--radius);
}

.elevation .sheet { stroke: rgba(236, 234, 227, 0.26); stroke-width: 1; }
.elevation .axis { stroke: var(--blueprint); stroke-width: 1; }
.elevation .axis path { stroke-dasharray: 12 4 2 4; opacity: 0.7; }
.elevation .dim { stroke: var(--blueprint); stroke-width: 1; }
.elevation .load { stroke: var(--gold-hi); stroke-width: 1.5; }
.elevation .struct { stroke: #e3e8ec; stroke-width: 1.6; }
.elevation .hatch { stroke: rgba(227, 232, 236, 0.55); stroke-width: 1; }
.elevation .defl { stroke: var(--gold-hi); stroke-width: 1.5; stroke-dasharray: 6 5; }
.elevation .water { stroke: var(--blueprint); stroke-width: 1.2; }
.elevation .labels { font-family: var(--mono); font-size: 13px; fill: var(--blueprint); }
.elevation .labels .accent { fill: var(--gold-hi); font-size: 15px; }
.elevation .labels .tb { font-size: 10.5px; letter-spacing: 0.08em; fill: rgba(236, 234, 227, 0.62); }

.drawing figcaption {
  margin: 0.6rem 0.15rem 0;
  color: var(--on-dark-2);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.facts {
  display: grid;
  margin: clamp(2.5rem, 5vw, 3.75rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.facts li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0 0.5rem;
  padding: 1.2rem 0 1.3rem;
  border-bottom: 1px solid var(--line-dark);
}

.facts li:last-child { border-bottom: 0; }

.facts span {
  grid-row: span 2;
  padding-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold-hi);
}

.facts strong {
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #f7f6f2;
}

.facts p {
  margin: 0.15rem 0 0;
  color: var(--on-dark-2);
  font-size: 0.95rem;
}

/* Seções */
.section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section-follow { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-head h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

.section-dark .section-head h2 { color: #f7f6f2; }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.section-link:hover { color: var(--gold-ink); }

/* Famílias */
.areas { display: grid; gap: 1rem; }

.area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.4rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s var(--ease);
}

.area::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.area:hover { border-color: #cfc8b4; box-shadow: 0 12px 28px -18px rgba(12, 20, 32, 0.35); }
.area:hover::before { transform: scaleX(1); }

.area-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.6rem;
}

.area-index {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold-ink);
}

.picto {
  width: 4rem;
  height: 4rem;
  color: var(--ink-2);
  transition: color 0.2s;
}

.area:hover .picto { color: var(--gold-ink); }

.area h3 { margin: 0; font-size: 1.4rem; }
.area p { margin: 0; color: var(--ink-2); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--gold-ink);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Índice de serviços */
.svc-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.svc-list li { border-bottom: 1px solid var(--line); }

.svc-list a {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0.25rem 0.75rem;
  align-items: start;
  height: 100%;
  padding: 1.35rem 0.75rem 1.35rem 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.svc-list a:hover { background: var(--card); }

.svc-no {
  padding-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold-ink);
}

.svc-body { display: grid; gap: 0.3rem; }
.svc-body strong { font-weight: 500; font-size: 1.24rem; letter-spacing: -0.01em; line-height: 1.25; }
.svc-body span { color: var(--ink-2); font-size: 0.98rem; }

.svc-list .go {
  margin-top: 0.3rem;
  font-size: 1.15rem;
  color: var(--gold-ink);
}

/* Método */
.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 0 0 2rem 1.75rem;
  border-left: 1px solid rgba(201, 180, 92, 0.4);
}

.steps li:last-child { padding-bottom: 0.25rem; border-left-color: transparent; }

.steps li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.3rem;
  width: 11px;
  height: 11px;
  border: 2px solid var(--gold-hi);
  border-radius: 50%;
  background: var(--navy);
}

.step-no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold-hi);
}

.steps h3 { margin: 0.35rem 0 0.45rem; font-size: 1.35rem; color: #f7f6f2; }
.steps p { margin: 0; max-width: 22rem; color: var(--on-dark-2); }

/* Estudos de caso */
.case-panel {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 4px 0 0 var(--gold);
}

.case-panel h2 {
  margin: 0 0 0.75rem;
  max-width: 20ch;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.case-panel p { max-width: 38rem; color: var(--ink-2); }
.case-panel .button { margin-top: 0.5rem; }

.note-list { margin: 0; padding: 0; list-style: none; }

.note-list li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.note-list li:last-child { border-bottom: 1px solid var(--line); }

.note-list span { font-family: var(--mono); font-size: 0.85rem; font-weight: 400; color: var(--gold-ink); }

/* Faixa de contato em dourado, como o rodapé da referência */
.contact-band {
  padding: clamp(3.25rem, 7vw, 5rem) 0;
  background: var(--gold);
  color: var(--navy);
}

.contact-grid { display: grid; gap: 2rem; }

.contact-band .eyebrow { color: var(--navy); }

.contact-band h2 {
  margin: 0 0 0.75rem;
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-band p { max-width: 36rem; margin: 0; }

.channels {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channels a {
  display: grid;
  gap: 0.1rem;
  min-height: 44px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(12, 20, 32, 0.28);
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.contact-band .channels a:hover { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }

.channels span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.channels strong { font-weight: 500; font-size: 1.1rem; overflow-wrap: anywhere; }

/* Rodapé */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-2);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0 2.5rem;
}

.footer-brand p { max-width: 30rem; margin: 1rem 0 0; }

.footer-label {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.footer-links { display: grid; align-content: start; }

.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-links button:hover { color: var(--gold-hi); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding: 1.1rem 0 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.84rem;
}

.footer-base p { margin: 0; }

/* Cabeçalho das páginas internas */
.page-hero {
  padding: 2.25rem 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-dark);
}

.page-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.page-hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  color: #f7f6f2;
}

.hero-index,
.hero-pictos { display: none; }

.hero-index {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.25px var(--gold-hi);
  text-align: right;
}

.hero-index span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  -webkit-text-stroke: 0;
}

.hero-pictos { gap: 1.25rem; color: var(--blueprint); }
.hero-pictos .picto { width: 4.5rem; height: 4.5rem; color: inherit; }

.crumbs { margin: 0 0 1.4rem; font-size: 0.9rem; color: var(--on-dark-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: #6f7c89; }
.crumbs a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(201, 180, 92, 0.6); }
.crumbs a:hover { color: var(--gold-hi); }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.35rem 0 0; padding: 0; list-style: none; }
.tags a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(236, 234, 227, 0.26);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #d8dde1;
  text-decoration: underline;
  text-decoration-color: rgba(236, 234, 227, 0.5);
  text-underline-offset: 3px;
}
.tags a:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

#preparar-contato,
#descreva-o-caso { scroll-margin-top: calc(var(--header) + 1rem); }

/* Conteúdo */
.layout {
  display: grid;
  gap: 2rem;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.prose section + section { margin-top: 2.25rem; }
.prose h2 { margin: 0 0 0.6rem; font-size: 1.6rem; }
.prose p { max-width: var(--reading); color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose ul { max-width: var(--reading); padding-left: 1.15rem; }
.prose li + li { margin-top: 0.45rem; }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-ink); }

/* Guias de Serviços e Contato */
.service-guide,
.contact-guide {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.guide-block {
  display: grid;
  gap: 1.5rem;
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}

.guide-head h2,
.guide-col h2 { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.guide-head p:not(.eyebrow),
.guide-col > p:not(.eyebrow) { max-width: 36rem; margin: 0; color: var(--ink-2); }

.route-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.route-table th {
  padding: 0.75rem 1.1rem;
  background: var(--navy);
  color: var(--on-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.route-table td {
  padding: 0.95rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}

.route-table td:last-child { width: 34%; }

@media (max-width: 639px) {
  .route-table thead { display: none; }
  .route-table tr,
  .route-table td { display: block; width: auto; }
  .route-table tr + tr { border-top: 1px solid var(--line); }
  .route-table td { border-top: 0; padding: 0.2rem 1rem; }
  .route-table td:first-child { padding-top: 0.9rem; }
  .route-table td:last-child { width: auto; padding-bottom: 0.9rem; }
}

.route-table a,
.combo-chain a,
.guide-more a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.route-table a:hover,
.combo-chain a:hover,
.guide-more a:hover { color: var(--gold-ink); }

.combos {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.combos li {
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 3px 0 0 var(--gold);
}

.combo-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  margin: 0 0 0.5rem;
}

.combo-chain .go { color: var(--gold-ink); }
.combos li > p:last-child { margin: 0; color: var(--ink-2); }

.guide-list {
  display: grid;
  gap: 0.7rem;
  max-width: var(--reading);
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.3em;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--gold-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.guide-more { margin: 0; color: var(--ink-2); }

.guide-note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.96rem;
}

.guide-note strong { color: var(--ink); }

.guide-col {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-col .eyebrow { margin-bottom: 0; }
.guide-col h2 { margin: 0; }

.flow {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--ink-2);
  counter-increment: flow;
}

.flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold-ink);
}

.flow strong { color: var(--ink); font-weight: 600; }

.callout {
  margin-top: 0.4rem;
  padding: 1rem 1.15rem;
  background: #fbf3ef;
  border: 1px solid #e8c9c0;
  border-radius: var(--radius);
  box-shadow: inset 3px 0 0 var(--danger);
}

.callout h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--danger); }
.callout p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }

/* Resposta direta, entradas e normas nos serviços */
.prose .answer {
  margin-bottom: 2.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 4px 0 0 var(--gold);
}

.prose .answer h2 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.prose .answer p { margin: 0; max-width: none; color: var(--ink); font-size: 1.06rem; }

.prose .inputs,
.prose .standards { margin-top: 2.5rem; }

.prose .inputs ul,
.prose .standards ul { padding: 0; list-style: none; }

.prose .inputs li,
.prose .standards li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
}

.prose .inputs li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--gold);
  border-radius: 2px;
}

.prose .standards li { font-family: var(--mono); font-size: 0.88rem; }

.prose .standards li::before {
  content: "§";
  position: absolute;
  left: 0.2rem;
  color: var(--gold-ink);
}

.prose .inputs p,
.prose .standards p { font-size: 0.94rem; }

/* Desafios na home */
.challenges {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.challenge {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.4rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s var(--ease);
}

.challenge:hover { border-color: #cfc8b4; box-shadow: 0 12px 28px -18px rgba(12, 20, 32, 0.35); }
.challenge h3 { margin: 0; font-size: 1.25rem; }
.challenge h3 a { text-decoration: none; }
.challenge h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.challenge > p:not(.challenge-foot) { margin: 0; color: var(--ink-2); }

.challenge-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: auto 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-ink);
}

.challenge-foot span { display: inline-flex; align-items: center; gap: 0.4rem; }
.challenge:hover .challenge-foot .go { transform: translateX(4px); }

.challenge-article {
  position: relative;
  z-index: 1;
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.challenge-article:hover { color: var(--gold-ink); }

/* Artigos */
.article-meta {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
}

.draft-banner {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1.1rem;
  background: #fbf3ef;
  border: 1px solid #e8c9c0;
  border-radius: var(--radius);
  box-shadow: inset 3px 0 0 var(--danger);
  color: var(--ink-2);
}

.draft-banner strong { color: var(--danger); }

.article-body section { scroll-margin-top: calc(var(--header) + 1rem); }
.article-body ul { margin: 0.75rem 0 0; }
.article-body li { color: var(--ink-2); }

.refs {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose .refs h2 { font-size: 1.1rem; }
.refs li { font-family: var(--mono); font-size: 0.85rem; }
.refs p { margin: 0.9rem 0 0; font-size: 0.92rem; }

.toc {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  color: var(--gold-ink);
  font-size: 0.94rem;
}

.toc li + li { margin-top: 0.35rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold-ink); text-decoration: underline; }

.article-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-list a {
  display: grid;
  gap: 0.45rem;
  height: 100%;
  padding: 1.35rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s var(--ease);
}

.article-list a:hover { border-color: #cfc8b4; box-shadow: 0 12px 28px -18px rgba(12, 20, 32, 0.35); }
.article-list time { font-family: var(--mono); font-size: 0.78rem; color: var(--gold-ink); }
.article-list strong { font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.article-list span:not(.more) { color: var(--ink-2); }

.article-empty { max-width: var(--reading); margin: 0; color: var(--ink-2); }

/* Famílias: tipos de estrutura e problemas */
.family-cols {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.family-cols h3,
.family-label {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.family-label { margin-top: 1.5rem; }
.family-label + .chip-links { margin-top: 0; }

.family-cols ul { margin: 0; padding: 0; list-style: none; }

.family-cols li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-2);
}

.family-cols li + li { margin-top: 0.4rem; }

.family-cols li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.6rem;
  height: 2px;
  background: var(--gold);
}

.prose-page { max-width: var(--reading); padding: clamp(2.25rem, 5vw, 3.5rem) 0 4.5rem; }
.prose-page h2 { margin: 2.25rem 0 0.5rem; font-size: 1.4rem; }
.prose-page h2 + p { margin-top: 0; }

.catalog { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }

.families { display: grid; gap: 1rem; }

.family {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--header) + 1rem);
}

.family:target { box-shadow: inset 4px 0 0 var(--gold); }

.family-head {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.family-head .picto { flex: none; }
.family-head .eyebrow { margin-bottom: 0.3rem; }
.family h2 { margin: 0; font-size: 1.55rem; }
.family > p { max-width: var(--reading); margin: 0; color: var(--ink-2); }

.chip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.chip-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.chip-links a:hover { border-color: var(--gold); background: #fbf8ee; }

.deliver-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.deliver-grid article {
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: var(--radius);
}

.deliver-grid h2 { margin: 0 0 0.9rem; font-size: 1.2rem; }

.deliver-grid ul { margin: 0; padding: 0; list-style: none; }

.deliver-grid li {
  position: relative;
  padding-left: 1.6rem;
}

.deliver-grid li + li { margin-top: 0.7rem; }

.deliver-when {
  background: var(--card);
  border: 1px solid var(--line);
}

.deliver-when li { color: var(--ink-2); }

.deliver-when li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.75rem;
  height: 2px;
  background: var(--gold);
}

.deliver-what {
  background: var(--navy);
  color: var(--on-dark);
}

.deliver-what h2 { color: #f7f6f2; }
.deliver-what li { color: #d3d8dc; }

.deliver-what li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.3em;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--gold-hi);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.aside {
  align-self: start;
  padding: 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside h2 { margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }
.aside h2:first-child { margin-top: 0; }
.aside p { margin: 0 0 1rem; color: var(--ink-2); }
.aside .button { width: 100%; }

.related { margin: 0; padding: 0; list-style: none; }
.related li { border-top: 1px solid var(--line); }
.related li:last-child { border-bottom: 1px solid var(--line); }
.related a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
  color: var(--ink);
  text-decoration: none;
}
.related a { justify-content: space-between; gap: 0.5rem; }
.related .go { color: var(--gold-ink); }
.related a:hover { color: var(--gold-ink); }

.aside-contact .channels a { border-color: var(--line); background: var(--paper); }
.aside-contact .channels a:hover { border-color: var(--gold); background: #fbf8ee; }
.aside-contact .channels span { color: var(--gold-ink); }
.aside-contact .channels strong { font-size: 0.97rem; }

.aside-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: 0.5rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.aside-link:hover { color: var(--gold-ink); }

.pager {
  display: grid;
  gap: 0.75rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.pager a {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s;
}

.pager a:hover { border-color: var(--gold); }

.pager span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.pager strong { font-weight: 500; font-size: 1.1rem; }
.pager .go { color: var(--gold-ink); }
.pager a[rel="prev"]:hover .go { transform: translateX(-4px); }

/* Formulário */
.form-panel {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-head h2 { margin: 0 0 0.25rem; font-size: 1.4rem; }
.form-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.field-row { display: grid; gap: 1.1rem; }

.req { color: var(--danger); font-weight: 600; }

label { display: grid; gap: 0.4rem; font-size: 0.92rem; font-weight: 600; }

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--field);
  border-radius: 0.4rem;
  background: #fdfcfa;
  color: inherit;
  font: inherit;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea { min-height: 10rem; resize: vertical; }

input:hover,
select:hover,
textarea:hover { border-color: var(--ink-2); }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--gold-ink);
  box-shadow: 0 0 0 3px rgba(175, 155, 68, 0.35);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; min-height: 0; margin-top: 0.2rem; accent-color: var(--gold-ink); }
.check a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.check:has(input[aria-invalid="true"]) { color: var(--danger); }

.form-panel > .button { justify-self: start; }

.form-status { min-height: 1.5rem; margin: 0; }
.form-status:not(:empty) { color: var(--ink-2); }
.form-status[data-state="error"] { color: var(--danger); font-weight: 600; }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.form-actions[hidden] { display: none; }

/* 404 */
.missing {
  display: grid;
  align-content: center;
  min-height: 70vh;
  padding: 4rem 0;
}

.missing h1 { margin: 0; max-width: 16ch; font-size: clamp(2.4rem, 6vw, 4rem); color: #f7f6f2; }
.missing p { max-width: 34rem; color: var(--on-dark-2); }

/* Desenho da elevação: traço entra uma vez, sem laço. */
@media (prefers-reduced-motion: no-preference) {
  .elevation .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.1s var(--ease) forwards;
  }
  .elevation .d1 { animation-delay: 0.15s; }
  .elevation .d2 { animation-delay: 0.6s; }
  .elevation .d3 { animation-delay: 1.05s; }
  .elevation .fade { opacity: 0; animation: fade 0.6s ease forwards; }
  .elevation .f1 { animation-delay: 0.7s; }
  .elevation .f3 { animation-delay: 1.35s; }
  .elevation .f4 { animation-delay: 1.8s; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

@media (min-width: 640px) {
  .combos { grid-template-columns: 1fr 1fr; }
  .article-list { grid-template-columns: 1fr 1fr; }
  .challenges { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a[rel="next"] { text-align: right; }
}

@media (min-width: 800px) {
  .guide-block { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: start; }
  .contact-guide { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .family-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
    padding: 0;
    border: 0;
  }
  .nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    background: var(--gold-hi);
    transform: scaleX(0);
    transition: transform 0.2s var(--ease);
  }
  .nav a:not(.nav-cta):hover::after,
  .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-cta { margin: 0 0 0 0.25rem; min-height: 42px; }
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; gap: 3.5rem; }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .svc-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .steps li { padding: 1.75rem 0 0; border-left: 0; border-top: 1px solid rgba(201, 180, 92, 0.4); }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { left: 0; top: -6px; }
  .case-panel { grid-template-columns: 1.3fr 0.8fr; align-items: end; gap: 3rem; }
  .contact-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 3rem; }
  .page-hero-grid { grid-template-columns: 1fr auto; }
  .hero-index { display: block; }
  .hero-pictos { display: flex; }
  .layout { grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; align-items: start; }
  .aside { position: sticky; top: calc(var(--header) + 1.25rem); }
  .footer-grid { grid-template-columns: 1.6fr 0.7fr 1fr; }
  .deliver-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .challenges { grid-template-columns: repeat(3, 1fr); }
  .wrap { width: min(var(--content), calc(100% - 4rem)); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { padding: 1.4rem 1.5rem 1.6rem 0; border-bottom: 0; }
  .facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
