/* ============================================
   ENGMES CONSULTORIA — design tokens
   Identidade baseada na logo: navy profundo, azul técnico e âmbar.
   Tema padrão: claro. O escuro é opt-in via [data-theme="dark"]
   ============================================ */
:root {
  --bg:         #FAFAF9;
  --surface:    #FFFFFF;
  --surface-2:  #F3F4F8;
  --line:       #E6E8EF;
  --text:       #121A31;
  --muted:      #5B6376;

  --navy:       #0B1E42;
  --navy-2:     #14295A;
  --navy-deep:  #060F24;
  --blue:       #1E4FC4;
  --blue-soft:  #4B74D6;
  --amber:      #F2871C;
  --amber-2:    #FDB627;
  --amber-dark: #C9600E;

  --shadow-sm:  0 2px 10px rgba(11, 21, 46, 0.06);
  --shadow-md:  0 10px 30px rgba(11, 21, 46, 0.08);
  --shadow-lg:  0 24px 60px rgba(11, 21, 46, 0.14);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'Inter', sans-serif;

  --container: 1180px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

/* Tema escuro — ativado via [data-theme="dark"] no <html> */
:root[data-theme="dark"] {
  --bg:        #0A1224;
  --surface:   #101A32;
  --surface-2: #15203C;
  --line:      #24304E;
  --text:      #EEF1F8;
  --muted:     #97A1BC;

  --navy:      #16305F;
  --navy-2:    #1E3B72;
  --navy-deep: #060B18;
  --blue:      #5E85E0;
  --blue-soft: #6E93E6;
  --amber:     #F2871C;
  --amber-2:   #FFC24D;
  --amber-dark:#FFA23C;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--amber);
  color: #fff;
}

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

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber-dark);
  margin: 0 0 1rem;
  text-transform: uppercase;
}
:root[data-theme="dark"] .eyebrow { color: var(--amber-2); }

/* ============================================
   Scroll-reveal (fade + slide sutil)
   Ativado apenas via JS — sem JS, tudo permanece visível.
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(.22,.61,.36,1), transform 0.85s cubic-bezier(.22,.61,.36,1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.category-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.category-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.riscos-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.riscos-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.riscos-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.testimonial-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.testimonial-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.22,.61,.36,1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-amber {
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(242, 135, 28, 0.28);
}
.btn-amber:hover {
  box-shadow: 0 12px 28px rgba(242, 135, 28, 0.38);
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .btn-ghost:hover { border-color: var(--blue-soft); }

.btn-lg {
  padding: 1.05rem 2.3rem;
  font-size: 1rem;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 2.2rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  margin-right: auto;
  margin-left: 3rem;
}

.main-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.is-active { color: var(--navy); }
:root[data-theme="dark"] .main-nav a.is-active { color: var(--blue-soft); }
.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.35rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-cta { flex-shrink: 0; }

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover { color: var(--amber); border-color: var(--amber); box-shadow: var(--shadow-sm); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  padding: 0 0.6rem;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 520px) {
  .header-inner { padding: 0.8rem 1.1rem; gap: 0.6rem; }
  .brand-logo { height: 27px; }
  .header-actions { gap: 0.6rem; }
  .header-cta { padding: 0.65rem 1.05rem; font-size: 0.78rem; }
  .theme-toggle { width: 2.15rem; height: 2.15rem; }
  .menu-toggle { width: 2.15rem; height: 2.15rem; }
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }

  .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 280px; }
  .main-nav a {
    padding: 1.05rem 1.75rem;
    border-top: 1px solid var(--line);
  }
  .main-nav a.is-active::after { display: none; }
  .main-nav a.is-active { color: var(--amber-dark); }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem 1.75rem 5.5rem;
  background:
    radial-gradient(ellipse 60% 55% at 82% 0%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 45% at 6% 100%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--navy) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--navy) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 10%, black 20%, transparent 85%);
}

.hero-blueprint {
  position: absolute;
  top: 0;
  right: 0;
  width: min(52%, 620px);
  height: 100%;
  color: var(--navy);
  opacity: 0.07;
  pointer-events: none;
}
:root[data-theme="dark"] .hero-blueprint { color: var(--blue-soft); opacity: 0.1; }

@media (max-width: 900px) {
  .hero-blueprint { width: 80%; opacity: 0.05; }
}

.crosshair {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 1;
  pointer-events: none;
}
.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: color-mix(in srgb, var(--navy) 30%, transparent);
}
.crosshair::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.crosshair::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
:root[data-theme="dark"] .crosshair::before,
:root[data-theme="dark"] .crosshair::after { background: color-mix(in srgb, var(--blue-soft) 35%, transparent); }

.cr-tl { top: 28px; left: 28px; }
.cr-tr { top: 28px; right: 28px; }
.cr-bl { bottom: 28px; left: 28px; }
.cr-br { bottom: 28px; right: 28px; }

@media (max-width: 760px) {
  .crosshair { display: none; }
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin-bottom: 1.4rem;
  max-width: 17ch;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 2.4rem;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Title block — cartão de identificação técnica, redesenhado como cartão premium */
.title-block {
  position: relative;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.86rem;
  box-shadow: var(--shadow-lg);
}

.title-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-2), var(--amber));
}

.tb-row {
  display: flex;
  justify-content: space-between;
  padding: 0.95rem 1.4rem;
}

.tb-head {
  color: rgba(255,255,255,0.5);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tb-main {
  align-items: flex-start;
  gap: 0.75rem;
  color: #fff;
  font-weight: 500;
}
.tb-main span:first-child { max-width: 30ch; }
.tb-main span:last-child {
  color: var(--amber-2);
  font-weight: 700;
  font-family: var(--font-display);
}

.tb-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 1.4rem;
}

.tb-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tb-field:last-child { border-bottom: none; }

.tb-label {
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tb-value {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 500;
}

.tb-mono { color: var(--blue-soft); letter-spacing: 0.03em; font-weight: 600; }

.tb-link { transition: color 0.2s ease; }
.tb-link:hover { color: var(--amber-2); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .title-block { max-width: 480px; }
}

/* ============================================
   Barra de credibilidade
   ============================================ */
.credibility-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.credibility-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.9rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.credibility-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--amber);
}

.credibility-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.credibility-label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.credibility-item-pending {
  border-left-style: dashed;
  border-left-color: var(--line);
}
.credibility-item-pending .credibility-value {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 860px) {
  .credibility-inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
}
@media (max-width: 520px) {
  .credibility-inner { grid-template-columns: 1fr; padding: 1.6rem 1.25rem; }
}

/* ============================================
   Section shared
   ============================================ */
.section-head {
  max-width: 660px;
  margin: 0 auto 3.5rem;
  text-align: left;
  padding: 0 1.75rem;
}

.section-head h2, .contato h2, .sobre h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 0.9rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 54ch;
}

/* ============================================
   Riscos da não conformidade
   ============================================ */
.riscos {
  padding: 6rem 0 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.riscos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0 1.75rem;
}

.risco-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.9rem 1.6rem;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.risco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--amber) 35%, var(--line));
}

.risco-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-sm);
  font-size: 1.15rem;
  color: var(--amber-dark);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  margin-bottom: 1.2rem;
}
:root[data-theme="dark"] .risco-icon { color: var(--amber-2); }

.risco-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
}

.risco-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .riscos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .riscos-grid { grid-template-columns: 1fr; margin: 0 1.25rem; }
}

/* ============================================
   Serviços — grade de categorias
   ============================================ */
.servicos {
  padding: 6.5rem 0;
  max-width: var(--container);
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 1.75rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.5rem 2.1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.category-card:hover::before { transform: scaleX(1); }

.category-card:hover .servico-link { color: var(--amber-dark); gap: 0.6rem; }
:root[data-theme="dark"] .category-card:hover .servico-link { color: var(--amber-2); }

.category-card .servico-code {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 1.5rem;
  background: color-mix(in srgb, var(--blue) 6%, transparent);
}
:root[data-theme="dark"] .category-card .servico-code { color: var(--blue-soft); }

.category-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  margin-bottom: 1.3rem;
}
.category-icon svg { width: 22px; height: 22px; }
:root[data-theme="dark"] .category-icon { color: var(--blue-soft); }

.category-card h3 {
  font-size: 1.38rem;
  margin-bottom: 0.75rem;
}

.category-card p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.category-count {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-dark);
  margin-bottom: 1.1rem;
}
:root[data-theme="dark"] .category-count { color: var(--amber-2); }

.servico-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s ease, gap 0.25s ease;
}

@media (max-width: 860px) {
  .category-grid { grid-template-columns: 1fr; margin: 0 1.75rem; }
}

/* Grade de serviços dentro de uma categoria (páginas internas) */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 1.75rem;
}

.servico-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 1.8rem;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
}

.servico-card:hover .servico-link { color: var(--blue); gap: 0.6rem; }
:root[data-theme="dark"] .servico-card:hover .servico-link { color: var(--blue-soft); }

.servico-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-dark);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  margin-bottom: 1.1rem;
}
.servico-icon svg { width: 19px; height: 19px; }
:root[data-theme="dark"] .servico-icon { color: var(--amber-2); }

.servico-code {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber-dark);
  margin-bottom: 0.7rem;
}
:root[data-theme="dark"] .servico-code { color: var(--amber-2); }

.servico-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.65rem;
}

.servico-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.servico-included {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.servico-included li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.servico-included svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 0.15rem;
  color: var(--blue);
}
:root[data-theme="dark"] .servico-included svg { color: var(--blue-soft); }

.servico-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.servico-card:hover .servico-cta {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
:root[data-theme="dark"] .servico-cta { color: var(--blue-soft); }
:root[data-theme="dark"] .servico-card:hover .servico-cta {
  color: var(--navy-deep);
  background: var(--blue-soft);
  border-color: var(--blue-soft);
}

@media (max-width: 960px) {
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .servicos-grid { grid-template-columns: 1fr; margin: 0 1.25rem; }
}

/* ============================================
   Prova social
   ============================================ */
.prova-social {
  padding: 6.5rem 0;
  max-width: var(--container);
  margin: 0 auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 1.75rem;
}

.testimonial-placeholder {
  border: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--r-md);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.testimonial-author {
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .testimonial-grid { grid-template-columns: 1fr; margin: 0 1.75rem; }
}

.logos-strip {
  max-width: var(--container);
  margin: 3.5rem auto 0;
  padding: 0 1.75rem;
  text-align: center;
}

.logos-strip-label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.logos-strip-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem 3.2rem;
}

.logos-strip-grid img {
  height: 32px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logos-strip-grid img:hover { filter: none; opacity: 1; }

/* ============================================
   Sobre
   ============================================ */
.sobre {
  padding: 6.5rem 1.75rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sobre-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}

.sobre-copy p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
  max-width: 58ch;
}

.sobre-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 0.4rem;
}

.sobre-block {
  padding: 1.3rem 1.5rem;
  border-left: 2px solid var(--line);
  transition: border-color 0.25s ease;
}
.sobre-block:hover { border-left-color: var(--amber); }
.sobre-block p { margin-bottom: 0; }

.tools-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.tool-badge {
  font-family: var(--font-label);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue);
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 5%, transparent);
}
:root[data-theme="dark"] .tool-badge { color: var(--blue-soft); }

.sobre-panel {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--r-lg);
  padding: 0.5rem 1.6rem;
  box-shadow: var(--shadow-lg);
}

.panel-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.panel-row:last-child { border-bottom: none; }
.panel-row span { color: rgba(255,255,255,0.5); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-row strong { color: #fff; font-weight: 600; margin-top: 0.2rem; }

@media (max-width: 860px) {
  .sobre-inner { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 6.5rem 1.75rem;
  max-width: 840px;
  margin: 0 auto;
}

.faq .section-head { padding: 0; margin-bottom: 3rem; }

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

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

.faq-item summary {
  cursor: pointer;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--amber-dark);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat, no-repeat;
  background-size: 0.6rem 2px, 2px 0.6rem;
  background-position: center, center;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1), border-color 0.2s ease;
}
:root[data-theme="dark"] .faq-item summary::after { color: var(--amber-2); }

.faq-item[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--amber-dark);
}
:root[data-theme="dark"] .faq-item[open] summary::after { border-color: var(--amber-2); }

.faq-item:hover summary { color: var(--navy); }
:root[data-theme="dark"] .faq-item:hover summary { color: var(--blue-soft); }

.faq-item p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  padding-bottom: 1.7rem;
  max-width: 68ch;
}

/* ============================================
   Contato
   ============================================ */
.contato {
  padding: 7rem 1.75rem;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 55% 60% at 50% 100%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 75%),
    var(--bg);
}

.contato-inner {
  max-width: 660px;
  margin: 0 auto;
}

.contato .eyebrow { text-align: center; }

.contato h2 { margin-bottom: 1rem; }

.contato .section-sub {
  margin: 0 auto 2.5rem;
}

.contato-actions { margin-bottom: 3.5rem; }

.contato-form {
  text-align: left;
  max-width: 620px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.form-optional {
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent);
}

.form-field textarea { resize: vertical; }

.contato-form .btn { align-self: flex-start; margin-top: 0.3rem; }

@media (max-width: 620px) {
  .contato-form { padding: 1.6rem 1.4rem 1.9rem; }
  .form-row { grid-template-columns: 1fr; }
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  text-align: left;
}

.contato-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 700px) {
  .contato-grid { grid-template-columns: 1fr; text-align: center; }
  .contato-item { align-items: center; }
}

/* ============================================
   Service detail pages
   ============================================ */
.service-hero {
  padding: 4.5rem 1.75rem 3.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 60% at 85% 0%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%),
    var(--bg);
}

.service-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--amber-dark); font-weight: 600; }
:root[data-theme="dark"] .breadcrumb .current { color: var(--amber-2); }

.back-link {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.8rem;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--blue); }

.service-code-big {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--blue) 6%, var(--surface));
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
:root[data-theme="dark"] .service-code-big { color: var(--blue-soft); }

.service-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 1.1rem;
}

.service-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 2.2rem;
}

.service-body-section {
  padding: 4.5rem 1.75rem 6rem;
  max-width: var(--container);
  margin: 0 auto;
}

.service-body-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 4rem;
  align-items: start;
}

.service-body h3 {
  font-size: 1.2rem;
  margin: 2.2rem 0 1rem;
}

.service-body p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.1rem;
  max-width: 68ch;
}

.service-body ul, .service-body ol {
  color: var(--muted);
  padding-left: 1.3rem;
  margin: 0 0 1.3rem;
  max-width: 64ch;
}

.service-body li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.service-body li::marker {
  color: var(--amber-dark);
  font-weight: 700;
}
:root[data-theme="dark"] .service-body li::marker { color: var(--amber-2); }

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 6.5rem;
}

.sidebar-card {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.7rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.sidebar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-2), var(--amber));
}

.sidebar-card .tb-label { margin: 0; }
.sidebar-card .tb-value { margin: 0.2rem 0 0; }

.sidebar-related {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-related .tb-label { margin-bottom: 0.4rem; color: var(--muted); }

.related-card {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, gap 0.2s ease;
}
.related-card:last-child { border-bottom: none; padding-bottom: 0; }
.related-card:hover { color: var(--blue); gap: 0.9rem; }
:root[data-theme="dark"] .related-card:hover { color: var(--blue-soft); }

.related-code {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber-dark);
  flex-shrink: 0;
}
:root[data-theme="dark"] .related-code { color: var(--amber-2); }

@media (max-width: 860px) {
  .service-body-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 3.5rem 1.75rem 1.75rem;
}

.footer-columns {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  font-family: var(--font-label);
  font-size: 0.86rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--amber-2); }

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.3rem;
}

.footer-col-brand .footer-heading {
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: none;
}

.footer-tagline {
  font-family: var(--font-label);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 26ch;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}

.footer-crea { color: rgba(255,255,255,0.4); }

@media (max-width: 860px) {
  .footer-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-columns { grid-template-columns: 1fr; gap: 2rem; }
}

/* Foto do responsável técnico */
.responsible-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.responsible-photo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--amber);
  flex-shrink: 0;
}

.responsible-info > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.responsible-info .tb-value {
  display: block;
}

.responsible-info .tb-mono {
  font-size: 0.72rem;
}