:root {
  --brand-blue: #344a7d;
  --brand-blue-deep: #26385e;
  --brand-blue-soft: #edf1f8;
  --brand-on-blue: #ffffff;
  --brand-on-blue-muted: #dce4f3;
  --navy: var(--brand-blue);
}

/* Shared brand roles for the standalone HTML pages. */
.section h2,
.section h3,
.services h3,
.quality dt,
nav[aria-label="Principal"] a.cur {
  color: var(--brand-blue);
}
nav a:after { background: var(--brand-blue); }

#estrutura,
.section.dark,
#clientes,
section.section.closing {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep)) !important;
  color: var(--brand-on-blue);
}
#estrutura h2,
.section.dark h2,
.section.dark h3,
#clientes h2,
.closing h2 {
  color: var(--brand-on-blue);
}
.section.dark p,
.section.dark .lead,
.closing p,
#clientes .trust h2 + p {
  color: var(--brand-on-blue-muted) !important;
}
.metrics.pathed article {
  background: color-mix(in srgb, var(--brand-blue-deep) 75%, transparent);
}

.ico,
.ic {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  box-shadow: none;
}
#diferenciais .quality .ico,
.cico {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  border-color: color-mix(in srgb, var(--brand-blue) 25%, transparent);
}
#diferenciais .quality div:hover .ico,
.card:hover .ic,
.steps li:hover .ic {
  background: var(--brand-blue);
  color: var(--brand-on-blue);
}
.ticks.icon-list .list-icon { color: var(--brand-blue); }
.card:before,
.services h3:before,
.quality dt:before {
  background: var(--brand-blue);
}

.hero:before {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--brand-blue-deep) 96%, transparent),
    color-mix(in srgb, var(--brand-blue) 60%, transparent) 45%,
    color-mix(in srgb, var(--brand-blue) 12%, transparent) 80%);
}
.phero:after {
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--brand-blue-deep) 96%, transparent),
    color-mix(in srgb, var(--brand-blue) 65%, transparent) 45%,
    color-mix(in srgb, var(--brand-blue) 20%, transparent)) !important;
}
.cv-shade {
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--brand-blue-deep) 95%, transparent),
    color-mix(in srgb, var(--brand-blue) 85%, transparent) 50%,
    color-mix(in srgb, var(--brand-blue) 75%, transparent));
}
.wiz-bar i.on { background: var(--brand-blue); }
.section.dark .button.outline {
  color: var(--brand-on-blue);
  border-color: color-mix(in srgb, var(--brand-on-blue) 55%, transparent);
}

@media (max-width: 680px) {
  html { scroll-padding-top: 110px; }
  .wrap { width: calc(100% - 32px); }
  .navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    min-height: 0;
    padding: 10px 0 0;
  }
  .navigation > a:first-child { min-width: 0; }
  .navigation > a:first-child .logo {
    width: 128px;
    height: auto;
    max-width: 100%;
  }
  header a.button {
    margin: 0;
    padding: 10px 12px;
    min-height: 42px;
    font-size: 12px;
    white-space: nowrap;
  }
  .navigation nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: thin;
  }
  .navigation nav a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
  }
  .navigation nav::-webkit-scrollbar { display: block; height: 3px; }
  .navigation nav::-webkit-scrollbar-thumb {
    background: var(--brand-blue-soft);
  }
  h1, h2, h3, dt { letter-spacing: 0; }
  .section h2 { font-size: 28px; line-height: 1.15; }
  .phero h1 { font-size: 32px; line-height: 1.12; }
  .phero { min-height: 540px; }
  .phero .wrap { padding-block: 40px; }
  .two > *, .split > *, .form, .form .row > * { min-width: 0; }
  .button { max-width: 100%; text-align: center; white-space: normal; }
  #rotas .split {
    display: flex !important;
    flex-direction: column;
    gap: 28px;
    align-items: stretch !important;
  }
  #rotas .route-visual {
    order: -1;
    width: 100%;
    margin: 0;
    align-self: stretch;
  }
  #rotas .route-visual video { width: 100%; height: auto; }
  #rotas .split > .reveal:first-child { width: 100%; }
  #rotas .rm-under { width: 100%; margin: 24px 0; }
  .route-selector { gap: 8px; }
  .route-selector button { min-height: 44px; padding: 9px 14px; }
  .form { padding: 20px 16px; }
  .form input, .form select, .form textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 16px !important;
  }
  .form .opts input { width: auto; }
  .opts { display: grid; grid-template-columns: minmax(0, 1fr); }
  .opts label, .opts span { display: block; width: 100%; }
  .opts span { border-radius: 8px; min-height: 48px; }
  .wiz-nav { align-items: stretch; gap: 8px; }
  .wiz-nav .button, .wiz-back { padding: 12px 14px; font-size: 14px; }
  .wiz-back[hidden] { display: none; }
  .wiz-nav .button { margin-left: auto; }
  .faq summary { min-height: 52px; padding-right: 24px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot a, .units a { overflow-wrap: anywhere; }
  .hero:before {
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--brand-blue-deep) 94%, transparent),
      color-mix(in srgb, var(--brand-blue) 55%, transparent));
  }
}