/* ---------- Tokens ---------- */
:root {
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --ink: #10131A;
  --muted: #5B6472;
  --line: #1E3A5F;       /* blueprint navy */
  --line-soft: rgba(30, 58, 95, 0.18);
  --accent: #FF7A45;     /* signal orange */
  --accent-ink: #7A2E0E;
  --radius: 4px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* faint blueprint grid background, fixed behind everything */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

em { font-style: normal; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: #E8672F; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--line); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 245, 248, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo .dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 88px 24px 72px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--line);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  margin-bottom: 22px;
}

.lead {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-diagram {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 16px;
}

.flow-svg { width: 100%; height: auto; }

.node rect {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.3;
}
.node-accent rect {
  fill: #FFF1EA;
  stroke: var(--accent);
}
.node-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  fill: var(--ink);
}
.node-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  fill: var(--muted);
}

/* ---------- Sobre ---------- */
.sobre {
  padding: 8px 24px 88px;
}
.sobre-text {
  max-width: 760px;
  font-size: 18px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
}
.sobre-text strong { color: var(--ink); }

/* ---------- Section headers (shared) ---------- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--line);
  margin-bottom: 12px;
}
.section-title {
  font-size: 30px;
  max-width: 620px;
  margin-bottom: 48px;
}

/* ---------- Serviços ---------- */
.servicos {
  padding: 88px 0;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.card {
  background: var(--surface);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: #FFF1EA;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.card-icon {
  width: 26px;
  height: 26px;
  color: var(--line);
  margin-bottom: 4px;
}

.card h3 {
  font-size: 18px;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 88px 0;
}

.faq-list {
  max-width: 720px;
  border-top: 1px solid var(--line-soft);
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-question:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }

.faq-icon {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-answer p {
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  max-width: 620px;
  padding-bottom: 0;
}
.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-item.open .faq-answer p {
  padding-bottom: 22px;
}
.faq-answer > p { min-height: 0; }
.faq-answer { display: grid; }
.faq-answer p { grid-row: 1; grid-column: 1; }

/* ---------- Contato ---------- */
.contato {
  padding: 88px 0 96px;
  background: var(--ink);
  color: #F3F5F8;
}
.contato .section-eyebrow { color: #FFB08A; }
.contato .section-title { color: #ffffff; margin-bottom: 16px; }
.contato-sub {
  color: #A9B0BE;
  max-width: 440px;
  font-size: 16px;
}

.contato-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.contato-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contato-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #A9B0BE;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero h1 { font-size: 36px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contato-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line-soft);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-inner .btn-sm { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .section-title { font-size: 24px; }
}
